Forum: Ruby on Rails Using hidden fields to pass values

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Bing (Guest)
on 2006-06-08 07:34
Hi guys,

Another question from a newbie.

I need to update a div on my page which gets updated regularly. So what
I've done is to create a hidden field which technically just contains
the user_id. This field doesn't change. I was planning of pulling that
text field user_id data and putting it into params but it keeps on
giving me a nil value.

Is there a technique I could use to be able to get the value with no
real event?


Daniel -. (Guest)
on 2006-06-08 07:45
(Received via mailing list)
Is there a reason that you would not do this in sessions? (Like the
update is entirely on the client side) If you can then this is the way
that it is normally done.

ActsAsAuthenticated by technoweenie is a great resource to see an
example of how a simple authentication system works.  There are
others, user engine is a popular solution.

If you check these out it will give you some good ideas
This topic is locked and can not be replied to.