werein / x-editable-rails

Edit fields easily with X-Editable helper
https://wereinhq.com/guides/x-editable-rails
MIT License
155 stars 87 forks source link

fixing model with namespace #83

Open brenoperucchi opened 7 years ago

brenoperucchi commented 7 years ago

Line 40 it resolve the problem with namespace in the model with strong_params on controller.

proposal = Admin::Proposal.first editable proposal

params on Controller will get "params[:proposal]" and not "params[:admin_proposal]"

I didn't get to compare version 1.5.5 correctty with master