Module: ResourcefulController::UrlDefinitions
- Included in:
- ResourcefulController
- Defined in:
- lib/resourceful_controller/url_definitions.rb
Instance Method Summary collapse
Instance Method Details
#index_path ⇒ Object
7 8 9 |
# File 'lib/resourceful_controller/url_definitions.rb', line 7 def index_path namespace.push(resources_name) end |
#namespace ⇒ Object
3 4 5 |
# File 'lib/resourceful_controller/url_definitions.rb', line 3 def namespace controller_path.split("/")[0..-2] end |
#show_path ⇒ Object
11 12 13 |
# File 'lib/resourceful_controller/url_definitions.rb', line 11 def show_path namespace.push(instance_variable_get(:"@#{resource_name}")) end |