{"action":"created","issue":{"url":"https://api.github.com/repos/grails/grails-core/issues/4812","repository_url":"https://api.github.com/repos/grails/grails-core","labels_url":"https://api.github.com/repos/grails/grails-core/issues/4812/labels{/name}","comments_url":"https://api.github.com/repos/grails/grails-core/issues/4812/comments","events_url":"https://api.github.com/repos/grails/grails-core/issues/4812/events","html_url":"https://github.com/grails/grails-core/issues/4812","id":81504304,"number":4812,"title":"GRAILS-58: Controller requires index action to let list action work","user":{"login":"graemerocher","id":66626,"avatar_url":"https://avatars.githubusercontent.com/u/66626?v=3","gravatar_id":"","url":"https://api.github.com/users/graemerocher","html_url":"https://github.com/graemerocher","followers_url":"https://api.github.com/users/graemerocher/followers","following_url":"https://api.github.com/users/graemerocher/following{/other_user}","gists_url":"https://api.github.com/users/graemerocher/gists{/gist_id}","starred_url":"https://api.github.com/users/graemerocher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graemerocher/subscriptions","organizations_url":"https://api.github.com/users/graemerocher/orgs","repos_url":"https://api.github.com/users/graemerocher/repos","events_url":"https://api.github.com/users/graemerocher/events{/privacy}","received_events_url":"https://api.github.com/users/graemerocher/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/grails/grails-core/labels/Bug","name":"Bug","color":"f7c6c7"},{"url":"https://api.github.com/repos/grails/grails-core/labels/Critical","name":"Critical","color":"eb6420"},{"url":"https://api.github.com/repos/grails/grails-core/labels/Fixed","name":"Fixed","color":"bfdadc"}],"state":"closed","locked":false,"assignee":{"login":"graemerocher","id":66626,"avatar_url":"https://avatars.githubusercontent.com/u/66626?v=3","gravatar_id":"","url":"https://api.github.com/users/graemerocher","html_url":"https://github.com/graemerocher","followers_url":"https://api.github.com/users/graemerocher/followers","following_url":"https://api.github.com/users/graemerocher/following{/other_user}","gists_url":"https://api.github.com/users/graemerocher/gists{/gist_id}","starred_url":"https://api.github.com/users/graemerocher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graemerocher/subscriptions","organizations_url":"https://api.github.com/users/graemerocher/orgs","repos_url":"https://api.github.com/users/graemerocher/repos","events_url":"https://api.github.com/users/graemerocher/events{/privacy}","received_events_url":"https://api.github.com/users/graemerocher/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/grails/grails-core/milestones/39","html_url":"https://github.com/grails/grails-core/milestones/grails-0.1","labels_url":"https://api.github.com/repos/grails/grails-core/milestones/39/labels","id":1135826,"number":39,"title":"grails-0.1","description":"","creator":{"login":"graemerocher","id":66626,"avatar_url":"https://avatars.githubusercontent.com/u/66626?v=3","gravatar_id":"","url":"https://api.github.com/users/graemerocher","html_url":"https://github.com/graemerocher","followers_url":"https://api.github.com/users/graemerocher/followers","following_url":"https://api.github.com/users/graemerocher/following{/other_user}","gists_url":"https://api.github.com/users/graemerocher/gists{/gist_id}","starred_url":"https://api.github.com/users/graemerocher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graemerocher/subscriptions","organizations_url":"https://api.github.com/users/graemerocher/orgs","repos_url":"https://api.github.com/users/graemerocher/repos","events_url":"https://api.github.com/users/graemerocher/events{/privacy}","received_events_url":"https://api.github.com/users/graemerocher/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":47,"state":"closed","created_at":"2015-05-27T11:37:58Z","updated_at":"2015-05-27T18:40:10Z","due_on":"2015-05-27T11:37:58Z","closed_at":"2015-05-27T11:37:58Z"},"comments":2,"created_at":"2006-03-09T16:12:23Z","updated_at":"2016-03-05T16:20:36Z","closed_at":"2015-05-27T15:46:33Z","body":"\nOriginal Reporter: devijvers\nEnvironment: Not Specified\nVersion: 0.1\nMigrated From: http://jira.grails.org/browse/GRAILS-58\n\nThis doesn't work:\n\nclass AjaxExpenseController {\n\n   @Property list = {\n\t\t[ groups: ExpenseGroup.findAll() ]\n   }\n}\n\nIt gives a 404 when going to <app>/ajaxExpense. It says:\n\nHTTP ERROR: 404\n\nNot Found\n\nRequestURI=/myexpenses/ajaxExpense/\n\nPowered by Jetty://\n\n<app>/ajaxExpense/list works\n\nTo make it work the class has to be changed like this:\n\nclass AjaxExpenseController {\n\n   @Property index = {\n\t\tredirect(action:list)\n   }\n\n   @Property list = {\n\t\t[ groups: ExpenseGroup.findAll() ]\n   }\n}\n\n\nThis goes against the doc that says that if there's a single action it becomes the default.\n\n"},"comment":{"url":"https://api.github.com/repos/grails/grails-core/issues/comments/192680796","html_url":"https://github.com/grails/grails-core/issues/4812#issuecomment-192680796","issue_url":"https://api.github.com/repos/grails/grails-core/issues/4812","id":192680796,"user":{"login":"linuxjackto1","id":17661969,"avatar_url":"https://avatars.githubusercontent.com/u/17661969?v=3","gravatar_id":"","url":"https://api.github.com/users/linuxjackto1","html_url":"https://github.com/linuxjackto1","followers_url":"https://api.github.com/users/linuxjackto1/followers","following_url":"https://api.github.com/users/linuxjackto1/following{/other_user}","gists_url":"https://api.github.com/users/linuxjackto1/gists{/gist_id}","starred_url":"https://api.github.com/users/linuxjackto1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linuxjackto1/subscriptions","organizations_url":"https://api.github.com/users/linuxjackto1/orgs","repos_url":"https://api.github.com/users/linuxjackto1/repos","events_url":"https://api.github.com/users/linuxjackto1/events{/privacy}","received_events_url":"https://api.github.com/users/linuxjackto1/received_events","type":"User","site_admin":false},"created_at":"2016-03-05T16:20:36Z","updated_at":"2016-03-05T16:20:36Z","body":"thanks www.movied.org"}}