Ejemplo n.º 1
0
// HandleCreateShow handles GET users/create
func HandleCreateShow(context router.Context) error {

	// No auth as anyone can create users in this app

	// Setup
	view := view.New(context)
	user := users.New()
	view.AddKey("user", user)

	// Serve
	return view.Render()
}
Ejemplo n.º 2
0
// HandleCreateShow handles GET users/create
func HandleCreateShow(context router.Context) error {

	// No auth as anyone can create users in this app

	// Setup
	view := view.New(context)
	user := users.New()
	view.AddKey("user", user)
	view.AddKey("authenticity_token", authorise.CreateAuthenticityToken(context))

	// Serve
	return view.Render()
}