Hack hack hack...

An open journal-- some of it written for you, but most of it is for me.

FIS Day17andahalf

Geocoder

This gem is amazing. I can calucalate the latitude and longitude of anywhere by an address and so much more. Not surprisingly there is a great railscast on the subject.

Authentication

I had broken the authentication system in my gearshare app. Ryan Bates to the rescue once again.

Sessions Issues

I was having some trouble killing the session. Avi added this code in the sessions_controller.

In the sessions controller
1
2
3
4
5
def destroy
  session[:user_id] = nil
  reset_session #this was the key....
  redirect_to root_url, :notice => "Signed out!"
end

Git Rebase

I also rebased a branch using the following command…

In the sessions controller
1
$ git rebase master

This rebased the up-to-date master underneath my branch that was ahead by a few commits, but had a broken authentication system. There is a complete explanation of this and more in the git book.

Stripe

Met Richard who walked me through the stripe that makes payments silly easy. Very exciting to integrate this into the bounty open-source idea…

Podcast

I should start listening to this… Peter Cooper and Jason Seifer– it’s got to be pretty solid.

Comments