Leonel *.* wrote in post #1014810: > Thanks, it did simplify it. Any suggestions on the controller?
if @user.update_attributes(params[:user]) # if passed validation, # set user state to confirmed @user.user_state = "confirmed" @user.confirmed_at = Time.now if @user.update_attributes(params[:user]) Can that last if statement ever be false? -- 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. 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.