Devanshu Singh
Joined
Activity
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
https://gist.github.com/iangreenleaf/b206d09c587e8fc6399e
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.