bernat / best_in_place

A RESTful unobtrusive jQuery Inplace-Editor and a helper as a Rails Gem
http://blog.bernatfarrero.com/in-place-editing-with-javascript-jquery-and-rails-3/
1.2k stars 571 forks source link

:url not working with Rails 4 #458

Open rwwaskk opened 9 years ago

rwwaskk commented 9 years ago

Hi, I want to specify data-url with :url attribute as

<%=best_in_place @profile, :pro_tip, :type =>:textarea,:url=>protip_update_profile_path(@profile),:ok_button=>'save',  :html_attrs => { :style => 'width:100%; height:200px;' }, :ok_button_class=>"btn btn-primary", :nil=>'<div class="my_review">add you protip here</div>',cancel_button:"cancel",cancel_button_class:"btn",use_confirm:false%>

However, the data-url is still rendered as default (put profile/1) Am I missing something? Thanks!

stereodenis commented 9 years ago

@rwwaskk could you make sample app with this problem?