lib/thomler.rb in thomler-0.1.2 vs lib/thomler.rb in thomler-0.1.3
- old
+ new
@@ -6,10 +6,10 @@
class Application
def call env
klass, act = get_controller_and_action(env)
controller = klass.new(env)
text = controller.send(act)
- [200, {'Content-Type' => 'text/html'}, ["Hello from Ruby on Thomler!"]]
+ [200, {'Content-Type' => 'text/html'}, [text]]
end
end
class Controller
def initialize env