0

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

Gareth
  • 133,157
  • 36
  • 148
  • 157
user1567909
  • 1,450
  • 2
  • 14
  • 24

1 Answers1

0

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.

Kevin Thompson
  • 2,466
  • 4
  • 29
  • 40