Project

General

Profile

Why do ApplicationController's render_404 and render_403 etc return false?

Added by Harry Garrood over 11 years ago

I ask because it would be nice to be able to do

render_404 and return
(and I think Rails' render returns a truthy value for this reason).

Of course, using or instead of and would allow me to do what I want (ie, rendering and returning on the same line) but that would look a bit misleading, since I'm doing both.