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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

android - How to create dynamically Fragment pager adapter -

1111. appearing after print sequence - php -