Epoch Time Conversion in Rails

To convert Epoch into a Time Object:

Time.at(1280510409) #=> 2010-07-30 12:20:09 -0500

Comments Bookmark to delicious Digg this Technorati reddit 

How to link a folder with an existing Heroku app

To add your Heroku remote as a remote in your current repository, use the following command:

git remote add your_app_name git@heroku.com:your_app_name.git

You can find your Heroku App Name and the Git Repo URL from the Heroku App General Info page

Comments Bookmark to delicious Digg this Technorati reddit 

How to transfer a Git repo from one Mac to another?

First turn on Remote Login on your new Mac:

Apple -> System Preferences -> Sharing -> Remote Login

Than via SSH:

git clone ssh://username@ip.of.your.mac/Users/<path_to_your_git_repo>

 

 

Comments Bookmark to delicious Digg this Technorati reddit 

Interesting Rails Questions on StackOverflow Pt 6

Comments Bookmark to delicious Digg this Technorati reddit 

What is the difference between the Rails delete and destroy class methods?

The delete methods bypass the various Active Record callback and validation functions, while the destroy methods ensure that they are all invoked. In general, it is better to use the destroy methods if you want to ensure that your database is consistent according to the business rules defined in your model classes.

Comments Bookmark to delicious Digg this Technorati reddit 

Interesting Rails Questions on StackOverflow Pt 5

Comments Bookmark to delicious Digg this Technorati reddit 

« Previous entries Next Page » Next Page »