Hello, I''ve got the following problem, I hope someone can help me. The following code doesn''t work properly: <% form_for :loesungen, @loesungen, :url => {:controller => ''spiel'', :action => ''loesung_auswerten''}, :html => { :onsubmit => "return istFertig(this)"} do |f| %> loesungen is an array of models. loesung_auswerten is a function in the spiel_controller. The problem is, the program should enter the function ''loesung_auswerten'', but it doesn''t. Instead, it tries to show a webpage, called ''loesung_auswerten'' and says, that the page doesn''t exist. Sorry, if I explained it too unclearly, hope someone has an idea what could be wrong... -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On 10 Jun 2008, at 10:53, Dimitar Ganchev wrote:> > Hello, I''ve got the following problem, I hope someone can help me. > > The following code doesn''t work properly: > > <% form_for :loesungen, @loesungen, :url => {:controller => ''spiel'', > :action => ''loesung_auswerten''}, :html => { :onsubmit => "return > istFertig(this)"} do |f| %> > > loesungen is an array of models. > loesung_auswerten is a function in the spiel_controller. > The problem is, the program should enter the function > ''loesung_auswerten'', but it doesn''t. Instead, it tries to show a > webpage, called ''loesung_auswerten'' and says, that the page doesn''t > exist. > Sorry, if I explained it too unclearly, hope someone has an idea what > could be wrong...what''s the generated html ? Fred> > -- > Posted via http://www.ruby-forum.com/. > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Frederick Cheung wrote:> what''s the generated html ? > > FredWhat do you mean by generated html? It just says: HTTP 500 The website cannot display the page -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On 10 Jun 2008, at 11:16, Dimitar Ganchev wrote:> > Frederick Cheung wrote: > >> what''s the generated html ? >> >> Fred > > What do you mean by generated html?From your description of the problem it sounded like submitting the form is the problem, so the html for that form might be informative. also check your routes Fred --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---