resources_controller :for => :forums
Chris Hapgood
Skype: chris.hapgood
Email: cc...@hapgoods.com
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.516 / Virus Database: 269.20.5/1279 - Release Date: 14/02/2008
18:35
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.516 / Virus Database: 269.20.5/1279 - Release Date: 14/02/2008
18:35
Rc used to do this, way back when, but it turned out to be a bit too
magical in practice. Also, there are quite a few cases where you have
many controllers for one resource type (some nesting examples,
namespaced (eg admin) controllers, things like that)
Cheers,
Ian
--
Argument from Design--We build web applications
Western House 239 Western Road Sheffield S10 1LE UK
Mobile: +44 (0)797 4678409 | Office: +44 (0)114 2667712
<http://www.ardes.com/> | <http://blog.ardes.com/ian>
True, Ian. But now that RC supports multiple enclosing resource types
automatically for a given controller, I've been able to nuke many, many
degenerate controllers. Maybe it's an appropriate time to reconsider
default resource names.
My 2p.
-Chris
Chris Hapgood
Phone: +1 434 989 8584
Skype: chris.hapgood
Email: cc...@hapgoods.com
Cheers,
Ian
No virus found in this incoming message.
1. resources_controller_for
2. resources_controller
My teachers always told me to never end a sentence with a preposition!
-Chris
Chris Hapgood
Skype: chris.hapgood
Email: cc...@hapgoods.com
-----Original Message-----
From: resources_...@googlegroups.com
[mailto:resources_...@googlegroups.com] On Behalf Of Ian White
Sent: Friday, February 15, 2008 17:30
To: resources_...@googlegroups.com
Subject: Re: inferring the controller name
No virus found in this incoming message.
> My teachers always told me to never end a sentence with a preposition!
But 1, just like 'has_many' is the start of a sentence :)
So you're proposing syntactic sugar change, I thought maybe you were
thinking of something else
Chris Hapgood
Phone: +1 434 989 8584
Skype: chris.hapgood
Email: cc...@hapgoods.com
-----Original Message-----
From: resources_...@googlegroups.com
[mailto:resources_...@googlegroups.com] On Behalf Of Ian White
Sent: Friday, February 15, 2008 17:38
To: resources_...@googlegroups.com
Subject: Re: inferring the controller name
> 1. resources_controller_for
No virus found in this incoming message.