rails _7.1.3.4_ new <project_name> -j esbuild
echo "22.13" > .nvmrc > .node-version
echo "3.3.5" > .ruby-version
rbenv install
nvm install
.gitignore File from Wheelcurl -o ".gitignore" "<https://raw.githubusercontent.com/bigbinary/wheel/main/.gitignore>"
Comment out fixtures :all in test/test_helper.rb
Delete all fixtures:
rm -rf test/fixtures
Add the following snippet inside the Application class in config/application.rb, for disabling auto generation of fixtures:
config.generators do |g|
g.test_framework :test_unit, fixture: false
end
If encounter with an error like LoadError: cannot load such file -- /home/manas/.rbenv/versions/3.3.5/lib/ruby/gems/3.3.0/gems/prettyprint-0.2.0/lib/prettyprint.rb (LoadError) , then run:
gem install prettyprint
bundle install
SQlite3 database is the default database for a newly created Rails application.
Run this command to create databases:
bundle exec rails db:create
bundle exec rails server