Sha256: 184c05867d2a734c660f495c901d3fee4fa1f4a9cd03c0b6e87ac7d356b3788d

Contents?: true

Size: 382 Bytes

Versions: 1

Compression:

Stored size: 382 Bytes

Contents

class FlashController < ApplicationController
  def show
    # show.html.erb
  end

  def redirect
    flash[params[:type]] = params[:message]
    redirect_to action: 'show'
  end

  def ajax
    respond_to do |wants|
      wants.js {
        flash[params[:type]] = params[:message]
        flash[:skip_glow] = params[:skip_glow].present?
        head :ok
      }
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
glow-0.0.12 test/rails3/app/controllers/flash_controller.rb