Almog Friedman wrote:
> I didn't quite understand why did you put
> that:  @faction = Faction.find(:last, :order => 'id') at the end of the
> controller action.

In the code I posted, there is no @faction object populated from the 
params, and standard routing after a create is to go to the show for 
that @faction (the usual respond_to do |format| block).

Faction.create doesn't create one either, so I retrieved the one just 
created.
-- 
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-t...@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