Sha256: 2df406a8869a69f517374aecce0946155ee61ea80be810197607e69d51d3356f
Contents?: true
Size: 617 Bytes
Versions: 2
Compression:
Stored size: 617 Bytes
Contents
require_dependency "seo_unpakt/application_controller" module SeoUnpakt module Admin class SeoKeywordsController < ApplicationController before_filter :check_admin def index @seo_keywords = SeoKeyword.order("word") end def create seo_keyword = SeoKeyword.new params[:seo_keyword] seo_keyword.save @seo_keywords = SeoKeyword.order("word") end def destroy seo_keyword = SeoKeyword.find params[:id] seo_keyword.destroy @seo_keywords = SeoKeyword.order("word") render action: :create end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
seo_unpakt-1.0.3 | app/controllers/seo_unpakt/admin/seo_keywords_controller.rb |
seo_unpakt-1.0.2 | app/controllers/seo_unpakt/admin/seo_keywords_controller.rb |