This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// api/controllers/AuthController.js | |
var passport = require('passport'); | |
var AuthController = { | |
login: function (req,res) | |
{ | |
res.view(); | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=================================This is the file================================= | |
class UserSessionsController < ApplicationController | |
before_filter :login_required, :only => [ :destroy ] | |
# omniauth callback method | |
def create | |
omniauth = request.env['omniauth.auth'] | |
user = User.find_by_uid(omniauth['uid']) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ubuntu@server:~/.rvm/gems$ which ruby | |
/usr/local/bin/ruby | |
ubuntu@server:~/.rvm/gems$ ruby -v | |
ruby 1.9.2dev (2010-07-02 revision 28524) [i686-linux] | |
ubuntu@server:~/.rvm/gems$ gem -v | |
1.3.7 | |
ubuntu@server:~/.rvm/gems$ which gem |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem-this (creates rakefile) | |
rake package (creates gemspec) | |
gem build x.gemspec (creates x.[version].gem) | |
gem push x.[version].gem |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$: << File.expand_path(File.dirname(FILE) + “/../lib”)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In the view with the tooltip: | |
%h1 | |
.some_class{:title => "display this text"} | |
:javascript | |
$(function(){ | |
$(".some_class").tipTip(); | |
}); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://codeulate.com/2010/02/installing-fuzzyfinder_textmate-textmates-cmdt-in-vim/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
after rake cucumber: | |
uninitialized constant ActiveRecord (NameError) | |
/Users/evanburchard/.rvm/gems/ruby-1.9.2-head/gems/rspec-expectations-2.0.0.beta.19/lib/rspec/expectations/backward_compatibility.rb:6:in `const_missing' | |
/Users/evanburchard/.rvm/gems/ruby-1.9.2-head/gems/rspec-core-2.0.0.beta.19/lib/rspec/core/backward_compatibility.rb:20:in `const_missing' | |
/Users/evanburchard/.rvm/gems/ruby-1.9.2-head/gems/pickle-0.3.4/lib/pickle/adapter.rb:115:in `factories' | |
/Users/evanburchard/.rvm/gems/ruby-1.9.2-head/gems/pickle-0.3.4/lib/pickle/config.rb:23:in `block in factories' | |
/Users/evanburchard/.rvm/gems/ruby-1.9.2-head/gems/pickle-0.3.4/lib/pickle/config.rb:22:in `each' | |
/Users/evanburchard/.rvm/gems/ruby-1.9.2-head/gems/pickle-0.3.4/lib/pickle/config.rb:22:in `inject' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
When I can't figure it out, for too long, it's usually one of these things. | |
Forget to include a file | |
Forget to load a library | |
Forget to call the executed code | |
Compare with "=" instead of "==" | |
Misspell variable names | |
Misspell method names | |
Forget to migrate | |
Call the wrong database |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
request.request_uri | |
controller.controller_name | |
controller.action_name |