Sha256: 0ec9d10f9b5dc72c50fbf8e919e8afc4dd1c411d9d71215a53b5208a97a3f268
Contents?: true
Size: 641 Bytes
Versions: 2
Compression:
Stored size: 641 Bytes
Contents
module Wicked::Controller::Concerns::Path extend ActiveSupport::Concern def next_wizard_path(options = {}) wizard_path(@next_step, options) end def previous_wizard_path(options = {}) wizard_path(@previous_step, options) end def controller params[:controller] end def action params[:action] end def wizard_path(goto_step = nil, options = {}) options = { :controller => controller, :action => 'show', :id => goto_step || params[:id], :only_path => true }.merge options url_for(options) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
wicked-0.1.4 | lib/wicked/controller/concerns/path.rb |
wicked-0.1.3 | lib/wicked/controller/concerns/path.rb |