Class: Cuprum::Rails::Routing::SingularRoutes

Inherits:
Cuprum::Rails::Routes show all
Defined in:
lib/cuprum/rails/routing/singular_routes.rb

Overview

Routes object with predefined routes for a singular RESTful resource.

The following route helpers are defined:

  • #create_path => ‘/’ or ‘/path/to/resource/’

  • #destroy_path => ‘/’ or ‘/path/to/resource/’

  • #edit_path => ‘/edit’ or ‘/path/to/resource/edit’

  • #new_path => ‘/new’ or ‘/path/to/resource/new’

  • #show_path => ‘/’ or ‘/path/to/resource/’

  • #update_path => ‘/’ or ‘/path/to/resource/’

Instance Attribute Summary

Attributes inherited from Cuprum::Rails::Routes

#base_path, #wildcards

Method Summary

Methods inherited from Cuprum::Rails::Routes

#initialize, #parent_path, #root_path, route, #with_wildcards

Constructor Details

This class inherits a constructor from Cuprum::Rails::Routes