Thanks in advance for any help on this.

I would like to search my DB for records using a Model.where
request... Using jquery I have access to the text within the select
option chosen from a drop box. Now, if only I could take this text and
assign it to a ruby instance variable, such as @brand.... I could then
insert the value into the 'where' request and pull the records
corresponding to the selected option.

It seems possible to assign a ruby variable to a jquery var, but not
the other way around. Is there, or could there be, a ruby function to
help with this?

Thanks,
Abram

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

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 9 | next ›
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedMar 1, '12 at 12:44p
activeMar 6, '12 at 3:23p
posts9
users4
websiterubyonrails.org
irc#RubyOnRails

People

Translate

site design / logo © 2021 Grokbase