1 <?xml version=
"1.0" encoding=
"utf-8" ?>
6 <section name=
"monoRail"
7 type=
"Castle.MonoRail.Framework.Configuration.MonoRailSectionHandler, Castle.MonoRail.Framework" />
8 #if($useWindsorIntegration)
10 type=
"Castle.Windsor.Configuration.AppDomain.CastleSectionHandler, Castle.Windsor" />
14 #if($useWindsorIntegration)
15 <monoRail useWindsorIntegration=
"true">
19 <assembly>${name}
</assembly>
23 viewPathRoot=
"$viewpath"
24 customEngine=
"$viewenginetypename" />
25 <!-- These are a few routing rules samples
26 (dont forget to enable the http module below)
29 <pattern>(/blog/posts/)(\d+)/(\d+)/(.)*$</pattern>
30 <replace><![CDATA[ /blog/view.rails?year=$2&month=$3 ]]></replace>
33 <pattern>(/news/)(\d+)/(\d+)/(.)*$</pattern>
34 <replace><![CDATA[ /news/view.rails?year=$2&month=$3 ]]></replace>
39 #if($useWindsorIntegration)
43 <!-- Facilities declarations goes here -->
45 <!-- For example, to use the active record integration: -->
48 <facility id="arintegration" type="Castle.Facilities.ActiveRecordIntegration.ActiveRecordFacility, Castle.Facilities.ActiveRecordIntegration">
55 <add key="hibernate.connection.driver_class" value="NHibernate.Driver.SqlClientDriver" />
56 <add key="hibernate.dialect" value="NHibernate.Dialect.MsSql2000Dialect" />
57 <add key="hibernate.connection.provider" value="NHibernate.Connection.DriverConnectionProvider" />
58 <add key="hibernate.connection.connection_string" value="Data Source=.;Initial Catalog=yourdb;Integrated Security=SSPI" />
68 <!-- Components declarations/configuration goes here -->
78 The .rails extension is just a suggestion, you can use
79 whatever extension you want and for shared hosting, you can use .ashx
81 <add verb=
"*" path=
"*.rails"
82 type=
"Castle.MonoRail.Framework.MonoRailHttpHandlerFactory, Castle.MonoRail.Framework" />
86 <!-- If'd like to enable Routing...
87 <add name="routing" type="Castle.MonoRail.Framework.RoutingModule, Castle.MonoRail.Framework" />
89 <add name=
"monorail" type=
"Castle.MonoRail.Framework.EngineContextModule,Castle.MonoRail.Framework" />