New Site and Rails 2.0 Question

Hi guys,

We just built a new site on Ruby R. 1.1.2 (we tried Rails 1.2 but we
couldn’t seem to get to use the session-anyone has any experience with
this)?

Would love to hear what you guys think. The site is called
www.justanger.com

thanks,

Bing

Bing T. wrote:

Hi guys,

We just built a new site on Ruby R. 1.1.2 (we tried Rails 1.2 but we
couldn’t seem to get to use the session-anyone has any experience with
this)?

Would love to hear what you guys think. The site is called
www.justanger.com

thanks,

Bing

What do you mean you couldn’t use session ?

Jamal S. wrote:

Bing T. wrote:

Hi guys,

We just built a new site on Ruby R. 1.1.2 (we tried Rails 1.2 but we
couldn’t seem to get to use the session-anyone has any experience with
this)?

Would love to hear what you guys think. The site is called
www.justanger.com

thanks,

Bing

What do you mean you couldn’t use session ?

Using the old version of rails, we use this line:

session[:user] which works just fine.

But in the new rails version, when we use this code the session is
always returned with the nil value…

Bing T. wrote:

Jamal S. wrote:

Bing T. wrote:

Hi guys,

We just built a new site on Ruby R. 1.1.2 (we tried Rails 1.2 but we
couldn’t seem to get to use the session-anyone has any experience with
this)?

Would love to hear what you guys think. The site is called
www.justanger.com

thanks,

Bing

What do you mean you couldn’t use session ?

Using the old version of rails, we use this line:

session[:user] which works just fine.

But in the new rails version, when we use this code the session is
always returned with the nil value…

I’m using Rails 1.2 and its working fine, try something like this

session[:user] = ‘testing’

then call it from another method

@user = session[:user]

and put this in the view

<%[email protected]%>

PS: why your topic Rails 2.0 ? its not out yet?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs