Pål Bergström wrote: > I get an error saying Rails can't find the post because I don't have an > id when doing the update. I have: > > <% form_tag '/meetings/update', :id => @calendar.id, :onsubmit => > 'return ValidateMeeting()' do %> > > > Is this wrong?
Have you tried <% form_tag :action => 'update', :controller => 'meetings', :id => @calendar.id, :onsubmit => 'return ValidateMeeting()' do %> That should call the action and the controller that you want. -S -- 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@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---