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
# Error | |
Using Cucumber | |
Preloading Rails environment | |
Loading Spork.prefork block... | |
undefined method `World' for main:Object (NoMethodError) | |
/Users/Spencer/.rvm/gems/ruby-1.9.2-p180@sporkfail/gems/cucumber-rails-1.0.0/lib/cucumber/rails/world.rb:24:in `<top (required)>' | |
/Users/Spencer/.rvm/gems/ruby-1.9.2-p180@sporkfail/gems/activesupport-3.1.0.rc4/lib/active_support/dependencies.rb:237:in `require' | |
/Users/Spencer/.rvm/gems/ruby-1.9.2-p180@sporkfail/gems/activesupport-3.1.0.rc4/lib/active_support/dependencies.rb:237:in `block in require' | |
/Users/Spencer/.rvm/gems/ruby-1.9.2-p180@sporkfail/gems/activesupport-3.1.0.rc4/lib/active_support/dependencies.rb:225:in `load_dependency' |
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
worker_processes 1; | |
pid /usr/local/nginx/logs/nginx.pid; | |
events { | |
worker_connections 1024; | |
} | |
http { |
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
// jQuery Textfield Labels | |
// Valabel == Value + Label | |
// by Spencer Steffen | |
// Citrus Media Group | |
// [email protected] | |
;(function($) { | |
var version = '0.1.0'; |
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
NightOut::Application.routes.draw do | |
mount NightOutCore::Engine => '/' | |
mount NightOutCms::Engine => '/admin' | |
mount NightOutClient::Engine => '/client' | |
mount NightOutMobile::Engine => '/m' | |
root :to => "core/root#index" | |
end |
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
class ActiveSupport::IntegrationCase < ActiveSupport::TestCase | |
include Capybara | |
include Rails.application.routes.url_helpers | |
self.use_transactional_fixtures = false | |
# Checks for missing translations after each test | |
teardown do | |
unless source.blank? |
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
1) Error: | |
test: Blog::PostsController should get the blog index. (Blog::PostsControllerTest): | |
ActionController::RoutingError: No route matches {:controller=>"blog/posts"} | |
/Users/Spencer/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_dispatch/routing/route_set.rb:424:in `raise_routing_error' | |
/Users/Spencer/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_dispatch/routing/route_set.rb:406:in `rescue in generate' | |
/Users/Spencer/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_dispatch/routing/route_set.rb:395:in `generate' | |
/Users/Spencer/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_dispatch/routing/route_set.rb:453:in `generate' | |
/Users/Spencer/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_dispatch/routing/route_set.rb:449:in `generate_extras' | |
/Users/Spencer/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_dispatch/routing/route_set.rb:445:in `extra_keys' | |
/Users/Spencer/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0. |
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
<% option_count = 0 %> | |
<%= form_for :order, :url => populate_orders_url do |f| %> | |
<% if @product.has_variants? %> | |
<div id="product-variants"> | |
<% if defined?(@options) && [email protected]? %> | |
<% @options.each_with_index do |option,index| %> | |
<% option_count += 1 %> | |
<% name = option[0].name.downcase %> | |
<div class="product-options"> | |
<h2>Choose Your <%= name.capitalize %></h2> |
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
# append to Rakefile | |
desc "preps the testing environment" | |
task :test_prep do | |
require 'generators/dummy_generator' | |
DummyGenerator.new.run! | |
end |
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
Spencer@mbpro $ rails s | |
NOTE: Gem::Specification#has_rdoc= is deprecated with no replacement. It will be removed on or after 2011-10-01. | |
Gem::Specification#has_rdoc= called from /usr/local/lib/ruby/gems/1.9.1/specifications/actionmailer-3.1.0.beta1.gemspec:19. | |
NOTE: Gem::Specification#has_rdoc= is deprecated with no replacement. It will be removed on or after 2011-10-01. | |
Gem::Specification#has_rdoc= called from /usr/local/lib/ruby/gems/1.9.1/specifications/actionpack-3.1.0.beta1.gemspec:19. | |
NOTE: Gem::Specification#has_rdoc= is deprecated with no replacement. It will be removed on or after 2011-10-01. | |
Gem::Specification#has_rdoc= called from /usr/local/lib/ruby/gems/1.9.1/specifications/activemodel-3.1.0.beta1.gemspec:18. | |
NOTE: Gem::Specification#has_rdoc= is deprecated with no replacement. It will be removed on or after 2011-10-01. | |
Gem::Specification#has_rdoc= called from /usr/local/lib/ruby/gems/1.9.1/specifications/activerecord-3.1.0.beta1.gemspec:21. | |
NOTE: Gem::Specification#has_rdoc= is deprecated with n |
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
# routes.rb | |
Rails.application.routes.draw do | |
scope(:module => "News") do | |
constraints( | |
:year => /\d{4}/, | |
:month => /\d{1,2}/, | |
:day => /\d{1,2}/ | |
) do |