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.
- checksums.yaml +5 -5
- data/README.md +30 -23
- data/guides/CHANGELOG.md +108 -6
- data/guides/Rakefile +21 -6
- data/guides/assets/images/akshaysurve.jpg +0 -0
- data/guides/assets/images/edge_badge.png +0 -0
- data/guides/assets/images/feature_tile.gif +0 -0
- data/guides/assets/images/footer_tile.gif +0 -0
- data/guides/assets/images/fxn.png +0 -0
- data/guides/assets/images/getting_started/article_with_comments.png +0 -0
- data/guides/assets/images/getting_started/challenge.png +0 -0
- data/guides/assets/images/getting_started/confirm_dialog.png +0 -0
- data/guides/assets/images/getting_started/forbidden_attributes_for_new_article.png +0 -0
- data/guides/assets/images/getting_started/form_with_errors.png +0 -0
- data/guides/assets/images/getting_started/index_action_with_edit_link.png +0 -0
- data/guides/assets/images/getting_started/new_article.png +0 -0
- data/guides/assets/images/getting_started/rails_welcome.png +0 -0
- data/guides/assets/images/getting_started/routing_error_no_controller.png +0 -0
- data/guides/assets/images/getting_started/routing_error_no_route_matches.png +0 -0
- data/guides/assets/images/getting_started/show_action_for_articles.png +0 -0
- data/guides/assets/images/getting_started/template_is_missing_articles_new.png +0 -0
- data/guides/assets/images/getting_started/unknown_action_create_for_articles.png +0 -0
- data/guides/assets/images/getting_started/unknown_action_new_for_articles.png +0 -0
- data/guides/assets/images/header_tile.gif +0 -0
- data/guides/assets/images/icons/README +1 -1
- data/guides/assets/images/icons/callouts/11.png +0 -0
- data/guides/assets/images/icons/callouts/12.png +0 -0
- data/guides/assets/images/icons/callouts/13.png +0 -0
- data/guides/assets/images/icons/callouts/15.png +0 -0
- data/guides/assets/images/icons/caution.png +0 -0
- data/guides/assets/images/icons/example.png +0 -0
- data/guides/assets/images/radar.png +0 -0
- data/guides/assets/images/rails4_features.png +0 -0
- data/guides/assets/images/rails_guides_kindle_cover.jpg +0 -0
- data/guides/assets/images/vijaydev.jpg +0 -0
- data/guides/assets/javascripts/guides.js +36 -34
- data/guides/assets/stylesheets/main.css +6 -2
- data/guides/assets/stylesheets/print.css +1 -1
- data/guides/bug_report_templates/action_controller_gem.rb +47 -0
- data/guides/bug_report_templates/action_controller_master.rb +54 -0
- data/guides/bug_report_templates/active_record_gem.rb +5 -2
- data/guides/bug_report_templates/active_record_master.rb +3 -2
- data/guides/bug_report_templates/generic_gem.rb +15 -0
- data/guides/bug_report_templates/generic_master.rb +26 -0
- data/guides/rails_guides.rb +23 -4
- data/guides/rails_guides/generator.rb +1 -1
- data/guides/rails_guides/helpers.rb +4 -2
- data/guides/rails_guides/levenshtein.rb +27 -21
- data/guides/rails_guides/markdown.rb +11 -7
- data/guides/rails_guides/markdown/renderer.rb +1 -1
- data/guides/source/2_2_release_notes.md +3 -3
- data/guides/source/2_3_release_notes.md +12 -12
- data/guides/source/3_0_release_notes.md +10 -13
- data/guides/source/3_1_release_notes.md +7 -4
- data/guides/source/3_2_release_notes.md +17 -14
- data/guides/source/4_0_release_notes.md +110 -54
- data/guides/source/4_1_release_notes.md +730 -0
- data/guides/source/4_2_release_notes.md +877 -0
- data/guides/source/_license.html.erb +1 -1
- data/guides/source/_welcome.html.erb +6 -2
- data/guides/source/action_controller_overview.md +223 -57
- data/guides/source/action_mailer_basics.md +129 -76
- data/guides/source/action_view_overview.md +247 -246
- data/guides/source/active_job_basics.md +339 -0
- data/guides/source/active_model_basics.md +374 -20
- data/guides/source/active_record_basics.md +46 -45
- data/guides/source/active_record_callbacks.md +83 -28
- data/guides/source/{migrations.md → active_record_migrations.md} +191 -275
- data/guides/source/active_record_postgresql.md +433 -0
- data/guides/source/active_record_querying.md +382 -300
- data/guides/source/active_record_validations.md +64 -55
- data/guides/source/active_support_core_extensions.md +229 -187
- data/guides/source/active_support_instrumentation.md +23 -22
- data/guides/source/api_documentation_guidelines.md +167 -15
- data/guides/source/asset_pipeline.md +768 -294
- data/guides/source/association_basics.md +188 -96
- data/guides/source/autoloading_and_reloading_constants.md +1311 -0
- data/guides/source/caching_with_rails.md +45 -11
- data/guides/source/command_line.md +96 -65
- data/guides/source/configuring.md +404 -70
- data/guides/source/contributing_to_ruby_on_rails.md +270 -130
- data/guides/source/credits.html.erb +7 -3
- data/guides/source/debugging_rails_applications.md +471 -284
- data/guides/source/development_dependencies_install.md +115 -21
- data/guides/source/documents.yaml +31 -9
- data/guides/source/engines.md +737 -291
- data/guides/source/form_helpers.md +137 -89
- data/guides/source/generators.md +60 -28
- data/guides/source/getting_started.md +1007 -596
- data/guides/source/i18n.md +178 -96
- data/guides/source/index.html.erb +2 -1
- data/guides/source/initialization.md +248 -104
- data/guides/source/kindle/toc.html.erb +1 -1
- data/guides/source/layout.html.erb +14 -22
- data/guides/source/layouts_and_rendering.md +78 -46
- data/guides/source/maintenance_policy.md +78 -0
- data/guides/source/nested_model_forms.md +10 -7
- data/guides/source/plugins.md +66 -57
- data/guides/source/rails_application_templates.md +49 -12
- data/guides/source/rails_on_rack.md +50 -60
- data/guides/source/routing.md +190 -139
- data/guides/source/ruby_on_rails_guides_guidelines.md +12 -13
- data/guides/source/security.md +134 -83
- data/guides/source/testing.md +322 -200
- data/guides/source/upgrading_ruby_on_rails.md +834 -37
- data/guides/source/working_with_javascript_in_rails.md +36 -26
- data/guides/w3c_validator.rb +2 -0
- metadata +93 -116
- data/guides/assets/images/getting_started/forbidden_attributes_for_new_post.png +0 -0
- data/guides/assets/images/getting_started/new_post.png +0 -0
- data/guides/assets/images/getting_started/post_with_comments.png +0 -0
- data/guides/assets/images/getting_started/show_action_for_posts.png +0 -0
- data/guides/assets/images/getting_started/template_is_missing_posts_new.png +0 -0
- data/guides/assets/images/getting_started/undefined_method_post_path.png +0 -0
- data/guides/assets/images/getting_started/unknown_action_create_for_posts.png +0 -0
- data/guides/assets/images/getting_started/unknown_action_new_for_posts.png +0 -0
- data/guides/assets/images/jaimeiniesta.jpg +0 -0
- data/guides/code/getting_started/Gemfile +0 -43
- data/guides/code/getting_started/Gemfile.lock +0 -150
- data/guides/code/getting_started/README.rdoc +0 -28
- data/guides/code/getting_started/Rakefile +0 -6
- data/guides/code/getting_started/app/assets/javascripts/application.js +0 -16
- data/guides/code/getting_started/app/assets/javascripts/comments.js.coffee +0 -3
- data/guides/code/getting_started/app/assets/javascripts/posts.js.coffee +0 -3
- data/guides/code/getting_started/app/assets/javascripts/welcome.js.coffee +0 -3
- data/guides/code/getting_started/app/assets/stylesheets/application.css +0 -13
- data/guides/code/getting_started/app/assets/stylesheets/comments.css.scss +0 -3
- data/guides/code/getting_started/app/assets/stylesheets/posts.css.scss +0 -3
- data/guides/code/getting_started/app/assets/stylesheets/welcome.css.scss +0 -3
- data/guides/code/getting_started/app/controllers/application_controller.rb +0 -5
- data/guides/code/getting_started/app/controllers/comments_controller.rb +0 -17
- data/guides/code/getting_started/app/controllers/posts_controller.rb +0 -47
- data/guides/code/getting_started/app/controllers/welcome_controller.rb +0 -4
- data/guides/code/getting_started/app/helpers/application_helper.rb +0 -2
- data/guides/code/getting_started/app/helpers/comments_helper.rb +0 -2
- data/guides/code/getting_started/app/helpers/posts_helper.rb +0 -2
- data/guides/code/getting_started/app/helpers/welcome_helper.rb +0 -2
- data/guides/code/getting_started/app/models/comment.rb +0 -3
- data/guides/code/getting_started/app/models/post.rb +0 -7
- data/guides/code/getting_started/app/views/comments/_comment.html.erb +0 -15
- data/guides/code/getting_started/app/views/comments/_form.html.erb +0 -13
- data/guides/code/getting_started/app/views/layouts/application.html.erb +0 -14
- data/guides/code/getting_started/app/views/posts/_form.html.erb +0 -27
- data/guides/code/getting_started/app/views/posts/edit.html.erb +0 -5
- data/guides/code/getting_started/app/views/posts/index.html.erb +0 -21
- data/guides/code/getting_started/app/views/posts/new.html.erb +0 -5
- data/guides/code/getting_started/app/views/posts/show.html.erb +0 -18
- data/guides/code/getting_started/app/views/welcome/index.html.erb +0 -3
- data/guides/code/getting_started/bin/bundle +0 -4
- data/guides/code/getting_started/bin/rails +0 -4
- data/guides/code/getting_started/bin/rake +0 -4
- data/guides/code/getting_started/config.ru +0 -4
- data/guides/code/getting_started/config/application.rb +0 -18
- data/guides/code/getting_started/config/boot.rb +0 -4
- data/guides/code/getting_started/config/database.yml +0 -25
- data/guides/code/getting_started/config/environment.rb +0 -5
- data/guides/code/getting_started/config/environments/development.rb +0 -30
- data/guides/code/getting_started/config/environments/production.rb +0 -80
- data/guides/code/getting_started/config/environments/test.rb +0 -36
- data/guides/code/getting_started/config/initializers/backtrace_silencers.rb +0 -7
- data/guides/code/getting_started/config/initializers/filter_parameter_logging.rb +0 -4
- data/guides/code/getting_started/config/initializers/inflections.rb +0 -16
- data/guides/code/getting_started/config/initializers/locale.rb +0 -9
- data/guides/code/getting_started/config/initializers/mime_types.rb +0 -5
- data/guides/code/getting_started/config/initializers/secret_token.rb +0 -12
- data/guides/code/getting_started/config/initializers/session_store.rb +0 -3
- data/guides/code/getting_started/config/initializers/wrap_parameters.rb +0 -14
- data/guides/code/getting_started/config/locales/en.yml +0 -23
- data/guides/code/getting_started/config/routes.rb +0 -7
- data/guides/code/getting_started/db/migrate/20130122042648_create_posts.rb +0 -10
- data/guides/code/getting_started/db/migrate/20130122045842_create_comments.rb +0 -11
- data/guides/code/getting_started/db/schema.rb +0 -33
- data/guides/code/getting_started/db/seeds.rb +0 -7
- data/guides/code/getting_started/public/404.html +0 -58
- data/guides/code/getting_started/public/422.html +0 -58
- data/guides/code/getting_started/public/500.html +0 -57
- data/guides/code/getting_started/public/favicon.ico +0 -0
- data/guides/code/getting_started/public/robots.txt +0 -5
- data/guides/code/getting_started/test/controllers/comments_controller_test.rb +0 -7
- data/guides/code/getting_started/test/controllers/posts_controller_test.rb +0 -7
- data/guides/code/getting_started/test/controllers/welcome_controller_test.rb +0 -9
- data/guides/code/getting_started/test/fixtures/comments.yml +0 -11
- data/guides/code/getting_started/test/fixtures/posts.yml +0 -9
- data/guides/code/getting_started/test/helpers/comments_helper_test.rb +0 -4
- data/guides/code/getting_started/test/helpers/posts_helper_test.rb +0 -4
- data/guides/code/getting_started/test/helpers/welcome_helper_test.rb +0 -4
- data/guides/code/getting_started/test/models/comment_test.rb +0 -7
- data/guides/code/getting_started/test/models/post_test.rb +0 -7
- data/guides/code/getting_started/test/test_helper.rb +0 -15
- 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(@
|
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="/
|
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=
|
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
|
-
$("#
|
182
|
-
$("#
|
183
|
-
).
|
184
|
-
$("#
|
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('/
|
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 "
|
222
|
+
<%= link_to "an article", @article, remote: true %>
|
211
223
|
```
|
212
224
|
|
213
225
|
which generates
|
214
226
|
|
215
227
|
```html
|
216
|
-
<a href="/
|
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
|
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
|
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
|
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 "
|
252
|
+
<%= button_to "An article", @article, remote: true %>
|
241
253
|
```
|
242
254
|
|
243
255
|
this generates
|
244
256
|
|
245
257
|
```html
|
246
|
-
<form action="/
|
247
|
-
<div><input type="submit" value="
|
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
|
-
|
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
|
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
|
-
|
307
|
-
|
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
|
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)
|
data/guides/w3c_validator.rb
CHANGED
@@ -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.
|
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:
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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:
|
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:
|
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/
|
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/
|
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/
|
149
|
-
- guides/assets/images/getting_started/
|
150
|
-
- guides/assets/images/getting_started/
|
151
|
-
- guides/assets/images/getting_started/
|
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/
|
267
|
-
- guides/
|
268
|
-
- guides/
|
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/
|
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
|
-
|
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.
|