Sha256: 010fc61e6f97b4b39428ed7e55e1c4b56e0e150d198d9ad9511cce1a14d07d93
Contents?: true
Size: 340 Bytes
Versions: 2
Compression:
Stored size: 340 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] head :ok } end end end
Version data entries
2 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
glow-0.0.11 | test/rails31/app/controllers/flash_controller.rb |
glow-0.0.11 | test/rails32/app/controllers/flash_controller.rb |