rails/jbuilder — pull request #100 by eljojo (2013-02-28 13:06:39+00:00)
Title: Not generating jbuilder views when generating scaffold_controller

Hi,
I found out a bug and tried to fix it but couldn't.

If I run ``rails generate scaffold_controller blablabla`` instead of ``rails generate scaffold blabalba`` I don't get the jbuilder views generated.

```
☁ peggy [master] ⚡ rails g scaffold_controller Contact name mail_subject internal_name parent_id:integer -p
create app/controllers/contacts_controller.rb
invoke erb
create app/views/contacts
create app/views/contacts/index.html.erb
create app/views/contacts/edit.html.erb
create app/views/contacts/show.html.erb
create app/views/contacts/new.html.erb
create app/views/contacts/_form.html.erb
invoke helper
create app/helpers/contacts_helper.rb
```

```
☁ peggy [master] ⚡ rails g scaffold Contact name mail_subject internal_name parent_id:integer -p
invoke active_record
create db/migrate/20130228130115_create_contacts.rb
create app/models/contact.rb
invoke resource_route
route resources :contacts
invoke jbuilder_scaffold_controller
create app/controllers/contacts_controller.rb
invoke erb
create app/views/contacts
create app/views/contacts/index.html.erb
create app/views/contacts/edit.html.erb
create app/views/contacts/show.html.erb
create app/views/contacts/new.html.erb
create app/views/contacts/_form.html.erb
invoke helper
create app/helpers/contacts_helper.rb
invoke jbuilder
create app/views/contacts
create app/views/contacts/index.json.jbuilder
create app/views/contacts/show.json.jbuilder
invoke assets
invoke coffee
create app/assets/javascripts/contacts.js.coffee
invoke scss
create app/assets/stylesheets/contacts.css.scss
invoke scss
```

Tried to fix it (see pull request), but it didn't solved the problem.
Any hints on what can be causing the problem?

I'm running Rails 4.0.0.beta1 under ruby 2.0.0-p0.

Note: the pull requests DOESN'T SOLVE THE PROBLEM.