Class: Merb::Controller

Class | Merb::Controller
In: | lib/merb-parts.rb
Parent: | Object

### Methods

part

### Public Instance methods

part(opts = {})

Dispatches a PartController.

#### Parameters

opts<Hash>: | A Hash of Options. (see below)

#### Options

An option hash has two parts.

1. keys that are Merb::PartControllers with values that are action names (as symbols)
2. key value pairs that will become available in the PartController as params merged with the web controllers params

#### Example

     Calling a part controller
     {{{
       part TodoPart => :list
      }}}

     Calling a part with additional options
     {{{
       part TodoPart => :list, :limit => 20, :user => current_user
     }}}

#### Returns

      Returns the result of the PartControllers action, which is a string.

[Validate]