Skip to content

Instantly share code, notes, and snippets.

I may be slow to respond.

MICE Portal stereosupersonic

I may be slow to respond.
Block or report user

Report or block stereosupersonic

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
ryansobol / gist:5252653
Last active Nov 1, 2019
15 Questions to Ask During a Ruby Interview
View gist:5252653

Originally published in June 2008

When hiring Ruby on Rails programmers, knowing the right questions to ask during an interview was a real challenge for me at first. In 30 minutes or less, it's difficult to get a solid read on a candidate's skill set without looking at code they've previously written. And in the corporate/enterprise world, I often don't have access to their previous work.

To ensure we hired competent ruby developers at my last job, I created a list of 15 ruby questions -- a ruby measuring stick if you will -- to select the cream of the crop that walked through our doors.

What to expect

Candidates will typically give you a range of responses based on their experience and personality. So it's up to you to decide the correctness of their answer.





mpapis /
Created Mar 30, 2012 — forked from solnic/
One step to get up'n'running with Rails on OS X or Linux

Use this command and follow the instructions:

curl -L | bash -s stable --rails

Other options include(any gems imply --ruby):


Optionally on OSX install homebrew, use brew command to install whatever database engine you need, ie brew install sqlite

View validate_email.rb
validates_format_of :email,
:with => /^([^\s]+)((?:[-a-z0-9]\.)[a-z]{2,})$/i
View time_logging_block.rb
def self.in_time_log(name="",logger=nil)
(logger || RAILS_DEFAULT_LOGGER).info("#{name} start")
start_time =
duration =
(logger || RAILS_DEFAULT_LOGGER).info("#{name} duration: #{ ([duration/3600, duration/60 % 60, duration % 60].map{|t| "%02d" % t.to_i.to_s}).join(':')}")
You can’t perform that action at this time.