Sha256: 83e61f5911967e47d047b2d477f5d52b016cce15b2a51dc542cdbb44c7499225

Contents?: true

Size: 602 Bytes

Versions: 6

Compression:

Stored size: 602 Bytes

Contents

class Admin::FoosController < ApplicationController

  # Default behavior
  def index
    render :inline => 'Admin/Foos#index', :layout => 'application'
  end


  # Override controller
  def show
    js 'NotAdmin/Foos', :x => 99
    render :inline => 'Admin/Foos#show', :layout => 'application'
  end


  # Override action
  def new
    js '#otherAction', :x => 99
    render :inline => 'Admin/Foos#new', :layout => 'application'
  end


  # Override controller/action
  def edit
    js 'NotAdmin/Foos#otherAction', :x => 99
    render :inline => 'Admin/Foos#edit', :layout => 'application'
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
paloma-4.2.1 test_app/app/controllers/admin/foos_controller.rb
paloma-4.2.0 test_app/app/controllers/admin/foos_controller.rb
paloma-4.1.2 test_app/app/controllers/admin/foos_controller.rb
paloma-4.1.1 test_app/app/controllers/admin/foos_controller.rb
paloma-4.1.0 test_app/app/controllers/admin/foos_controller.rb
paloma-4.0.0 test_app/app/controllers/admin/foos_controller.rb