Sha256: d57951b7318fe7c454a66e9a3ed9030003e7de07f826b55e22e9ceb3ae24d70f
Contents?: true
Size: 643 Bytes
Versions: 9
Compression:
Stored size: 643 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 wicked_controller params[:controller] end def wicked_action params[:action] end def wizard_path(goto_step = nil, options = {}) options = { :controller => wicked_controller, :action => 'show', :id => goto_step || params[:id], :only_path => true }.merge options url_for(options) end end
Version data entries
9 entries across 9 versions & 1 rubygems