-
Notifications
You must be signed in to change notification settings - Fork 0
Merb plugin that provides composition of controllers.
License
genki/merb_component
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
merb_component ============= Merb plugin that provides composition of controllers. Example of use: In config/router.rb: resources :posts do |post| post.aggregates :comments end resource :admin, :controller => :admin do |admin| admin.aggregates :comments end In controllers: class Posts < Application aggregates :comments class Admin < Application aggregates :show => :comments In views: Content of the user (id is 2) goes here <%= component :users, :show, :id => 2 %> For detail, you can see spec/fixture as an example. Enjoy! Genki Takiuchi
About
Merb plugin that provides composition of controllers.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published