Gemfile:
gem 'values'
Also tried Gemfile:
gem 'values', require: 'values'
Gemfile.lock
values (1.8.0)
$ bundle install
Using values 1.8.0
But $ rails console
> Value
NameError (uninitialized constant Value)
> require 'values'
LoadError (cannot load such file -- values)
But if I just $ irb
require 'values'
=> true
How can I get to the Value object in rails?
Previously I faced such problem for awesome_print
gem, the issue is due to spring
preloader.
First, you need to stop spring
from a terminal using the following command.
spring stop
Then restart your rails console.
Hope this will help for you.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.