I typed the following code in the terminal to open the Ruby on Rails page.
% rails s =>Booting Puma =>Rails 126.96.36.199 application starting in development =>Run `rails server --help` for more startup options Puma starting in single mode ... * Version 4.3.6 (ruby 2.7.2-p137), codename: Mysterious Traveler * Min threads: 5, max threads: 5 * Environment: development * Listening on tcp: //127.0.0.1:3000 * Listening on tcp: // [:: 1]: 3000 Use Ctrl-C to stop Started GET "/" for :: 1 at 2020-11-17 01:20:19 +0900 ActiveRecord :: NoDatabaseError (FATAL: database "ooeakio_development" does not exist ): activerecord (188.8.131.52) lib/active_record/connection_adapters/postgresql_adapter.rb: 50: in `rescue in postgresql_connection' activerecord (184.108.40.206) lib/active_record/connection_adapters/postgresql_adapter.rb: 33: in `postgresql_connection' activerecord (220.127.116.11) ・ ・ ・ ・ ・ ・ (Omitted) ・ ・ ・ ・ ・ ・ puma (4.3.6) lib/puma/configuration.rb: 228: in `call' puma (4.3.6) lib/puma/server.rb: 713: in `handle_request' puma (4.3.6) lib/puma/server.rb: 472: in `process_client' puma (4.3.6) lib/puma/server.rb: 328: in `block in run' puma (4.3.6) lib/puma/thread_pool.rb: 134: in `block in spawn_thread'
On the contrary, the code does not work. Please tell me what to do.
Answer # 1
ActiveRecord :: NoDatabaseError (FATAL: database "ooeakio_development" does not exist
So the database has not been found.
First of all
database.ymlIt is necessary to confirm that there is no description error in.
For new DB
$rails db: createMay be needed.
- ruby on rails - validation does not work
- ruby - validation does not start
- the html page does not open
- ruby on rails - not created
- ruby version does not change
- ruby on rails - docker file is not up
- ruby on rails - api key is not read by dotenv-rails
- ruby - validation does not work
- ruby on rails - no route matches , missing required keys: [: id] cannot be resolved
- ruby - i want to collect the same records using rails group and get the value
- ruby on rails - i want to sort the search results
- ruby on rails - i want to solve the problem that scss is not applied after modifying the scss file with rails
- ruby on rails - about the legitimacy of db design
- [sqlite, ruby, rails] i want to sort the hash value data obtained from the table as i expected
- [ruby on rails] i want to implement a follow function, but the like button is not displayed in the view
- ruby - [rails] how to resolve activerecord errors
- ruby - allow rails chat app to save to only one room
- about validation of ruby on rails
- ruby on rails - [rails] i want to solve "no route matches [post]"/messages/search "" of "routing error&
- ruby - passing variables using render partial
- how to embed code in ruby on rails
- ruby - when deploying on capistrano, i get the error "access denied for user'ec2-user' @'localhost' (using password: no)&qu
- how to reflect the layout downloaded from the external site in ruby on rails?
- ruby - how nice! function routes do not pass well (relation) [rails]
- [ruby/rails] when you want to replace in a specific character string
- ruby - about associations with 4 models
- ruby - [rails] page transition is not correct after deploying heroku (we're sorry, but something went wrong)
- ruby - deployment error on heroku