I accidentally deleted my app/controllers file on Ruby Rails. How would I get it back? I didn’t use git init when I first set it up.
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You really don’t have to start a whole new project if you’ve permanently lost your controller file. You can do a ‘rails g controller ControllerName new index show create etc.’
You’ll still have to fill in a lot of the logic, but it’s better than starting your whole project over. And for the love of ${DIETY} back up your stuff.