summaryrefslogtreecommitdiff
path: root/app/controllers/controller_extension/flash.rb
AgeCommit message (Collapse)Author
2014-05-29html5: <br> instead of <br/>Azul
2014-05-26flash_for with_errors option displays error messagesAzul
2014-05-26Controller#flash_for instead of FlashResponderAzul
FlashResponder added a flash before responding. However at the point of responding objects have already been saved. So there is no way to test if they were changed. Now instead we can call flash_for resource before resource.save and it will add the flash messages only if the resource was actually changed.