- model_class = User
- content_for :actions do
  %li.nav-item
    = link_to 'new user', [:new, :user], class: "nav-link"

.user-filter
  .btn-group
    %a.btn.btn-primary{href: "#0"} #
    - ('a'..'z').each do |a|
      %a.btn.btn-primary{href: "##{a}"}= a
.row
.row
  = render @users

- content_for :footer do
  = javascript_include_tag "users"
  %noscript
    %style .user { display: initial; }

- model_class = User
- content_for :actions do
  %li.nav-item
    = link_to 'new user', [:new, :user], class: "nav-link"

.user-filter
  .btn-group
    %a.btn.btn-primary{href: "#0"} #
    - ('a'..'z').each do |a|
      %a.btn.btn-primary{href: "##{a}"}= a
.row
.row
  = render @users

- content_for :footer do
  = javascript_include_tag "users"
  %noscript
    %style .user { display: initial; }
    %style .user-filter { display: none; }

Hide the user filter if JavaScript is disabled
:lipstick: Hide the user filter if JavaScript is disabled
