Skip to content

Instantly share code, notes, and snippets.

View helloluis's full-sized avatar
💭
Just shillin'

Luis Buenaventura helloluis

💭
Just shillin'
View GitHub Profile
NoMethodError (undefined method `has_key?' for "dog":String):
/Users/luis/.rvm/gems/ruby-1.9.2-p0/bundler/gems/mongoid-6bd8077ea91e/lib/mongoid/attributes.rb:149:in `block (2 levels) in apply_default_attributes'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/bundler/gems/mongoid-6bd8077ea91e/lib/mongoid/attributes.rb:148:in `each_pair'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/bundler/gems/mongoid-6bd8077ea91e/lib/mongoid/attributes.rb:148:in `block in apply_default_attributes'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/bundler/gems/mongoid-6bd8077ea91e/lib/mongoid/attributes.rb:147:in `tap'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/bundler/gems/mongoid-6bd8077ea91e/lib/mongoid/attributes.rb:147:in `apply_default_attributes'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/bundler/gems/mongoid-6bd8077ea91e/lib/mongoid/document.rb:262:in `block in instantiate'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/bundler/gems/mongoid-6bd8077ea91e/lib/mongoid/document.rb:260:in `tap'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/bundler/gems/mongoid-6bd8077ea91e/li
== UpdateArchivedSaChildSocialActivities: migrating ==========================
rake aborted!
An error has occurred, 20110629072738 and all later migrations canceled:
undefined method `has_key?' for "beach":String
/Users/luis/.rvm/gems/ruby-1.9.2-p0/bundler/gems/mongoid-6bd8077ea91e/lib/mongoid/attributes.rb:149:in `block (2 levels) in apply_default_attributes'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/bundler/gems/mongoid-6bd8077ea91e/lib/mongoid/attributes.rb:148:in `each_pair'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/bundler/gems/mongoid-6bd8077ea91e/lib/mongoid/attributes.rb:148:in `block in apply_default_attributes'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/bundler/gems/mongoid-6bd8077ea91e/lib/mongoid/attributes.rb:147:in `tap'
/Users/luis/.rvm/gems/ruby-1.9.2-p0/bundler/gems/mongoid-6bd8077ea91e/lib/mongoid/attributes.rb:147:in `apply_default_attributes'
<p class="<%= @article.toggled? ? "hidden" : "visible" %>">blah</p>
On branch master
# Your branch and 'origin/master' have diverged,
# and have 3 and 43 different commit(s) each, respectively.
#
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# modified: README.md
# modified: assets/stylesheets/guest.css
# modified: builder/.gitignore
Error starting application
Your Rack app raised an exception when Pow tried to run it.
SystemExit: exit
~/.rvm/gems/ruby-1.9.2-head/gems/bundler-1.0.12/lib/bundler/setup.rb:10:in `exit'
~/.rvm/gems/ruby-1.9.2-head/gems/bundler-1.0.12/lib/bundler/setup.rb:10:in `rescue in <top (required)>'
~/.rvm/gems/ruby-1.9.2-head/gems/bundler-1.0.12/lib/bundler/setup.rb:5:in `<top (required)>'
~/.rvm/rubies/ruby-1.9.2-head/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:59:in `require'
~/.rvm/rubies/ruby-1.9.2-head/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:59:in `rescue in require'
Show 21 more lines
(If your app uses Bundler, check to make sure you have the latest version, then run bundle install. If you’re using rvm, make sure you have the latest version installed and your app is using the right gemset.)
@helloluis
helloluis / Slim HTML5 Boilerplate Conditional Comments
Created August 31, 2011 08:52
How to get HTML5 Boilerplate-style Conditional Comments Working in Slim
doctype html
/[if lt IE 7]
| <html class="ie6">
/[if IE 7]
| <html class="ie7">
/[if IE 8]
| <html class="ie8">
/[if IE 9]
| <html class="ie9">
| <!--[if (gte IE 9)|!(IE)]<!--> <html> <!--<![endif]-->
@helloluis
helloluis / jQuery findClassWithRegex
Created September 30, 2011 03:48
Mini-plugin for selecting elements with regex instead of an actual class name
$.fn.findClassWithRegex = function(regex) {
var results = [];
$(this).each(function(){
if ($(this).attr('class').length>0 && $(this).attr('class').match(regex)) {
results.push( this );
}
gem install ruby-debug19 -- -with-ruby-include=/Users/Luis/.rvm/src/ruby-1.
ruby-1.8.7-p302/ ruby-1.9.2-head/ ruby-1.9.2-p0/ ruby-1.9.2-p290/
luis-imac:main Luis$ gem install ruby-debug19 -- -with-ruby-include=/Users/Luis/.rvm/src/ruby-1.9.2-head
/Users/Luis/.rvm/rubies/ruby-1.9.2-head/bin/gem:4: warning: Insecure world writable dir /usr/local in PATH, mode 040777
Building native extensions. This could take a while...
ERROR: Error installing ruby-debug19:
ERROR: Failed to build gem native extension.
/Users/Luis/.rvm/rubies/ruby-1.9.2-head/bin/ruby extconf.rb -with-ruby-include=/Users/Luis/.rvm/src/ruby-1.9.2-head
checking for vm_core.h... no
RuntimeError in SitesController#show
ERR unknown command 'hset'
Rails.root: /Users/Luis/Sites/infinitely/main
Application Trace | Framework Trace | Full Trace
redis (2.2.2) lib/redis/client.rb:47:in `call'
/Users/Luis/.rvm/gems/ruby-1.9.2-p290@infinitely/bundler/gems/rpm_contrib-694e43044d4f/lib/rpm_contrib/instrumentation/redis.rb:30:in `block in raw_call_command_with_newrelic_trace'
newrelic_rpm (3.1.2) lib/new_relic/agent/method_tracer.rb:242:in `trace_execution_scoped'
/Users/Luis/.rvm/gems/ruby-1.9.2-p290@infinitely/bundler/gems/rpm_contrib-694e43044d4f/lib/rpm_contrib/instrumentation/redis.rb:28:in `raw_call_command_with_newrelic_trace'
luis:~/sites$ cd kreyos-members/
You are using '.rvmrc', it requires trusting, it is slower and it is not compatible with other ruby managers,
you can switch to '.ruby-version' using 'rvm rvmrc to [.]ruby-version'
or ignore this warning with 'rvm rvmrc warning ignore /Users/luis/sites/kreyos-members/.rvmrc',
'.rvmrc' will continue to be the default project file in RVM 1 and RVM 2,
to ignore the warning for all files run 'rvm rvmrc warning ignore all.rvmrcs'.
Using /Users/luis/.rvm/gems/ruby-1.9.3-p545 with gemset kreyos-members