I'm using Rails 3.2.13, but I don't know what's wrong with it. For some reasons, every gem I tried installing recently were successfully installed (as the log reads 'Your bundle is complete!')
But the problem comes when I tried using the gems, they don't seem to be available!
some of the gems I tried using: - best_in_place - rails-bootstrap-toggle-buttons and other gems as well.
None of them worked properly, and for instance, the best_in_place gem gives me the following error
undefined method `best_in_place' for #<#:0x52efc18>
And in gems where I need to specify 'require [gem_name]', I got errors like
cannot find [gem_name]
This has been very frustrating to me, please help out, and let me know if there is any more information I should provide. Thanks!
At the top of your source file you need:
require 'name_of_gem'
for each gem you want to use.
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.