Module: Wicked::Controller::Concerns::Path
- Extended by:
- ActiveSupport::Concern
- Included in:
- Wizard
- Defined in:
- lib/wicked/controller/concerns/path.rb
Instance Method Summary collapse
- #next_wizard_path(options = {}) ⇒ Object
- #previous_wizard_path(options = {}) ⇒ Object
- #wicked_action ⇒ Object
- #wicked_controller ⇒ Object
- #wizard_path(goto_step = nil, options = {}) ⇒ Object
Instance Method Details
#next_wizard_path(options = {}) ⇒ Object
5 6 7 |
# File 'lib/wicked/controller/concerns/path.rb', line 5 def next_wizard_path( = {}) wizard_path(@next_step, ) end |
#previous_wizard_path(options = {}) ⇒ Object
9 10 11 |
# File 'lib/wicked/controller/concerns/path.rb', line 9 def previous_wizard_path( = {}) wizard_path(@previous_step, ) end |
#wicked_action ⇒ Object
17 18 19 |
# File 'lib/wicked/controller/concerns/path.rb', line 17 def wicked_action params[:action] end |
#wicked_controller ⇒ Object
13 14 15 |
# File 'lib/wicked/controller/concerns/path.rb', line 13 def wicked_controller params[:controller] end |
#wizard_path(goto_step = nil, options = {}) ⇒ Object
22 23 24 25 26 27 28 29 30 |
# File 'lib/wicked/controller/concerns/path.rb', line 22 def wizard_path(goto_step = nil, = {}) = .respond_to?(:to_h) ? .to_h : = { :controller => wicked_controller, :action => 'show', :id => goto_step || params[:id], :only_path => true }.merge url_for() end |