Getting Started
-
4. Making Rails 6 App
Now to Create Rails 6 Hello-World on Arch
Simply play:rails new hello
-
5. Fixing Rails 6 App
Then to Solve Rails 6 Webpacker Install Error in Linux
Access Rails App Target:cd hello
Edit the Gemfile
In case, with the nano Editor like:nano ./Gemfile
Then to manage the psych Version Append:
gem 'psych', '< 4'
And again Upgrade the webpacker Gem minimum Release:
gem 'webpacker', '~>5.0'
Finally, Ctrl+x to Save & Exit from nano Editor.
Next Update your Gems Bundle with:bundle update
Now to Setup Webpacker run:
rails webpacker:install
Just confirm to Overwrite all proposed Files.
Last, Install the missing Babel Plugins:yarn add @babel/plugin-proposal-private-methods
yarn add @babel/plugin-proposal-private-property-in-object
Running the built in Web Server:
rails server
Last, you can access it on: https://localhost:3000!
Congratulations! :)
Next see below for Further insight about How to follow your Rails Journey making some Controllers, Views, Routes, Models… -
6. Rails 6 Getting-Started Guide
Getting-Started with Rails 6 on GNU/Linux
Contents