I can\'t understand what the difference is between a namespace and a scope in the routing of ruby-on-rails 3.
Could someone please explain?
namespace
The difference lies in the paths generated.
The paths are admin_posts_path and admin_comments_path for the namespace, while they are just posts_path and comments_path for the scope.
admin_posts_path
admin_comments_path
posts_path
comments_path
You can get the same result as a namespace by passing the :name_prefix option to scope.
:name_prefix