Sha256: 92998ce8309d5dfeaa00896aa27d219b237c1c5ac2dff02190f10d34a6fbeb33
Contents?: true
Size: 396 Bytes
Versions: 2
Compression:
Stored size: 396 Bytes
Contents
class FlashController < ApplicationController def show # show.html.erb end def redirect flash[params[:type].to_sym] = params[:message] redirect_to action: 'show' end def ajax respond_to do |wants| wants.js { flash[params[:type].to_sym] = params[:message] flash[:skip_glow] = params[:skip_glow].present? head :ok } end end end
Version data entries
2 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
glow-0.0.12 | test/rails31/app/controllers/flash_controller.rb |
glow-0.0.12 | test/rails32/app/controllers/flash_controller.rb |