Skip to content

Instantly share code, notes, and snippets.

@elenawalom
elenawalom / gist:0358fabb53f3618958c2
Last active August 29, 2015 14:16
Rake db:migrate error
Failed AddDevisetoUsers file
class AddDeviseToUsers < ActiveRecord::Migration
def self.up
change_table(:users) do |t|
## Database authenticatable
t.string :email, null: false, default: ""
t.string :encrypted_password, null: false, default: ""
## Recoverable
@elenawalom
elenawalom / RVM Install Errors
Created October 26, 2014 15:13
RVM Install Errors Continued
Still getting this error when I run:
"rvm install 2.0.0-p247"
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.10/x86_64/ruby-2.0.0-p247.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for osx.
/usr/local/bin/brew: /usr/local/Library/brew.rb: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby: bad interpreter: No such file or directory
/usr/local/bin/brew: line 21: /usr/local/Library/brew.rb: Undefined error: 0
@elenawalom
elenawalom / RVM Install Errors
Created October 26, 2014 15:03
RVM Install Errors
I was prompted to run "rvm cleanup all" when I attempted to install rvm per your instructions, Mike. I got this error message instead:
rm: /usr/local/rvm/gems/ruby-1.9.3-p429/doc/bundler-1.6.2/rdoc/Bundler/BundlerError.html: Permission denied
rm: /usr/local/rvm/gems/ruby-1.9.3-p429/doc/bundler-1.6.2/rdoc/Bundler/CLI/Binstubs.html: Permission denied
rm: /usr/local/rvm/gems/ruby-1.9.3-p429/doc/bundler-1.6.2/rdoc/Bundler/CLI/Cache.html: Permission denied
rm: /usr/local/rvm/gems/ruby-1.9.3-p429/doc/bundler-1.6.2/rdoc/Bundler/CLI/Check.html: Permission denied
rm: /usr/local/rvm/gems/ruby-1.9.3-p429/doc/bundler-1.6.2/rdoc/Bundler/CLI/Clean.html: Permission denied
rm: /usr/local/rvm/gems/ruby-1.9.3-p429/doc/bundler-1.6.2/rdoc/Bundler/CLI/Common.html: Permission denied
rm: /usr/local/rvm/gems/ruby-1.9.3-p429/doc/bundler-1.6.2/rdoc/Bundler/CLI/Config.html: Permission denied
rm: /usr/local/rvm/gems/ruby-1.9.3-p429/doc/bundler-1.6.2/rdoc/Bundler/CLI/Console.html: Permission denied
@elenawalom
elenawalom / brew install chruby error
Created October 26, 2014 14:48
brew install chruby
/usr/local/bin/brew: /usr/local/Library/brew.rb: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby: bad interpreter: No such file or directory
/usr/local/bin/brew: line 21: /usr/local/Library/brew.rb: Undefined error: 0
@elenawalom
elenawalom / Middleman Installation
Created October 12, 2014 17:39
Error installing middleman
Building native extensions. This could take a while...
ERROR: Error installing middleman:
ERROR: Failed to build gem native extension.
/usr/local/rvm/rubies/ruby-1.9.3-p429/bin/ruby extconf.rb
creating Makefile
make
compiling hitimes.c
make: gcc-4.2: No such file or directory
@elenawalom
elenawalom / Rake Routes Error
Last active August 29, 2015 13:59
Rake Routes Error
Routes file:
EtsyApp::Application.routes.draw do
resources :listings
get "pages/about"
@elenawalom
elenawalom / Wk6Day2Notes
Created July 23, 2013 21:16
Wk6Day2Notes
Google.com
Command+Option+J to get Javascript console
window.location
window.location.href
User agent tag
@elenawalom
elenawalom / Wk6Day1Notes
Created July 23, 2013 06:58
Wk6Day1Notes
Project Redux
Where does stuff go?
Refactoring
Code Reviews
PM Javascript Review
@elenawalom
elenawalom / Project Notes
Created July 17, 2013 20:37
Project Notes
Head, body, yield etc. should be inside of application.html.erb (covered by Markus)
and the views go inside of this
Ask Markus questions about this.
The easy way to add user authentication with ruby gem devise