I think saving it in a session is the best way. as long as you don't store an object in the session, it's fine.
On Mon, Feb 21, 2011 at 2:45 PM, Srikanth Jeeva <[email protected]>wrote: > I'm not sure if this is the right way, wht i did in the same case was, > converting it to JSON and pass the params. I didn't like to store a > large params in session and so i did like this. > > > def process_new > @order = Order.new(params[:order]) > end > > In the view.. > <%= hidden_field_tag "order_json", @order.to_json %> > > back in controller: > > JSON.parse(params[:order_json]) > > Thanks, > Srikanth J > http://srikanthjeeva.blogspot.com/ > > -- > Posted via http://www.ruby-forum.com/. > > -- > 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 [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- ------------------------------------------------------------- visit my blog at http://jimlabs.heroku.com -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

