Skip to content

Instantly share code, notes, and snippets.

@maiha
Created May 5, 2010 06:02
Show Gist options
  • Save maiha/390433 to your computer and use it in GitHub Desktop.
Save maiha/390433 to your computer and use it in GitHub Desktop.
object Hello extends Controller {
def index {
val user_count = User.count
render(user_count)
}
}
<p>
現在の登録ユーザ数: ${ user_count }
</p>
@maiha
Copy link
Author

maiha commented May 5, 2010

render("user_count" -> User.count)

的な方法が知りたい。変数名をリゾルブしてるのは逆に凄いけど。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment