rails 4.0.0 → 4.2.11.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (190) hide show
  1. checksums.yaml +5 -5
  2. data/README.md +30 -23
  3. data/guides/CHANGELOG.md +108 -6
  4. data/guides/Rakefile +21 -6
  5. data/guides/assets/images/akshaysurve.jpg +0 -0
  6. data/guides/assets/images/edge_badge.png +0 -0
  7. data/guides/assets/images/feature_tile.gif +0 -0
  8. data/guides/assets/images/footer_tile.gif +0 -0
  9. data/guides/assets/images/fxn.png +0 -0
  10. data/guides/assets/images/getting_started/article_with_comments.png +0 -0
  11. data/guides/assets/images/getting_started/challenge.png +0 -0
  12. data/guides/assets/images/getting_started/confirm_dialog.png +0 -0
  13. data/guides/assets/images/getting_started/forbidden_attributes_for_new_article.png +0 -0
  14. data/guides/assets/images/getting_started/form_with_errors.png +0 -0
  15. data/guides/assets/images/getting_started/index_action_with_edit_link.png +0 -0
  16. data/guides/assets/images/getting_started/new_article.png +0 -0
  17. data/guides/assets/images/getting_started/rails_welcome.png +0 -0
  18. data/guides/assets/images/getting_started/routing_error_no_controller.png +0 -0
  19. data/guides/assets/images/getting_started/routing_error_no_route_matches.png +0 -0
  20. data/guides/assets/images/getting_started/show_action_for_articles.png +0 -0
  21. data/guides/assets/images/getting_started/template_is_missing_articles_new.png +0 -0
  22. data/guides/assets/images/getting_started/unknown_action_create_for_articles.png +0 -0
  23. data/guides/assets/images/getting_started/unknown_action_new_for_articles.png +0 -0
  24. data/guides/assets/images/header_tile.gif +0 -0
  25. data/guides/assets/images/icons/README +1 -1
  26. data/guides/assets/images/icons/callouts/11.png +0 -0
  27. data/guides/assets/images/icons/callouts/12.png +0 -0
  28. data/guides/assets/images/icons/callouts/13.png +0 -0
  29. data/guides/assets/images/icons/callouts/15.png +0 -0
  30. data/guides/assets/images/icons/caution.png +0 -0
  31. data/guides/assets/images/icons/example.png +0 -0
  32. data/guides/assets/images/radar.png +0 -0
  33. data/guides/assets/images/rails4_features.png +0 -0
  34. data/guides/assets/images/rails_guides_kindle_cover.jpg +0 -0
  35. data/guides/assets/images/vijaydev.jpg +0 -0
  36. data/guides/assets/javascripts/guides.js +36 -34
  37. data/guides/assets/stylesheets/main.css +6 -2
  38. data/guides/assets/stylesheets/print.css +1 -1
  39. data/guides/bug_report_templates/action_controller_gem.rb +47 -0
  40. data/guides/bug_report_templates/action_controller_master.rb +54 -0
  41. data/guides/bug_report_templates/active_record_gem.rb +5 -2
  42. data/guides/bug_report_templates/active_record_master.rb +3 -2
  43. data/guides/bug_report_templates/generic_gem.rb +15 -0
  44. data/guides/bug_report_templates/generic_master.rb +26 -0
  45. data/guides/rails_guides.rb +23 -4
  46. data/guides/rails_guides/generator.rb +1 -1
  47. data/guides/rails_guides/helpers.rb +4 -2
  48. data/guides/rails_guides/levenshtein.rb +27 -21
  49. data/guides/rails_guides/markdown.rb +11 -7
  50. data/guides/rails_guides/markdown/renderer.rb +1 -1
  51. data/guides/source/2_2_release_notes.md +3 -3
  52. data/guides/source/2_3_release_notes.md +12 -12
  53. data/guides/source/3_0_release_notes.md +10 -13
  54. data/guides/source/3_1_release_notes.md +7 -4
  55. data/guides/source/3_2_release_notes.md +17 -14
  56. data/guides/source/4_0_release_notes.md +110 -54
  57. data/guides/source/4_1_release_notes.md +730 -0
  58. data/guides/source/4_2_release_notes.md +877 -0
  59. data/guides/source/_license.html.erb +1 -1
  60. data/guides/source/_welcome.html.erb +6 -2
  61. data/guides/source/action_controller_overview.md +223 -57
  62. data/guides/source/action_mailer_basics.md +129 -76
  63. data/guides/source/action_view_overview.md +247 -246
  64. data/guides/source/active_job_basics.md +339 -0
  65. data/guides/source/active_model_basics.md +374 -20
  66. data/guides/source/active_record_basics.md +46 -45
  67. data/guides/source/active_record_callbacks.md +83 -28
  68. data/guides/source/{migrations.md → active_record_migrations.md} +191 -275
  69. data/guides/source/active_record_postgresql.md +433 -0
  70. data/guides/source/active_record_querying.md +382 -300
  71. data/guides/source/active_record_validations.md +64 -55
  72. data/guides/source/active_support_core_extensions.md +229 -187
  73. data/guides/source/active_support_instrumentation.md +23 -22
  74. data/guides/source/api_documentation_guidelines.md +167 -15
  75. data/guides/source/asset_pipeline.md +768 -294
  76. data/guides/source/association_basics.md +188 -96
  77. data/guides/source/autoloading_and_reloading_constants.md +1311 -0
  78. data/guides/source/caching_with_rails.md +45 -11
  79. data/guides/source/command_line.md +96 -65
  80. data/guides/source/configuring.md +404 -70
  81. data/guides/source/contributing_to_ruby_on_rails.md +270 -130
  82. data/guides/source/credits.html.erb +7 -3
  83. data/guides/source/debugging_rails_applications.md +471 -284
  84. data/guides/source/development_dependencies_install.md +115 -21
  85. data/guides/source/documents.yaml +31 -9
  86. data/guides/source/engines.md +737 -291
  87. data/guides/source/form_helpers.md +137 -89
  88. data/guides/source/generators.md +60 -28
  89. data/guides/source/getting_started.md +1007 -596
  90. data/guides/source/i18n.md +178 -96
  91. data/guides/source/index.html.erb +2 -1
  92. data/guides/source/initialization.md +248 -104
  93. data/guides/source/kindle/toc.html.erb +1 -1
  94. data/guides/source/layout.html.erb +14 -22
  95. data/guides/source/layouts_and_rendering.md +78 -46
  96. data/guides/source/maintenance_policy.md +78 -0
  97. data/guides/source/nested_model_forms.md +10 -7
  98. data/guides/source/plugins.md +66 -57
  99. data/guides/source/rails_application_templates.md +49 -12
  100. data/guides/source/rails_on_rack.md +50 -60
  101. data/guides/source/routing.md +190 -139
  102. data/guides/source/ruby_on_rails_guides_guidelines.md +12 -13
  103. data/guides/source/security.md +134 -83
  104. data/guides/source/testing.md +322 -200
  105. data/guides/source/upgrading_ruby_on_rails.md +834 -37
  106. data/guides/source/working_with_javascript_in_rails.md +36 -26
  107. data/guides/w3c_validator.rb +2 -0
  108. metadata +93 -116
  109. data/guides/assets/images/getting_started/forbidden_attributes_for_new_post.png +0 -0
  110. data/guides/assets/images/getting_started/new_post.png +0 -0
  111. data/guides/assets/images/getting_started/post_with_comments.png +0 -0
  112. data/guides/assets/images/getting_started/show_action_for_posts.png +0 -0
  113. data/guides/assets/images/getting_started/template_is_missing_posts_new.png +0 -0
  114. data/guides/assets/images/getting_started/undefined_method_post_path.png +0 -0
  115. data/guides/assets/images/getting_started/unknown_action_create_for_posts.png +0 -0
  116. data/guides/assets/images/getting_started/unknown_action_new_for_posts.png +0 -0
  117. data/guides/assets/images/jaimeiniesta.jpg +0 -0
  118. data/guides/code/getting_started/Gemfile +0 -43
  119. data/guides/code/getting_started/Gemfile.lock +0 -150
  120. data/guides/code/getting_started/README.rdoc +0 -28
  121. data/guides/code/getting_started/Rakefile +0 -6
  122. data/guides/code/getting_started/app/assets/javascripts/application.js +0 -16
  123. data/guides/code/getting_started/app/assets/javascripts/comments.js.coffee +0 -3
  124. data/guides/code/getting_started/app/assets/javascripts/posts.js.coffee +0 -3
  125. data/guides/code/getting_started/app/assets/javascripts/welcome.js.coffee +0 -3
  126. data/guides/code/getting_started/app/assets/stylesheets/application.css +0 -13
  127. data/guides/code/getting_started/app/assets/stylesheets/comments.css.scss +0 -3
  128. data/guides/code/getting_started/app/assets/stylesheets/posts.css.scss +0 -3
  129. data/guides/code/getting_started/app/assets/stylesheets/welcome.css.scss +0 -3
  130. data/guides/code/getting_started/app/controllers/application_controller.rb +0 -5
  131. data/guides/code/getting_started/app/controllers/comments_controller.rb +0 -17
  132. data/guides/code/getting_started/app/controllers/posts_controller.rb +0 -47
  133. data/guides/code/getting_started/app/controllers/welcome_controller.rb +0 -4
  134. data/guides/code/getting_started/app/helpers/application_helper.rb +0 -2
  135. data/guides/code/getting_started/app/helpers/comments_helper.rb +0 -2
  136. data/guides/code/getting_started/app/helpers/posts_helper.rb +0 -2
  137. data/guides/code/getting_started/app/helpers/welcome_helper.rb +0 -2
  138. data/guides/code/getting_started/app/models/comment.rb +0 -3
  139. data/guides/code/getting_started/app/models/post.rb +0 -7
  140. data/guides/code/getting_started/app/views/comments/_comment.html.erb +0 -15
  141. data/guides/code/getting_started/app/views/comments/_form.html.erb +0 -13
  142. data/guides/code/getting_started/app/views/layouts/application.html.erb +0 -14
  143. data/guides/code/getting_started/app/views/posts/_form.html.erb +0 -27
  144. data/guides/code/getting_started/app/views/posts/edit.html.erb +0 -5
  145. data/guides/code/getting_started/app/views/posts/index.html.erb +0 -21
  146. data/guides/code/getting_started/app/views/posts/new.html.erb +0 -5
  147. data/guides/code/getting_started/app/views/posts/show.html.erb +0 -18
  148. data/guides/code/getting_started/app/views/welcome/index.html.erb +0 -3
  149. data/guides/code/getting_started/bin/bundle +0 -4
  150. data/guides/code/getting_started/bin/rails +0 -4
  151. data/guides/code/getting_started/bin/rake +0 -4
  152. data/guides/code/getting_started/config.ru +0 -4
  153. data/guides/code/getting_started/config/application.rb +0 -18
  154. data/guides/code/getting_started/config/boot.rb +0 -4
  155. data/guides/code/getting_started/config/database.yml +0 -25
  156. data/guides/code/getting_started/config/environment.rb +0 -5
  157. data/guides/code/getting_started/config/environments/development.rb +0 -30
  158. data/guides/code/getting_started/config/environments/production.rb +0 -80
  159. data/guides/code/getting_started/config/environments/test.rb +0 -36
  160. data/guides/code/getting_started/config/initializers/backtrace_silencers.rb +0 -7
  161. data/guides/code/getting_started/config/initializers/filter_parameter_logging.rb +0 -4
  162. data/guides/code/getting_started/config/initializers/inflections.rb +0 -16
  163. data/guides/code/getting_started/config/initializers/locale.rb +0 -9
  164. data/guides/code/getting_started/config/initializers/mime_types.rb +0 -5
  165. data/guides/code/getting_started/config/initializers/secret_token.rb +0 -12
  166. data/guides/code/getting_started/config/initializers/session_store.rb +0 -3
  167. data/guides/code/getting_started/config/initializers/wrap_parameters.rb +0 -14
  168. data/guides/code/getting_started/config/locales/en.yml +0 -23
  169. data/guides/code/getting_started/config/routes.rb +0 -7
  170. data/guides/code/getting_started/db/migrate/20130122042648_create_posts.rb +0 -10
  171. data/guides/code/getting_started/db/migrate/20130122045842_create_comments.rb +0 -11
  172. data/guides/code/getting_started/db/schema.rb +0 -33
  173. data/guides/code/getting_started/db/seeds.rb +0 -7
  174. data/guides/code/getting_started/public/404.html +0 -58
  175. data/guides/code/getting_started/public/422.html +0 -58
  176. data/guides/code/getting_started/public/500.html +0 -57
  177. data/guides/code/getting_started/public/favicon.ico +0 -0
  178. data/guides/code/getting_started/public/robots.txt +0 -5
  179. data/guides/code/getting_started/test/controllers/comments_controller_test.rb +0 -7
  180. data/guides/code/getting_started/test/controllers/posts_controller_test.rb +0 -7
  181. data/guides/code/getting_started/test/controllers/welcome_controller_test.rb +0 -9
  182. data/guides/code/getting_started/test/fixtures/comments.yml +0 -11
  183. data/guides/code/getting_started/test/fixtures/posts.yml +0 -9
  184. data/guides/code/getting_started/test/helpers/comments_helper_test.rb +0 -4
  185. data/guides/code/getting_started/test/helpers/posts_helper_test.rb +0 -4
  186. data/guides/code/getting_started/test/helpers/welcome_helper_test.rb +0 -4
  187. data/guides/code/getting_started/test/models/comment_test.rb +0 -7
  188. data/guides/code/getting_started/test/models/post_test.rb +0 -7
  189. data/guides/code/getting_started/test/test_helper.rb +0 -15
  190. data/guides/source/kindle/KINDLE.md +0 -26
