Module Merb::Slices::Support
In: lib/merb-slices/controller_mixin.rb

Methods

slice_url  

Public Instance methods

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

@param slice_name<Symbol>

  The name of the slice - in identifier_sym format (underscored).

@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 Symbol is passed, it's used as the route name
  - a Hash with additional params can optionally be passed

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

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

[Validate]