> The error is: "Couldn't find Question with ID=arg"

What's the url that is supposed to be invoking the arg action?

What do your routes look like?

rake routes >routes.lst

then browse that file to see the routes that are available

it seems that 'arg' is being interpreted as an id parameter for an 
existing route...

if you want arg as an action for the whole collection, then I'd expect 
to see something like

map.resources :questions, :collection => {:arg => :get}

in routes.rb to add that as a recognized route

If it's for a specific question, then

map.resources :questions, :member => {:arg => :get}
-- 
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 [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to