Manuelle Installation
login to the new box
https://gist.github.com/stereosupersonic/43367f3934b6de2354779aa1744b4fcc
Manuelle Installation
login to the new box
https://gist.github.com/stereosupersonic/43367f3934b6de2354779aa1744b4fcc
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.
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.
Use this command and follow the instructions:
curl -L get.rvm.io | bash -s stable --rails
Other options include(any gems imply --ruby):
--ruby=1.9.3
--gems=rails,gist
Optionally on OSX install homebrew, use brew
command to install whatever database engine you need, ie brew install sqlite
validates_format_of :email, | |
:with => /^([^\s]+)((?:[-a-z0-9]\.)[a-z]{2,})$/i |
def self.in_time_log(name="",logger=nil) | |
(logger || RAILS_DEFAULT_LOGGER).info("#{name} start") | |
start_time = Time.now | |
yield | |
duration = Time.now-start_time | |
(logger || RAILS_DEFAULT_LOGGER).info("#{name} duration: #{ ([duration/3600, duration/60 % 60, duration % 60].map{|t| "%02d" % t.to_i.to_s}).join(':')}") | |
end |