RailsCasts Pro episodes are now free!

Learn more or hide this

agsharma's Profile

GitHub User: agsharma

Comments by


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

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 %>