My favorites | Sign in
Project Logo
             
Search
for
Updated Aug 20, 2008 by dabrowski.daniel
Labels: Phase-Deploy
Configuration  
How to install and configure

Installing

To use RubyViewEngine you don't need to have Ruby installed. Copy these libraries into your bin folder in MonoRail web site:

Configuring in web.config

Add engine definition in web.config in monorail section

<viewEngines>
	<add type="Castle.MonoRail.Views.RubyView.RubyViewEngine, Castle.MonoRail.Views.RubyView"/>
</viewEngines>

File extension for views is .erb. Its a good idea to add such handler in config.

<add verb="*" path="*.erb" type="System.Web.HttpForbiddenHandler"/>

Sign in to add a comment
Hosted by Google Code