Rails

Redirect To 404 Page Not Found In Rails

Posted by Weston Ganger on September 11, 2015

Sometimes you may want to trigger a 404 Page Not Found upon some error in your code in Rails. This will interrupt the execution of your code.


raise ActionController::RoutingError.new('Not Found')


Related External Links:


Posted in Rails and Tagged with rails 


Need help on your next project or application?

I specialize in Ruby-on-Rails, AngularJS, Javascript, Bootstrap, and Hybrid Mobile Apps with Cordova & Ionic.

Contact Me

Recommended Posts