I’m starting out with FubuMVC and had a heck of a time resolving a strange error. Whenever I would try to navigate to the _fubu diagnostics area it would just give me a 404. It took me quite a while to find the problem because I’m still very new to FubuMVC and couldn’t figure out where in my configuration the error was originating from.
Turns out one of my controllers didn’t conform to the “One Model In One Model Out” rule. I had created a controller method that accepted a single int id parameter. FubuMVC didn’t like this and wanted a full model. I was hoping it would consider a single parameter as a model even if it wasn’t a full class. Once I converted my methods to the OMIOMO pattern everything started working again.
Post a Comment