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.

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

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 Wednesday, August 02, 2006, at 9:45 PM, linux user wrote:

also know what the user clicked previous to be able to grab the correct
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails


Rails mailing list
[email protected]
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