I have a form under user controller
And i have another controller call my_account,
i render the _form inside the index page of my_account. to allow user
to update their user information.
So when user click update, update method in UserController will be
invoked.
My question is, if faild to update user object, how can i display
error message on to my_account index page, and still have the field
highlight?? e.g invalid format of email address
User
-- new.html.erb
-- _form
my_account
-- index.html.erb
--
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.