ruby on rails - In Place editing -


i followed steps according http://railscasts.com/episodes/302-in-place-editing?view=asciicast

but not editing @ attributes place?

this page

<div class="well-lg box-left box-first">   <div class="row">     <h3>personal details</h3>     <br>     <ul class="list-group">     <li><strong><div class="col-sm-4">fname </div></strong>       <%= best_in_place @user, :fname %></li>     <li><strong><div class="col-sm-4">lname </div></strong>       <%=  best_in_place @user, :lname %></li>     <li><strong><div class="col-sm-4">email </div></strong>       <%=  best_in_place @user, :email %></li>     <li><strong><div class="col-sm-4">mobile </div></strong>       <%=  best_in_place @user, :mob %></li>     </ul><br><%= link_to 'edit', {:controller=>'users', :action=>'edit'}%>   </div> </div> 

any or solution?? in advance

edit

application.js

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

user.js.coffee

 jquery ->  $('.best_in_place').best_in_place(); 

best_in_place not compatible rails 4, can try following gems , see if work.

https://github.com/bootstrap-ruby/bootstrap-editable-rails

https://github.com/janv/rest_in_place


Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -