5 <div class="container">
\r
8 We are on the early stages of Scaffold support. Currently we only support
\r
9 Scaffold for ActiveRecord:
\r
13 [Scaffolding( typeof(Customer) )]
\r
14 public sealed class CustomersController : Controller
\r
20 Assuming that Customer is an ActiveRecord class, the following actions and
\r
21 view contents are dynamically genenrated:
\r
25 <li>newCustomer</li>
\r
26 <li>createCustomer</li>
\r
27 <li>editCustomer</li>
\r
28 <li>updateCustomer</li>
\r
29 <li>listCustomer</li>
\r
30 <li>confirmCustomer</li>
\r
31 <li>removeCustomer</li>
\r
35 The view that Scaffold generates are not meant to be completed. In fact, it
\r
36 is supposed to be just something functional that you can replace later. The idea
\r
37 is to make a site functional in no time, but then replace the views by properly
\r
42 In order to make it work, though, you need to add the following assemblies to your web project:
\r
46 <li>Castle.MonoRail.ActiveRecordScaffold</li>
\r
47 <li>Castle.ActiveRecord.dll</li>
\r
48 <li>Castle.Model.dll</li>
\r
52 And the NHibernate assemblies:
\r
56 <li>NHibernate.dll</li>
\r
57 <li>Castle.DynamicProxy.dll</li>
\r
58 <li>Iesi.Collections.dll</li>
\r
59 <li>HashCodeProvider.dll</li>
\r
60 <li>log4net.dll</li>
\r
64 Inheritance and nested classes are gracefully handled: <br> <br>
\r
65 <img src="$siteRoot/images/sc-new.jpg" />
\r
69 Proper error messages: <br> <br>
\r
70 <img src="$siteRoot/images/sc-new-errors.jpg" />
\r
74 Listing (pagination on the our plans): <br> <br>
\r
75 <img src="$siteRoot/images/sc-list.jpg" />
\r
79 Before removing: <br> <br>
\r
80 <img src="$siteRoot/images/sc-confirmation.jpg" />
\r
84 After removing: <br> <br>
\r
85 <img src="$siteRoot/images/sc-removed.jpg" />
\r