Sha256: b9563eaca716573d5bf1031ee248447cfe155bc69c27f6cd01e82c6f60cb3a4c
Contents?: true
Size: 413 Bytes
Versions: 14
Compression:
Stored size: 413 Bytes
Contents
# coding: utf-8 class Admin::ArticlesController < Admin::BaseController def edit @article = Article.find(params[:id]) @article.build_page.save unless @article.page end def update @article = Article.find(params[:id]) @article.update_attributes(article_params) render "edit" end def destroy end private def article_params params.require(:article).permit! end end
Version data entries
14 entries across 14 versions & 1 rubygems