What u should do if u was started rails server and open localhost:
- Run $rails db:seed and authorize as user with this params: email: user@gmail.com, password: password
- At second tab authorize as admin with this params: email: admin@gmail.com, password: password.
- As user u can only create and edit advertisement when it has state draft and add advertisement.
- As admin u can approve or cancel after publish or approved advertisement will auto published at 12:00 am.
- Only published advertisements show on home page.
That all you can do here https://ads-by.herokuapp.com/
- Ruby 2.7.0
- Rails 6.0.3
- PostgreSQL
While developing the application, there was a problem in creating an advertising model, namely the title column. As soon as I didn't try to debug, but I couldn't see the text area in the view in any way. It turned out that adblock was blocking the "title" keyword and I had to change all the title fields on the name;)