loic-sharma/scaffold — pull request #5 by asirco (2012-07-12 14:27:27+00:00)
Title: Cancel button and Input::old()

Hi sharma,

I would first of all like to thank you for the wonderful job you've done in creating Scaffold.

I've briefly used it to create some sample code and noticed one or two very minor issues.

The first was a cancel button on forms. I simply added links to the create and edit views that take the form page back out to the referrer page.

I then noticed that Input::old(); wasn't working when a form was submitted with invalid data. The solution was to simply add the Input::flash(); call on two lines within the controller file for both the edit and create post actions.

I hope you accept my pull request if you like my edits.

Again, thanks for the bundle. Super job!