Deal with empty Monorail action automatically
After reading the first section of http://ayende.com/Blog/archive/2009/07/30/reviewing-nerddinner.aspx, I think it would be a really good idea to not have to declare empty actions in controllers and let the framework automatically deal with it. What do you think?
To be released as part of 2.1
3 comments
-
gauthier
commented
I think this should be done someway as an action not found handling system,
one that would allow to easily inject the context.renderview or some other logic
-
James M Curran commented
I created a "PlainTextController" which is simply a [DefaultAction], which just displays the view. Hence I could create a "public TextController : PlainTextController {}", And then I could just stuff all my straight HTML pages into \views\text\*.vm, and have them displayed with the site's layout. (One day I'll get around to putting PlainTextController into CastleContrib)
-
AdminJohn Simons
(Admin, Castle Project)
commented
I wonder if this should be configurable?
And if it is configurable, should it be on by default?