[Rails] help with session

2012-04-21 Thread Paul Na
Hi all, I have a app with the /tests/new location which renders the add new form. This all works perfectly so when i fill the form in it goes straight into the db but i want the form to store the data in session[:whateverfield] i.e. session[:id], session[:title], session[:name], etc Then pass

Re: [Rails] help with session

2012-04-21 Thread Colin Law
On 21 April 2012 12:03, Paul Na li...@ruby-forum.com wrote: Hi all, I have a  app with the /tests/new location which renders the add new form. This all works perfectly so when i fill the form in it goes straight into the db but i want the form to store the data in session[:whateverfield]

Re: [Rails] help on session in Ruby

2012-01-23 Thread sachin kewale
On Fri, Jan 20, 2012 at 4:41 PM, Colin Law clan...@googlemail.com wrote: On 20 January 2012 10:54, sachin kewale sachinkew...@gmail.com wrote: On Fri, Jan 20, 2012 at 3:59 PM, Colin Law clan...@googlemail.com wrote: On 20 January 2012 10:20, sachin kewale sachinkew...@gmail.com wrote:

Re: [Rails] help on session in Ruby

2012-01-23 Thread Hassan Schroeder
On Mon, Jan 23, 2012 at 5:13 AM, sachin kewale sachinkew...@gmail.com wrote: ,   i have one issue after entering username and password on login popup and clicking login button the user is logged in but i have to refresh the url    i debug the code(method) but method giving the

Re: [Rails] help on session in Ruby

2012-01-23 Thread Colin Law
On 23 January 2012 13:13, sachin kewale sachinkew...@gmail.com wrote: On Fri, Jan 20, 2012 at 4:41 PM, Colin Law clan...@googlemail.com wrote: On 20 January 2012 10:54, sachin kewale sachinkew...@gmail.com wrote: On Fri, Jan 20, 2012 at 3:59 PM, Colin Law clan...@googlemail.com wrote:

[Rails] help on session in Ruby

2012-01-20 Thread sachin kewale
hi all, i have one issue after entering username and password on login popup and clicking login button the user is logged in but i have to refresh the url i have check the log but nothing is there,i have set the session key and secret in 'session_store.rb', i am running my local app on

Re: [Rails] help on session in Ruby

2012-01-20 Thread Colin Law
On 20 January 2012 10:20, sachin kewale sachinkew...@gmail.com wrote: hi all,   i have one issue after entering username and password on login popup and clicking login button the user is logged in but i have to refresh the url   i have check the log but nothing is there,i have set the session

Re: [Rails] help on session in Ruby

2012-01-20 Thread sachin kewale
On Fri, Jan 20, 2012 at 3:59 PM, Colin Law clan...@googlemail.com wrote: On 20 January 2012 10:20, sachin kewale sachinkew...@gmail.com wrote: hi all, i have one issue after entering username and password on login popup and clicking login button the user is logged in but i have to

Re: [Rails] help on session in Ruby

2012-01-20 Thread Colin Law
On 20 January 2012 10:54, sachin kewale sachinkew...@gmail.com wrote: On Fri, Jan 20, 2012 at 3:59 PM, Colin Law clan...@googlemail.com wrote: On 20 January 2012 10:20, sachin kewale sachinkew...@gmail.com wrote: hi all,   i have one issue after entering username and password on login

[Rails] Help with session

2011-03-17 Thread radhames brito
oookk, so i have 2 actions , create and destroy, i can get session[:cart_id] from inside the create method but not from inside the delete method. def create @cart = current_cart Rails.logger.debug SESSION INFO HERE #{session[:cart_id]} this here is 18 . . . def destroy #