Created
January 17, 2011 22:54
-
-
Save wfaler/783654 to your computer and use it in GitHub Desktop.
widgetcontroller.scala
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
case class Widget(id: Long, name: String, priceInPence: Int) | |
class WidgetController extends Controller with Renderable with FunctionNameConventionRoutes{ | |
def `GET /showAWidget` = { | |
val myWidget = Widget(1, "My Widget", 1000) | |
render(myWidget) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment