Sha256: 47c4f8a4a67b23d389ae6f97f526dcd55727203866241d0dea396133a6bef07e

Contents?: true

Size: 688 Bytes

Versions: 2

Compression:

Stored size: 688 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, :section_id => "global", :render => {:file => "pages/readme", :layout => "ajax"}
    end
  end

  def about
  end

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

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ajax_pagination-0.6.1 spec/rails_app/app/controllers/pages_controller.rb
ajax_pagination-0.6.0 spec/rails_app/app/controllers/pages_controller.rb