How do you stop a Ruby method from executing?

Hey guys,

How do you stop Ruby code from executing? For example,

def newaction
puts “1”
puts “2”

I tried return in the following example, but it continues and than looks
for newaction.rhtml. How do I stop it completely dead in its tracks?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs