$ rails console >> 1.year.from_now => Sun, 13 Mar 2011 03:38:55 UTC +00:00 >> 10.weeks.ago => Sat, 02 Jan 2010 03:39:14 UTC +00:00 >> 1.hour.from_now => Sun, 12 Aug 2012 09:52:39 UTC +00:00 >> 30.seconds.from_now => Sun, 12 Aug 2012 08:54:00 UTC +00:00
my personal notepad - for all the things I used to write on pieces of paper ( which where never seen again esp. when I needed them ) ...
Showing posts with label Ruby. Show all posts
Showing posts with label Ruby. Show all posts
Sunday, August 12, 2012
ruby rails - examples for date time helpers
with the time helpers it is amazingly easy to deal with dates and times (add, diff...)
Thursday, August 9, 2012
ruby rails - set up autotest
http://www.andrewsturges.com/2011/06/installing-autotest-with-rails-31-and.html
+ run: rails g rspec:install (rspec-rails have to be installed)
+ run: rails g rspec:install (rspec-rails have to be installed)
Wednesday, August 8, 2012
ruby - problems with rvm
if rvm does not set the right ruby version:
http://stackoverflow.com/questions/9056008/installed-ruby-1-9-3-with-rvm-but-command-line-doesnt-show-ruby-v/9056395#9056395
http://stackoverflow.com/questions/9056008/installed-ruby-1-9-3-with-rvm-but-command-line-doesnt-show-ruby-v/9056395#9056395
Tuesday, January 4, 2011
installing gems through proxy
Try one of these:
Sunday, November 28, 2010
start ruby server using different port
script/server -p 9999 -b 0.0.0.0
(b - binding = ip)
(b - binding = ip)
Subscribe to:
Comments
(
Atom
)