Sha256: 01734d5b6d7b9848525ebbc4afcbe64334a66be651234b629c54353049396c1f
Contents?: true
Size: 552 Bytes
Versions: 5
Compression:
Stored size: 552 Bytes
Contents
class Admin::MetaDefinitionsController < Admin::AdminController def index @meta_definition = MetaDefinition.roots end def show end def new end def create end def edit end def update @meta_definition = MetaDefinition.find(params[:id]) if @meta_definition.update_attributes(params[:meta_definition]) flash[:notice] = "Succesfully Saved" else flash[:notice] = 'Not saved' end redirect_to admin_document_path(params[:document_id]) end private end
Version data entries
5 entries across 5 versions & 1 rubygems