treat 1.1.2 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. data/LICENSE +1 -1
  2. data/lib/treat/config/core/acronyms.rb +2 -1
  3. data/lib/treat/config/libraries/punkt.rb +1 -0
  4. data/lib/treat/config/libraries/reuters.rb +1 -0
  5. data/lib/treat/core/data_set.rb +125 -66
  6. data/lib/treat/core/export.rb +59 -0
  7. data/lib/treat/core/problem.rb +101 -18
  8. data/lib/treat/core/question.rb +23 -7
  9. data/lib/treat/entities/abilities/iterable.rb +7 -3
  10. data/lib/treat/entities/abilities/stringable.rb +5 -5
  11. data/lib/treat/entities/collection.rb +10 -6
  12. data/lib/treat/entities/entity.rb +1 -1
  13. data/lib/treat/helpers/objtohash.rb +8 -0
  14. data/lib/treat/loaders/stanford.rb +10 -8
  15. data/lib/treat/version.rb +1 -1
  16. data/lib/treat/workers/formatters/serializers/mongo.rb +2 -2
  17. data/lib/treat/workers/formatters/serializers/xml.rb +7 -7
  18. data/lib/treat/workers/formatters/unserializers/mongo.rb +16 -8
  19. data/lib/treat/workers/formatters/unserializers/xml.rb +5 -5
  20. data/lib/treat/workers/formatters/visualizers/dot.rb +7 -7
  21. data/lib/treat/workers/learners/classifiers/id3.rb +4 -3
  22. data/lib/treat/workers/learners/classifiers/linear.rb +53 -0
  23. data/lib/treat/workers/learners/classifiers/mlp.rb +5 -5
  24. data/lib/treat/workers/learners/classifiers/svm.rb +31 -0
  25. data/lib/treat/workers/lexicalizers/taggers/stanford.rb +4 -2
  26. data/lib/treat/workers/processors/parsers/enju.rb +17 -17
  27. data/lib/treat/workers/processors/segmenters/punkt.rb +3 -1
  28. data/spec/collection.rb +3 -3
  29. data/spec/core.rb +430 -21
  30. data/spec/document.rb +1 -1
  31. data/spec/entity.rb +2 -8
  32. data/spec/helper.rb +34 -0
  33. data/spec/phrase.rb +1 -1
  34. data/spec/sandbox.rb +31 -8
  35. data/spec/token.rb +1 -1
  36. data/spec/treat.rb +1 -1
  37. data/spec/word.rb +1 -1
  38. data/spec/zone.rb +1 -1
  39. metadata +9 -8
  40. data/files/3_2_release_notes.html +0 -766
  41. data/files/bc-monty-robinson-sentencing.html +0 -1569
  42. data/files/syria-aleppo-clashes.html +0 -1376
  43. data/lib/treat/core/feature.rb +0 -42
  44. data/lib/treat/core/node.rb +0 -251
  45. data/spec/node.rb +0 -117
