Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

agsharma's Profile

GitHub User: agsharma

Comments by

Avatar

Hi Ryan, I have watched all your railscasts and I think you are doing a great job of helping people like me who are new to Rails.

I followed your tutorial and it works great. But, when I try to to the same thing for namespace routes I keep getting errors.

How do I create the same app within a namespace?

I have routes as:
namespace :admin do
resources :blogs do
resources :comments
end
end

and in the Show.html.erb I have:
New Comments
<%= form_for [:admin, @blog, Comment.new] do |f| %>
<%= f.label :body %> <%= f.text_field :body %>
<%= f.submit %>
<% end %>