public
Description: response for lets you decorate your actions respond_to blocks
Homepage: http://blog.ardes.com/response_for
Clone URL: git://github.com/ianwhite/response_for.git
Click here to lend your support to: response_for and make a donation at www.pledgie.com !
ianwhite (author)
Thu Jun 05 09:30:11 -0700 2008
commit  0aeceda2938d3c2b2639e43776fac300729ebebd
tree    e92de66b7d3a329155f552ae8c7f0bd605a7ccac
parent  1b882a723ac0cc7029c707ec3b8d3741e0bd61b8
response_for / CHANGELOG
100644 18 lines (13 sloc) 0.528 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
* response_for only kicks in once ActionController has got to the stage of
  performing an action.
  
    before_filter :bail_out
  
    def bail_out
      respond_to do |format|
        format.html { redirect_to :bail_out_place }
      end
    end
  
  The above code snippet bails out whatever the response_for, which I think is
  the least surprising behaviour.
  
  (This means that you can ignore the last changelog message for response_for,
  which has been deleted to avoid confusion)
  
* initial release of response_for