Skip to content

Commit

Permalink
Railties typos.
Browse files Browse the repository at this point in the history
  • Loading branch information
rtlechow committed Mar 4, 2011
1 parent 12325cf commit c8dae23
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions railties/lib/rails/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -252,12 +252,12 @@ module Rails
# end
#
# The routes above will automatically point to <tt>MyEngine::ApplicationContoller</tt>. Furthermore, you don't
# need to use longer url helpers like <tt>my_engine_articles_path</tt>. Instead, you shuold simply use
# need to use longer url helpers like <tt>my_engine_articles_path</tt>. Instead, you should simply use
# <tt>articles_path</tt> as you would do with your application.
#
# To make that behaviour consistent with other parts of the framework, an isolated engine also has influence on
# <tt>ActiveModel::Naming</tt>. When you use a namespaced model, like <tt>MyEngine::Article</tt>, it will normally
# use the prefix "my_engine". In an isolated engine, the prefix will be ommited in url helpers and
# use the prefix "my_engine". In an isolated engine, the prefix will be omitted in url helpers and
# form fields for convenience.
#
# polymorphic_url(MyEngine::Article.new) #=> "articles_path"
Expand All @@ -266,7 +266,7 @@ module Rails
# text_field :title #=> <input type="text" name="article[title]" id="article_title" />
# end
#
# Additionaly isolated engine will set its name according to namespace, so
# Additionally isolated engine will set its name according to namespace, so
# MyEngine::Engine.engine_name #=> "my_engine". It will also set MyEngine.table_name_prefix
# to "my_engine_", changing MyEngine::Article model to use my_engine_article table.
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Configure Rails Envinronment
# Configure Rails Environment
ENV["RAILS_ENV"] = "test"

require File.expand_path("../dummy/config/environment.rb", __FILE__)
Expand Down
2 changes: 1 addition & 1 deletion railties/lib/rails/generators/resource_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def controller_i18n_scope
@controller_i18n_scope ||= controller_file_path.gsub('/', '.')
end

# Loads the ORM::Generators::ActiveModel class. This class is responsable
# Loads the ORM::Generators::ActiveModel class. This class is responsible
# to tell scaffold entities how to generate an specific method for the
# ORM. Check Rails::Generators::ActiveModel for more information.
def orm_class
Expand Down
2 changes: 1 addition & 1 deletion railties/lib/rails/railtie/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def app_middleware

# This allows you to modify application's generators from Railties.
#
# Values set on app_generators will become defaults for applicaiton, unless
# Values set on app_generators will become defaults for application, unless
# application overwrites them.
def app_generators
@@app_generators ||= Rails::Configuration::Generators.new
Expand Down

0 comments on commit c8dae23

Please sign in to comment.