> > >> redirect_back_or_default(:controller => 'grapher', :action => >> 'index') >> flash[:notice] = "New User Successfully Created" > > This code also looks odd, how will it get to the flash line after the > redirect? Though I may be missing what redirect_back_or_default is > supposed to do.
Calls to redirect, render etc. don't terminate the action so there's nothing very wrong about this (don't know if the rails 3.1 changes to flushing will change this) > >> rescue ActiveRecord::RecordInvalid > > More odd looking code, or did the syntax for rescue change > dramatically with Rails 2 from Rails 1 > That's just standard ruby. 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.

