Skip to content

Instantly share code, notes, and snippets.

View jacqui's full-sized avatar

Jacqui Lough jacqui

View GitHub Profile
/opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/Users/jacqui/git_hashrocket/bart/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:510:in `require'
/Users/jacqui/git_hashrocket/bart/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:355:in `new_constants_in'
/Users/jacqui/git_hashrocket/bart/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:510:in `require'
/Users/jacqui/git_hashrocket/bart/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:102:in `require_or_load'
/Users/jacqui/git_hashrocket/bart/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:61:in `depend_on'
/Users/jacqui/git_hashrocket/bart/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:457:in `require_dependency'
/Users/jac
remote_task :new_stuff, :roles => :app do
# fetch the last line of revisions.log
output = run "tail -n1 #{deploy_to}/revisions.log"
time = output.strip.split.last
# format time for git, which is picky about these things
time = "#{time[0,4]}-#{time[4,2]}-#{time[6,2]}.#{time[8,6]}"
revisions = `git rev-list --all --after='#{time}'`
puts "undeployed revisions:\n#{revisions}"
end
class Sponsor < ActiveRecord::Base
has_slug :source_column => :name, :prepend_id => false
validates_presence_of :name, :url, :level
has_attached_file :logo,
:styles => { :medium => "190x190" }
# named scopes could work here too.
# named_scope :featured, :conditions => {:level => 'Featured'}, :order => 'name'
ActionView::TemplateError (getaddrinfo: Temporary failure in name resolution) on line #122 of app/views/layouts/portal.rhtml:
119:
120:
121: <div id="footer">
122: <%= language_switcher %>
123:
124: <% if RAILS_ENV == 'development' -%>
125: <hr />
1 Factory.define :user do |u|
2 u.username { Faker::Internet.user_name }
3 u.email { Faker::Internet.email }
4 u.time_zone "Eastern Time (US & Canada)"
5 u.password "yourface"
6 u.password_confirmation "yourface"
7 u.password_salt { Authlogic::Random.hex_token }
8 u.crypted_password { |a| Authlogic::CryptoProviders::Sha512.encrypt("yourface" + a.password_salt) }
9 u.persistence_token { Authlogic::Random.hex_token }
10 u.single_access_token { Authlogic::Random.friendly_token }
[40, 49] in /Users/jacqui/Code/Eastmedia/mdb/vendor/gems/authlogic-2.1.1/lib/authlogic/crypto_providers/sha512.rb
40 digest
41 end
42
43 # Does the crypted password match the tokens? Uses the same tokens that were used to encrypt.
44 def matches?(crypted, *tokens)
=> 45 encrypt(*tokens) == crypted
46 end
(rdb:1) crypted
[deploy@rm-207-210-123-165 ~]$ sudo yum install vim
Repository centosplus is listed more than once in the configuration
Repository base is listed more than once in the configuration
Repository update is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository addons is listed more than once in the configuration
Setting up Install Process
Setting up repositories
railsmachine 100% |=========================| 951 B 00:00
kbs-CentOS-Misc 100% |=========================| 951 B 00:00
⚜:~/source/ruby-1.8.6-p287$ ./config.status
config.status: creating Makefile
⚜:~/source/ruby-1.8.6-p287$ make
compiling Win32API
make[1]: Nothing to be done for `all'.
compiling bigdecimal
make[1]: Nothing to be done for `all'.
compiling curses
make[1]: Nothing to be done for `all'.
compiling dbm
Processing Pencils::HomeController#index (for 127.0.0.1 at 2009-10-16 16:00:58) [GET]
Session ID: 50bf0b59fa5617a1f0fdac56f65a0852
Parameters: {"action"=>"index", "controller"=>"pencils/home"}
User Columns (2.1ms) SHOW FIELDS FROM `users`
Rendering template within layouts/pencils_home
Rendering pencils/home/index
HomePageWidget Load (0.6ms) SELECT * FROM `home_page_widgets` LIMIT 1
HomePageWidget Columns (1.0ms) SHOW FIELDS FROM `home_page_widgets`
ld: warning: in /opt/local/lib/libfreeimage.dylib, file is not of required architecture
class Form
include MongoMapper::Document
key :name, String, :required => true
key :headline, String, :required => true
key :subject_filter, String
key :submission_email, String
key :slug, String
key :thanks, String
key :notification_emails, Array