This is my first attempt at doing a dropdown menu in a Rails
application. I tried looking for help on the topic, but what complicated
things is that the term dropdown menu is used for actual dropdown menu
(page menu), as well as what is dropdown lists, form options, form
selections, etc.
I think you are using gsub on symbol which is the reason you are thrown
this error. Pass the string to the function instead of symbol:
<%= dropdown_tags “sort_criteria”, ‘Select Criteria’,
%w(Category Status Amount-High Amount-Low) %>
On Sat, Jun 30, 2012 at 3:52 AM, Eastside Developer [email protected]wrote:
) and placed it in /lib
<% require ‘jquery_dropdown_helper’ %>
I think you are using gsub on symbol which is the reason you are thrown
this error. Pass the string to the function instead of symbol:
<%= dropdown_tags “sort_criteria”, ‘Select Criteria’,
%w(Category Status Amount-High Amount-Low) %>
On Sat, Jun 30, 2012 at 3:52 AM, Eastside Developer [email protected]wrote:
) and placed it in /lib
<% require ‘jquery_dropdown_helper’ %>
Yes, gsub as a method is not going to act on a symbol. However, when I
switch to string, instead of seeing a dropdown menu, I see the
following: note that I changed the name of the hidden tag). Any pointers
to dropdown menu examples that do not force to do a deep dive into
JQuery?