jquery - undefined method `best_in_place' in Class in ruby on rails -


i follow http://railscasts.com/episodes/302-in-place-editing?view=asciicast text inline editing

gem 'best_in_place'

//= require jquery //= require jquery_ujs //= require jquery.purr //= require best_in_place //= require turbolinks //= require_tree . 

but when write

<%= best_in_place product_comment, :description %> 

it gives error undefined method `best_in_place' #<#:0xb43cc3dc>

the reason why error (apart other crazy reasons dynamic undefining of methods in code) best_in_place gem has not been loaded. restart server , should work


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -