In order to create a new admin record, I added a rake task to my rails project. The task prompts the user for the credentials of the new user and creates the admin in the database. Since I don’t have a link on the page for the admin login, I wanted to remind the user how to access the login screen. By default, rake tasks don’t load the url_helper module, so you need to include it in your task.
Posts tagged: rake
First and foremost, I am a husband to the most incredible woman alive, a father of four amazing children and in general, I love being alive.