Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Cleanup

  • Loading branch information...
commit ce555a84ceffb4ec52410c745484943155f96859 1 parent ac115ce
@joshuaclayton authored
View
3  app/controllers/application_controller.rb
@@ -1,6 +1,3 @@
-# Filters added to this controller apply to all controllers in the application.
-# Likewise, all the methods added will be available for all controllers.
-
class ApplicationController < ActionController::Base
helper :all
protect_from_forgery
View
1  app/helpers/application_helper.rb
@@ -1,3 +1,2 @@
-# Methods added to this helper will be available to all templates in the application.
module ApplicationHelper
end
View
4 app/views/layouts/application.html.erb
@@ -8,9 +8,7 @@
</head>
<body>
<div class="container content">
- <div class="header group">
- <h1 class="col-24">Peas</h1>
- </div>
+ <h1>Peas</h1>
<%= yield %>
<div class="footer">
<p>Copyright &copy;2009</p>
View
2  app/views/peas/show.html.erb
@@ -1,2 +1,2 @@
<%= h @pea.long_url %> was shortened to:
-<%= link_to peapod_url(:pea_key => @pea.key), peapod_url(:pea_key => @pea.key) %>
+<%= link_to peapod_url(@pea.key), peapod_url(@pea.key) %>
View
2  config/environment.rb
@@ -6,5 +6,5 @@
config.gem "josevalim-inherited_resources",
:lib => "inherited_resources",
:source => "http://gems.github.com"
- config.time_zone = 'UTC'
+ config.time_zone = "UTC"
end
View
22 config/environments/cucumber.rb
@@ -1,22 +0,0 @@
-config.cache_classes = true # This must be true for Cucumber to operate correctly!
-
-# Log error messages when you accidentally call methods on nil.
-config.whiny_nils = true
-
-# Show full error reports and disable caching
-config.action_controller.consider_all_requests_local = true
-config.action_controller.perform_caching = false
-
-# Disable request forgery protection in test environment
-config.action_controller.allow_forgery_protection = false
-
-# Tell Action Mailer not to deliver emails to the real world.
-# The :test delivery method accumulates sent emails in the
-# ActionMailer::Base.deliveries array.
-config.action_mailer.delivery_method = :test
-
-config.gem 'cucumber', :lib => false, :version => '>=0.3.104' unless File.directory?(File.join(Rails.root, 'vendor/plugins/cucumber'))
-config.gem 'webrat', :lib => false, :version => '>=0.5.0' unless File.directory?(File.join(Rails.root, 'vendor/plugins/webrat'))
-config.gem 'rspec', :lib => false, :version => '>=1.2.8' unless File.directory?(File.join(Rails.root, 'vendor/plugins/rspec'))
-config.gem 'rspec-rails', :lib => false, :version => '>=1.2.7.1' unless File.directory?(File.join(Rails.root, 'vendor/plugins/rspec-rails'))
-
View
10 config/environments/development.rb
@@ -1,17 +1,9 @@
-# Settings specified here will take precedence over those in config/environment.rb
-
-# In the development environment your application's code is reloaded on
-# every request. This slows down response time but is perfect for development
-# since you don't have to restart the webserver when you make code changes.
config.cache_classes = false
-# Log error messages when you accidentally call methods on nil.
config.whiny_nils = true
-# Show full error reports and disable caching
config.action_controller.consider_all_requests_local = true
config.action_view.debug_rjs = true
config.action_controller.perform_caching = false
-# Don't care if the mailer can't send
-config.action_mailer.raise_delivery_errors = false
+config.action_mailer.raise_delivery_errors = false
View
23 config/environments/production.rb
@@ -1,28 +1,5 @@
-# Settings specified here will take precedence over those in config/environment.rb
-
-# The production environment is meant for finished, "live" apps.
-# Code is not reloaded between requests
config.cache_classes = true
-# Full error reports are disabled and caching is turned on
config.action_controller.consider_all_requests_local = false
config.action_controller.perform_caching = true
config.action_view.cache_template_loading = true
-
-# See everything in the log (default is :info)
-# config.log_level = :debug
-
-# Use a different logger for distributed setups
-# config.logger = SyslogLogger.new
-
-# Use a different cache store in production
-# config.cache_store = :mem_cache_store
-
-# Enable serving of images, stylesheets, and javascripts from an asset server
-# config.action_controller.asset_host = "http://assets.example.com"
-
-# Disable delivery errors, bad email addresses will be ignored
-# config.action_mailer.raise_delivery_errors = false
-
-# Enable threaded mode
-# config.threadsafe!
View
17 config/environments/test.rb
@@ -1,32 +1,15 @@
-# Settings specified here will take precedence over those in config/environment.rb
-
-# The test environment is used exclusively to run your application's
-# test suite. You never need to work with it otherwise. Remember that
-# your test database is "scratch space" for the test suite and is wiped
-# and recreated between test runs. Don't rely on the data there!
config.cache_classes = true
-# Log error messages when you accidentally call methods on nil.
config.whiny_nils = true
-# Show full error reports and disable caching
config.action_controller.consider_all_requests_local = true
config.action_controller.perform_caching = false
config.action_view.cache_template_loading = true
-# Disable request forgery protection in test environment
config.action_controller.allow_forgery_protection = false
-# Tell Action Mailer not to deliver emails to the real world.
-# The :test delivery method accumulates sent emails in the
-# ActionMailer::Base.deliveries array.
config.action_mailer.delivery_method = :test
-# Use SQL instead of Active Record's schema dumper when creating the test database.
-# This is necessary if your schema can't be completely dumped by the schema dumper,
-# like if you have constraints or database-specific column types
-# config.active_record.schema_format = :sql
-
config.gem "cucumber", :version => ">= 0.4.2"
config.gem "thoughtbot-shoulda", :lib => "shoulda", :version => ">= 2.10.2"
config.gem "thoughtbot-factory_girl", :lib => "factory_girl", :version => ">= 1.2.2"
View
7 config/initializers/backtrace_silencers.rb
@@ -1,7 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
-# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
-
-# You can also remove all the silencers if you're trying do debug a problem that might steem from framework code.
-# Rails.backtrace_cleaner.remove_silencers!
View
10 config/initializers/inflections.rb
@@ -1,10 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# Add new inflection rules using the following format
-# (all these examples are active by default):
-# ActiveSupport::Inflector.inflections do |inflect|
-# inflect.plural /^(ox)$/i, '\1en'
-# inflect.singular /^(ox)en/i, '\1'
-# inflect.irregular 'person', 'people'
-# inflect.uncountable %w( fish sheep )
-# end
View
5 config/initializers/mime_types.rb
@@ -1,5 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# Add new mime types for use in respond_to blocks:
-# Mime::Type.register "text/richtext", :rtf
-# Mime::Type.register_alias "text/html", :iphone
View
11 config/initializers/session_store.rb
@@ -1,15 +1,4 @@
-# Be sure to restart your server when you modify this file.
-
-# Your secret key for verifying cookie session data integrity.
-# If you change this key, all old sessions will become invalid!
-# Make sure the secret is at least 30 characters and all random,
-# no regular words or you'll be exposed to dictionary attacks.
ActionController::Base.session = {
:key => '_peas_session',
:secret => '684be33c674d6092a36c3dab9d6171a8639e3b9327c1f7c66c17adf413dbdf91831f4988a5aeb21a2556a41d5a813cabd45a259062353fadfd92df8ce3d1fd92'
}
-
-# Use the database for sessions instead of the cookie-based default,
-# which shouldn't be used to store highly confidential information
-# (create the session table with "rake db:sessions:create")
-# ActionController::Base.session_store = :active_record_store
View
BIN  public/images/rails.png
Deleted file not rendered
View
2  public/javascripts/application.js
@@ -1,2 +0,0 @@
-// Place your application-specific JavaScript functions and classes here
-// This file is automatically included by javascript_include_tag :defaults
Please sign in to comment.
Something went wrong with that request. Please try again.