Generating URLs

Currently, I’m using custom controller actions for generating reports.
Here
is an example of one action in the controller.

get /reports/service/:year/:period/:month/:modelness/:funder(/*globs) =>
‘reports#service’

The params are used to get a slice of time (specified by period) of one
month, three months, half_year, and full_year. Other controller actions
have the same structure.

My question is Is there a good way to programmatically generate URLs for
these actions or perhaps there is an abstraction I’m missing? Right now,
I
am having to do

<%= link_to “Service”, [“/reports”, “service”, fiscal_year, month,
funder,
*globs].join(“/”) %>

and I need to know whether the “service” action is being selected so I
can
highlight it as “active.”

Example here: http://pastebin.com/ukGXacWw

The pastepin is slightly different, as I was in the middle of rewriting
everything to move away from using “show” action for everything and
instead
to create custom actions for each distinct report.

Sorry if I’m a bit difficult to understand. It’s difficult to
articulate.