I have this tables in my database: “user” with such fields as “first”,
“last”, for the first and last name. Now, I want to make it so after
these values are submitted to the database the user can still edit their
personal info in place with the in_place_editor_field helper. The code
is as follows:
I cannot, however, get this helper to hit the database and resubmitt the
user data. It doesn’t make sense that these helpers would be in a form,
so how do you get this helper to write back to a database?
I have this tables in my database: “user” with such fields as “first”,
“last”, for the first and last name. Now, I want to make it so after
these values are submitted to the database the user can still edit their
personal info in place with the in_place_editor_field helper. The code
is as follows:
I cannot, however, get this helper to hit the database and resubmitt the
user data. It doesn’t make sense that these helpers would be in a form,
so how do you get this helper to write back to a database?
I got it, in your controller you have to say:
in_place_edit_for :user, :first
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.