Hello all,
Here's a newbie question (4 weeks and counting).
My routes.rb is as below.

map.resources :projects, :departments, :users, :admins, :imports, :notes

#Below is route in question
map.resources :projects, :collection => { :view_all => :get }

map.home '', :controller => 'projects', :action => 'index'
map.connect ':controller/:action/:id.:format'
map.connect ':controller/:action/:id'

I'm tried to get a url like this:
http://localhost:3000/projects/view_all

I have a view_all in the ProjectsController and I have a view_all
template.

When I type in the desired url, I get this error:

"ActiveRecord::RecordNotFound in ProjectsController#show

Couldn't find Project with ID=view_all"

Thank you for any help.

JohnM
-- 
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