Skip to content

Instantly share code, notes, and snippets.

View captproton's full-sized avatar

captproton captproton

View GitHub Profile
source :rubygems
# Specify the database driver as appropriate for your application (only one).
#gem 'mysql', :require => 'mysql'
gem 'sqlite3-ruby', :require => 'sqlite3'
# Specify your favourite web server (only one).
#gem 'unicorn', :group => :development
gem 'mongrel', :group => :development
ActionController::RoutingError in Portfolio#show
Showing vendor/plugins/refinerycms-portfolio/app/views/portfolio/show.html.erb where line #31 raised:
portfolio_project_url failed to generate from {:action=>"show", :controller=>"portfolio", :id=>#<PortfolioEntry id: 1, title: "first image", body: "<p>Lorem ipsum dolor sit amet, consectetur adipisic...", position: nil, parent_id: nil, created_at: "2010-05-29 16:10:13", updated_at: "2010-05-29 16:10:13">}, expected: {:action=>"show", :controller=>"portfolio"}, diff: {:id=>#<PortfolioEntry id: 1, title: "first image", body: "<p>Lorem ipsum dolor sit amet, consectetur adipisic...", position: nil, parent_id: nil, created_at: "2010-05-29 16:10:13", updated_at: "2010-05-29 16:10:13">}
Extracted source (around line #31):
28: $(document).ready(function(){
29: $("ul#portfolio_images li a.pale img").fadeTo(0, 0.3);
30:
Auto-merging .gems
CONFLICT (add/add): Merge conflict in .gems
Auto-merging .gitignore
CONFLICT (add/add): Merge conflict in .gitignore
Auto-merging Rakefile
CONFLICT (add/add): Merge conflict in Rakefile
Auto-merging VERSION
CONFLICT (add/add): Merge conflict in VERSION
Auto-merging config/application.rb
CONFLICT (add/add): Merge conflict in config/application.rb
$ rake refinery:update --trace
(in /Users/heathertanner/Sites/sectorfiveradio.com/danger/sectorfive-staging)
** Invoke refinery:update (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute refinery:update
rake aborted!
can't convert Pathname into String
/Users/heathertanner/.rvm/gems/ruby-1.9.1-p378/bundler/gems/refinerycms-5aee7074c175094c1daf5e3a3ff927bf9af1cf46-master/vendor/plugins/refinery/lib/tasks/refinery.rake:142:in `[]'
/Users/heathertanner/.rvm/gems/ruby-1.9.1-p378/bundler/gems/refinerycms-5aee7074c175094c1daf5e3a3ff927bf9af1cf46-master/vendor/plugins/refinery/lib/tasks/refinery.rake:142:in `block (2 levels) in <top (required)>'
$ rake db:migrate
(in /Users/heathertanner/Sites/sectorfiveradio.com/home2-sectorfiveradio)
== CreateBlogs: migrating ====================================================
-- create_table(:blogs)
-> 0.0026s
-- add_index(:blogs, :id)
-> 0.0006s
-- add_index(:blogs, :permalink)
-> 0.0007s
rake aborted!
<%
css = []
css << "selected" if selected_page?(menu_branch) or descendant_page_selected?(menu_branch)
css << "first" if menu_branch_counter == 0
css << "last" if menu_branch_counter == (sibling_count ||= menu_branch.shown_siblings.size)
domid = "item_#{menu_branch_counter}" unless menu_branch.parent_id.present? or menu_branch.title.blank?
-%>
<% if menu_branch.in_menu? %>
<li<%= " class='#{css.join(' ')}'" if css.present? -%><%= " id='#{domid}'" if domid.present? -%>>
<%= link_to menu_branch.title, menu_branch.url %>
$ git pull resolve
error: unknown object type 5 at offset 2058537 in .git/objects/pack/pack-4090ab9e57325d3b15bbf02234e4febfc308d715.pack
error: failed to read object 501702ec6bba6ed1c06df5acae4b37aa0f06ae9b at offset 2058537 from .git/objects/pack/pack-4090ab9e57325d3b15bbf02234e4febfc308d715.pack
fatal: object 501702ec6bba6ed1c06df5acae4b37aa0f06ae9b is corrupted
Processing SessionsController#create (for 69.181.229.66 at 2010-08-26 09:51:34) [POST]
Parameters: {"commit"=>"Sign in", "session"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "login"=>"captproton"}, "action"=>"create", "authenticity_token"=>"V+3vwI8cM01NgQbWgpCvEmzgiOg59yNNQBDObD5eA1s=", "controller"=>"sessions"}
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
/home/heroku_rack/lib/static_assets.rb:9:in `call'
/home/heroku_rack/lib/last_access.rb:25:in `call'
/home/heroku_rack/lib/date_header.rb:14:in `call'
thin (1.2.6) lib/thin/connection.rb:76:in `pre_process'
thin (1.2.6) lib/thin/connection.rb:74:in `catch'
thin (1.2.6) lib/thin/connection.rb:74:in `pre_process'
$ heroku db:pull rainforest-staging
Loaded Taps v0.3.9
Warning: Data in the database 'rainforest-staging' will be overwritten and will not be recoverable.
Are you sure you wish to continue? (y/n)? y
Failed to connect to database:
ArgumentError -> interning empty string
ActiveRecord::StatementInvalid in Admin/portfolioController#index
SQLite3::SQLException: no such table: portfolio_entries: SELECT "portfolio_entries".* FROM "portfolio_entries" WHERE (parent_id IS NULL) ORDER BY lft ASC LIMIT 30 OFFSET 0
Rails.root: /Users/heathertanner/Sites/rainforest2blossom
Application Trace | Framework Trace | Full Trace
Request
Parameters: