Hello everyone,
question:
suppose program has_many episodes
in the restful form_for ,
<% form_for (:episode,:url =>
@episode_path(@episode.program.id,@episode))
It looks redandant to me that why do i need to pass the two
parameters ,in which case only @episode is enough?
why rails do this? why not to save the first paramter?
thanks very much
Kevin
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---