I am trying out tutorials from this youtube link by Mike Kelly.
I completed all installations successfully. Now trying out dynamic scaffolding, but its list is not working.
This is how the show
page looks like when I added a new EndUser
:
Now when I try to see list of EndUser
s, (see the pointing link at bottom-left corner of above image), the link actually points to index
page. And when I click on it, it opens up index page with NO rows listed in table (see below image).
I also tried to access list by using url: http://localhost:9000/ProjectTracker/endUser/list
, but then it resulted into 404 error:
When I saw the database console, i found the data got inserted in it:
(All files (controllers, domain files, etc.) are same as mentioned in the video tutorials)
This is for grails version 2.4.4 :
As suggested by @DavidChavez we can write those index
and list
methods as given. Or simply relying on dynamic scaffolding, we can just ignore writing / remove index
and list
methods. The dynamic scaffolding will take care of calling index
by default, which internally calls list
method.