Skip to content

Instantly share code, notes, and snippets.

@ordinz
Created April 27, 2010 21:49
Show Gist options
  • Save ordinz/381390 to your computer and use it in GitHub Desktop.
Save ordinz/381390 to your computer and use it in GitHub Desktop.
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
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