The pull request with all the code.

does current_user come from devise? If so it's probably a helper method and can be used in your views and controllers without the need for another instance variable