rails/rails — pull request #6449 by ihid (2012-05-22 22:07:00+00:00)
Title: Fixed generated whitespace in routes when using namespaced resource.

Currently, running `rails generate resource admin/blog_post` gives the following:

```ruby
MyApplication::Application.routes.draw do
namespace :admin do resources :blog_posts end
end
```

This patch fixes the whitespace, so it's generated as follows:

```ruby
MyApplication::Application.routes.draw do
namespace :admin do
resources :comments
end
end
```

It's something that's been bugging me for ages, so I figured it was worth fixing. I haven't checked to see if this is still an issue on master, but I'll add another PR if so.

Thanks guys!