Created
April 27, 2010 21:49
-
-
Save ordinz/381390 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ReportTypesController < ApplicationController | |
make_resourceful{ | |
actions(:all) | |
before(:create){ raise "Yes, this is the ReportTypesController" } | |
response_for(:create){ redirect_to(object_url(current_object)) } | |
} | |
...more | |
end | |
class ReportsController < ApplicationController | |
make_resourceful { | |
actions(:all) | |
before(:create){ raise "WTF, this is the ReportsController" } | |
} | |
...more | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Started POST "/report_types" for 0.0.0.0 at 2010-04-27 17:43:40 | |
Processing by ReportTypesController#create as HTML | |
Parameters: {"commit"=>"Create Report type", "report_type"=>{"name"=>"Nate3", "table"=>"blah blah"}} | |
RuntimeError (WTF, this is the ReportsController): | |
app/controllers/reports_controller.rb:9 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment