How to pass HTML Field value to Ruby code in view

Tam Kbe
Wed, 01 Apr 2009 06:24:45 -0000

Hello,

I need to get a value of HTML Hidden field inside my Ruby Code in view:
I''m storing session variable name inside hidden field which I need to
access from different blocks of Ruby code:

<% if sessions[VAR_NAME].nil? %>
....

VAR_NAME is the value of the hidden field. I tried using the
$('''')
notation and document.getElementById but it''s doesn''t render
from inside
Ruby block.

Any ideas how I can pass the value to Ruby Block?

Thanks,

Tam
--
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---