File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ config.scoped_collection_actions_if = -> { params[:scope] }
148148### Can I use my handler on update/delete action?
149149
150150You 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
153153This 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
253253We 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
You can’t perform that action at this time.
0 commit comments