On Wed, Sep 2, 2009 at 10:04 AM, JakeS<[email protected]> wrote:
>
> That looks pretty simple, thanks!  Will I have to use routing to get
> this to apply to the root of the site, so it works with 
> http://mysite.com/about.html
> instead of http://mysite.com/plaintext/about.html?  And I guess I'll
> have to rename the .html files to be .vm?

Well, not "http://mysite.com/plaintext/about.html";  since
PlainTextController is an abstract class.  (I had a derived
MySiteController underneath in the example)

>>     [Layout("default"), Rescue("generalerror")]
>>     public class MySiteController : PlainTextController { }

I guess you could use routing.  How important is it that the about
file appear to be in the root?  In my actual site, the controller for
most static text is called SiteController, and I use the path of
/Site/About.rails.  (SiteController also contains things like Login()
& Logout())  It's not like many people are going to type that address
directly into the browser address bar.


-- 
Truth,
    James

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to