Module: Perro

Defined in:
lib/perro.rb,
lib/perro/route.rb

Defined Under Namespace

Classes: Route, Server, StringHandler

Constant Summary collapse

VERSION =
'0.9.2'

Instance Method Summary collapse

Instance Method Details

#use_rails_helpersObject



9
10
11
12
13
14
15
16
17
# File 'lib/perro.rb', line 9

def use_rails_helpers
  begin
    require 'action_controller'
    ActionView::Base.helper_modules.each {|m| include m }
  rescue
    puts "It appears that you don't have action_controller."
    puts "`sudo gem install rails` might help you with that."
  end
end