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 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 -~----------~----~----~----~------~----~------~--~---
Have any luck solving this? I''m having the same problem. On Mar 31, 5:31 am, Shuaib85 <shuaib.za...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org 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 -~----------~----~----~----~------~----~------~--~---
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 <merickson....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Have any luck solving this? I''m having the same problem. > > On Mar 31, 5:31 am, Shuaib85 <shuaib.za...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org 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 -~----------~----~----~----~------~----~------~--~---
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 <merickson....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 <merickson....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Have any luck solving this? I''m having the same problem. > > > On Mar 31, 5:31 am, Shuaib85 <shuaib.za...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org 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 -~----------~----~----~----~------~----~------~--~---
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 <shuaib.za...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 <merickson....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 <merickson....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > Have any luck solving this? I''m having the same problem. > > > > On Mar 31, 5:31 am, Shuaib85 <shuaib.za...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org 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 -~----------~----~----~----~------~----~------~--~---
Hi guys Any one is aware of another plugin other than this one that does the same thing select a country and then display its state this is what we are looking for 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 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 -~----------~----~----~----~------~----~------~--~---
Try this.... I got the same error when going from Rails 2.1.1 to 2.2.2 in line 66 of ''vendor/plugins/related_select_forms/lib/ related_select_form_helper.rb '' change: ActionView::Helpers::InstanceTag.new(object, method, self, nil, options.delete(:object)). to: ActionView::Helpers::InstanceTag.new(object, method, self, options.delete(:object)). then: <%= related_collection_select(:street, :id, [:city, :id], Street.find (:all), :id, :name, :city_id) %> that work? On Apr 3, 3:18 am, Shuaib85 <shuaib.za...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi guys > > Any one is aware of another plugin other than this one that does the > same thing > > select a country and then display its state this is what we are > looking for > > 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org 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 -~----------~----~----~----~------~----~------~--~---
Thank you very much. This way worked and saved me lots of efforts On Apr 9, 6:41 am, infinteVerve <merickson....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Try this.... > > I got the same error when going from Rails 2.1.1 to 2.2.2 > > in line 66 of ''vendor/plugins/related_select_forms/lib/ > related_select_form_helper.rb '' > > change: > ActionView::Helpers::InstanceTag.new(object, method, self, nil, > options.delete(:object)). > > to: > ActionView::Helpers::InstanceTag.new(object, method, self, > options.delete(:object)). > > then: > <%= related_collection_select(:street, :id, [:city, :id], Street.find > (:all), :id, :name, :city_id) %> > > that work? > > On Apr 3, 3:18 am, Shuaib85 <shuaib.za...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Hi guys > > > Any one is aware of another plugin other than this one that does the > > same thing > > > select a country and then display its state this is what we are > > looking for > > > 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org 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 -~----------~----~----~----~------~----~------~--~---