[LRUG] Rails Question : Matching Share Nested Resources to Controllers

Anthony Green Anthony.Green at bbc.co.uk
Mon Nov 5 08:08:32 PST 2007


Yes
*grin*


On 5/11/07 15:40, "Craig Webster" <craig at xeriom.net> wrote:

> 
> Would this work under resource_controller?
> 
> def cancel_link(default_root_path = series_path)
>    link_to "Cancel", enclosing_resource.blank? ? default_root_path :
> enclosing_resource_path
> end




More information about the Chat mailing list