foodsoft/app/controllers/article_categories_controll...

22 lines
474 B
Ruby

class ArticleCategoriesController < ApplicationController
inherit_resources # Build default REST Actions via plugin
before_filter :authenticate_article_meta
def create
create!(:notice => "Die Kategorie wurde gespeichert") { article_categories_path }
end
def update
update!(:notice => "Die Kategorie wurde aktualisiert") { article_categories_path }
end
protected
def collection
@article_categories = ArticleCategory.order('name')
end
end