Sha256: d891d10bd3ee27987f998c3a3e0f8a1d8dae384d9ac8bea181e0240ec2c2fc7f
Contents?: true
Size: 456 Bytes
Versions: 1
Compression:
Stored size: 456 Bytes
Contents
class Admin::Kitsune::PagesController < ApplicationController layout 'admin/kitsune' before_filter :load_page def index @pages = ::Page.all end def new @page = ::Page.new end def create @page = ::Page.new(params[:page]) if @page.save redirect_to admin_kitsune_pages_path else render 'new' end end private def load_page @page = Page.find_by_url(params[:id]) if params[:id] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kitsune-0.0.2 | app/controllers/admin/kitsune/pages_controller.rb |