Use CSS-compatible row IDs in datatables
In CSS IDs may not begin with a number: - https://www.w3.org/TR/CSS21/syndata.html#value-def-identifier
This commit is contained in:
parent
38f266f716
commit
57e9135287
3 changed files with 7 additions and 2 deletions
|
|
@ -76,6 +76,9 @@ describe UserDatatable do
|
|||
allow(view).to receive(:admin_user_path) do |arg|
|
||||
"/admin/users/#{arg.to_param}"
|
||||
end
|
||||
allow(view).to receive(:dom_id) do |user|
|
||||
"user_#{user.id}"
|
||||
end
|
||||
allow(view).to receive(:edit_admin_user_path) do |arg|
|
||||
"/admin/users/#{arg.to_param}/edit"
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue