Re: [Rails] Newb: Order page, multiple view single model question

2011-02-21 Thread Michael Pavling
On 21 February 2011 03:34, James allan To wrote: > Question: Is there aright way of doing this (carry params values between > views) or should I just place the data from new in session as we move to > forward to the third page create a hash from session and save in model? My view would be that th

Re: [Rails] Newb: Order page, multiple view single model question

2011-02-21 Thread Colin Law
On 21 February 2011 08:50, Jim Ruther Nill wrote: > > > On Mon, Feb 21, 2011 at 4:34 PM, Colin Law wrote: >> >> On 21 February 2011 07:56, Jim Ruther Nill wrote: >> > >> > >> > On Mon, Feb 21, 2011 at 3:38 PM, Colin Law >> > wrote: >> >> >> >> On 21 February 2011 03:34, James allan To wrote: >

Re: [Rails] Newb: Order page, multiple view single model question

2011-02-21 Thread Jim Ruther Nill
On Mon, Feb 21, 2011 at 4:34 PM, Colin Law wrote: > On 21 February 2011 07:56, Jim Ruther Nill wrote: > > > > > > On Mon, Feb 21, 2011 at 3:38 PM, Colin Law > wrote: > >> > >> On 21 February 2011 03:34, James allan To wrote: > >> > Hi I would just like to ask if someone can point me to the rig

Re: [Rails] Newb: Order page, multiple view single model question

2011-02-21 Thread Colin Law
On 21 February 2011 07:56, Jim Ruther Nill wrote: > > > On Mon, Feb 21, 2011 at 3:38 PM, Colin Law wrote: >> >> On 21 February 2011 03:34, James allan To wrote: >> > Hi I would just like to ask if someone can point me to the right >> > direction. I have an order page which will need to be split

Re: [Rails] Newb: Order page, multiple view single model question

2011-02-20 Thread Jim Ruther Nill
On Mon, Feb 21, 2011 at 3:38 PM, Colin Law wrote: > On 21 February 2011 03:34, James allan To wrote: > > Hi I would just like to ask if someone can point me to the right > > direction. I have an order page which will need to be split into 3 views > > before saving say in controller: > > > > def

Re: [Rails] Newb: Order page, multiple view single model question

2011-02-20 Thread Colin Law
On 21 February 2011 03:34, James allan To wrote: > Hi I would just like to ask if someone can point me to the right > direction. I have an order page which will need to be split into 3 views > before saving say in controller: > > def new > @order = Order.new > end > > def process_new > @order = Or

[Rails] Newb: Order page, multiple view single model question

2011-02-20 Thread James allan To
Hi I would just like to ask if someone can point me to the right direction. I have an order page which will need to be split into 3 views before saving say in controller: def new @order = Order.new end def process_new @order = Order.new(params[:order]) #do validation for new # redirect to no_of_a