Password-Protect a Single Page in Rails -


i have simple rails 4.2.4 app doesn't have or need users. would, however, password-protect single page (an admin page) happens index view. thoughts?

i added line top of controller , works:

http_basic_authenticate_with :name => "your_name", :password => "your_password", only: :index 

Comments