Module: ViewMapper::RouteAction::Base
- Defined in:
- lib/view_mapper/route_action.rb
Instance Method Summary collapse
Instance Method Details
#route_code(route_options) ⇒ Object
5 6 7 |
# File 'lib/view_mapper/route_action.rb', line 5 def route_code() "map.#{route_options[:name]} '#{route_options[:path]}', :controller => '#{route_options[:controller]}', :action => '#{route_options[:action]}'" end |
#route_file ⇒ Object
8 9 10 |
# File 'lib/view_mapper/route_action.rb', line 8 def route_file 'config/routes.rb' end |