Skip to content

Commit bba5a70

Browse files
committed
release notes: edit pass [ci skip]
1 parent 8fb2396 commit bba5a70

File tree

1 file changed

+17
-19
lines changed

1 file changed

+17
-19
lines changed

guides/source/4_2_release_notes.md

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Ruby on Rails 4.2 Release Notes
44
Highlights in Rails 4.2:
55

66
* Active Job
7-
* Asynchronous Mails
7+
* Asynchronous mails
88
* Adequate Record
99
* Web Console
1010
* Foreign key support
@@ -119,22 +119,15 @@ The caching is not used in the following scenarios:
119119

120120
### Web Console
121121

122-
New applications generated from Rails 4.2 now come with the Web Console gem by
123-
default.
122+
New applications generated from Rails 4.2 now come with the [Web
123+
Console](https://github.com/rails/web-console) gem by default. Web Console adds
124+
an interactive Ruby console on every error page and provides a `console` view
125+
and controller helpers.
124126

125-
Web Console is a set of debugging tools for your Rails application. It adds an
126-
interactive console on every error page and a `console` view and controller
127-
helper.
128-
129-
The interactive console on the error pages lets you execute code where the
130-
exception originated. It's quite handy being able to introspect the state that
131-
led to the error.
132-
133-
The `console` view helper launches an interactive console within the context of
134-
the view where it is invoked.
135-
136-
The `console` controller helper spawns an interactive console within the
137-
context of the controller action it was invoked in.
127+
The interactive console on error pages lets you execute code in the context of
128+
the place where the exception originated. The `console` helper, if called
129+
anywhere in a view or controller, launches an interactive console with the final
130+
context, once rendering has completed.
138131

139132
### Foreign Key Support
140133

@@ -178,7 +171,7 @@ Previously, calling `render "foo/bar"` in a controller action was equivalent to
178171
instead. If you need to render a file, please change your code to use the
179172
explicit form (`render file: "foo/bar"`) instead.
180173

181-
### `respond_with` / class-level `respond_to`
174+
### `respond_with` / Class-Level `respond_to`
182175

183176
`respond_with` and the corresponding class-level `respond_to` have been moved
184177
to the [responders](https://github.com/plataformatec/responders) gem. Add
@@ -260,8 +253,13 @@ application is using any of these spellings, you will need to update them:
260253
non-alphanumeric characters.
261254

262255
```
263-
a[href=/] => a[href="/"]
264-
a[href$=/] => a[href$="/"]
256+
# before
257+
a[href=/]
258+
a[href$=/]
259+
260+
# now
261+
a[href="/"]
262+
a[href$="/"]
265263
```
266264
267265
* DOMs built from HTML source containing invalid HTML with improperly

0 commit comments

Comments
 (0)