Is there an equivalent in Rails to PHP's die()
?
I have a case where it would make my controller code a little cleaner to set it up in a way that would sometimes call render twice, unless there is a die() that is.
Is there an equivalent in Rails to PHP's die()
?
I have a case where it would make my controller code a little cleaner to set it up in a way that would sometimes call render twice, unless there is a die() that is.
abort("Message goes here")
A direct mapping of PHP's die()
in Ruby would be Kernel::exit()