when you are trying to set the attributes of your object in the update action, 
are u get all the params or just the ones you want to update? maybe if you 
think of it! It could change the way you update your data!

regards

-- 
thiagocifani
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)

On Wednesday, July 20, 2011 at 5:59 PM, Leonel *.* wrote:

> I have an Update User page.
> 
> I created my own authentication from scratch based on one of the
> railscasts and other tutorials.
> 
> The user can update his first name, last name, email address, etc. I do
> not want the user to update his password, so I didn't include the
> password fields. Since in the User model I have validate_presence_of
> :password, whenever the user tries to update his profile, of course, he
> gets this error:
> 
> "Password should have between 6 to 12 characters"
> 
> How can I make the Update User form work without it doing anything to
> the password?
> 
> -- 
> Posted via http://www.ruby-forum.com/.
> 
> -- 
> 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@googlegroups.com 
> (mailto:rubyonrails-talk@googlegroups.com).
> To unsubscribe from this group, send email to 
> rubyonrails-talk+unsubscr...@googlegroups.com 
> (mailto:rubyonrails-talk+unsubscr...@googlegroups.com).
> For more options, visit this group at 
> http://groups.google.com/group/rubyonrails-talk?hl=en.

-- 
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@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to