提交 e2ad603f 编写于 作者: J Jeremy Kemper

Normalize whitespace. Closes #8385 [Time Pope]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6869 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 d3b5db89
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot'
require 'commands/about'
\ No newline at end of file
require 'commands/about'
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot'
require 'commands/console'
\ No newline at end of file
require 'commands/console'
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot'
require 'commands/destroy'
\ No newline at end of file
require 'commands/destroy'
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot'
require 'commands/generate'
\ No newline at end of file
require 'commands/generate'
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot'
require 'commands/plugin'
\ No newline at end of file
require 'commands/plugin'
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot'
require 'commands/runner'
\ No newline at end of file
require 'commands/runner'
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot'
require 'commands/server'
\ No newline at end of file
require 'commands/server'
......@@ -37,4 +37,4 @@ RewriteRule ^(.*)$ dispatch.cgi [QSA,L]
# Example:
# ErrorDocument 500 /500.html
ErrorDocument 500 "<h2>Application error</h2>Rails application failed to start properly"
\ No newline at end of file
ErrorDocument 500 "<h2>Application error</h2>Rails application failed to start properly"
......@@ -45,4 +45,4 @@ production:
socket: <%= socket %>
<% else -%>
host: localhost
<% end -%>
\ No newline at end of file
<% end -%>
......@@ -5,4 +5,4 @@
# inflect.singular /^(ox)en/i, '\1'
# inflect.irregular 'person', 'people'
# inflect.uncountable %w( fish sheep )
# end
\ No newline at end of file
# end
# Add new mime types for use in respond_to blocks:
# Mime::Type.register "text/richtext", :rtf
# Mime::Type.register "application/x-mobile", :mobile
\ No newline at end of file
# Mime::Type.register "application/x-mobile", :mobile
ActionController::Routing::Routes.draw do |map|
# The priority is based upon order of creation: first created -> highest priority.
# Sample of regular route:
# map.connect 'products/:id', :controller => 'catalog', :action => 'view'
# Keep in mind you can assign values other than :controller and :action
......@@ -8,7 +8,7 @@
# Sample of named route:
# map.purchase 'products/:id/purchase', :controller => 'catalog', :action => 'purchase'
# This route can be invoked with purchase_url(:id => product.id)
# Sample resource route (maps HTTP verbs to controller actions automatically):
# map.resources :products
......@@ -16,7 +16,7 @@
# map.resources :products, :member => { :short => :get, :toggle => :post }, :collection => { :sold => :get }
# Sample resource route with sub-resources:
# map.resources :products, :has_many => [ :comments, :sales ], :has_ony => :seller
# map.resources :products, :has_many => [ :comments, :sales ], :has_one => :seller
# You can have the root of your site routed with map.root -- just remember to delete public/index.html.
# map.root :controller => "welcome"
......@@ -24,4 +24,4 @@
# Install the default routes as the lowest priority.
map.connect ':controller/:action/:id'
map.connect ':controller/:action/:id.:format'
end
\ No newline at end of file
end
# Be sure to restart your web server when you modify this file.
# Uncomment below to force Rails into production mode when
# Uncomment below to force Rails into production mode when
# you don't control web/app server and can't set it the proper way
# ENV['RAILS_ENV'] ||= 'production'
......@@ -12,7 +12,7 @@
Rails::Initializer.run do |config|
# Settings in config/environments/* take precedence over those specified here
# Skip frameworks you're not going to use (only works if using vendor/rails)
# config.frameworks -= [ :active_resource, :action_mailer ]
......@@ -22,7 +22,7 @@
# Add additional load paths for your own custom dirs
# config.load_paths += %W( #{RAILS_ROOT}/extras )
# Force all environments to use the same logger level
# Force all environments to use the same logger level
# (by default production uses :info, the others :debug)
# config.log_level = :debug
......@@ -38,7 +38,7 @@
# config.action_controller.session_store = :active_record_store
# 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,
# 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
......@@ -49,7 +49,7 @@
# config.active_record.default_timezone = :utc
# See Rails::Configuration for more options
# Application configuration should go into files in config/initializers
# -- all .rb files in that directory is automatically loaded
end
\ No newline at end of file
end
......@@ -16,4 +16,4 @@
# Tell ActionMailer 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
\ No newline at end of file
config.action_mailer.delivery_method = :test
......@@ -8,4 +8,4 @@ two:
id: 2
<% for attribute in attributes -%>
<%= attribute.name %>: <%= attribute.default %>
<% end -%>
\ No newline at end of file
<% end -%>
......@@ -17,4 +17,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
\ No newline at end of file
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
......@@ -10,4 +10,4 @@ Example
Example goes here.
Copyright (c) 2007 [name of plugin creator], released under the MIT license
\ No newline at end of file
Copyright (c) 2007 [name of plugin creator], released under the MIT license
......@@ -5,4 +5,4 @@ Example:
./script/generate <%= file_name %> Thing
This will create:
what/will/it/create
\ No newline at end of file
what/will/it/create
# Include hook code here
\ No newline at end of file
# Include hook code here
# desc "Explaining what the task does"
# task :<%= file_name %> do
# # Task goes here
# end
\ No newline at end of file
# end
......@@ -15,4 +15,4 @@ Description:
Examples:
./script/generate resource post
./script/generate resource post title:string created_on:date body:text published:boolean
./script/generate resource purchase order_id:integer created_at:datetime amount:decimal
\ No newline at end of file
./script/generate resource purchase order_id:integer created_at:datetime amount:decimal
class <%= controller_class_name %>Controller < ApplicationController
end
\ No newline at end of file
end
......@@ -23,12 +23,12 @@ def test_should_get_new
get :new
assert_response :success
end
def test_should_create_<%= file_name %>
assert_difference('<%= class_name %>.count') do
post :create, :<%= file_name %> => { }
end
assert_redirected_to <%= file_name %>_path(assigns(:<%= file_name %>))
end
......@@ -41,17 +41,17 @@ def test_should_get_edit
get :edit, :id => 1
assert_response :success
end
def test_should_update_<%= file_name %>
put :update, :id => 1, :<%= file_name %> => { }
assert_redirected_to <%= file_name %>_path(assigns(:<%= file_name %>))
end
def test_should_destroy_<%= file_name %>
assert_difference('<%= class_name %>.count', -1) do
delete :destroy, :id => 1
end
assert_redirected_to <%= table_name %>_path
end
end
......@@ -16,4 +16,4 @@
<%% end %>
<%%= link_to 'Show', @<%= singular_name %> %> |
<%%= link_to 'Back', <%= plural_name %>_path %>
\ No newline at end of file
<%%= link_to 'Back', <%= plural_name %>_path %>
......@@ -6,7 +6,7 @@
<th><%= attribute.column.human_name %></th>
<% end -%>
</tr>
<%% for <%= singular_name %> in @<%= plural_name %> %>
<tr>
<% for attribute in attributes -%>
......@@ -21,4 +21,4 @@
<br />
<%%= link_to 'New <%= singular_name %>', new_<%= singular_name %>_path %>
\ No newline at end of file
<%%= link_to 'New <%= singular_name %>', new_<%= singular_name %>_path %>
......@@ -15,4 +15,4 @@
</p>
<%% end %>
<%%= link_to 'Back', <%= plural_name %>_path %>
\ No newline at end of file
<%%= link_to 'Back', <%= plural_name %>_path %>
......@@ -7,4 +7,4 @@
<% end -%>
<%%= link_to 'Edit', edit_<%= singular_name %>_path(@<%= singular_name %>) %> |
<%%= link_to 'Back', <%= plural_name %>_path %>
\ No newline at end of file
<%%= link_to 'Back', <%= plural_name %>_path %>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册