lib/seymour/renderable.rb in seymour-0.0.3 vs lib/seymour/renderable.rb in seymour-0.0.4
- old
+ new
@@ -20,10 +20,10 @@
env = Rack::MockRequest.env_for("/",
{ "REQUEST_URI" => "", "SERVER_NAME" => '' }.merge(env))
controller_class = "#{controller_name}_controller".classify.constantize
- # status, headers, response = controller_class.action(action_name.to_sym).call(env)
+
status, headers, response = controller_class.action(action_name.to_sym).call(env)
raise RenderError.new("#{controller_name}##{action_name}") unless status.to_i == 200
response.body
end
\ No newline at end of file