I suggest you ...

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?

23 votes
Vote 0 votes Vote Vote
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service

    You'll receive a confirmation email with a link to create a password (optional).

    Signed in as (Sign out)
    You have left! (?) (thinking…)
    John SimonsAdminJohn Simons (Admin, Castle Project) shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    3 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service

      You'll receive a confirmation email with a link to create a password (optional).

      Signed in as (Sign out)
      Submitting...
      • gauthiergauthier commented  ·   ·  Flag as inappropriate

        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 CurranJames M Curran commented  ·   ·  Flag as inappropriate

        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)

      Knowledge Base and Helpdesk