This file contains 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
naudo:~ naudo$ which gem | |
/usr/bin/gem | |
naudo:~ naudo$ rvm default | |
naudo:~ naudo$ which gem | |
/Users/naudo/.rvm/rubies/ree-1.8.7-2010.02/bin/gem |
This file contains 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
/Users/naudo/.rvm/gems/ree-1.8.7-2010.02@arrayent/gems/do_mysql-0.10.2/lib/do_mysql/do_mysql.bundle: dlopen(/Users/naudo/.rvm/gems/ree-1.8.7-2010.02@arrayent/gems/do_mysql-0.10.2/lib/do_mysql/do_mysql.bundle, 9): no suitable image found. Did find: (LoadError) | |
/Users/naudo/.rvm/gems/ree-1.8.7-2010.02@arrayent/gems/do_mysql-0.10.2/lib/do_mysql/do_mysql.bundle: mach-o, but wrong architecture - /Users/naudo/.rvm/gems/ree-1.8.7-2010.02@arrayent/gems/do_mysql-0.10.2/lib/do_mysql/do_mysql.bundle |
This file contains 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
$(function() { | |
$.ajaxSetup({ | |
headers: {"X-CSRF-Token": $("meta[name='csrf-token']").attr('content')} | |
}); | |
}); |
This file contains 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
(rdb:6) request.subdomain | |
"" | |
(rdb:6) request.url | |
"http://cleanpm.localhost:3000/projects/cleanpm/stories" | |
(rdb:6) request.host | |
"cleanpm.localhost" |
This file contains 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
[~]rvm list | |
rvm rubies | |
jruby-1.6.0.RC2 [ darwin-i386-java ] | |
ree-1.8.7-2010.02 [ x86_64 ] | |
=> ruby-1.9.2-p180 [ x86_64 ] | |
ruby-1.9.2-p290 [ x86_64 ] | |
[~]rvm remove jruby-1.6.0.RC2 |
This file contains 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
class Blarg | |
def say_blarg(blarg) | |
end | |
end |
This file contains 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
<% User.all(:include => :pets).each do |user| %> | |
<p> <%= user.name %> </p> | |
<ul> | |
<% user.pets.each do |pet| %> | |
<li> <%= pet.name %> </li> | |
<% end %> | |
</ul> | |
<% end %> |
This file contains 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
#Don't | |
user.pets[0..4] | |
#Do | |
user.pets.limit(4) |
This file contains 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
# == Schema Information | |
# | |
# Table name: pets | |
# | |
# id :integer not null, primary key | |
# name :string(255) | |
# user_id :integer | |
# created_at :datetime not null | |
# updated_at :datetime not null | |
# |
This file contains 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
<% User.all.each do |user| %> | |
<p> <%= user.name %> </p> | |
<ul> | |
<% user.pets.each do |pet| %> | |
<li> <%= pet.name %> </li> | |
<% end %> | |
</ul> | |
<% end %> |
OlderNewer