Skip to content

Commit b06b9f7

Browse files
committed
Update README.md
1 parent 63aff0f commit b06b9f7

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Plugin for ActiveAdmin. Provides batch Update and Delete for scoped_collection (
1010

1111
# Description
1212

13-
This gem give you ability to perform various batch actions on any filtered(or scoped) resource. Action applies to all elements across all pages. It is similar to ActiveAdmin batch action, but affects not only checked records. Usefull if you want to delete or update a lot of records in one click.
13+
This gem give you ability to perform various batch actions on any filtered(or scoped) resource. Action applies to all records across all pages. It is similar to ActiveAdmin batch action, but affects not only checked records. Usefull if you want to delete or update a lot of records in one click.
1414

1515
# Install
1616

@@ -108,7 +108,7 @@ ActiveAdmin.register Phone do
108108
end
109109
```
110110

111-
This simple code will create new button in sidebari "Erase date". After clicking on this button, user will see confirm message "Are you sure?". After confirming all filtered records will be updated.
111+
This simple code will create new button "Erase date" in sidebar. After clicking this button, user will see confirm message "Are you sure?". After confirming all filtered records will be updated.
112112

113113

114114
# Details and Settings
@@ -133,7 +133,7 @@ scoped_collection_action :something_here
133133
You resource should have some collection actions. If it doesn't have any - sidebar will not appear.
134134

135135
And the last one. By default we dont allow perform actions on all the records. We want protect you from accidental deleting.
136-
Sidebar with buttons will appear only after you perform filtering or scopes on resource records
136+
Sidebar with buttons will appear only after you perform filtering or scopes on resource records.
137137

138138
And lastly you can manage sidebar visibility by resource config:
139139

@@ -178,7 +178,7 @@ Example:
178178

179179
### How can I modify modal dialog title?
180180

181-
Similar to button title. User option :confirm
181+
Similar to button title. Use option :confirm
182182

183183
```ruby
184184
scoped_collection_action :scoped_collection_destroy, confirm: 'Delete all phones?'
@@ -200,7 +200,7 @@ Now in HTML page, you have button:
200200
<button class="my_popup" data="{&quot;auth_token&quot;:&quot;2a+KLu5u9McQENspCiep0DGZI6D09fCVXAN9inrwRG0=&quot;,&quot;batch_action&quot;:&quot;my_pop_action&quot;,&quot;confirm&quot;:&quot;Are you sure?&quot;}">My pop action</button>
201201
```
202202

203-
But without handler. Click on the button do nothing.
203+
But without handler. Clicking on the button does nothing.
204204

205205
You can render form in any way you want.
206206
It can be some popup(Fancybox, Simplemodal, etc.), or some inline collapsible form.
@@ -252,7 +252,7 @@ Example in JavaScript
252252

253253
We recommend to use Rails Flash messages.
254254

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

257257
```ruby
258258
class Phone < ActiveRecord::Base
@@ -281,7 +281,7 @@ When you try to update diagonal with "5.6" you will see flash error:
281281
Diagonal must be an integer.
282282
```
283283

284-
But if you use you custom popup, you can show messages with JS.
284+
But if you use your custom popup, you can show messages with JS.
285285

286286

287287
### Can I perform action only on selected items?

0 commit comments

Comments
 (0)