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
| $ bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer) | |
| Cloning into rvm... | |
| remote: Counting objects: 5771, done. | |
| remote: Compressing objects: 100% (2755/2755), done. | |
| Receiving objects: 100% (5771/5771), 1.97 MiB | 85 KiB/s, done. | |
| remote: Total 5771 (delta 3785), reused 4086 (delta 2272) | |
| Resolving deltas: 100% (3785/3785), done. | |
| RVM: Shell scripts enabling management of multiple ruby environments. | |
| RTFM: https://rvm.beginrescueend.com/ |
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
| Wdwfood::Application.routes.draw do | |
| resources :videos, :photos, :districts, :eateries | |
| resources :home, :only => :index | |
| match '/place/:permalink' => 'districts#show' | |
| match '/auth/:provider/callback', :to => 'sessions#callback' | |
| # The priority is based upon order of creation: | |
| # first created -> highest priority. |
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
| $ brew install mysql | |
| ==> Downloading http://mysql.mirrors.pair.com/Downloads/MySQL-5.1/mysql-5.1.55.t | |
| curl: (22) The requested URL returned error: 404 | |
| Error: private method `gsub' called for #<Pathname:0x1006376e8> | |
| Please report this bug: https://github.com/mxcl/homebrew/wiki/new-issue | |
| /usr/local/Library/Homebrew/utils.rb:81:in `safe_system' | |
| /usr/local/Library/Homebrew/utils.rb:81:in `map' | |
| /usr/local/Library/Homebrew/utils.rb:81:in `safe_system' | |
| /usr/local/Library/Homebrew/utils.rb:95:in `curl' |
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
| # System-wide .profile for sh(1) | |
| if [ -x /usr/libexec/path_helper ]; then | |
| eval `/usr/libexec/path_helper -s` | |
| fi | |
| if [ "${BASH-no}" != "no" ]; then | |
| [ -r /etc/bashrc ] && . /etc/bashrc | |
| fi# | |
| # RVM profile |
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
| 2011-07-22T18:40:35+00:00 heroku[web.1]: State changed from created to starting | |
| 2011-07-22T18:40:37+00:00 heroku[web.1]: Starting process with command: `thin -p 11255 -e production -R /home/heroku_rack/heroku.ru start` | |
| 2011-07-22T18:40:37+00:00 app[web.1]: <internal:lib/rubygems/custom_require>:29:in `require': no such file to load -- main (LoadError) | |
| 2011-07-22T18:40:37+00:00 app[web.1]: from <internal:lib/rubygems/custom_require>:29:in `require' | |
| 2011-07-22T18:40:37+00:00 app[web.1]: from config.ru:1:in `block (3 levels) in <main>' | |
| 2011-07-22T18:40:37+00:00 app[web.1]: from /home/heroku_rack/heroku.ru:23:in `eval' | |
| 2011-07-22T18:40:37+00:00 app[web.1]: from /home/heroku_rack/heroku.ru:23:in `block (3 levels) in <main>' | |
| 2011-07-22T18:40:37+00:00 app[web.1]: from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/rack-1.1.0/lib/rack/builder.rb:46:in `instance_eval' | |
| 2011-07-22T18:40:37+00:00 app[web.1]: from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/rack-1.1.0/lib/rack/builder.rb:46:in `initialize' | |
| 2011-07-22T18:40:37+ |
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
| $ bundle exec rake cucumber | |
| /Users/heathertanner/.rvm/rubies/ree-1.8.7-head/bin/ruby -S bundle exec cucumber --profile default | |
| Using the default profile... | |
| undefined local variable or method `as' for #<Class:0x104e4f458> (NameError) | |
| /Users/heathertanner/.rvm/gems/ree-1.8.7-head@feedgen02/gems/activerecord-3.0.5/lib/active_record/base.rb:1008:in `method_missing' | |
| /Users/heathertanner/Sites/feedgen/feedgen/app/models/account.rb:14 | |
| /Users/heathertanner/.rvm/gems/ree-1.8.7-head@feedgen02/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:239:in `require' | |
| /Users/heathertanner/.rvm/gems/ree-1.8.7-head@feedgen02/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:239:in `require' | |
| /Users/heathertanner/.rvm/gems/ree-1.8.7-head@feedgen02/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:227:in `load_dependency' | |
| /Users/heathertanner/.rvm/gems/ree-1.8.7-head@feedgen02/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:239:in `require' |
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
| captproton:todo heathertanner$ heroku logs | |
| 2011-06-25T00:30:57+00:00 heroku[api]: Add-on add logging:basic by carl@captproton.com | |
| 2011-06-25T00:30:57+00:00 heroku[api]: Release v2 created by carl@captproton.com | |
| 2011-06-25T00:31:28+00:00 heroku[api]: Add-on update shared-database | |
| 2011-06-25T00:31:28+00:00 heroku[api]: Release v3 created by carl@captproton.com | |
| 2011-06-25T00:31:40+00:00 heroku[slugc]: Slug compilation started | |
| 2011-06-25T00:33:00+00:00 heroku[api]: Deploy 18cf32e by carl@captproton.com | |
| 2011-06-25T00:33:00+00:00 heroku[api]: Release v4 created by carl@captproton.com | |
| 2011-06-25T00:33:01+00:00 heroku[web.1]: State changed from created to starting | |
| 2011-06-25T00:33:01+00:00 heroku[slugc]: Slug compilation finished |
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
| # Game plan: | |
| ## create an array of words to use in the ransom note | |
| ## create a larger hash of popularly used words with the second attribute of the hash as count of words available. Fails when note's counts of letters is less than vocab. | |
| ## search larger hash of words for words to be used in the note | |
| ## if word is not available, put "ransom note word 'word used' is not available" | |
| ## else put "ransom note successfully generated" | |
| # Plussed Game Plan | |
| ## Collection of words is stored in google doc or at http://www.infochimps.com/datasets/word-frequencies-from-the-british-national-corpus, retrieved through yql, parsed into a hash | |
| ransom_note_words = [ 'twinkle', 'little', 'star', 'how', 'I', 'wonder','Mike', 'Caldwell'] |
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
| class AnimalsController < ApplicationController | |
| # GET /animals | |
| # GET /animals.xml | |
| def index | |
| @animals = Animal.all | |
| respond_to do |format| | |
| format.html # index.html.erb | |
| format.xml { render :xml => @animals } | |
| end |
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
| NoMethodError in Animals#new | |
| Showing /Users/heathertanner/Sites/oceanshore.org/jan/app/views/animals/_form.html.erb where line #1 raised: | |
| undefined method `attribute_methods_generated?' for nil:NilClass | |
| Extracted source (around line #1): | |
| 1: <%= form_for @animal do |f| %> | |
| 2: <%# semantic_form_for @animal do |f| %> | |
| 3: <div class="field"> |