Howdy, I'm being a little dense on understanding how to handle nested controllers.
What I have is a Contact class with n:n phone numbers (Phone class) through a Resource. When editing a Contact, I set up a "new phone number" link. So what I'm getting for the URL is something like: http://localhost:4000/admin/contacts/16/phones/new Now in the Phones.new method, the params contain :contact_id=16. Life is good to this point. Here's the relevant parts of Phones.new: def new # set @parent to Contact.first(:id=>16) # set @phone to new Phone instance (not committed to db) display @phone end The problem is that I don't see how to pass @parent to the create method. Using the display opts doesn't work: display @phone, :contact_id => 16 Passing @parent as the display "thing" parameter doesn't work (am I the only one who thinks of the Adams Family when reading the display rdocs?). Any guidance would be much appreciated. Thank you, Roy --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "merb" 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/merb?hl=en -~----------~----~----~----~------~----~------~--~---
