Home

Castle Stronghold

Scaffolding

Scaffolding is a term imported from Ruby on Rails. It refers to the ability to create CRUD pages with no effort.

Scaffolding support on MonoRail

As every project under Castle umbrella does not obligate you to embrace it all, we decided to abstract the Scaffolding behind an interface: IScaffoldingSupport.

MonoRail is in charge of instantiate the implementation you provide if, and only if, it bump into a controller using one or more ScaffoldingAttribute:


[Scaffolding(typeof(Blog))]
public class BlogsController : Controller
{
    public BlogsController()
    {
    }
}

The scaffolding implementor should register actions as a dynamic action provider.

The default implementation of Scaffolding support relies on Castle ActiveRecord and is discussed on the Integrations documentation section.

Google
Search WWW Search castleproject.org