Setup Ruby with Macintosh

http://www.gotealeaf.com/blog/how-to-install-ruby-on-rails-development-environment-for-mac-os-x/

when install rbenv:

echo 'eval "$(rbenv init -)"' >> ~/.bash_profile

if (~/.bashrc) : ‘gem install rails’ not working. why?

when upgrade rubygems:

$ gem update --system
          # may need to be administrator or root

https://rubygems.org/pages/download

when install sublime_text

ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl

~/bin/subl seems not working. why?

 
0
Kudos
 
0
Kudos

Now read this

local time in Rails app

This is what I found: when I did Time.now in Ruby, it returns my local time (my system time, I should say). when I did Time.zone.now or Time.now.in_time_zone in any Rails file it shows the time as set it up on config/application.rb:... Continue →