-
-
Notifications
You must be signed in to change notification settings - Fork 528
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suspenders for API-only app? #943
Comments
FWIW, I created a Rails app in API-only mode recently with:
Made some edits, first commit looked something like this: https://gist.github.com/croaky/f11ff9e3be24ad317e6f175efcb07048 About two months later, Gemfile looks something like this: # frozen_string_literal: true
source 'https://rubygems.org'
ruby '2.5.1'
gem 'clearance', '~> 1.16.1'
gem 'lograge', '~> 0.10'
gem 'pg', '>= 0.18', '< 2.0'
gem 'puma', '~> 3.11'
gem 'rails', '~> 5.2.1'
group :development, :test do
gem 'byebug'
gem 'dotenv-rails', '~> 2.5.0'
gem 'factory_bot'
gem 'rspec-rails'
gem 'shoulda-matchers', '~> 3.1'
gem 'webmock'
end
group :development do
gem 'letter_opener', '~> 1.6.0'
gem 'listen', '>= 3.0.5', '< 3.2'
end
# frozen_string_literal: true
Clearance.configure do |config|
config.allow_sign_up = false
config.httponly = true
config.mailer_sender = '[email protected]'
config.rotate_csrf_on_sign_in = true
config.routes = false
config.secure_cookie = true
end |
Thank you for this, @croaky ! I especially love knowing what the |
In #1135 we introduced |
Provide an answer to the question: should I use Suspenders if my app renders no HTML?
The text was updated successfully, but these errors were encountered: