Simple permalinks, yes, like:

  /weather/report/10/3

But I do *not* see how to create permalinks for large collections of
documents, like:

  /france/weather/report/10/3
  /europe/weather/report/10/3

There's one big difference between the first and second example:  In
the first, all the parameters would be attributes of the one
ActiveRecord object (the weather report from 10/3.)

But in the second examples, information from two sources is pulled
from:  the AR object as above, plus a sort of application context ---
the user is focussing on France or Europe.  I haven't figured out how
to generate these kinds of URLs yet.  Anyone know how?  Here's what I
have so far:

  map.weather_report '/:location/weather/report/:month/:day' ...

This nicely (1) sets an @location variable in the app so that the
entire interface is tailored for the user, and (2) instantiates
the :month/:day weather report, filtered by @location.

But my problem:  I don't see how to use weather_report_path to
generate this URL.  Given a report object, and @location, I've tried
variations of:

  weather_report_path(report, @location)

...without success.

Any ideas?
Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to