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
OS: Linux Debian Lenny | |
gem versions: | |
factory_girl_rails-4.2.1 | |
spork-1.0.0rc3 | |
guard-1.6.2 | |
rails-3.2.9 | |
rspec-rails-2.13.0 | |
Gemfile: |
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
rails version: 3.2.9 | |
ruby 1.9.3p125 (2012-02-16 revision 34643) | |
devise 2.2.3 | |
[i686-linux] | |
OS: Debian Linux Lenny(I know... gonna update to Squeeze) | |
Listening to: http://www.youtube.com/watch?v=ab5hLh_Nurg&feature=share&list=RD02EXf5tcjdO8s while programming :) | |
Controller: | |
class Guards::SessionsController < Devise::SessionsController | |
before_filter :authenticate_admin! |
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
Searching for binary rubies, this might take some time. | |
Installing requirements for debian, might require sudo password. | |
ruby-2.0.0-p195 - #configure | |
ruby-2.0.0-p195 - #download | |
ruby-2.0.0-p195 - #validate archive | |
ruby-2.0.0-p195 - #extract | |
ruby-2.0.0-p195 - #validate binary | |
ruby-2.0.0-p195 - #setup | |
Saving wrappers to '/home/nbit001/.rvm/wrappers/ruby-2.0.0-p195'........... | |
ruby-2.0.0-p195 - #importing default gemsets, this may take time...................... |
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 install 1.9.3 --debug | |
1.9.3 - install | |
Searching for binary rubies, this might take some time. | |
Found remote file https://rvm.io/binaries/debian/6.0/x86_64/ruby-1.9.3-p429.tar.bz2 | |
rvm_autolibs_flag=disabled | |
ruby-1.9.3-p429 - #configure | |
ruby-1.9.3-p429 - #download | |
Archive checksum matched, not downloading | |
Downloaded archive checksum matched. |
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 install 1.9.3 --with-gcc=gcc --debug | tee ~/Desktop/ruby1_9_output | |
1.9.3 - install | |
__rvm_setup_compile_environment_setup ruby-1.9.3-p429 | |
rvm_autolibs_flag=disabled | |
__rvm_setup_compile_environment_requirements ruby-1.9.3-p429 | |
__rvm_setup_compile_environment_osx_compiler ruby-1.9.3-p429 | |
__rvm_setup_compile_environment_architectures ruby-1.9.3-p429 | |
__rvm_setup_compile_environment_gcc47plus ruby-1.9.3-p429 | |
__rvm_setup_compile_environment_bison ruby-1.9.3-p429 |
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
/home/nbit001/.rvm/rubies/ruby-2.0.0-p195/ | |
/home/nbit001/.rvm/rubies/ruby-2.0.0-p195/include | |
/home/nbit001/.rvm/rubies/ruby-2.0.0-p195/include/ruby-2.0.0 | |
/home/nbit001/.rvm/rubies/ruby-2.0.0-p195/include/ruby-2.0.0/ruby | |
/home/nbit001/.rvm/rubies/ruby-2.0.0-p195/include/ruby-2.0.0/ruby/dl.h | |
/home/nbit001/.rvm/rubies/ruby-2.0.0-p195/include/ruby-2.0.0/ruby/version.h | |
/home/nbit001/.rvm/rubies/ruby-2.0.0-p195/include/ruby-2.0.0/ruby/digest.h | |
/home/nbit001/.rvm/rubies/ruby-2.0.0-p195/include/ruby-2.0.0/ruby/intern.h | |
/home/nbit001/.rvm/rubies/ruby-2.0.0-p195/include/ruby-2.0.0/ruby/re.h | |
/home/nbit001/.rvm/rubies/ruby-2.0.0-p195/include/ruby-2.0.0/ruby/regex.h |
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
require 'spec_helper' | |
describe AdminController do | |
# Stubs out, returns true. Logged in as Admin | |
login(true) | |
describe 'GET' do | |
let(:admin) { mock_model(Admin) } |
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
# app/model/ | |
# Your model where you've defined has_attached_file | |
# Do not define :original in your styles | |
class Asset < ActiveRecord::Base | |
attr_accessible :position, :picture_cover, :asset | |
belongs_to(:assetable, :polymorphic => true) | |
has_attached_file :asset, | |
:styles => { |
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
FIRST_TIME | |
test_app$ rails g impressionist --orm active_record -f | |
invoke active_record | |
remove db/migrate/20130716090507_create_impressions_table.rb | |
create db/migrate/20130716091134_create_impressions_table.rb | |
create config/initializers/impression.rb | |
SECOND_TIME, impression.rb already exists | |
test_app$ rails g impressionist --orm active_record -f |
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
#-*- ruby -*- | |
# | |
# MAKE SURE YOU CHANGE THE YOUR TESTS DIR | |
# AND YOUR LIB DIR | |
# | |
# Run me with: | |
# $ watchr specs.watchr |
OlderNewer