In the past I have used Rack:Rewrite to send to another rails controller to 
render a proper 404 or you can write some simple custom rack middleware that 
does the rendering directly. 

-- 
Ylan Segal
[email protected]


On Monday, February 10, 2014 at 11:04 AM, Chris McCann wrote:

> One of my Rails apps sent me this exception notification:
> 
> A ActionView::MissingTemplate occurred in site#about:
> 
>   Missing template site/about.erb in view path app/views
> 
> -------------------------------
> Request:
> -------------------------------
> 
>   * URL       : http://myapp.example/site/about/register.php 
> (http://myapp.example.com/site/about/register.php)
>   * Parameters: {"format"=>"php", "action"=>"about", "id"=>"register", 
> "controller"=>"site"}
> 
> My google-fu is weak on this one -- what's a good way to prevent this type of 
> bogus request from throwing an exception application-wide?
> 
> Cheers,
> 
> Chris 
> 
> -- 
> -- 
> SD Ruby mailing list
> [email protected] (mailto:[email protected])
> http://groups.google.com/group/sdruby
> --- 
> You received this message because you are subscribed to the Google Groups "SD 
> Ruby" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> (mailto:[email protected]).
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
-- 
SD Ruby mailing list
[email protected]
http://groups.google.com/group/sdruby
--- 
You received this message because you are subscribed to the Google Groups "SD 
Ruby" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to