Class: Cuprum::Rails::Routing::PluralRoutes

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

Overview

Routes object with predefined routes for a RESTful resource.

The following route helpers are defined:

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

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

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

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

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

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

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

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