I solved this error <%= related_collection_select(:street, :id, "city_id", Street.find (:all), :id, :name, :city_id) %>
make the third parameter in double quote like city_id however, i face the same problem, the second select menu does not appear ??????????? On Apr 2, 7:29 pm, Shuaib85 <[email protected]> wrote: > So far no > > I changed the line you mentioned > > i get this error now > wrong number of arguments (5 for 4) --- the error fot > relared_collection_select line > > <%= collection_select(:city, :id, City.find(:all, :order => > "name"), :id, :name) %> > <%= related_collection_select(:street, :id, [:city, :id], Street.find > (:all), :id, :name, :city_id) %> > > I am I doing it the wrong way > > On Apr 2, 6:55 pm, infinteVerve <[email protected]> wrote: > > > Line 59 in 'vendor/plugins/related_select_forms/lib/ > > related_select_form_helper.rb ' > > > changed this: > > result[reference_value] ||= OrderedOptions.new > > > to: > > result[reference_value] ||= ActiveSupport::OrderedOptions.new > > > I don't get the error anymore, but my 'related_collection_select' box > > is coming up empty everytime. > > > On Apr 2, 11:29 am, infinteVerve <[email protected]> wrote: > > > > Have any luck solving this? I'm having the same problem. > > > > On Mar 31, 5:31 am, Shuaib85 <[email protected]> wrote: > > > > > Hi there > > > > > I have seen railscasts episode 88 about dynamic select menus and I > > > > implemented it. However, it has some bugs, I managed to tackle some. > > > > > But I saw a better way to do that using related select forms > > > > >http://agilewebdevelopment.com/plugins/related_select_forms > > > > > according to the readme file this way looks very easy but when I run > > > > it on rails 2.2.2 i get this error > > > > > uninitialized constant > > > > ActionView::Helpers::RelatedSelectFormHelper::OrderedOptions > > > > > any idea how to solve it or if there is another plugin that does the > > > > same function > > > > > Thanks --~--~---------~--~----~------------~-------~--~----~ 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

