koloa
2006-Aug-03 01:39 UTC
[Rails] how do i build this? is the only way to use session, or can
i pass and save muliple paramters between different views with different models? what i am trying to do use instead of the user filling out forms to search my database, i just want them to click on links. the first link selects data from one table and then a different view of links will be displayed. the user will then click on a new link but i will need to also know what the user clicked previous to be able to grab the correct information.. thoughts? i am reading the session part of agile development with rails right now. -- Posted via http://www.ruby-forum.com/.
linux user
2006-Aug-03 02:45 UTC
[Rails] how do i build this? is the only way to use session, or can
you can use a before_filter, in this before filter you can store the user click info in a stack, that way you will have the eariles click info on the top and oldest on the bottom. Store this stack in the session. If you want to store parameters you can do that too just put the params object in session. hope this helps -daya On 8/2/06, koloa <none@none.com> wrote:> > i pass and save muliple paramters between different views with different > models? > > > what i am trying to do use instead of the user filling out forms to > search my database, i just want them to click on links. the first link > selects data from one table and then a different view of links will be > displayed. the user will then click on a new link but i will need to > also know what the user clicked previous to be able to grab the correct > information.. > > > thoughts? i am reading the session part of agile development with rails > right now. > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060803/bbda7f30/attachment.html
Kevin Olbrich
2006-Aug-03 03:24 UTC
[Rails] how do i build this? is the only way to use session,
On Wednesday, August 02, 2006, at 9:45 PM, linux user wrote:>you can use a before_filter, in this before filter you can store the user >click info in a stack, that way you will have the eariles click info on the >top and oldest on the bottom. Store this stack in the session. > >If you want to store parameters you can do that too just put the params >object in session. > >hope this helps > >-daya > >On 8/2/06, koloa <none@none.com> wrote: >> >> i pass and save muliple paramters between different views with different >> models? >> >> >> what i am trying to do use instead of the user filling out forms to >> search my database, i just want them to click on links. the first link >> selects data from one table and then a different view of links will be >> displayed. the user will then click on a new link but i will need to >> also know what the user clicked previous to be able to grab the correct >> information.. >> >> >> thoughts? i am reading the session part of agile development with rails >> right now. >> >> -- >> Posted via http://www.ruby-forum.com/. >> _______________________________________________ >> Rails mailing list >> Rails@lists.rubyonrails.org >> http://lists.rubyonrails.org/mailman/listinfo/rails >> > > >_______________________________________________ >Rails mailing list >Rails@lists.rubyonrails.org >http://lists.rubyonrails.org/mailman/listinfo/rails >You can also just pass the parameters from your previous call to the next one in the chain. _Kevin www.sciwerks.com -- Posted with http://DevLists.com. Sign up and save your mailbox.
Jean-Etienne Durand
2006-Aug-03 09:03 UTC
[Rails] Re: how do i build this? is the only way to use session, or
Koloa, AFAIK, you have here two possiblities: 1. use session data 2. use forms, and passing data with hidden_fields. Are you OK with that? Jean-Etienne -- Posted via http://www.ruby-forum.com/.