Skip to content
This repository has been archived by the owner on Aug 23, 2022. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:lifo/docrails
Browse files Browse the repository at this point in the history
Conflicts:
	railties/guides/source/getting_started.textile
  • Loading branch information
vijaydev committed Mar 17, 2012
2 parents 39514af + bf94f1c commit 9d06b49
Show file tree
Hide file tree
Showing 6 changed files with 706 additions and 453 deletions.
8 changes: 4 additions & 4 deletions actionpack/lib/action_view/template/resolver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def extract_handler_and_format(path, default_formats)
end
end

# A resolver that loads files from the filesystem. It allows to set your own
# A resolver that loads files from the filesystem. It allows setting your own
# resolving pattern. Such pattern can be a glob string supported by some variables.
#
# ==== Examples
Expand All @@ -192,7 +192,7 @@ def extract_handler_and_format(path, default_formats)
#
# FileSystemResolver.new("/path/to/views", ":prefix/{:formats/,}:action{.:locale,}{.:formats,}{.:handlers,}")
#
# If you don't specify pattern then the default will be used.
# If you don't specify a pattern then the default will be used.
#
# In order to use any of the customized resolvers above in a Rails application, you just need
# to configure ActionController::Base.view_paths in an initializer, for example:
Expand All @@ -204,10 +204,10 @@ def extract_handler_and_format(path, default_formats)
#
# ==== Pattern format and variables
#
# Pattern have to be a valid glob string, and it allows you to use the
# Pattern has to be a valid glob string, and it allows you to use the
# following variables:
#
# * <tt>:prefix</tt> - usualy the controller path
# * <tt>:prefix</tt> - usually the controller path
# * <tt>:action</tt> - name of the action
# * <tt>:locale</tt> - possible locale versions
# * <tt>:formats</tt> - possible request formats (for example html, json, xml...)
Expand Down
2 changes: 1 addition & 1 deletion railties/guides/source/action_mailer_basics.textile
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ It is possible to send email to one or more recipients in one email (for e.g. in

<ruby>
class AdminMailer < ActionMailer::Base
default :to => Proc.new { Admin.all.map(&:email) },
default :to => Proc.new { Admin.pluck(:email) },
:from => "[email protected]"

def new_registration(user)
Expand Down
Loading

0 comments on commit 9d06b49

Please sign in to comment.