difference between scope and namespace of ruby-on-rails 3 routing
Posted
by fayer
on Stack Overflow
See other posts from Stack Overflow
or by fayer
Published on 2010-06-12T20:12:46Z
Indexed on
2010/06/12
20:23 UTC
Read the original article
Hit count: 171
ruby-on-rails
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
© Stack Overflow or respective owner