I’m trying to create an edit in place profile update page, using
in_place_editor_field. Every time I try, I keep getting this error
No route matches {:action=>“set_user_first_name”, :id=>“1”}
Would any know what the problem might be? The relevant code is blow.
Link to users_controller.rb
in_place_edit_for :user, :first_name
profile edit page
def update
@user = User.find_by_user_name(params[:user_name])
end
Link from index to Update Action
<%= link_to ‘Your Profile’, update_user_url(:user_name =>
current_user.user_name, :id => current_user.id) %>
Update.rhtml
<%= in_place_editor_field :user, :first_name %>