View gist:4910e794c4c065fbc3f5
1 2 3 4 5 6 7 8 9 10
application 'foo' do
path '/srv/ads/rails/foo'
owner 'rails'
group 'rails'
 
repository 'git@bitbucket.org:...'
revision 'master'
rollback_on_error false
 
# Apply the rails LWRP from application_ruby
View gist:f9f454ff808c03fe5907
1 2 3 4 5 6 7 8 9
## afer installing ruby 2.2.0 with ruby_build_ruby
## and setting
# default['passenger']['ruby_bin'] = '/usr/local/bin/ruby'
# in my cookbook's attributes/default.rb
 
[vagrant@default-centos-65 ~]$ cat /etc/httpd/mods-enabled/passenger.conf
PassengerRoot /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/passenger-4.0.53
PassengerRuby /usr/local/bin/ruby
PassengerMaxPoolSize 6
View .rvmrc
1 2 3 4 5 6
.rvmrc
if [[ -s "/home/cnk/.rvm/environments/ruby-1.9.3-p194@Ride-Bum" ]] ; then
. "/home/cnk/.rvm/environments/ruby-1.9.3-p194@Ride-Bum"
else
rvm --create use "ruby-1.9.3-p194@Ride-Bum"
fi
View user.rb
1 2 3 4 5 6 7 8
class User < ActiveRecord::Base
# devise configuration info omitted
 
# admin column is defined with :default => false
 
attr_accessible :email, :password, :password_confirmation
end
 
View gist:241608
1 2 3 4 5 6 7 8 9 10
$ rpm -qa | grep oracle
oracle-instantclient-sqlplus-10.2.0.4-1
oracle-instantclient-basic-10.2.0.4-1
oracle-instantclient-devel-10.2.0.4-1
 
env | grep LD
LD_LIBRARY_PATH=/usr/lib/oracle/10.2.0.4/client64/lib
 
$ gem list
activerecord (2.3.4)
View gist:6216
1 2 3 4 5 6 7 8 9 10
require File.dirname(__FILE__) + '/../test_helper'
 
class EditorActionsTest < ActionController::IntegrationTest
# CNK not sure if we are going to use fixtures
# I would prefer to use factories but am having trouble with that
# fixtures :users, :roles, :roles_users, :pages
 
def setup
@home_page = Factory.create_home_page
@editor = Factory.create_user_with_role('editor', :login => 'abenter', :email => 'abenter@caltech.edu', :password => 'abenter', :password_confirmation => 'abenter')
Something went wrong with that request. Please try again.