weakwire
weakwire

Reputation: 9300

Play 2.1-RC1 reverse routing not compiling

Updated to play 2.1-RC1 and seem to have problems with reverse routing In

routes.ControlPanel.CPanel.index

Compile error: value ControlPanel is not a member of object controllers.ControlPanel.routes

Also importing produces a warning

import controllers.routes

imported `routes' is permanently hidden by definition of object routes in package ControlPanel

Everything works fine with 2.0.4 . My controller stucture is like so:

 -- app  
    -- controllers
        -- ControlPanel
            --CPanel.scala

Can't find anything at Migration Guide

Upvotes: 4

Views: 2179

Answers (1)

weakwire
weakwire

Reputation: 9300

ControlPanel.routes.CPanel.index 

solves it

Upvotes: 4

Related Questions