Skip to content

IDme/flash_render

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FlashRender

Allows you to use render :new, :alert => 'You messed up' just like you can use redirect_to thang, :notice => 'You made thang successfully'.

Works with :notice, :alert and :flash => {:message => 'Sup foo'} just like redirect_to. With rendering it sets flash.now instead of flash.

Inspired after googling for this feature, it was written entirely by the mysterious P.B.F. and packaged into a gem by me. See: http://bit.ly/flash_render

About

Adds flash support to ActionController::Base#render just like redirect_to

Resources

Stars

Watchers

Forks

Languages

  • Ruby 52.3%
  • HTML 28.2%
  • JavaScript 19.5%