{"action":"closed","issue":{"url":"https://api.github.com/repos/lotus/lotus/issues/226","labels_url":"https://api.github.com/repos/lotus/lotus/issues/226/labels{/name}","comments_url":"https://api.github.com/repos/lotus/lotus/issues/226/comments","events_url":"https://api.github.com/repos/lotus/lotus/issues/226/events","html_url":"https://github.com/lotus/lotus/issues/226","id":77591156,"number":226,"title":"Action generator doesn't respect Ruby file naming","user":{"login":"jodosha","id":5089,"avatar_url":"https://avatars.githubusercontent.com/u/5089?v=3","gravatar_id":"","url":"https://api.github.com/users/jodosha","html_url":"https://github.com/jodosha","followers_url":"https://api.github.com/users/jodosha/followers","following_url":"https://api.github.com/users/jodosha/following{/other_user}","gists_url":"https://api.github.com/users/jodosha/gists{/gist_id}","starred_url":"https://api.github.com/users/jodosha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jodosha/subscriptions","organizations_url":"https://api.github.com/users/jodosha/orgs","repos_url":"https://api.github.com/users/jodosha/repos","events_url":"https://api.github.com/users/jodosha/events{/privacy}","received_events_url":"https://api.github.com/users/jodosha/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/lotus/lotus/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"nguyenngoc2505","id":3872648,"avatar_url":"https://avatars.githubusercontent.com/u/3872648?v=3","gravatar_id":"","url":"https://api.github.com/users/nguyenngoc2505","html_url":"https://github.com/nguyenngoc2505","followers_url":"https://api.github.com/users/nguyenngoc2505/followers","following_url":"https://api.github.com/users/nguyenngoc2505/following{/other_user}","gists_url":"https://api.github.com/users/nguyenngoc2505/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenngoc2505/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenngoc2505/subscriptions","organizations_url":"https://api.github.com/users/nguyenngoc2505/orgs","repos_url":"https://api.github.com/users/nguyenngoc2505/repos","events_url":"https://api.github.com/users/nguyenngoc2505/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenngoc2505/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/lotus/lotus/milestones/5","html_url":"https://github.com/lotus/lotus/milestones/v0.3.2","labels_url":"https://api.github.com/repos/lotus/lotus/milestones/5/labels","id":1109916,"number":5,"title":"v0.3.2","description":"","creator":{"login":"jodosha","id":5089,"avatar_url":"https://avatars.githubusercontent.com/u/5089?v=3","gravatar_id":"","url":"https://api.github.com/users/jodosha","html_url":"https://github.com/jodosha","followers_url":"https://api.github.com/users/jodosha/followers","following_url":"https://api.github.com/users/jodosha/following{/other_user}","gists_url":"https://api.github.com/users/jodosha/gists{/gist_id}","starred_url":"https://api.github.com/users/jodosha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jodosha/subscriptions","organizations_url":"https://api.github.com/users/jodosha/orgs","repos_url":"https://api.github.com/users/jodosha/repos","events_url":"https://api.github.com/users/jodosha/events{/privacy}","received_events_url":"https://api.github.com/users/jodosha/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":15,"state":"open","created_at":"2015-05-14T09:44:08Z","updated_at":"2015-05-22T12:23:26Z","due_on":"2015-05-21T22:00:00Z","closed_at":null},"comments":5,"created_at":"2015-05-18T10:00:16Z","updated_at":"2015-05-22T12:23:26Z","closed_at":"2015-05-22T12:23:26Z","body":"How to reproduce this:\r\n\r\n```shell\r\n% lotus new bookshelf && cd bookshelf && bundle\r\n% bundle exec lotus generate action Web dashboard#index\r\n\r\n      insert  apps/Web/config/routes.rb\r\n      create  spec/Web/controllers/dashboard/index_spec.rb\r\n      create  apps/Web/controllers/dashboard/index.rb\r\n      create  apps/Web/views/dashboard/index.rb\r\n      create  apps/Web/templates/dashboard/index.html.erb\r\n      create  spec/Web/views/dashboard/index_spec.rb\r\n```\r\n\r\nAnother case is true for controller and action names:\r\n\r\n```shell\r\n% bundle exec lotus generate action web AncientBooks#ToggleVisibility\r\n      insert  apps/web/config/routes.rb\r\n      create  spec/web/controllers/AncientBooks/ToggleVisibility_spec.rb\r\n      create  apps/web/controllers/AncientBooks/ToggleVisibility.rb\r\n      create  apps/web/views/AncientBooks/ToggleVisibility.rb\r\n      create  apps/web/templates/AncientBooks/ToggleVisibility.html.erb\r\n      create  spec/web/views/AncientBooks/ToggleVisibility_spec.rb\r\n```\r\n\r\nThis last case also generates wrong routes:\r\n\r\n```ruby\r\n# apps/web/config/routes.rb\r\nget '/AncientBooks', to: 'AncientBooks#ToggleVisibility'\r\n```"}}