@@ -1,766 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
-
4
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
- <head>
6
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
7
-
8
- <title>Ruby on Rails Guides: Ruby on Rails 3.2 Release Notes</title>
9
-
10
- <link rel="stylesheet" type="text/css" href="stylesheets/style.css" />
11
- <link rel="stylesheet" type="text/css" href="stylesheets/print.css" media="print" />
12
-
13
- <link rel="stylesheet" type="text/css" href="stylesheets/syntaxhighlighter/shCore.css" />
14
- <link rel="stylesheet" type="text/css" href="stylesheets/syntaxhighlighter/shThemeRailsGuides.css" />
15
-
16
- <link rel="stylesheet" type="text/css" href="stylesheets/fixes.css" />
17
- </head>
18
- <body class="guide">
19
- <div id="topNav">
20
- <div class="wrapper">
21
- <strong>More at <a href="http://rubyonrails.org/">rubyonrails.org:</a> </strong>
22
- <a href="http://rubyonrails.org/">Overview</a> |
23
- <a href="http://rubyonrails.org/download">Download</a> |
24
- <a href="http://rubyonrails.org/deploy">Deploy</a> |
25
- <a href="https://github.com/rails/rails">Code</a> |
26
- <a href="http://rubyonrails.org/screencasts">Screencasts</a> |
27
- <a href="http://rubyonrails.org/documentation">Documentation</a> |
28
- <a href="http://rubyonrails.org/ecosystem">Ecosystem</a> |
29
- <a href="http://rubyonrails.org/community">Community</a> |
30
- <a href="http://weblog.rubyonrails.org/">Blog</a>
31
- </div>
32
- </div>
33
- <div id="header">
34
- <div class="wrapper clearfix">
35
- <h1><a href="index.html" title="Return to home page">Guides.rubyonrails.org</a></h1>
36
- <ul class="nav">
37
- <li><a href="index.html">Home</a></li>
38
- <li class="index"><a href="index.html" onclick="guideMenu(); return false;" id="guidesMenu">Guides Index</a>
39
- <div id="guides" class="clearfix" style="display: none;">
40
- <hr />
41
- <dl class="L">
42
- <dt>Start Here</dt>
43
- <dd><a href="getting_started.html">Getting Started with Rails</a></dd>
44
- <dt>Models</dt>
45
- <dd><a href="migrations.html">Rails Database Migrations</a></dd>
46
- <dd><a href="active_record_validations_callbacks.html">Active Record Validations and Callbacks</a></dd>
47
- <dd><a href="association_basics.html">Active Record Associations</a></dd>
48
- <dd><a href="active_record_querying.html">Active Record Query Interface</a></dd>
49
- <dt>Views</dt>
50
- <dd><a href="layouts_and_rendering.html">Layouts and Rendering in Rails</a></dd>
51
- <dd><a href="form_helpers.html">Action View Form Helpers</a></dd>
52
- <dt>Controllers</dt>
53
- <dd><a href="action_controller_overview.html">Action Controller Overview</a></dd>
54
- <dd><a href="routing.html">Rails Routing from the Outside In</a></dd>
55
- </dl>
56
- <dl class="R">
57
- <dt>Digging Deeper</dt>
58
- <dd><a href="active_support_core_extensions.html">Active Support Core Extensions</a></dd>
59
- <dd><a href="i18n.html">Rails Internationalization API</a></dd>
60
- <dd><a href="security.html">Securing Rails Applications</a></dd>
61
- <dd><a href="debugging_rails_applications.html">Debugging Rails Applications</a></dd>
62
- <dd><a href="performance_testing.html">Performance Testing Rails Applications</a></dd>
63
- <dd><a href="configuring.html">Configuring Rails Applications</a></dd>
64
- <dd><a href="command_line.html">Rails Command Line Tools and Rake Tasks</a></dd>
65
- <dd><a href="asset_pipeline.html">Asset Pipeline</a></dd>
66
- <dt>Extending Rails</dt>
67
- <dd><a href="rails_on_rack.html">Rails on Rack</a></dd>
68
- <dd><a href="generators.html">Creating and Customizing Rails Generators</a></dd>
69
- <dt>Contributing to Ruby on Rails</dt>
70
- <dd><a href="contributing_to_ruby_on_rails.html">Contributing to Ruby on Rails</a></dd>
71
- <dd><a href="api_documentation_guidelines.html">API Documentation Guidelines</a></dd>
72
- <dd><a href="ruby_on_rails_guides_guidelines.html">Ruby on Rails Guides Guidelines</a></dd>
73
- <dt>Release Notes</dt>
74
- <dd><a href="3_2_release_notes.html">Ruby on Rails 3.2 Release Notes</a></dd>
75
- <dd><a href="3_1_release_notes.html">Ruby on Rails 3.1 Release Notes</a></dd>
76
- <dd><a href="3_0_release_notes.html">Ruby on Rails 3.0 Release Notes</a></dd>
77
- <dd><a href="2_3_release_notes.html">Ruby on Rails 2.3 Release Notes</a></dd>
78
- <dd><a href="2_2_release_notes.html">Ruby on Rails 2.2 Release Notes</a></dd>
79
- </dl>
80
- </div>
81
- </li>
82
- <li><a href="contributing_to_ruby_on_rails.html">Contribute</a></li>
83
- <li><a href="credits.html">Credits</a></li>
84
- </ul>
85
- </div>
86
- </div>
87
- <hr class="hide" />
88
-
89
- <div id="feature">
90
- <div class="wrapper">
91
- <h2>Ruby on Rails 3.2 Release Notes</h2>
92
- <p>Highlights in Rails 3.2:</p>
93
- <ul>
94
- <li>Faster Development Mode</li>
95
- <li>New Routing Engine</li>
96
- <li>Automatic Query Explains</li>
97
- <li>Tagged Logging</li>
98
- </ul>
99
- <p>These release notes cover the major changes, but do not include each bug-fix and changes. If you want to see everything, check out the <a href="https://github.com/rails/rails/commits/3-2-stable">list of commits</a> in the main Rails repository on GitHub.</p>
100
-
101
- <div id="subCol">
102
- <h3 class="chapter"><img src="images/chapters_icon.gif" alt="" />Chapters</h3>
103
- <ol class="chapters">
104
- <li><a href="#upgrading-to-rails-3-2">Upgrading to Rails 3.2</a><ul><li><a href="#rails-3-2-requires-at-least-ruby-1-8-7">Rails 3.2 requires at least Ruby 1.8.7</a></li> <li><a href="#what-to-update-in-your-apps">What to update in your apps</a></li></ul></li><li><a href="#creating-a-rails-3-2-application">Creating a Rails 3.2 application</a><ul><li><a href="#vendoring-gems">Vendoring Gems</a></li> <li><a href="#living-on-the-edge">Living on the Edge</a></li></ul></li><li><a href="#major-features">Major Features</a><ul><li><a href="#faster-development-mode-routing">Faster Development Mode &amp; Routing</a></li> <li><a href="#automatic-query-explains">Automatic Query Explains</a></li> <li><a href="#tagged-logging">Tagged Logging</a></li></ul></li><li><a href="#documentation">Documentation</a></li><li><a href="#railties">Railties</a><ul><li><a href="#railties_deprecations">Deprecations</a></li></ul></li><li><a href="#action-mailer">Action Mailer</a></li><li><a href="#action-pack">Action Pack</a><ul><li><a href="#action-controller">Action Controller</a></li> <li><a href="#action-dispatch">Action Dispatch</a></li> <li><a href="#action-view">Action View</a></li> <li><a href="#sprockets">Sprockets</a></li></ul></li><li><a href="#active-record">Active Record</a><ul><li><a href="#activerecord_deprecations">Deprecations</a></li></ul></li><li><a href="#active-model">Active Model</a><ul><li><a href="#activemodel_deprecations">Deprecations</a></li></ul></li><li><a href="#active-resource">Active Resource</a></li><li><a href="#active-support">Active Support</a><ul><li><a href="#activesupport_deprecations">Deprecations</a></li></ul></li><li><a href="#credits">Credits</a></li></ol></div>
105
- </div>
106
- </div>
107
-
108
- <div id="container">
109
- <div class="wrapper">
110
- <div id="mainCol">
111
- <h3 id="upgrading-to-rails-3-2">1 Upgrading to Rails 3.2</h3>
112
- <p>If you&#8217;re upgrading an existing application, it&#8217;s a great idea to have good test coverage before going in. You should also first upgrade to Rails 3.1 in case you haven&#8217;t and make sure your application still runs as expected before attempting an update to Rails 3.2. Then take heed of the following changes:</p>
113
- <h4 id="rails-3-2-requires-at-least-ruby-1-8-7">1.1 Rails 3.2 requires at least Ruby 1.8.7</h4>
114
- <p>Rails 3.2 requires Ruby 1.8.7 or higher. Support for all of the previous Ruby versions has been dropped officially and you should upgrade as early as possible. Rails 3.2 is also compatible with Ruby 1.9.2.</p>
115
- <div class="info"><p>Note that Ruby 1.8.7 p248 and p249 have marshaling bugs that crash Rails. Ruby Enterprise Edition has these fixed since the release of 1.8.7-2010.02. On the 1.9 front, Ruby 1.9.1 is not usable because it outright segfaults, so if you want to use 1.9.x, jump on to 1.9.2 or 1.9.3 for smooth sailing.</p></div>
116
- <h4 id="what-to-update-in-your-apps">1.2 What to update in your apps</h4>
117
- <ul>
118
- <li>Update your Gemfile to depend on
119
- <ul>
120
- <li><tt>rails = 3.2.0</tt></li>
121
- <li><tt>sass-rails ~&gt; 3.2.3</tt></li>
122
- <li><tt>coffee-rails ~&gt; 3.2.1</tt></li>
123
- <li><tt>uglifier &gt;= 1.0.3</tt></li>
124
- </ul></li>
125
- </ul>
126
- <ul>
127
- <li>Rails 3.2 deprecates <tt>vendor/plugins</tt> and Rails 4.0 will remove them completely. You can start replacing these plugins by extracting them as gems and adding them in your Gemfile. If you choose not to make them gems, you can move them into, say, <tt>lib/my_plugin/*</tt> and add an appropriate initializer in <tt>config/initializers/my_plugin.rb</tt>.</li>
128
- </ul>
129
- <ul>
130
- <li>There are a couple of new configuration changes you&#8217;d want to add in <tt>config/environments/development.rb</tt>:</li>
131
- </ul>
132
- <div class="code_container">
133
- <pre class="brush: ruby; gutter: false; toolbar: false">
134
- # Raise exception on mass assignment protection for Active Record models
135
- config.active_record.mass_assignment_sanitizer = :strict
136
-
137
- # Log the query plan for queries taking more than this (works
138
- # with SQLite, MySQL, and PostgreSQL)
139
- config.active_record.auto_explain_threshold_in_seconds = 0.5
140
- </pre>
141
- </div>
142
- <p>The <tt>mass_assignment_sanitizer</tt> config also needs to be added in <tt>config/environments/test.rb</tt>:</p>
143
- <div class="code_container">
144
- <pre class="brush: ruby; gutter: false; toolbar: false">
145
- # Raise exception on mass assignment protection for Active Record models
146
- config.active_record.mass_assignment_sanitizer = :strict
147
- </pre>
148
- </div>
149
- <h3 id="creating-a-rails-3-2-application">2 Creating a Rails 3.2 application</h3>
150
- <div class="code_container">
151
- <pre class="brush: plain; gutter: false; toolbar: false">
152
- # You should have the 'rails' rubygem installed
153
- $ rails new myapp
154
- $ cd myapp
155
- </pre>
156
- </div>
157
- <h4 id="vendoring-gems">2.1 Vendoring Gems</h4>
158
- <p>Rails now uses a <tt>Gemfile</tt> in the application root to determine the gems you require for your application to start. This <tt>Gemfile</tt> is processed by the <a href="https://github.com/carlhuda/bundler">Bundler</a> gem, which then installs all your dependencies. It can even install all the dependencies locally to your application so that it doesn&#8217;t depend on the system gems.</p>
159
- <p>More information: <a href="http://gembundler.com">Bundler homepage</a></p>
160
- <h4 id="living-on-the-edge">2.2 Living on the Edge</h4>
161
- <p><tt>Bundler</tt> and <tt>Gemfile</tt> makes freezing your Rails application easy as pie with the new dedicated <tt>bundle</tt> command. If you want to bundle straight from the Git repository, you can pass the <tt>--edge</tt> flag:</p>
162
- <div class="code_container">
163
- <pre class="brush: plain; gutter: false; toolbar: false">
164
- $ rails new myapp --edge
165
- </pre>
166
- </div>
167
- <p>If you have a local checkout of the Rails repository and want to generate an application using that, you can pass the <tt>--dev</tt> flag:</p>
168
- <div class="code_container">
169
- <pre class="brush: plain; gutter: false; toolbar: false">
170
- $ ruby /path/to/rails/railties/bin/rails new myapp --dev
171
- </pre>
172
- </div>
173
- <h3 id="major-features">3 Major Features</h3>
174
- <h4 id="faster-development-mode-routing">3.1 Faster Development Mode &amp; Routing</h4>
175
- <p>Rails 3.2 comes with a development mode that&#8217;s noticeably faster. Inspired by <a href="https://github.com/paneq/active_reload">Active Reload</a>, Rails reloads classes only when files actually change. The performance gains are dramatic on a larger application. Route recognition also got a bunch faster thanks to the new <a href="https://github.com/rails/journey">Journey</a> engine.</p>
176
- <h4 id="automatic-query-explains">3.2 Automatic Query Explains</h4>
177
- <p>Rails 3.2 comes with a nice feature that explains queries generated by ARel by defining an <tt>explain</tt> method in <tt>ActiveRecord::Relation</tt>. For example, you can run something like <tt>puts Person.active.limit(5).explain</tt> and the query ARel produces is explained. This allows to check for the proper indexes and further optimizations.</p>
178
- <p>Queries that take more than half a second to run are <strong>automatically</strong> explained in the development mode. This threshold, of course, can be changed.</p>
179
- <h4 id="tagged-logging">3.3 Tagged Logging</h4>
180
- <p>When running a multi-user, multi-account application, it&#8217;s a great help to be able to filter the log by who did what. TaggedLogging in Active Support helps in doing exactly that by stamping log lines with subdomains, request ids, and anything else to aid debugging such applications.</p>
181
- <h3 id="documentation">4 Documentation</h3>
182
- <p>From Rails 3.2, the Rails guides are available for the Kindle and free Kindle Reading Apps for the iPad, iPhone, Mac, Android, etc.</p>
183
- <h3 id="railties">5 Railties</h3>
184
- <ul>
185
- <li>Speed up development by only reloading classes if dependencies files changed. This can be turned off by setting <tt>config.reload_classes_only_on_change</tt> to false.</li>
186
- </ul>
187
- <ul>
188
- <li>New applications get a flag <tt>config.active_record.auto_explain_threshold_in_seconds</tt> in the environments configuration files. With a value of <tt>0.5</tt> in <tt>development.rb</tt> and commented out in <tt>production.rb</tt>. No mention in <tt>test.rb</tt>.</li>
189
- </ul>
190
- <ul>
191
- <li>Added <tt>config.exceptions_app</tt> to set the exceptions application invoked by the <tt>ShowException</tt> middleware when an exception happens. Defaults to <tt>ActionDispatch::PublicExceptions.new(Rails.public_path)</tt>.</li>
192
- </ul>
193
- <ul>
194
- <li>Added a <tt>DebugExceptions</tt> middleware which contains features extracted from <tt>ShowExceptions</tt> middleware.</li>
195
- </ul>
196
- <ul>
197
- <li>Display mounted engines&#8217; routes in <tt>rake routes</tt>.</li>
198
- </ul>
199
- <ul>
200
- <li>Allow to change the loading order of railties with <tt>config.railties_order</tt> like:</li>
201
- </ul>
202
- <div class="code_container">
203
- <pre class="brush: ruby; gutter: false; toolbar: false">
204
- config.railties_order = [Blog::Engine, :main_app, :all]
205
- </pre>
206
- </div>
207
- <ul>
208
- <li>Scaffold returns 204 No Content for <span class="caps">API</span> requests without content. This makes scaffold work with jQuery out of the box.</li>
209
- </ul>
210
- <ul>
211
- <li>Update <tt>Rails::Rack::Logger</tt> middleware to apply any tags set in <tt>config.log_tags</tt> to <tt>ActiveSupport::TaggedLogging</tt>. This makes it easy to tag log lines with debug information like subdomain and request id &#8212; both very helpful in debugging multi-user production applications.</li>
212
- </ul>
213
- <ul>
214
- <li>Default options to <tt>rails new</tt> can be set in <tt>~/.railsrc</tt>. You can specify extra command-line arguments to be used every time &#8216;rails new&#8217; runs in the <tt>.railsrc</tt> configuration file in your home directory.</li>
215
- </ul>
216
- <ul>
217
- <li>Add an alias <tt>d</tt> for <tt>destroy</tt>. This works for engines too.</li>
218
- </ul>
219
- <ul>
220
- <li>Attributes on scaffold and model generators default to string. This allows the following: <tt>rails g scaffold Post title body:text author</tt></li>
221
- </ul>
222
- <ul>
223
- <li>Allow scaffold/model/migration generators to accept &#8220;index&#8221; and &#8220;uniq&#8221; modifiers. For example,</li>
224
- </ul>
225
- <div class="code_container">
226
- <pre class="brush: ruby; gutter: false; toolbar: false">
227
- rails g scaffold Post title:string:index author:uniq price:decimal{7,2}
228
- </pre>
229
- </div>
230
- <p>will create indexes for <tt>title</tt> and <tt>author</tt> with the latter being an unique index. Some types such as decimal accept custom options. In the example, <tt>price</tt> will be a decimal column with precision and scale set to 7 and 2 respectively.</p>
231
- <ul>
232
- <li>Turn gem has been removed from default Gemfile.</li>
233
- </ul>
234
- <ul>
235
- <li>Remove old plugin generator <tt>rails generate plugin</tt> in favor of <tt>rails plugin new</tt> command.</li>
236
- </ul>
237
- <ul>
238
- <li>Remove old <tt>config.paths.app.controller</tt> <span class="caps">API</span> in favor of <tt>config.paths[&#8220;app/controller&#8221;]</tt>.</li>
239
- </ul>
240
- <h4 id="railties_deprecations">5.1 Deprecations</h4>
241
- <ul>
242
- <li><tt>Rails::Plugin</tt> is deprecated and will be removed in Rails 4.0. Instead of adding plugins to <tt>vendor/plugins</tt> use gems or bundler with path or git dependencies.</li>
243
- </ul>
244
- <h3 id="action-mailer">6 Action Mailer</h3>
245
- <ul>
246
- <li>Upgraded <tt>mail</tt> version to 2.4.0.</li>
247
- </ul>
248
- <ul>
249
- <li>Removed the old Action Mailer <span class="caps">API</span> which was deprecated since Rails 3.0.</li>
250
- </ul>
251
- <h3 id="action-pack">7 Action Pack</h3>
252
- <h4 id="action-controller">7.1 Action Controller</h4>
253
- <ul>
254
- <li>Make <tt>ActiveSupport::Benchmarkable</tt> a default module for <tt>ActionController::Base,</tt> so the <tt>#benchmark</tt> method is once again available in the controller context like it used to be.</li>
255
- </ul>
256
- <ul>
257
- <li>Added <tt>:gzip</tt> option to <tt>caches_page</tt>. The default option can be configured globally using <tt>page_cache_compression</tt>.</li>
258
- </ul>
259
- <ul>
260
- <li>Rails will now use your default layout (such as &#8220;layouts/application&#8221;) when you specify a layout with <tt>:only</tt> and <tt>:except</tt> condition, and those conditions fail.</li>
261
- </ul>
262
- <div class="code_container">
263
- <pre class="brush: ruby; gutter: false; toolbar: false">
264
- class CarsController
265
- layout 'single_car', :only =&gt; :show
266
- end
267
- </pre>
268
- </div>
269
- <p>Rails will use &#8216;layouts/single_car&#8217; when a request comes in :show action, and use &#8216;layouts/application&#8217; (or &#8216;layouts/cars&#8217;, if exists) when a request comes in for any other actions.</p>
270
- <ul>
271
- <li>form_for is changed to use &#8220;#{action}_#{as}&#8221; as the css class and id if <tt>:as</tt> option is provided. Earlier versions used &#8220;#{as}_#{action}&#8221;.</li>
272
- </ul>
273
- <ul>
274
- <li><tt>ActionController::ParamsWrapper</tt> on ActiveRecord models now only wrap <tt>attr_accessible</tt> attributes if they were set. If not, only the attributes returned by the class method <tt>attribute_names</tt> will be wrapped. This fixes the wrapping of nested attributes by adding them to <tt>attr_accessible</tt>.</li>
275
- </ul>
276
- <ul>
277
- <li>Log &#8220;Filter chain halted as <span class="caps">CALLBACKNAME</span> rendered or redirected&#8221; every time a before callback halts.</li>
278
- </ul>
279
- <ul>
280
- <li><tt>ActionDispatch::ShowExceptions</tt> is refactored. The controller is responsible for choosing to show exceptions. It&#8217;s possible to override <tt>show_detailed_exceptions?</tt> in controllers to specify which requests should provide debugging information on errors.</li>
281
- </ul>
282
- <ul>
283
- <li>Responders now return 204 No Content for <span class="caps">API</span> requests without a response body (as in the new scaffold).</li>
284
- </ul>
285
- <ul>
286
- <li><tt>ActionController::TestCase</tt> cookies is refactored. Assigning cookies for test cases should now use <tt>cookies[]</tt></li>
287
- </ul>
288
- <div class="code_container">
289
- <pre class="brush: ruby; gutter: false; toolbar: false">
290
- cookies[:email] = 'user@example.com'
291
- get :index
292
- assert_equal 'user@example.com', cookies[:email]
293
- </pre>
294
- </div>
295
- <p>To clear the cookies, use <tt>clear</tt>.</p>
296
- <div class="code_container">
297
- <pre class="brush: ruby; gutter: false; toolbar: false">
298
- cookies.clear
299
- get :index
300
- assert_nil cookies[:email]
301
- </pre>
302
- </div>
303
- <p>We now no longer write out HTTP_COOKIE and the cookie jar is persistent between requests so if you need to manipulate the environment for your test you need to do it before the cookie jar is created.</p>
304
- <ul>
305
- <li><tt>send_file</tt> now guesses the <span class="caps">MIME</span> type from the file extension if <tt>:type</tt> is not provided.</li>
306
- </ul>
307
- <ul>
308
- <li><span class="caps">MIME</span> type entries for <span class="caps">PDF</span>, <span class="caps">ZIP</span> and other formats were added.</li>
309
- </ul>
310
- <ul>
311
- <li>Allow fresh_when/stale? to take a record instead of an options hash.</li>
312
- </ul>
313
- <ul>
314
- <li>Changed log level of warning for missing <span class="caps">CSRF</span> token from <tt>:debug</tt> to <tt>:warn</tt>.</li>
315
- </ul>
316
- <ul>
317
- <li>Assets should use the request protocol by default or default to relative if no request is available.</li>
318
- </ul>
319
- <h5 id="actioncontroller_deprecations">7.1.1 Deprecations</h5>
320
- <ul>
321
- <li>Deprecated implied layout lookup in controllers whose parent had a explicit layout set:</li>
322
- </ul>
323
- <div class="code_container">
324
- <pre class="brush: ruby; gutter: false; toolbar: false">
325
- class ApplicationController
326
- layout &quot;application&quot;
327
- end
328
-
329
- class PostsController &lt; ApplicationController
330
- end
331
- </pre>
332
- </div>
333
- <p>In the example above, Posts controller will no longer automatically look up for a posts layout. If you need this functionality you could either remove <tt>layout &#8220;application&#8221;</tt> from <tt>ApplicationController</tt> or explicitly set it to <tt>nil</tt> in <tt>PostsController</tt>.</p>
334
- <ul>
335
- <li>Deprecated <tt>ActionController::UnknownAction</tt> in favour of <tt>AbstractController::ActionNotFound</tt>.</li>
336
- </ul>
337
- <ul>
338
- <li>Deprecated <tt>ActionController::DoubleRenderError</tt> in favour of <tt>AbstractController::DoubleRenderError</tt>.</li>
339
- </ul>
340
- <ul>
341
- <li>Deprecated <tt>method_missing</tt> in favour of <tt>action_missing</tt> for missing actions.</li>
342
- </ul>
343
- <ul>
344
- <li>Deprecated <tt>ActionController#rescue_action</tt>, <tt>ActionController#initialize_template_class</tt> and <tt>ActionController#assign_shortcuts</tt>.</li>
345
- </ul>
346
- <h4 id="action-dispatch">7.2 Action Dispatch</h4>
347
- <ul>
348
- <li>Add <tt>config.action_dispatch.default_charset</tt> to configure default charset for <tt>ActionDispatch::Response</tt>.</li>
349
- </ul>
350
- <ul>
351
- <li>Added <tt>ActionDispatch::RequestId</tt> middleware that&#8217;ll make a unique X-Request-Id header available to the response and enables the <tt>ActionDispatch::Request#uuid</tt> method. This makes it easy to trace requests from end-to-end in the stack and to identify individual requests in mixed logs like Syslog.</li>
352
- </ul>
353
- <ul>
354
- <li>The <tt>ShowExceptions</tt> middleware now accepts a exceptions application that is responsible to render an exception when the application fails. The application is invoked with a copy of the exception in <tt>env["action_dispatch.exception"]</tt> and with the <tt>PATH_INFO</tt> rewritten to the status code.</li>
355
- </ul>
356
- <ul>
357
- <li>Allow rescue responses to be configured through a railtie as in <tt>config.action_dispatch.rescue_responses</tt>.</li>
358
- </ul>
359
- <h5 id="actiondispatch_deprecations">7.2.1 Deprecations</h5>
360
- <ul>
361
- <li>Deprecated the ability to set a default charset at the controller level, use the new <tt>config.action_dispatch.default_charset</tt> instead.</li>
362
- </ul>
363
- <h4 id="action-view">7.3 Action View</h4>
364
- <ul>
365
- <li>Add <tt>button_tag</tt> support to <tt>ActionView::Helpers::FormBuilder</tt>. This support mimics the default behavior of <tt>submit_tag</tt>.</li>
366
- </ul>
367
- <div class="code_container">
368
- <pre class="brush: ruby; gutter: false; toolbar: false">
369
- &lt;%= form_for @post do |f| %&gt;
370
- &lt;%= f.button %&gt;
371
- &lt;% end %&gt;
372
- </pre>
373
- </div>
374
- <ul>
375
- <li>Date helpers accept a new option <tt>:use_two_digit_numbers =&gt; true</tt>, that renders select boxes for months and days with a leading zero without changing the respective values. For example, this is useful for displaying <span class="caps">ISO</span> 8601-style dates such as &#8216;2011-08-01&#8217;.</li>
376
- </ul>
377
- <ul>
378
- <li>You can provide a namespace for your form to ensure uniqueness of id attributes on form elements. The namespace attribute will be prefixed with underscore on the generated <span class="caps">HTML</span> id.</li>
379
- </ul>
380
- <div class="code_container">
381
- <pre class="brush: ruby; gutter: false; toolbar: false">
382
- &lt;%= form_for(@offer, :namespace =&gt; 'namespace') do |f| %&gt;
383
- &lt;%= f.label :version, 'Version' %&gt;:
384
- &lt;%= f.text_field :version %&gt;
385
- &lt;% end %&gt;
386
- </pre>
387
- </div>
388
- <ul>
389
- <li>Limit the number of options for <tt>select_year</tt> to 1000. Pass <tt>:max_years_allowed</tt> option to set your own limit.</li>
390
- </ul>
391
- <ul>
392
- <li><tt>content_tag_for</tt> and <tt>div_for</tt> can now take a collection of records. It will also yield the record as the first argument if you set a receiving argument in your block. So instead of having to do this:</li>
393
- </ul>
394
- <div class="code_container">
395
- <pre class="brush: ruby; gutter: false; toolbar: false">
396
- @items.each do |item|
397
- content_tag_for(:li, item) do
398
- Title: &lt;%= item.title %&gt;
399
- end
400
- end
401
- </pre>
402
- </div>
403
- <p>You can do this:</p>
404
- <div class="code_container">
405
- <pre class="brush: ruby; gutter: false; toolbar: false">
406
- content_tag_for(:li, @items) do |item|
407
- Title: &lt;%= item.title %&gt;
408
- end
409
- </pre>
410
- </div>
411
- <ul>
412
- <li>Added <tt>font_path</tt> helper method that computes the path to a font asset in <tt>public/fonts</tt>.</li>
413
- </ul>
414
- <h5 id="actionview_deprecations">7.3.1 Deprecations</h5>
415
- <ul>
416
- <li>Passing formats or handlers to render :template and friends like <tt>render :template =&gt; &#8220;foo.html.erb&#8221;</tt> is deprecated. Instead, you can provide :handlers and :formats directly as an options: <tt> render :template =&gt; &#8220;foo&#8221;, :formats =&gt; [:html, :js], :handlers =&gt; :erb</tt>.</li>
417
- </ul>
418
- <h4 id="sprockets">7.4 Sprockets</h4>
419
- <ul>
420
- <li>Adds a configuration option <tt>config.assets.logger</tt> to control Sprockets logging. Set it to <tt>false</tt> to turn off logging and to <tt>nil</tt> to default to <tt>Rails.logger</tt>.</li>
421
- </ul>
422
- <h3 id="active-record">8 Active Record</h3>
423
- <ul>
424
- <li>Boolean columns with &#8216;on&#8217; and &#8216;ON&#8217; values are type casted to true.</li>
425
- </ul>
426
- <ul>
427
- <li>When the <tt>timestamps</tt> method creates the <tt>created_at</tt> and <tt>updated_at</tt> columns, it makes them non-nullable by default.</li>
428
- </ul>
429
- <ul>
430
- <li>Implemented <tt>ActiveRecord::Relation#explain</tt>.</li>
431
- </ul>
432
- <ul>
433
- <li>Implements <tt>AR::Base.silence_auto_explain</tt> which allows the user to selectively disable automatic EXPLAINs within a block.</li>
434
- </ul>
435
- <ul>
436
- <li>Implements automatic <span class="caps">EXPLAIN</span> logging for slow queries. A new configuration parameter <tt>config.active_record.auto_explain_threshold_in_seconds</tt> determines what&#8217;s to be considered a slow query. Setting that to nil disables this feature. Defaults are 0.5 in development mode, and nil in test and production modes. Rails 3.2 supports this feature in SQLite, MySQL (mysql2 adapter), and PostgreSQL.</li>
437
- </ul>
438
- <ul>
439
- <li>Added <tt>ActiveRecord::Base.store</tt> for declaring simple single-column key/value stores.</li>
440
- </ul>
441
- <div class="code_container">
442
- <pre class="brush: ruby; gutter: false; toolbar: false">
443
- class User &lt; ActiveRecord::Base
444
- store :settings, accessors: [ :color, :homepage ]
445
- end
446
-
447
- u = User.new(color: 'black', homepage: '37signals.com')
448
- u.color # Accessor stored attribute
449
- u.settings[:country] = 'Denmark' # Any attribute, even if not specified with an accessor
450
- </pre>
451
- </div>
452
- <ul>
453
- <li>Added ability to run migrations only for a given scope, which allows to run migrations only from one engine (for example to revert changes from an engine that need to be removed).</li>
454
- </ul>
455
- <div class="code_container">
456
- <pre class="brush: ruby; gutter: false; toolbar: false">
457
- rake db:migrate SCOPE=blog
458
- </pre>
459
- </div>
460
- <ul>
461
- <li>Migrations copied from engines are now scoped with engine&#8217;s name, for example <tt>01_create_posts.blog.rb</tt>.</li>
462
- </ul>
463
- <ul>
464
- <li>Implemented <tt>ActiveRecord::Relation#pluck</tt> method that returns an array of column values directly from the underlying table. This also works with serialized attributes.</li>
465
- </ul>
466
- <div class="code_container">
467
- <pre class="brush: ruby; gutter: false; toolbar: false">
468
- Client.where(:active =&gt; true).pluck(:id)
469
- # SELECT id from clients where active = 1
470
- </pre>
471
- </div>
472
- <ul>
473
- <li>Generated association methods are created within a separate module to allow overriding and composition. For a class named MyModel, the module is named <tt>MyModel::GeneratedFeatureMethods</tt>. It is included into the model class immediately after the <tt>generated_attributes_methods</tt> module defined in Active Model, so association methods override attribute methods of the same name.</li>
474
- </ul>
475
- <ul>
476
- <li>Add <tt>ActiveRecord::Relation#uniq</tt> for generating unique queries.</li>
477
- </ul>
478
- <div class="code_container">
479
- <pre class="brush: ruby; gutter: false; toolbar: false">
480
- Client.select('DISTINCT name')
481
- </pre>
482
- </div>
483
- <p>..can be written as:</p>
484
- <div class="code_container">
485
- <pre class="brush: ruby; gutter: false; toolbar: false">
486
- Client.select(:name).uniq
487
- </pre>
488
- </div>
489
- <p>This also allows you to revert the uniqueness in a relation:</p>
490
- <div class="code_container">
491
- <pre class="brush: ruby; gutter: false; toolbar: false">
492
- Client.select(:name).uniq.uniq(false)
493
- </pre>
494
- </div>
495
- <ul>
496
- <li>Support index sort order in SQLite, MySQL and PostgreSQL adapters.</li>
497
- </ul>
498
- <ul>
499
- <li>Allow the <tt>:class_name</tt> option for associations to take a symbol in addition to a string. This is to avoid confusing newbies, and to be consistent with the fact that other options like :foreign_key already allow a symbol or a string.</li>
500
- </ul>
501
- <div class="code_container">
502
- <pre class="brush: ruby; gutter: false; toolbar: false">
503
- has_many :clients, :class_name =&gt; :Client # Note that the symbol need to be capitalized
504
- </pre>
505
- </div>
506
- <ul>
507
- <li>In development mode, <tt>db:drop</tt> also drops the test database in order to be symmetric with <tt>db:create</tt>.</li>
508
- </ul>
509
- <ul>
510
- <li>Case-insensitive uniqueness validation avoids calling <span class="caps">LOWER</span> in MySQL when the column already uses a case-insensitive collation.</li>
511
- </ul>
512
- <ul>
513
- <li>Transactional fixtures enlist all active database connections. You can test models on different connections without disabling transactional fixtures.</li>
514
- </ul>
515
- <ul>
516
- <li>Add <tt>first_or_create</tt>, <tt>first_or_create!</tt>, <tt>first_or_initialize</tt> methods to Active Record. This is a better approach over the old <tt>find_or_create_by</tt> dynamic methods because it&#8217;s clearer which arguments are used to find the record and which are used to create it.</li>
517
- </ul>
518
- <div class="code_container">
519
- <pre class="brush: ruby; gutter: false; toolbar: false">
520
- User.where(:first_name =&gt; &quot;Scarlett&quot;).first_or_create!(:last_name =&gt; &quot;Johansson&quot;)
521
- </pre>
522
- </div>
523
- <ul>
524
- <li>Added a <tt>with_lock</tt> method to Active Record objects, which starts a transaction, locks the object (pessimistically) and yields to the block. The method takes one (optional) parameter and passes it to <tt>lock!</tt>.</li>
525
- </ul>
526
- <p>This makes it possible to write the following:</p>
527
- <div class="code_container">
528
- <pre class="brush: ruby; gutter: false; toolbar: false">
529
- class Order &lt; ActiveRecord::Base
530
- def cancel!
531
- transaction do
532
- lock!
533
- # ... cancelling logic
534
- end
535
- end
536
- end
537
- </pre>
538
- </div>
539
- <p>as:</p>
540
- <div class="code_container">
541
- <pre class="brush: ruby; gutter: false; toolbar: false">
542
- class Order &lt; ActiveRecord::Base
543
- def cancel!
544
- with_lock do
545
- # ... cancelling logic
546
- end
547
- end
548
- end
549
- </pre>
550
- </div>
551
- <h4 id="activerecord_deprecations">8.1 Deprecations</h4>
552
- <ul>
553
- <li>Automatic closure of connections in threads is deprecated. For example the following code is deprecated:</li>
554
- </ul>
555
- <div class="code_container">
556
- <pre class="brush: ruby; gutter: false; toolbar: false">
557
- Thread.new { Post.find(1) }.join
558
- </pre>
559
- </div>
560
- <p>It should be changed to close the database connection at the end of the thread:</p>
561
- <div class="code_container">
562
- <pre class="brush: ruby; gutter: false; toolbar: false">
563
- Thread.new {
564
- Post.find(1)
565
- Post.connection.close
566
- }.join
567
- </pre>
568
- </div>
569
- <p>Only people who spawn threads in their application code need to worry about this change.</p>
570
- <ul>
571
- <li>The <tt>set_table_name</tt>, <tt>set_inheritance_column</tt>, <tt>set_sequence_name</tt>, <tt>set_primary_key</tt>, <tt>set_locking_column</tt> methods are deprecated. Use an assignment method instead. For example, instead of <tt>set_table_name</tt>, use <tt>self.table_name=</tt>.</li>
572
- </ul>
573
- <div class="code_container">
574
- <pre class="brush: ruby; gutter: false; toolbar: false">
575
- class Project &lt; ActiveRecord::Base
576
- self.table_name = &quot;project&quot;
577
- end
578
- </pre>
579
- </div>
580
- <p>Or define your own <tt>self.table_name</tt> method:</p>
581
- <div class="code_container">
582
- <pre class="brush: ruby; gutter: false; toolbar: false">
583
- class Post &lt; ActiveRecord::Base
584
- def self.table_name
585
- &quot;special_&quot; + super
586
- end
587
- end
588
-
589
- Post.table_name # =&gt; &quot;special_posts&quot;
590
- </pre>
591
- </div>
592
- <h3 id="active-model">9 Active Model</h3>
593
- <ul>
594
- <li>Add <tt>ActiveModel::Errors#added?</tt> to check if a specific error has been added.</li>
595
- </ul>
596
- <ul>
597
- <li>Add ability to define strict validations with <tt>strict =&gt; true</tt> that always raises exception when fails.</li>
598
- </ul>
599
- <ul>
600
- <li>Provide mass_assignment_sanitizer as an easy <span class="caps">API</span> to replace the sanitizer behavior. Also support both :logger (default) and :strict sanitizer behavior.</li>
601
- </ul>
602
- <h4 id="activemodel_deprecations">9.1 Deprecations</h4>
603
- <ul>
604
- <li>Deprecated <tt>define_attr_method</tt> in <tt>ActiveModel::AttributeMethods</tt> because this only existed to support methods like <tt>set_table_name</tt> in Active Record, which are themselves being deprecated.</li>
605
- </ul>
606
- <ul>
607
- <li>Deprecated <tt>Model.model_name.partial_path</tt> in favor of <tt>model.to_partial_path</tt>.</li>
608
- </ul>
609
- <h3 id="active-resource">10 Active Resource</h3>
610
- <ul>
611
- <li>Redirect responses: 303 See Other and 307 Temporary Redirect now behave like 301 Moved Permanently and 302 Found.</li>
612
- </ul>
613
- <h3 id="active-support">11 Active Support</h3>
614
- <ul>
615
- <li>Added <tt>ActiveSupport:TaggedLogging</tt> that can wrap any standard <tt>Logger</tt> class to provide tagging capabilities.</li>
616
- </ul>
617
- <div class="code_container">
618
- <pre class="brush: ruby; gutter: false; toolbar: false">
619
- Logger = ActiveSupport::TaggedLogging.new(Logger.new(STDOUT))
620
-
621
- Logger.tagged(&quot;BCX&quot;) { Logger.info &quot;Stuff&quot; }
622
- # Logs &quot;[BCX] Stuff&quot;
623
-
624
- Logger.tagged(&quot;BCX&quot;, &quot;Jason&quot;) { Logger.info &quot;Stuff&quot; }
625
- # Logs &quot;[BCX] [Jason] Stuff&quot;
626
-
627
- Logger.tagged(&quot;BCX&quot;) { Logger.tagged(&quot;Jason&quot;) { Logger.info &quot;Stuff&quot; } }
628
- # Logs &quot;[BCX] [Jason] Stuff&quot;
629
- </pre>
630
- </div>
631
- <ul>
632
- <li>The <tt>beginning_of_week</tt> method in <tt>Date</tt>, <tt>Time</tt> and <tt>DateTime</tt> accepts an optional argument representing the day in which the week is assumed to start.</li>
633
- </ul>
634
- <ul>
635
- <li><tt>ActiveSupport::Notifications.subscribed</tt> provides subscriptions to events while a block runs.</li>
636
- </ul>
637
- <ul>
638
- <li>Defined new methods <tt>Module#qualified_const_defined?</tt>, <tt>Module#qualified_const_get</tt> and <tt>Module#qualified_const_set</tt> that are analogous to the corresponding methods in the standard <span class="caps">API</span>, but accept qualified constant names.</li>
639
- </ul>
640
- <ul>
641
- <li>Added <tt>#deconstantize</tt> which complements <tt>#demodulize</tt> in inflections. This removes the rightmost segment in a qualified constant name.</li>
642
- </ul>
643
- <ul>
644
- <li>Added <tt>safe_constantize</tt> that constantizes a string but returns <tt>nil</tt> instead of raising an exception if the constant (or part of it) does not exist.</li>
645
- </ul>
646
- <ul>
647
- <li><tt>ActiveSupport::OrderedHash</tt> is now marked as extractable when using <tt>Array#extract_options!</tt>.</li>
648
- </ul>
649
- <ul>
650
- <li>Added <tt>Array#prepend</tt> as an alias for <tt>Array#unshift</tt> and <tt>Array#append</tt> as an alias for <tt>Array#&lt;&lt;</tt>.</li>
651
- </ul>
652
- <ul>
653
- <li>The definition of a blank string for Ruby 1.9 has been extended to Unicode whitespace. Also, in Ruby 1.8 the ideographic space U+3000 is considered to be whitespace.</li>
654
- </ul>
655
- <ul>
656
- <li>The inflector understands acronyms.</li>
657
- </ul>
658
- <ul>
659
- <li>Added <tt>Time#all_day</tt>, <tt>Time#all_week</tt>, <tt>Time#all_quarter</tt> and <tt>Time#all_year</tt> as a way of generating ranges.</li>
660
- </ul>
661
- <div class="code_container">
662
- <pre class="brush: ruby; gutter: false; toolbar: false">
663
- Event.where(:created_at =&gt; Time.now.all_week)
664
- Event.where(:created_at =&gt; Time.now.all_day)
665
- </pre>
666
- </div>
667
- <ul>
668
- <li>Added <tt>instance_accessor: false</tt> as an option to <tt>Class#cattr_accessor</tt> and friends.</li>
669
- </ul>
670
- <ul>
671
- <li><tt>ActiveSupport::OrderedHash</tt> now has different behavior for <tt>#each</tt> and <tt>#each_pair</tt> when given a block accepting its parameters with a splat.</li>
672
- </ul>
673
- <ul>
674
- <li>Added <tt>ActiveSupport::Cache::NullStore</tt> for use in development and testing.</li>
675
- </ul>
676
- <ul>
677
- <li>Removed <tt>ActiveSupport::SecureRandom</tt> in favor of <tt>SecureRandom</tt> from the standard library.</li>
678
- </ul>
679
- <h4 id="activesupport_deprecations">11.1 Deprecations</h4>
680
- <ul>
681
- <li><tt>ActiveSupport::Base64</tt> is deprecated in favor of <tt>::Base64</tt>.</li>
682
- </ul>
683
- <ul>
684
- <li>Deprecated <tt>ActiveSupport::Memoizable</tt> in favor of Ruby memoization pattern.</li>
685
- </ul>
686
- <ul>
687
- <li><tt>Module#synchronize</tt> is deprecated with no replacement. Please use monitor from ruby&#8217;s standard library.</li>
688
- </ul>
689
- <ul>
690
- <li>Deprecated <tt>ActiveSupport::MessageEncryptor#encrypt</tt> and <tt>ActiveSupport::MessageEncryptor#decrypt</tt>.</li>
691
- </ul>
692
- <ul>
693
- <li><tt>ActiveSupport::BufferedLogger#silence</tt> is deprecated. If you want to squelch logs for a certain block, change the log level for that block.</li>
694
- </ul>
695
- <ul>
696
- <li><tt>ActiveSupport::BufferedLogger#open_log</tt> is deprecated. This method should not have been public in the first place.</li>
697
- </ul>
698
- <ul>
699
- <li><tt>ActiveSupport::BufferedLogger&#8217;s</tt> behavior of automatically creating the directory for your log file is deprecated. Please make sure to create the directory for your log file before instantiating.</li>
700
- </ul>
701
- <ul>
702
- <li><tt>ActiveSupport::BufferedLogger#auto_flushing</tt> is deprecated. Either set the sync level on the underlying file handle like this. Or tune your filesystem. The FS cache is now what controls flushing.</li>
703
- </ul>
704
- <div class="code_container">
705
- <pre class="brush: ruby; gutter: false; toolbar: false">
706
- f = File.open('foo.log', 'w')
707
- f.sync = true
708
- ActiveSupport::BufferedLogger.new f
709
- </pre>
710
- </div>
711
- <ul>
712
- <li><tt>ActiveSupport::BufferedLogger#flush</tt> is deprecated. Set sync on your filehandle, or tune your filesystem.</li>
713
- </ul>
714
- <h3 id="credits">12 Credits</h3>
715
- <p>See the <a href="http://contributors.rubyonrails.org/">full list of contributors to Rails</a> for the many people who spent many hours making Rails, the stable and robust framework it is. Kudos to all of them.</p>
716
- <p>Rails 3.2 Release Notes were compiled by <a href="https://github.com/vijaydev">Vijay Dev</a>.</p>
717
-
718
- <h3>Feedback</h3>
719
- <p>
720
- You're encouraged to help improve the quality of this guide.
721
- </p>
722
- <p>
723
- If you see any typos or factual errors you are confident to
724
- patch, please clone <a href="https://github.com/lifo/docrails">docrails</a>
725
- and push the change yourself. That branch of Rails has public write access.
726
- Commits are still reviewed, but that happens after you've submitted your
727
- contribution. <a href="https://github.com/lifo/docrails">docrails</a> is
728
- cross-merged with master periodically.
729
- </p>
730
- <p>
731
- You may also find incomplete content, or stuff that is not up to date.
732
- Please do add any missing documentation for master. Check the
733
- <a href="ruby_on_rails_guides_guidelines.html">Ruby on Rails Guides Guidelines</a>
734
- for style and conventions.
735
- </p>
736
- <p>
737
- If for whatever reason you spot something to fix but cannot patch it yourself, please
738
- <a href="https://github.com/rails/rails/issues">open an issue</a>.
739
- </p>
740
- <p>And last but not least, any kind of discussion regarding Ruby on Rails
741
- documentation is very welcome in the <a href="http://groups.google.com/group/rubyonrails-docs">rubyonrails-docs mailing list</a>.
742
- </p>
743
- </div>
744
- </div>
745
- </div>
746
-
747
- <hr class="hide" />
748
- <div id="footer">
749
- <div class="wrapper">
750
- <p>This work is licensed under a <a href="http://creativecommons.org/licenses/by-sa/3.0/">Creative Commons Attribution-Share Alike 3.0</a> License</p>
751
- <p>"Rails", "Ruby on Rails", and the Rails logo are trademarks of David Heinemeier Hansson. All rights reserved.</p>
752
-
753
- </div>
754
- </div>
755
-
756
- <script type="text/javascript" src="javascripts/guides.js"></script>
757
- <script type="text/javascript" src="javascripts/syntaxhighlighter/shCore.js"></script>
758
- <script type="text/javascript" src="javascripts/syntaxhighlighter/shBrushRuby.js"></script>
759
- <script type="text/javascript" src="javascripts/syntaxhighlighter/shBrushXml.js"></script>
760
- <script type="text/javascript" src="javascripts/syntaxhighlighter/shBrushSql.js"></script>
761
- <script type="text/javascript" src="javascripts/syntaxhighlighter/shBrushPlain.js"></script>
762
- <script type="text/javascript">
763
- SyntaxHighlighter.all()
764
- </script>
765
- </body>
766
- </html>