@@ -111,7 +111,9 @@ paintIt = (element, backgroundColor, textColor) ->
111
111
  element.style.color = textColor
112
112
 
113
113
  $ ->
114
- $("a[data-background-color]").click ->
114
+ $("a[data-background-color]").click (e) ->
115
+ e.preventDefault()
116
+
115
117
  backgroundColor = $(this).data("background-color")
116
118
  textColor = $(this).data("text-color")
117
119
  paintIt(this, backgroundColor, textColor)
@@ -156,7 +158,7 @@ is a helper that assists with writing forms. `form_for` takes a `:remote`
156
158
  option. It works like this:
157
159
 
158
160
  ```erb
159
- <%= form_for(@post, remote: true) do |f| %>
161
+ <%= form_for(@article, remote: true) do |f| %>
160
162
  ...
161
163
  <% end %>
162
164
  ```
@@ -164,12 +166,12 @@ option. It works like this:
164
166
  This will generate the following HTML:
165
167
 
166
168
  ```html
167
- <form accept-charset="UTF-8" action="/posts" class="new_post" data-remote="true" id="new_post" method="post">
169
+ <form accept-charset="UTF-8" action="/articles" class="new_article" data-remote="true" id="new_article" method="post">
168
170
  ...
169
171
  </form>
170
172
  ```
