begin rescue in rails controller code example
Example: rails begin rescue
begin
3 + '4'
rescue => e
puts e.class
puts e.message
puts e.trace
end
begin
3 + '4'
rescue => e
puts e.class
puts e.message
puts e.trace
end