Permalink
Browse files

Remove all but the RAILS_DEFAULT_LOGGER deprecation warnings

  • Loading branch information...
1 parent 8a3ccda commit 6a700ca210474b3ba8af53e344774156302e8751 @kunklejr kunklejr committed Jun 25, 2011
View
@@ -3,6 +3,7 @@ source :gemcutter
gem "rails", "~> 3.0.0"
gem "mysql", "~> 2.8"
gem "webrat", "~> 0.7.0"
+gem "jeweler"
if RUBY_VERSION < '1.9'
gem "ruby-debug", ">= 0.10.3"
View
@@ -2,7 +2,7 @@
require "rake"
require "rake/testtask"
-require "rake/rdoctask"
+require "rdoc/task"
require "fileutils"
require File.expand_path("../lib/rails_metrics/version", __FILE__)
@@ -30,7 +30,7 @@ Rake::TestTask.new(:test) do |t|
end
desc "Generate documentation for RailsMetrics"
-Rake::RDocTask.new(:rdoc) do |rdoc|
+RDoc::Task.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = "rdoc"
rdoc.title = "RailsMetrics"
rdoc.options << "--line-numbers" << "--inline-source"
View
@@ -5,6 +5,5 @@ require File.expand_path('../config/application', __FILE__)
require 'rake'
require 'rake/testtask'
-require 'rake/rdoctask'
Rails::Application.load_tasks
@@ -1,5 +1,11 @@
-<% form_for(@user) do |f| %>
- <%= f.error_messages %>
+<%= form_for(@user) do |f| %>
+ <% if @user.errors.any? %>
+ <ul>
+ <% @user.errors.full_messages.each do |msg| %>
+ <li><%= msg %></li>
+ <% end %>
+ </ul>
+ <% end %>
<div class="field">
<%= f.label :name %><br />
@@ -26,4 +26,6 @@
# 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.active_support.deprecation = :stderr
end
@@ -4,4 +4,4 @@
# If you change this key, all old signed cookies 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.cookie_verifier_secret = 'db28d7ac0ee4317c045ec2efc0f073c2a0d03abfa90a1a2ea5b0eb5c0a50325792f79be6a0fb3797ec4376e4a9da3edf61dc85569a32e5dcb7e55148d6a49c5a'
+Dummy::Application.config.secret_token = 'db28d7ac0ee4317c045ec2efc0f073c2a0d03abfa90a1a2ea5b0eb5c0a50325792f79be6a0fb3797ec4376e4a9da3edf61dc85569a32e5dcb7e55148d6a49c5a'
@@ -1,15 +1,8 @@
# 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 => '_dummy_session',
- :secret => '3bd151c2e33fc860c04c1deb5b9b456f800c6b737fc30f4bac49cb3363e3f806e8529e8b5d18fc324b4de08bc37b01b245f2cb380dbe43d5284438598ec35b3f'
-}
+Dummy::Application.config.session_store :cookie_store, :key => '_dummy_session', :secret => '3bd151c2e33fc860c04c1deb5b9b456f800c6b737fc30f4bac49cb3363e3f806e8529e8b5d18fc324b4de08bc37b01b245f2cb380dbe43d5284438598ec35b3f'
# 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
+# (create the session table with "rails generate session_migration")
+# Dummy::Application.config.session_store :active_record_store
@@ -1,4 +1,4 @@
-Dummy::Application.routes.draw do |map|
+Dummy::Application.routes.draw do
resources :users
# The priority is based upon order of creation:

0 comments on commit 6a700ca

Please sign in to comment.