[LRUG] Rails Question : Matching Share Nested Resources to Controllers
Anthony Green
Anthony.Green at bbc.co.uk
Mon Nov 5 05:16:40 PST 2007
What are peoples views on what is a sensible approach on what controller
strategy you should employ for shared nested resources
ie
/books/
/authors/id/books
/publishers/id/books
Should each one have their own controller ?
books_controller.rb
authors_books_controller.rb
publishers_books_controller.rb
Or a single controller with some form of contextual checking ?
The former seems preferable to me as less opaque despite the whatever
duplication might occur, especially when views are heavily contextual -
breadcrumbs trails etc.
I've googled around the topic but with little results
--
Anthony Green
Client Side Developer - Programme Information Tool
Audio & Music Interactive
BBC Future Media & Technology
Room 718 | Henry Wood House
http://www.bbc.co.uk/
This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated.
If you have received it in error, please delete it from your system.
Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately.
Please note that the BBC monitors e-mails sent or received.
Further communication will signify your consent to this.
More information about the Chat
mailing list