TSM - Introduction to Grails (II)

Tavi Bolog - Development Lead at Nokia

Let’s now create our login page for the application. As I mentioned in the beginning, Grails uses conventions a lot. This means that if you have a domain class called “User”, you need to have a “UserController” controller. If you have an action defined in a controller, like “login”, you need to have a view called “login” view under grails-app/views/user. To create views, Grails offer a script: generate-views com.todaysoftmag.gsn.User, but for the time being we can just create them by hand.