module Racket::Helpers::Routing
Helper module that handles routing
Public Instance Methods
route(controller, action = nil, *params)
click to toggle source
Returns a route to an action within another controller.
@param [Class] controller @param [Symbol] action @param [Array] params @return [String]
# File lib/racket/helpers/routing.rb, line 30 def route(controller, action = nil, *params) controller.get_route(action, params) end
Also aliased as: r
route_self(action = nil, *params)
click to toggle source
Returns a route to an action within the current controller.
@param [Symbol] action @param [Array] params @return [String]
# File lib/racket/helpers/routing.rb, line 41 def route_self(action = nil, *params) self.class.get_route(action, params) end
Also aliased as: rs