Do not trust irb exit status
Notice this strange behavior with exit status and irb. The $? variable holds the exit status of the last command.
Notice this strange behavior with exit status and irb. The $? variable holds the exit status of the last command.
Update (2/20/09): Check out Useful unix tricks – part 3 and Useful unix tricks – part 4
It is possible to define routes in a ruby on rails plugin or gem. Normally, adding routes looks like this:
My current project has a CruiseControl.rb build dedicated to testing our database rollback scripts. Since this does not seem to be a common practice, I thoug...
Ruby method names can contain a question mark or an exclamation point, but it must be the last character. So foo? and foo! are fine, but foo?bar and foo!bar ...