Sha256: edb5b501ec6f460e79ea56feca294c7123217c78450a165750ecf4b9af0c4273

Contents?: true

Size: 676 Bytes

Versions: 3

Compression:

Stored size: 676 Bytes

Contents

class PagesController < ApplicationController
  respond_to :html, :js, :only => :about

  def readme
    @readme = IO.read(File.expand_path("../../../../../README.md",__FILE__))
    respond_to do |format|
      format.html
      ajax_respond format, :pagination => "", :render => {:file => "pages/readme", :layout => "ajax"}
    end
  end

  def about
  end

  def welcome
    respond_to do |format|
      format.html
      ajax_respond format, :pagination => "", :render => { :layout => "ajax" }
    end
  end

  def warnings
    respond_to do |format|
      format.html
      ajax_respond format, :pagination => "disable", :render => { :layout => "ajax" }
    end
  end
end

Version data entries

3 entries across 2 versions & 1 rubygems

Version Path
ajax_pagination-0.5.1 spec/rails30_app/app/controllers/pages_controller.rb
ajax_pagination-0.5.1 spec/rails_app/app/controllers/pages_controller.rb
ajax_pagination-0.5.0 spec/rails_app/app/controllers/pages_controller.rb