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:
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: