Hi everyone, I'm having some troubles with RoR and REStful
controllers:
I generated a simple scaffold "categories" wich contains name and
branch column: easy.
I also generated a namespaced controller "admin/categories".
I replaced all the scaffold's link_path in my views to match with my
admin namespace, such as "<%= link_to 'Show', @category %>" became "<
%= link_to 'Show', [:admin, @category] %> ".
I replace the resource routes with my namespace:
namespace :admin do
resources :categories
end
And everything works fine... Until I created a resource in my database
using scaffold forms... Now when I'm going to "mywebsite/admin/
categories", rails is trying to render show method:
No route matches {:action=>"show", :controller=>"admin/categories"}
I search on the web to fix and found this:
http://www.ruby-forum.com/topic/145160
But I didn't really understand how to fix the problem.
Can someone help me? =)
Regards,
Romain 'Maz' B.
--
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.