I maybe missing something here. I have an ajax''ed search form, parameters are passing correctly, but they are not showing up in the action. I can see the parameters : Request *Parameters*: {"city"=>"Boston", "asearch"=>"category_id=2", "title"=>"Admin", "term_id"=>"8", "state_id"=>"3"} When I try to get them in the action they are being directed too I get a nil./ nomethod error. I think last week I had a problem where i was told that when there is a redirect to a different action the instance variable won''t carry over. Is that what''s happening here. I solved the last issue by saving the params to the session, but would prefer not to do that here. TIA Stuart -- http://en.wikipedia.org/wiki/Dark_ambient --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
dblack-TKXtfPMJ4Ozk1uMJSBkQmQ@public.gmane.org
2006-Oct-13 12:40 UTC
Re: Fundamental question: passing params
Hi -- On Fri, 13 Oct 2006, Dark Ambient wrote:> I maybe missing something here. I have an ajax''ed search form, parameters > are passing correctly, but they are not showing up in the action. > I can see the parameters : > > Request > *Parameters*: {"city"=>"Boston", "asearch"=>"category_id=2", > "title"=>"Admin", "term_id"=>"8", "state_id"=>"3"} > > When I try to get them in the action they are being directed too I get a > nil./ nomethod error.It''s hard to help you with your code if you don''t provide it :-) David -- David A. Black | dblack-TKXtfPMJ4Ozk1uMJSBkQmQ@public.gmane.org Author of "Ruby for Rails" [1] | Ruby/Rails training & consultancy [3] DABlog (DAB''s Weblog) [2] | Co-director, Ruby Central, Inc. [4] [1] http://www.manning.com/black | [3] http://www.rubypowerandlight.com [2] http://dablog.rubypal.com | [4] http://www.rubycentral.org --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Sorry David, it looked like this post never went through and there is a new one. I''ll call this one closed. Stuart On 10/13/06, dblack-TKXtfPMJ4Ozk1uMJSBkQmQ@public.gmane.org <dblack-TKXtfPMJ4Ozk1uMJSBkQmQ@public.gmane.org> wrote:> > > Hi -- > > On Fri, 13 Oct 2006, Dark Ambient wrote: > > > I maybe missing something here. I have an ajax''ed search form, > parameters > > are passing correctly, but they are not showing up in the action. > > I can see the parameters : > > > > Request > > *Parameters*: {"city"=>"Boston", "asearch"=>"category_id=2", > > "title"=>"Admin", "term_id"=>"8", "state_id"=>"3"} > > > > When I try to get them in the action they are being directed too I get a > > nil./ nomethod error. > > It''s hard to help you with your code if you don''t provide it :-) > > > David > > -- > David A. Black | dblack-TKXtfPMJ4Ozk1uMJSBkQmQ@public.gmane.org > Author of "Ruby for Rails" [1] | Ruby/Rails training & consultancy [3] > DABlog (DAB''s Weblog) [2] | Co-director, Ruby Central, Inc. [4] > [1] http://www.manning.com/black | [3] http://www.rubypowerandlight.com > [2] http://dablog.rubypal.com | [4] http://www.rubycentral.org > > > >-- http://en.wikipedia.org/wiki/Dark_ambient --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---