[Rails] Re: Passing parameter automatically to links

2010-07-08 Thread sigma
On Jul 8, 11:48 am, Frederick Cheung wrote: > On Jul 7, 5:21 pm, sigma wrote: > > > Hi there > > > Is it possible to pass a parameter automatically to every rails > > generated link? > > ActionController::default_url_options ? > > Fred Hi Fred This is exaclty what I'm looking for! Thank you

[Rails] Re: Passing parameter automatically to links

2010-07-08 Thread Frederick Cheung
On Jul 7, 5:21 pm, sigma wrote: > Hi there > > Is it possible to pass a parameter automatically to every rails > generated link? > ActionController::default_url_options ? Fred -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post t

[Rails] Re: Passing parameter automatically to links

2010-07-08 Thread sigma
On Jul 8, 9:43 am, Colin Law wrote: > On 8 July 2010 06:16, sigma wrote: > > > Hi > > > Ok, sessions seems  to be right, but not what I'm looking for :-) > > > This parameter is not static, it is dynamic. the whole thing is for a > > CMS where the ":site-id" tells where the user stands in the n

Re: [Rails] Re: Passing parameter automatically to links

2010-07-08 Thread Colin Law
On 8 July 2010 06:16, sigma wrote: > Hi > > Ok, sessions seems  to be right, but not what I'm looking for :-) > > This parameter is not static, it is dynamic. the whole thing is for a > CMS where the ":site-id" tells where the user stands in the navigation > and what's the site title,... So it wou

[Rails] Re: Passing parameter automatically to links

2010-07-07 Thread sigma
Hi Ok, sessions seems to be right, but not what I'm looking for :-) This parameter is not static, it is dynamic. the whole thing is for a CMS where the ":site-id" tells where the user stands in the navigation and what's the site title,... So it would be much better to pass this by url. sigma O

[Rails] Re: Passing parameter automatically to links

2010-07-07 Thread Marnen Laibow-Koser
[Please quote when replying.] Christoph Thommen wrote: > Hi > > thanks, but this is not really what i'm looking for. > I looking for a solution to (re-)pass a given parameter to all rails > generated links. And why won't a session variable do the trick? It seems to me that Colin is right. You

[Rails] Re: Passing parameter automatically to links

2010-07-07 Thread sigma
Hi thanks, but this is not really what i'm looking for. I looking for a solution to (re-)pass a given parameter to all rails generated links. sigma On 7 Jul., 19:03, Colin Law wrote: > On 7 July 2010 17:21, sigma wrote: > > > Hi there > > > Is it possible to pass a parameter automatically to e