index.html 404 page not found

Asked by marc

I am facing a weird problem. Indeed I can't have the index.html to work. I have the Application controller in app.controllers and the index.html in app/views/Application/index.html.

The application controller is with just:
public static void index() {
        render();
}

and in the routes, I have:
GET / Application.index.

It is actually the default I get after I ran play run myApp.

If I add my own route, for example:
GET /subscribe.html UserController.subscribe

And I create this UserController with the method subscribe, it works. Is there a problem with the index in the 1.0-stable3 ?

Question information

Language:
English Edit question
Status:
Solved
For:
play framework Edit question
Assignee:
No assignee Edit question
Solved by:
marc
Solved:
Last query:
Last reply:
Revision history for this message
marc (marc-ttux) said :
#1

There is really something with this index. I just renamed index.html into home.html and change the method index by home and did the change into the routes to Application.home and it works.

Revision history for this message
Guillaume Bort (guillaume-bort) said :
#2

Hi marc.

I don't know any problem about that ...
Can you reproduce the problem with a fresh application ?

Revision history for this message
marc (marc-ttux) said :
#3

Can't reproduce it anymore.