Devanshu Singh


1,020 Experience
10 Lessons Completed
0 Questions Solved


What happens to the job if I schedule a tweet and then delete it? Is the job associated with it also deleted? Or the job still runs but as there is no body, no tweet is published?
What is the best way to handle a job after destroying a tweet ? Should there be an after delete hook called?
Can someone please shed light on this, thanks

Here are few naming conventions on models, controllers, views, routes

Usually models are singular and controllers plural. A User model has features, validations etc which define a user. A UsersController handles/controls all users.

However, in case of controllers and views they take singular names when they are not associated with models or do not abstract a resource e.g WelcomeController.
I think with practice this naming will come intuitively.

Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more.

© 2024 GoRails, LLC. All rights reserved.