In my user model I've do:
to have a name method.
After signed in successfully I can use current_user.name.
I want to overwrite name method if the user is guest.
That's the use case:
The guest user signed in successfully, now its name is, for example,
"guest" " guest".
current_user.name is guest guest.
After signed in I present a form with a name input field and a surname
Submitting the form I want to overwrite the name value with input fields values.
So if name and surname are: "newguest" "newguest" I want
current_user.name have newguest newguest.
There a way to do this?
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to email@example.com.
To unsubscribe from this group, send email to firstname.lastname@example.org.
For more options, visit https://groups.google.com/groups/opt_out.