My Recent Pastes (113 and counting)

Pastes by captproton (113 and counting)

Pages:

Below are the 15 most recent pasties by captproton.

August 19, 2009
1:40PM EDT
by captproton

## How to take query out of view partial?

<li>
  <h2><%= link_to spiel_type.context.capitalize, :controller => "articles", :action => "index", :context => spiel_type.context %></h2> 

August 17, 2009
10:45AM EDT
by captproton

##List with a sublist

<% if !@spiel_types.blank? %>
          <ul class="secondary-list">
                  <% @spiel_types.each do |spiel_type| %>

August 06, 2009
7:55PM EDT
by captproton

## heroku error

$ heroku logs
==> log/server_38490_301eb5c_125c_41114.log <==
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/vendor/rack-1.0/rack.rb:17: warning: already initialized constant VERSION

August 06, 2009
7:17PM EDT
by captproton

## heroku.rake

namespace :heroku do
  task :config do
    puts "Reading config/config.yml and sending production configuration variables to Heroku..."

August 06, 2009
6:48PM EDT
by captproton

## $ rake heroku:config

$ rake heroku:config
(in /Users/heathertanner/Sites/rails/eldorado)
Reading config/config.yml and sending production configuration variables to Heroku...

August 06, 2009
6:47PM EDT
by captproton

##Production.rb

config.cache_classes = true
config.action_controller.consider_all_requests_local = false
config.action_controller.perform_caching = true

August 06, 2009
6:42PM EDT
by captproton

##config.yml

development:
  session_key: eldorado_development
  session_secret: ESl6X3oKM1i1RRrD2QLwUUzz9jr1zxNO

August 06, 2009
6:40PM EDT
by captproton

## environment.rb

RAILS_GEM_VERSION = '2.3.2' unless defined? RAILS_GEM_VERSION
require File.join(File.dirname(__FILE__), 'boot')

August 06, 2009
6:36PM EDT
by captproton

## Heroku
App failed to start

/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/vendor/rack-1.0/rack.rb:17: warning: already initialized constant VERSION
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/session/cookie_store.rb:163:in `ensure_session_key': A key is required to write a cookie containing the session data. Use config.action_controller.session = { :key => "_myapp_session", :secret => "some secret phrase" } in config/environment.rb (ArgumentError)

August 05, 2009
6:45PM EDT
by captproton

$ ps
  PID TTY           TIME CMD
17144 ttys000    0:00.01 -bash
17616 ttys000   11:45.28 ruby script/server
17711 ttys001    0:00.01 -bash

August 05, 2009
2:50PM EDT
by captproton

## Restful Auth error?

$ rake test
(in /Users/heathertanner/Sites/rails/pomodo_on_rails)
/opt/local/bin/ruby -I"lib:test" "/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "test/unit/account_mailer_test.rb" "test/unit/account_test.rb" "test/unit/address_test.rb" "test/unit/assignment_test.rb" "test/unit/project_category_test.rb" "test/unit/project_test.rb" "test/unit/sprint_test.rb" "test/unit/task_test.rb" "test/unit/user_test.rb" "test/unit/workunit_test.rb" 

July 25, 2009
3:32PM EDT
by captproton

## rake test


  1) Error:
test_should_create_config(ConfigsControllerTest):

July 23, 2009
8:46PM EDT
by captproton

Errors running test:functionals!
paloozahub:eldorado heathertanner$ gs
# On branch restfulx-setup
nothing to commit (working directory clean)
paloozahub:eldorado heathertanner$ rake test

July 22, 2009
9:40PM EDT
by captproton

## El Dorodo routes

ActionController::Routing::Routes.draw do |map|
  map.resources :viewings

July 22, 2009
3:04PM EDT
by captproton

$ github pull defunkt
Switching to defunkt-master
/opt/local/lib/ruby/gems/1.8/gems/defunkt-github-0.3.4/bin/../lib/github/command.rb:57:in `exec': Operation not supported - git checkout -b defunkt/master defunkt/master (Errno::E045)
        from /opt/local/lib/ruby/gems/1.8/gems/defunkt-github-0.3.4/bin/../lib/github/command.rb:57:in `send'
        from /opt/local/lib/ruby/gems/1.8/gems/defunkt-github-0.3.4/bin/../lib/github/command.rb:57:in `run'

Next page