Sha256: 78920714a1932a8b76a189490b64be7b4bb1323c914712debb5954dc9b011cdc

Contents?: true

Size: 721 Bytes

Versions: 77

Compression:

Stored size: 721 Bytes

Contents

class Admin::MenusController < Admin::BaseController
  respond_to :html, :js
  
  def index
    @skip_filter = true
    @menus = Menu.order(:uid)
    
    if Fullstack::Cms.localized?
      @menus = @menus.where(:locale => params[:locale]) 
      @locale = params[:locale]
    end
    
  end

  def new
    @menu = Menu.new  
  end
  
  def edit
  end
  
  def create
      @menu = Menu.new(params[:menu])
      
      if @menu.respond_to?(:author)
        @menu.author ||= current_user
      end
      
      @menu.save
      respond_with(@menu)
  end

  def update
    @menu.attributes = params[:menu]
    @menu.save
    respond_with(@menu)
  end

  def destroy
    @menu.destroy
    respond_with(@menu)
  end
  
end


Version data entries

77 entries across 77 versions & 1 rubygems

Version Path
fullstack-cms-0.4.6 app/controllers/admin/menus_controller.rb
fullstack-cms-0.4.5 app/controllers/admin/menus_controller.rb
fullstack-cms-0.4.4 app/controllers/admin/menus_controller.rb
fullstack-cms-0.3.8.fix app/controllers/admin/menus_controller.rb
fullstack-cms-0.2.32.fix app/controllers/admin/menus_controller.rb
fullstack-cms-0.4.3 app/controllers/admin/menus_controller.rb
fullstack-cms-0.4.2 app/controllers/admin/menus_controller.rb
fullstack-cms-0.4.1 app/controllers/admin/menus_controller.rb
fullstack-cms-0.3.39 app/controllers/admin/menus_controller.rb
fullstack-cms-0.3.38 app/controllers/admin/menus_controller.rb
fullstack-cms-0.3.37 app/controllers/admin/menus_controller.rb
fullstack-cms-0.3.36 app/controllers/admin/menus_controller.rb
fullstack-cms-0.3.35 app/controllers/admin/menus_controller.rb
fullstack-cms-0.3.34 app/controllers/admin/menus_controller.rb
fullstack-cms-0.3.33 app/controllers/admin/menus_controller.rb
fullstack-cms-0.3.32 app/controllers/admin/menus_controller.rb
fullstack-cms-0.3.31 app/controllers/admin/menus_controller.rb
fullstack-cms-0.3.30 app/controllers/admin/menus_controller.rb
fullstack-cms-0.3.29 app/controllers/admin/menus_controller.rb
fullstack-cms-0.3.28 app/controllers/admin/menus_controller.rb