Hi, I was trying to follow this tutorial,
http://clarkware.com/cgi/blosxom/2007/02/24#FileUploadFu, but I''m
having
trouble with the mugshots_path route in the upload form:
<% form_for(:mugshot, :url => mugshots_path,
:html => { :multipart => true }) do |f| -%>
I was wondering what the proper named route should be
--
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
-~----------~----~----~----~------~----~------~--~---
danman wrote:> Hi, I was trying to follow this tutorial, > http://clarkware.com/cgi/blosxom/2007/02/24#FileUploadFu, but I''m having > trouble with the mugshots_path route in the upload form: > > <% form_for(:mugshot, :url => mugshots_path, > :html => { :multipart => true }) do |f| -%> > > I was wondering what the proper named route should beHi, Have you defined: map.resources :mugshots in your routes.rb? Jean-Etienne -- 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 -~----------~----~----~----~------~----~------~--~---
Yes, I did. I''m asking because I keep getting the error message "uninitialized constant MugshotsController" when I submit a file -- 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 -~----------~----~----~----~------~----~------~--~---