From de24f5b788c1ae6307eb360877ea3ce61c8f7a6a Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Thu, 5 Feb 2015 20:37:05 +0100 Subject: Implement flash messages --- app/controllers/Application.scala | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'app/controllers') diff --git a/app/controllers/Application.scala b/app/controllers/Application.scala index 3380e38..12375df 100644 --- a/app/controllers/Application.scala +++ b/app/controllers/Application.scala @@ -7,15 +7,16 @@ import play.api.mvc._ object Application extends Controller { def index = Action { - Ok(views.html.pages.index("Your new application is ready.")) + Redirect("/ebe").flashing("warning" -> "hey") + //Ok(views.html.pages.index("Your new application is ready.")) } - def ebe = Action { + def ebe = Action { implicit request => Ok(views.html.pages.ebeHomepage()) } - def pepal = Action { + def pepal = Action { implicit request => Ok(views.html.pages.pepalHomepage()) } -} \ No newline at end of file +} -- cgit v1.2.3