Module Merb::Slices::ControllerMixin::MixinMethods::InstanceMethods
In: lib/merb-slices/controller_mixin.rb

Methods

slice   slice_url  

Public Instance methods

Reference this controller‘s slice module directly.

@return <Module> A slice module.

Generate a url - takes the slice‘s :path_prefix into account.

@param *args<Array[Symbol,Hash]>

  There are several possibilities regarding arguments:
  - when passing a Hash only, the :default route of the current
    slice will be used
  - when a single Symbol is passed, it's used as the route name,
    while the slice itself will be the current one
  - when two Symbols are passed, the first will be the slice name,
    the second will be the route name
  - a Hash with additional params can optionally be passed

@return <String> A uri based on the requested slice.

@example slice_url(:controller => ‘foo’, :action => ‘bar’) @example slice_url(:awesome, :format => ‘html’) @example slice_url(:forum, :posts, :format => ‘xml’)

[Validate]