Hi there

Is it possible to pass a parameter automatically to every rails
generated link?

for example:

I have the parameter site_id which is passed via url
(www.example.com/:site_id/:controller/:action/:id)

is it possible to automatically pass the :site_id to all links/paths
like f.i. "articles_path", "article_path(@article)" or is the only way
to do this by passing the parameter in addition:
"articles_path(:site_id=>params[:site_id])" or
"article_path(@article, :site_id=>params[:site_id])".

Thanks for your answers

Regards
sigma

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