Sha256: 44d7609ef29c2e32a098221569aa917a4cf3054e82af23546bca75683b754d19

Contents?: true

Size: 326 Bytes

Versions: 1

Compression:

Stored size: 326 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]
        head :ok
      }
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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