Skip to content

Commit 126f49c

Browse files
committed
Update README.md
1 parent b06b9f7 commit 126f49c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ config.scoped_collection_actions_if = -> { params[:scope] }
148148
### Can I use my handler on update/delete action?
149149

150150
You can pass block to default actions update and delete.
151-
And do custom redirect after it. Use render(location: 'somethin') instead of redirect_to().
151+
And do custom redirect after it. Use render(location: 'something') instead of redirect_to().
152152

153153
This example renders form which allows to change "name" field. And after it do redirect to dashboard page.
154154

@@ -252,7 +252,7 @@ Example in JavaScript
252252

253253
We recommend to use Rails Flash messages.
254254

255-
Example with updating phone diagonal attribute. In this case you model Phone has validation:
255+
Example with updating phone diagonal attribute. In this case model Phone has validation:
256256

257257
```ruby
258258
class Phone < ActiveRecord::Base

0 commit comments

Comments
 (0)