difference between scope and namespace of ruby-on-rails 3 routing
- by fayer
i cant understand what the difference is between a namespace and a scope in the routing of ruby-on-rails 3.
could someone please explain?
namespace "admin" do
resources :posts, :comments
end
scope :module => "admin" do
resources :posts, :comments
end
thanks