Could someone please explain to me the meaning of this error? ActionView::TemplateError (index 58729 out of string) on line #2 : 1: <%= form_remote_tag(:update => "update_form", 2: :url => { :action => :add_product}) %> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Could someone assist me with this problem? On Oct 5, 11:12 am, jmark <jm...-GzgP2VM9KJ0N+BqQ9rBEUg@public.gmane.org> wrote:> Could someone please explain to me the meaning of this error? > > ActionView::TemplateError (index 58729 out of string) on line #2 : > > 1: <%= form_remote_tag(:update => "update_form", > 2: :url => { :action => :add_product}) %>--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Just a thought, but if the method in your controller is called add_product, do this instead: :url => { :action => ''add_product'' } ) I''m not sure what the error is or if chainging the : to single quotes will fix it. It''s my best guess. Bryce On Oct 5, 9:43 pm, jmark <jm...-GzgP2VM9KJ0N+BqQ9rBEUg@public.gmane.org> wrote:> Could someone assist me with this problem? > > On Oct 5, 11:12 am, jmark <jm...-GzgP2VM9KJ0N+BqQ9rBEUg@public.gmane.org> wrote: > > > Could someone please explain to me the meaning of this error? > > > ActionView::TemplateError (index 58729 out of string) on line #2 : > > > 1: <%= form_remote_tag(:update => "update_form", > > 2: :url => { :action => :add_product}) %>--~--~---------~--~----~------------~-------~--~----~ 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 add product as string not as symbol Sent from my iPhone On Oct 5, 2007, at 9:43 PM, jmark <jmark-GzgP2VM9KJ0N+BqQ9rBEUg@public.gmane.org> wrote:> > Could someone assist me with this problem? > > On Oct 5, 11:12 am, jmark <jm...-GzgP2VM9KJ0N+BqQ9rBEUg@public.gmane.org> wrote: >> Could someone please explain to me the meaning of this error? >> >> ActionView::TemplateError (index 58729 out of string) on line #2 : >> >> 1: <%= form_remote_tag(:update => "update_form", >> 2: :url => { :action => :add_product}) %> > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---