Sha256: 6021c92f94507a783800def2c2f01dc925facb6dddbdd4851f51a27da4d03122
Contents?: true
Size: 843 Bytes
Versions: 6
Compression:
Stored size: 843 Bytes
Contents
module Admin class SiteMetaTagsController < BaseController def index @meta_tags = SiteMetaTags.order(:created_at) end def new @meta_tags = SiteMetaTags.new end def create @meta_tags = SiteMetaTags.new(params[:site_meta_tags].permit!) if @meta_tags.save redirect_to admin_meta_tags_path else render :new end end def edit @meta_tags = SiteMetaTags.find(params[:id]) end def update @meta_tags = SiteMetaTags.find(params[:id]) if @meta_tags.update_attributes(params[:site_meta_tags].permit!) redirect_to admin_meta_tags_path else render :edit end end def destroy @meta_tags = SiteMetaTags.find(params[:id]) @meta_tags.destroy redirect_to admin_meta_tags_path end end end
Version data entries
6 entries across 6 versions & 1 rubygems