On Aug 5, 12:08 am, DanC <[email protected]> wrote: > > if @user.save! > @user.roles << member_role > else > record_error(line) > end This else statement will never execute since if save! fails it raises an exception. Did you want to use save instead ?
Fred --~--~---------~--~----~------------~-------~--~----~ 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 protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

