Displaying 1 result from an estimated 1 matches for "unit_url".
2012 Jun 12
0
Advanced routing question
...troller =>
''units'', :action => ''index'', :requirements => {:district =>
districts, :community => communities, :resort => resorts, :unit =>
units }, :method => ''get''
And in probably hundreds of places in the project we use unit_url,
like this:
unit_url(:district => @district.uri, :community =>
u.unit.resort.community.uri, :resort => u.unit.resort, :unit => u)
(uri is our own special method in the models)
OK, that''s all well and good. Works perfectly. Now, here''s the rub:
We may have a case...