예제 #1
0
func (c Articles) Delete(id uint) revel.Result {
	article := models.FindOneArticle(id)
	article.Delete()
	return c.Redirect(routes.Articles.Index())
}
예제 #2
0
func (c Articles) Edit(id uint) revel.Result {
	article := models.FindOneArticle(id)
	return c.Render(article)
}