Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 670 Bytes

README.md

File metadata and controls

32 lines (20 loc) · 670 Bytes

AccessLint::Rails

AccessLint::Rails tests and reports accessibility errors in your Rails application.

To test accessibility in the browser, include the linter's JavaScript.

In development and testing, violations will be raised as JavaScript errors.

In production, violations will be reported to the AccessLint service.

Usage

First, add the gem to your bundle:

# Gemfile

gem "access_lint-rails", github: "accesslint/access_lint-rails"

Then, invoke the helper at the bottom of your <body> tag:

<!-- app/views/layouts/application.html.erb -->

<body>
  <%= include_access_lint %>
</body>