The devise-api gem is a convenient way to add authentication to your Ruby on Rails application using the devise gem. It provides support for access tokens and refresh tokens, which allow you to authenticate API requests and keep the user's session active for a longer period of time on the client side
ActiveRecord::ConnectionNotEstablished at /api/v1/users/tokens/sign_in
No connection pool for 'ActiveRecord::Base' found.
To access an interactive console with this error, point your browser to: /__better_errors
activerecord (7.0.8) lib/active_record/connection_adapters/abstract/connection_handler.rb, line 208
203 message = "No connection pool for '#{spec_name}' found for the '#{role}' role."
204 else
205 message = "No connection pool for '#{spec_name}' found."
206 end
207
> 208 raise ConnectionNotEstablished, message
209 end
210
211 pool.connection
212 end
213
ActiveRecord::ConnectionNotEstablished at /api/v1/users/tokens/sign_in
No connection pool for 'ActiveRecord::Base' found.
activerecord (7.0.8) lib/active_record/connection_adapters/abstract/connection_handler.rb, line 208
App backtrace
Full backtrace