In the TurbineActionFilter, there is a try-catch surrounding the
FindAction method call with a note that it's a hack to Turbine to work
under Mono.
http://github.com/lozanotek/mvcturbine/blob/master/src/Engine/MvcTurbine.Web/Controllers/TurbineActionInvoker.cs#L66
What type of Mono error is it causing, and would it be possible for us
to try to catch that error? Or to allow specific and common errors to
go through?
The reason I'm asking is to perhaps save some confusion and time when
it comes to ambiguous action. Here's a situation I and a few
coworkers have gone through:
1.) We TDD-up a controller with two actions that have the same name.
The second takes in an input model.
2.) We create the view.
3.) We run the code, see our form, but the form doesn't work.
4.) We debug the controller, and find that it is *NEVER* called.
5.) We realize that we forgot to put the [HttpPost] attribute on the
second action. We put it on and everything works.
The ambiguous match error that MVC throws is eaten by Turbine, and
since there is a view with a matching name the system uses inferred
actions to present the view. We use the inferred action behavior
elsewhere, but it might be handy if we can expose this and perhaps
some other common errors to keep coders from getting confused.
I want to make this change for us, but without knowing the exact issue
with Mono I don't want to share the change to everybody. Javier, how
do you feel about this and do you remember what the Mono issue was?
Darren