171
173
 
172
- Note the `data-remote='true'`. Now, the form will be submitted by Ajax rather
174
+ Note the `data-remote="true"`. Now, the form will be submitted by Ajax rather
173
175
  than by the browser's normal submit mechanism.
174
176
 
175
177
  You probably don't want to just sit there with a filled out `<form>`, though.
@@ -178,14 +180,14 @@ bind to the `ajax:success` event. On failure, use `ajax:error`. Check it out:
178
180
 
179
181
  ```coffeescript
180
182
  $(document).ready ->
181
- $("#new_post").on("ajax:success", (e, data, status, xhr) ->
182
- $("#new_post").append xhr.responseText
183
- ).bind "ajax:error", (e, xhr, status, error) ->
184
- $("#new_post").append "<p>ERROR</p>"
183
+ $("#new_article").on("ajax:success", (e, data, status, xhr) ->
184
+ $("#new_article").append xhr.responseText
185
+ ).on "ajax:error", (e, xhr, status, error) ->
186
+ $("#new_article").append "<p>ERROR</p>"
185
187
  ```
186
188
 
187
189
  Obviously, you'll want to be a bit more sophisticated than that, but it's a
188
- start.
190
+ start. You can see more about the events [in the jquery-ujs wiki](https://github.com/rails/jquery-ujs/wiki/ajax).
189
191
 
190
192
  ### form_tag
191
193
 
@@ -194,7 +196,17 @@ is very similar to `form_for`. It has a `:remote` option that you can use like
194
196
  this:
195
197
 
196
198
  ```erb
197
- <%= form_tag('/posts', remote: true) %>
199
+ <%= form_tag('/articles', remote: true) do %>
200
+ ...
201
+ <% end %>
202
+ ```
203
+
204
+ This will generate the following HTML:
205
+
206
+ ```html
207
+ <form accept-charset="UTF-8" action="/articles" data-remote="true" method="post">
208
+ ...
209
+ </form>
198
210
  ```
199
211
 
200
212
  Everything else is the same as `form_for`. See its documentation for full
@@ -207,21 +219,21 @@ is a helper that assists with generating links. It has a `:remote` option you
207
219
  can use like this:
208
220
 
209
221
  ```erb
210
- <%= link_to "a post", @post, remote: true %>
222
+ <%= link_to "an article", @article, remote: true %>
211
223
  ```
212
224
 
213
225
  which generates
214
226
 
215
227
  ```html
216
- <a href="/posts/1" data-remote="true">a post</a>
228
+ <a href="/articles/1" data-remote="true">an article</a>
217
229
  ```
218
230
 
219
231
  You can bind to the same Ajax events as `form_for`. Here's an example. Let's
220
- assume that we have a list of posts that can be deleted with just one
232
+ assume that we have a list of articles that can be deleted with just one
221
233
  click. We would generate some HTML like this:
222
234
 
223
235
  ```erb
224
- <%= link_to "Delete post", @post, remote: true, method: :delete %>
236
+ <%= link_to "Delete article", @article, remote: true, method: :delete %>
225
237
  ```
226
238
 
227
239
  and write some CoffeeScript like this:
@@ -229,7 +241,7 @@ and write some CoffeeScript like this:
229
241
  ```coffeescript
230
242
  $ ->
231
243
  $("a[data-remote]").on "ajax:success", (e, data, status, xhr) ->
232
- alert "The post was deleted."
244
+ alert "The article was deleted."
233
245
  ```
234
246
 
235
247
  ### button_to
@@ -237,14 +249,14 @@ $ ->
237
249
  [`button_to`](http://api.rubyonrails.org/classes/ActionView/Helpers/UrlHelper.html#method-i-button_to) is a helper that helps you create buttons. It has a `:remote` option that you can call like this:
238
250
 
239
251
  ```erb
240
- <%= button_to "A post", @post, remote: true %>
252
+ <%= button_to "An article", @article, remote: true %>
241
253
  ```
242
254
 
243
255
  this generates
244
256
 
245
257
  ```html
246
- <form action="/posts/1" class="button_to" data-remote="true" method="post">
247
- <div><input type="submit" value="A post"></div>
258
+ <form action="/articles/1" class="button_to" data-remote="true" method="post">
259
+ <div><input type="submit" value="An article"></div>
248
260
  </form>
249
261
  ```
250
262
 
@@ -278,9 +290,7 @@ The index view (`app/views/users/index.html.erb`) contains:
278
290
  <b>Users</b>
279
291
 
280
292
  <ul id="users">
281
- <% @users.each do |user| %>
282
- <%= render user %>
283
- <% end %>
293
+ <%= render @users %>
284
294
  </ul>
285
295
 
286
296
  <br>
@@ -301,10 +311,10 @@ The `app/views/users/_user.html.erb` partial contains the following:
301
311
  The top portion of the index page displays the users. The bottom portion
302
312
  provides a form to create a new user.
303
313
 
304
- The bottom form will call the create action on the Users controller. Because
314
+ The bottom form will call the `create` action on the `UsersController`. Because
305
315
  the form's remote option is set to true, the request will be posted to the
306
- users controller as an Ajax request, looking for JavaScript. In order to
307
- service that request, the create action of your controller would look like
316
+ `UsersController` as an Ajax request, looking for JavaScript. In order to
317
+ serve that request, the `create` action of your controller would look like
308
318
  this:
309
319
 
310
320
  ```ruby
@@ -345,7 +355,7 @@ This gem uses Ajax to speed up page rendering in most applications.
345
355
 
346
356
  Turbolinks attaches a click handler to all `<a>` on the page. If your browser
347
357
  supports
348
- [PushState](https://developer.mozilla.org/en-US/docs/DOM/Manipulating_the_browser_history#The_pushState(\).C2.A0method),
358
+ [PushState](https://developer.mozilla.org/en-US/docs/Web/Guide/API/DOM/Manipulating_the_browser_history#The_pushState%28%29_method),
349
359
  Turbolinks will make an Ajax request for the page, parse the response, and
350
360
  replace the entire `<body>` of the page with the `<body>` of the response. It
351
361
  will then use PushState to change the URL to the correct one, preserving
@@ -394,4 +404,4 @@ Here are some helpful links to help you learn even more:
394
404
  * [jquery-ujs list of external articles](https://github.com/rails/jquery-ujs/wiki/External-articles)
395
405
  * [Rails 3 Remote Links and Forms: A Definitive Guide](http://www.alfajango.com/blog/rails-3-remote-links-and-forms/)
396
406
  * [Railscasts: Unobtrusive JavaScript](http://railscasts.com/episodes/205-unobtrusive-javascript)
397
- * [Railscasts: Turbolinks](http://railscasts.com/episodes/390-turbolinks)
407
+ * [Railscasts: Turbolinks](http://railscasts.com/episodes/390-turbolinks)
@@ -60,6 +60,8 @@ module RailsGuides
60
60
  def guides_to_validate
61
61
  guides = Dir["./output/*.html"]
62
62
  guides.delete("./output/layout.html")
63
+ guides.delete("./output/_license.html")
64
+ guides.delete("./output/_welcome.html")
63
65
  ENV.key?('ONLY') ? select_only(guides) : guides
64
66
  end
65
67
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0
4
+ version: 4.2.11.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-06-25 00:00:00.000000000 Z
11
+ date: 2020-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -16,104 +16,146 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 4.0.0
19
+ version: 4.2.11.3
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 4.0.0
26
+ version: 4.2.11.3
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: actionpack
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 4.0.0
33
+ version: 4.2.11.3
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 4.0.0
40
+ version: 4.2.11.3
41
+ - !ruby/object:Gem::Dependency
42
+ name: actionview
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '='
46
+ - !ruby/object:Gem::Version
47
+ version: 4.2.11.3
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '='
53
+ - !ruby/object:Gem::Version
54
+ version: 4.2.11.3
55
+ - !ruby/object:Gem::Dependency
56
+ name: activemodel
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '='
60
+ - !ruby/object:Gem::Version
61
+ version: 4.2.11.3
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '='
67
+ - !ruby/object:Gem::Version
68
+ version: 4.2.11.3
41
69
  - !ruby/object:Gem::Dependency
42
70
  name: activerecord
43
71
  requirement: !ruby/object:Gem::Requirement
44
72
  requirements:
45
73
  - - '='
46
74
  - !ruby/object:Gem::Version
47
- version: 4.0.0
75
+ version: 4.2.11.3
48
76
  type: :runtime
49
77
  prerelease: false
50
78
  version_requirements: !ruby/object:Gem::Requirement
51
79
  requirements:
52
80
  - - '='
53
81
  - !ruby/object:Gem::Version
54
- version: 4.0.0
82
+ version: 4.2.11.3
55
83
  - !ruby/object:Gem::Dependency
56
84
  name: actionmailer
57
85
  requirement: !ruby/object:Gem::Requirement
58
86
  requirements:
59
87
  - - '='
60
88
  - !ruby/object:Gem::Version
61
- version: 4.0.0
89
+ version: 4.2.11.3
62
90
  type: :runtime
63
91
  prerelease: false
64
92
  version_requirements: !ruby/object:Gem::Requirement
65
93
  requirements:
66
94
  - - '='
67
95
  - !ruby/object:Gem::Version
68
- version: 4.0.0
96
+ version: 4.2.11.3
97
+ - !ruby/object:Gem::Dependency
98
+ name: activejob
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - '='
102
+ - !ruby/object:Gem::Version
103
+ version: 4.2.11.3
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - '='
109
+ - !ruby/object:Gem::Version
110
+ version: 4.2.11.3
69
111
  - !ruby/object:Gem::Dependency
70
112
  name: railties
71
113
  requirement: !ruby/object:Gem::Requirement
72
114
  requirements:
73
115
  - - '='
74
116
  - !ruby/object:Gem::Version
75
- version: 4.0.0
117
+ version: 4.2.11.3
76
118
  type: :runtime
77
119
  prerelease: false
78
120
  version_requirements: !ruby/object:Gem::Requirement
79
121
  requirements:
80
122
  - - '='
81
123
  - !ruby/object:Gem::Version
82
- version: 4.0.0
124
+ version: 4.2.11.3
83
125
  - !ruby/object:Gem::Dependency
84
126
  name: bundler
85
127
  requirement: !ruby/object:Gem::Requirement
86
128
  requirements:
87
- - - '>='
129
+ - - ">="
88
130
  - !ruby/object:Gem::Version
89
131
  version: 1.3.0
90
- - - <
132
+ - - "<"
91
133
  - !ruby/object:Gem::Version
92
134
  version: '2.0'
93
135
  type: :runtime
94
136
  prerelease: false
95
137
  version_requirements: !ruby/object:Gem::Requirement
96
138
  requirements:
97
- - - '>='
139
+ - - ">="
98
140
  - !ruby/object:Gem::Version
99
141
  version: 1.3.0
100
- - - <
142
+ - - "<"
101
143
  - !ruby/object:Gem::Version
102
144
  version: '2.0'
103
145
  - !ruby/object:Gem::Dependency
104
146
  name: sprockets-rails
105
147
  requirement: !ruby/object:Gem::Requirement
106
148
  requirements:
107
- - - ~>
149
+ - - ">="
108
150
  - !ruby/object:Gem::Version
109
- version: 2.0.0
151
+ version: '0'
110
152
  type: :runtime
111
153
  prerelease: false
112
154
  version_requirements: !ruby/object:Gem::Requirement
113
155
  requirements:
114
- - - ~>
156
+ - - ">="
115
157
  - !ruby/object:Gem::Version
116
- version: 2.0.0
158
+ version: '0'
117
159
  description: Ruby on Rails is a full-stack web framework optimized for programmer
118
160
  happiness and sustainable productivity. It encourages beautiful code by favoring
119
161
  convention over configuration.
@@ -123,6 +165,9 @@ extensions: []
123
165
  extra_rdoc_files: []
124
166
  files:
125
167
  - README.md
168
+ - guides/CHANGELOG.md
169
+ - guides/Rakefile
170
+ - guides/assets/images/akshaysurve.jpg
126
171
  - guides/assets/images/belongs_to.png
127
172
  - guides/assets/images/book_icon.gif
128
173
  - guides/assets/images/bullet.gif
@@ -135,21 +180,20 @@ files:
135
180
  - guides/assets/images/feature_tile.gif
136
181
  - guides/assets/images/footer_tile.gif
137
182
  - guides/assets/images/fxn.png
183
+ - guides/assets/images/getting_started/article_with_comments.png
138
184
  - guides/assets/images/getting_started/challenge.png
139
185
  - guides/assets/images/getting_started/confirm_dialog.png
140
- - guides/assets/images/getting_started/forbidden_attributes_for_new_post.png
186
+ - guides/assets/images/getting_started/forbidden_attributes_for_new_article.png
141
187
  - guides/assets/images/getting_started/form_with_errors.png
142
188
  - guides/assets/images/getting_started/index_action_with_edit_link.png
143
- - guides/assets/images/getting_started/new_post.png
144
- - guides/assets/images/getting_started/post_with_comments.png
189
+ - guides/assets/images/getting_started/new_article.png
145
190
  - guides/assets/images/getting_started/rails_welcome.png
146
191
  - guides/assets/images/getting_started/routing_error_no_controller.png
147
192
  - guides/assets/images/getting_started/routing_error_no_route_matches.png
148
- - guides/assets/images/getting_started/show_action_for_posts.png
149
- - guides/assets/images/getting_started/template_is_missing_posts_new.png
150
- - guides/assets/images/getting_started/undefined_method_post_path.png
151
- - guides/assets/images/getting_started/unknown_action_create_for_posts.png
152
- - guides/assets/images/getting_started/unknown_action_new_for_posts.png
193
+ - guides/assets/images/getting_started/show_action_for_articles.png
194
+ - guides/assets/images/getting_started/template_is_missing_articles_new.png
195
+ - guides/assets/images/getting_started/unknown_action_create_for_articles.png
196
+ - guides/assets/images/getting_started/unknown_action_new_for_articles.png
153
197
  - guides/assets/images/grey_bullet.gif
154
198
  - guides/assets/images/habtm.png
155
199
  - guides/assets/images/has_many.png
@@ -164,6 +208,7 @@ files:
164
208
  - guides/assets/images/i18n/demo_translated_pirate.png
165
209
  - guides/assets/images/i18n/demo_translation_missing.png
166
210
  - guides/assets/images/i18n/demo_untranslated.png
211
+ - guides/assets/images/icons/README
167
212
  - guides/assets/images/icons/callouts/1.png
168
213
  - guides/assets/images/icons/callouts/10.png
169
214
  - guides/assets/images/icons/callouts/11.png
@@ -186,11 +231,9 @@ files:
186
231
  - guides/assets/images/icons/next.png
187
232
  - guides/assets/images/icons/note.png
188
233
  - guides/assets/images/icons/prev.png
189
- - guides/assets/images/icons/README
190
234
  - guides/assets/images/icons/tip.png
191
235
  - guides/assets/images/icons/up.png
192
236
  - guides/assets/images/icons/warning.png
193
- - guides/assets/images/jaimeiniesta.jpg
194
237
  - guides/assets/images/nav_arrow.gif
195
238
  - guides/assets/images/oscardelben.jpg
196
239
  - guides/assets/images/polymorphic.png
@@ -210,20 +253,20 @@ files:
210
253
  - guides/assets/javascripts/guides.js
211
254
  - guides/assets/javascripts/jquery.min.js
212
255
  - guides/assets/javascripts/responsive-tables.js
213
- - guides/assets/javascripts/syntaxhighlighter/shBrushAppleScript.js
214
256
  - guides/assets/javascripts/syntaxhighlighter/shBrushAS3.js
257
+ - guides/assets/javascripts/syntaxhighlighter/shBrushAppleScript.js
215
258
  - guides/assets/javascripts/syntaxhighlighter/shBrushBash.js
259
+ - guides/assets/javascripts/syntaxhighlighter/shBrushCSharp.js
216
260
  - guides/assets/javascripts/syntaxhighlighter/shBrushColdFusion.js
217
261
  - guides/assets/javascripts/syntaxhighlighter/shBrushCpp.js
218
- - guides/assets/javascripts/syntaxhighlighter/shBrushCSharp.js
219
262
  - guides/assets/javascripts/syntaxhighlighter/shBrushCss.js
220
263
  - guides/assets/javascripts/syntaxhighlighter/shBrushDelphi.js
221
264
  - guides/assets/javascripts/syntaxhighlighter/shBrushDiff.js
222
265
  - guides/assets/javascripts/syntaxhighlighter/shBrushErlang.js
223
266
  - guides/assets/javascripts/syntaxhighlighter/shBrushGroovy.js
267
+ - guides/assets/javascripts/syntaxhighlighter/shBrushJScript.js
224
268
  - guides/assets/javascripts/syntaxhighlighter/shBrushJava.js
225
269
  - guides/assets/javascripts/syntaxhighlighter/shBrushJavaFX.js
226
- - guides/assets/javascripts/syntaxhighlighter/shBrushJScript.js
227
270
  - guides/assets/javascripts/syntaxhighlighter/shBrushPerl.js
228
271
  - guides/assets/javascripts/syntaxhighlighter/shBrushPhp.js
229
272
  - guides/assets/javascripts/syntaxhighlighter/shBrushPlain.js
@@ -259,106 +302,41 @@ files:
259
302
  - guides/assets/stylesheets/syntaxhighlighter/shThemeFadeToGrey.css
260
303
  - guides/assets/stylesheets/syntaxhighlighter/shThemeMDUltra.css
261
304
  - guides/assets/stylesheets/syntaxhighlighter/shThemeMidnight.css
262
- - guides/assets/stylesheets/syntaxhighlighter/shThemeRailsGuides.css
263
305
  - guides/assets/stylesheets/syntaxhighlighter/shThemeRDark.css
306
+ - guides/assets/stylesheets/syntaxhighlighter/shThemeRailsGuides.css
307
+ - guides/bug_report_templates/action_controller_gem.rb
308
+ - guides/bug_report_templates/action_controller_master.rb
264
309
  - guides/bug_report_templates/active_record_gem.rb
265
310
  - guides/bug_report_templates/active_record_master.rb
266
- - guides/CHANGELOG.md
267
- - guides/code/getting_started/app/assets/javascripts/application.js
268
- - guides/code/getting_started/app/assets/javascripts/comments.js.coffee
269
- - guides/code/getting_started/app/assets/javascripts/posts.js.coffee
270
- - guides/code/getting_started/app/assets/javascripts/welcome.js.coffee
271
- - guides/code/getting_started/app/assets/stylesheets/application.css
272
- - guides/code/getting_started/app/assets/stylesheets/comments.css.scss
273
- - guides/code/getting_started/app/assets/stylesheets/posts.css.scss
274
- - guides/code/getting_started/app/assets/stylesheets/welcome.css.scss
275
- - guides/code/getting_started/app/controllers/application_controller.rb
276
- - guides/code/getting_started/app/controllers/comments_controller.rb
277
- - guides/code/getting_started/app/controllers/posts_controller.rb
278
- - guides/code/getting_started/app/controllers/welcome_controller.rb
279
- - guides/code/getting_started/app/helpers/application_helper.rb
280
- - guides/code/getting_started/app/helpers/comments_helper.rb
281
- - guides/code/getting_started/app/helpers/posts_helper.rb
282
- - guides/code/getting_started/app/helpers/welcome_helper.rb
283
- - guides/code/getting_started/app/models/comment.rb
284
- - guides/code/getting_started/app/models/post.rb
285
- - guides/code/getting_started/app/views/comments/_comment.html.erb
286
- - guides/code/getting_started/app/views/comments/_form.html.erb
287
- - guides/code/getting_started/app/views/layouts/application.html.erb
288
- - guides/code/getting_started/app/views/posts/_form.html.erb
289
- - guides/code/getting_started/app/views/posts/edit.html.erb
290
- - guides/code/getting_started/app/views/posts/index.html.erb
291
- - guides/code/getting_started/app/views/posts/new.html.erb
292
- - guides/code/getting_started/app/views/posts/show.html.erb
293
- - guides/code/getting_started/app/views/welcome/index.html.erb
294
- - guides/code/getting_started/bin/bundle
295
- - guides/code/getting_started/bin/rails
296
- - guides/code/getting_started/bin/rake
297
- - guides/code/getting_started/config/application.rb
298
- - guides/code/getting_started/config/boot.rb
299
- - guides/code/getting_started/config/database.yml
300
- - guides/code/getting_started/config/environment.rb
301
- - guides/code/getting_started/config/environments/development.rb
302
- - guides/code/getting_started/config/environments/production.rb
303
- - guides/code/getting_started/config/environments/test.rb
304
- - guides/code/getting_started/config/initializers/backtrace_silencers.rb
305
- - guides/code/getting_started/config/initializers/filter_parameter_logging.rb
306
- - guides/code/getting_started/config/initializers/inflections.rb
307
- - guides/code/getting_started/config/initializers/locale.rb
308
- - guides/code/getting_started/config/initializers/mime_types.rb
309
- - guides/code/getting_started/config/initializers/secret_token.rb
310
- - guides/code/getting_started/config/initializers/session_store.rb
311
- - guides/code/getting_started/config/initializers/wrap_parameters.rb
312
- - guides/code/getting_started/config/locales/en.yml
313
- - guides/code/getting_started/config/routes.rb
314
- - guides/code/getting_started/config.ru
315
- - guides/code/getting_started/db/migrate/20130122042648_create_posts.rb
316
- - guides/code/getting_started/db/migrate/20130122045842_create_comments.rb
317
- - guides/code/getting_started/db/schema.rb
318
- - guides/code/getting_started/db/seeds.rb
319
- - guides/code/getting_started/Gemfile
320
- - guides/code/getting_started/Gemfile.lock
321
- - guides/code/getting_started/public/404.html
322
- - guides/code/getting_started/public/422.html
323
- - guides/code/getting_started/public/500.html
324
- - guides/code/getting_started/public/favicon.ico
325
- - guides/code/getting_started/public/robots.txt
326
- - guides/code/getting_started/Rakefile
327
- - guides/code/getting_started/README.rdoc
328
- - guides/code/getting_started/test/controllers/comments_controller_test.rb
329
- - guides/code/getting_started/test/controllers/posts_controller_test.rb
330
- - guides/code/getting_started/test/controllers/welcome_controller_test.rb
331
- - guides/code/getting_started/test/fixtures/comments.yml
332
- - guides/code/getting_started/test/fixtures/posts.yml
333
- - guides/code/getting_started/test/helpers/comments_helper_test.rb
334
- - guides/code/getting_started/test/helpers/posts_helper_test.rb
335
- - guides/code/getting_started/test/helpers/welcome_helper_test.rb
336
- - guides/code/getting_started/test/models/comment_test.rb
337
- - guides/code/getting_started/test/models/post_test.rb
338
- - guides/code/getting_started/test/test_helper.rb
311
+ - guides/bug_report_templates/generic_gem.rb
312
+ - guides/bug_report_templates/generic_master.rb
313
+ - guides/rails_guides.rb
339
314
  - guides/rails_guides/generator.rb
340
315
  - guides/rails_guides/helpers.rb
341
316
  - guides/rails_guides/indexer.rb
342
317
  - guides/rails_guides/kindle.rb
343
318
  - guides/rails_guides/levenshtein.rb
344
- - guides/rails_guides/markdown/renderer.rb
345
319
  - guides/rails_guides/markdown.rb
346
- - guides/rails_guides.rb
347
- - guides/Rakefile
320
+ - guides/rails_guides/markdown/renderer.rb
348
321
  - guides/source/2_2_release_notes.md
349
322
  - guides/source/2_3_release_notes.md
350
323
  - guides/source/3_0_release_notes.md
351
324
  - guides/source/3_1_release_notes.md
352
325
  - guides/source/3_2_release_notes.md
353
326
  - guides/source/4_0_release_notes.md
327
+ - guides/source/4_1_release_notes.md
328
+ - guides/source/4_2_release_notes.md
354
329
  - guides/source/_license.html.erb
355
330
  - guides/source/_welcome.html.erb
356
331
  - guides/source/action_controller_overview.md
357
332
  - guides/source/action_mailer_basics.md
358
333
  - guides/source/action_view_overview.md
334
+ - guides/source/active_job_basics.md
359
335
  - guides/source/active_model_basics.md
360
336
  - guides/source/active_record_basics.md
361
337
  - guides/source/active_record_callbacks.md
338
+ - guides/source/active_record_migrations.md
339
+ - guides/source/active_record_postgresql.md
362
340
  - guides/source/active_record_querying.md
363
341
  - guides/source/active_record_validations.md
364
342
  - guides/source/active_support_core_extensions.md
@@ -366,6 +344,7 @@ files:
366
344
  - guides/source/api_documentation_guidelines.md
367
345
  - guides/source/asset_pipeline.md
368
346
  - guides/source/association_basics.md
347
+ - guides/source/autoloading_and_reloading_constants.md
369
348
  - guides/source/caching_with_rails.md
370
349
  - guides/source/command_line.md
371
350
  - guides/source/configuring.md
@@ -382,7 +361,6 @@ files:
382
361
  - guides/source/index.html.erb
383
362
  - guides/source/initialization.md
384
363
  - guides/source/kindle/copyright.html.erb
385
- - guides/source/kindle/KINDLE.md
386
364
  - guides/source/kindle/layout.html.erb
387
365
  - guides/source/kindle/rails_guides.opf.erb
388
366
  - guides/source/kindle/toc.html.erb
@@ -390,7 +368,7 @@ files:
390
368
  - guides/source/kindle/welcome.html.erb
391
369
  - guides/source/layout.html.erb
392
370
  - guides/source/layouts_and_rendering.md
393
- - guides/source/migrations.md
371
+ - guides/source/maintenance_policy.md
394
372
  - guides/source/nested_model_forms.md
395
373
  - guides/source/plugins.md
396
374
  - guides/source/rails_application_templates.md
@@ -412,17 +390,16 @@ require_paths:
412
390
  - lib
413
391
  required_ruby_version: !ruby/object:Gem::Requirement
414
392
  requirements:
415
- - - '>='
393
+ - - ">="
416
394
  - !ruby/object:Gem::Version
417
395
  version: 1.9.3
418
396
  required_rubygems_version: !ruby/object:Gem::Requirement
419
397
  requirements:
420
- - - '>='
398
+ - - ">="
421
399
  - !ruby/object:Gem::Version
422
400
  version: 1.8.11
423
401
  requirements: []
424
- rubyforge_project:
425
- rubygems_version: 2.0.2
402
+ rubygems_version: 3.0.3
426
403
  signing_key:
427
404
  specification_version: 4
428
405
  summary: Full-stack web application framework.