Method: Jets::Router.routes_help
- Defined in:
- lib/jets/router.rb
.routes_help ⇒ Object
104 105 106 107 108 109 110 111 112 113 |
# File 'lib/jets/router.rb', line 104 def self.routes_help return "Your routes table is empty." if routes.empty? table = Text::Table.new table.head = %w[Verb Path Controller#action] routes.each do |route| table.rows << [route.method, route.path, route.to] end table end |