Josh Sharpe wrote:
[...]
> As a result, edit_event_races_path(@event) or edit_event_races_path
> (@event.id) is blowing up in my face:
> 
> edit_event_races_url failed to generate from
> {:controller=>"races", :action=>"edit", :event_id=>#<Event id: 1,
> name: "Ride Sally Ride">, :id=>/[^\/.?]+/}
> 
> Am I doing something wrong here?

So it would seem.  You're passing an Event object where Rails is 
apparently expecting an ID.  Note what :event_id holds.

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
[email protected]
-- 
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 [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
-~----------~----~----~----~------~----~------~--~---

Reply via email to