Corey Haines talk about getting away from Rails for testing.
Get Facebook test users
First, get your access token:
You can get the access the token by using curl:
Then register a test user to a app:
Full details here
GIT your repository back to a previous commit
Lets say you have two local git branches (master and feature).
Lets say that by accident you push your feature branch and update the master branch, something like this could happen by typing
(bad!) git push origin feature:master
(correct!) git push origin feature
note: This happened to me while working and deploying to Heroku.
This bad! bad! bad! command will essentially push all your updates for the features branch to your master branch. bummer!
The way to fix this is,
1. Change to your master branch:
$ git checkout master
2. Revert to a commit
$ git revert —hard <SHA> (Replace SHA with the commit hash)
3. Push to the remote master branch
$ git push -f origin master
Note, this worked for me because there was a clear division from the master branch to the feature branch. It is important to know that the revert —hard command will remove everything on the branch past the current revert point.
First demo app built using Ruboto, that is a Android app built with Ruby code. BTW the app is a photo taking app, not that the photo shows the app, it took the picture :)
A great site with all the HTML 5 info you need. Yeah its Saturday and we are still going hard on the Internets!
rake search_path[enter_path_here] BAM!
Lately, we have been working on a lot of Rails projects that have big routes files with many custom paths. Doing rake routes works, but its annoying to have to search line by line to find the path. We know you can search inside the routes file also but for fun we created a new rake task that lets you search for a path right on the command line.
Check it out!
ActiveRecord attributes method
Returns a hash of all the attributes
Our new Blog!
Hey we are new give us a break!