Ruby on Rails Friday, December 23, 2011



On Fri, Dec 23, 2011 at 5:18 PM, Michael Pavling <pavling@gmail.com> wrote:
On 23 December 2011 11:45, sachin kewale <sachinkewale@gmail.com> wrote:
> thanks Michael for responding,my question is how that http session is set in
> ruby on rail ?
> because in following code '@session' is coming nil :
>
>  <%if @session != nil%>

As I said.... "session" is *not* an instance variable. So remove the "@" sign...

--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.



thanks Michael,really thanks it solved my problem.

--


--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment