After installing Devise in the previous video, we add the required configuration and customize the configuration to match the preferences for the app.
We delve briefly into working with Rails views and layouts using embedded Ruby in HTML (html.erb) and using Tailwind Play to validate the styling classes we are using.
After that, we configure a Devise secret key and pepper using Rails encrypted credentials on a per-environment basis. We walk through creating those files and how to access the attributes. (Then we change the attributes we displayed on-screen before committing so that there isn't an encrypted and decrypted version of the file available on the internet.)
We go through the rest of the configuration options, making changes based on preferences for this application.
After fixing some RuboCop offenses, we create a GitHub Actions version of our test credentials file and use GitHub repository secrets to get the file into our build.
This video covers:
00:00:12 Introduction
00:01:39 Configure default_url_options in environment files
00:03:32 Add flash messages to application layout and use Tailwind Play to double-check them
00:08:30 Set up Devise secret_key and pepper using Rails credentials for various environments
00:20:20 Customize the other attributes in the Devise configuration file to match preferences for the app
00:29:18 Run RuboCop, correct offenses, add exclusions
00:33:08 Create a specific credentials file for GitHub actions
00:38:27 Modify main.yml build to copy GitHub Actions version of credentials
00:40:26 Use repository secret to copy GitHub Actions key for credentials into the build
00:42:00 Commit and first build attempt
00:45:22 Build failed, remove master key environment variable from main.yml build
00:47:17 Mark sub-task complete
#ruby #rails7 #rails #rubyonrails #rubygems #codecast #screencast #github #opensource #minitest #TDD #agile #NerdDice #DnD #roleplaying #softwaredevelopment #learntocode #tailwind #postgresql #rubocop #bundler #gemfile #devise #turbo #githubactions #railscredentials
See other related StatelessCode videos:
Install Devise 4.8 on a Rails 7 Application • Install Devise 4.8 on a Rails 7 Appli...
Set up GitHub Actions with Rails 7 and Get Working with PostgreSQL • Set up GitHub Actions with Rails 7 an...
This video is CC0 - No rights reserved. (YouTube doesn't allow this option when publishing.) All code is released under the UNLICENSE. Stateless Code denies the concept of "intellectual property". Copying is not stealing.
Watch video Configure Devise Settings and Add Environment-Specific Rails Credentials online without registration, duration hours minute second in high quality. This video was added by user Stateless Code 26 October 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 173 once and liked it 1 people.