NIoSaT
NIoSaT

Reputation: 433

rails destroy controller does nothing

I was trying to delete (and then re-generate) the welcome controller in my rails Project. Since I misspelled some things and now nothing is working correctly (I am learning Rails right now)

So I ran

rails destroy controller welcome

But now nothing happens...
I've been waiting for over ten minutes for something to happen, but nothing...
No errors or any messages
And my project is as small as it could be ...

Any ideas on what I could do? Besides from trashing everything and starting form scratch again?

---Edit---
I fixed my initial problem and my project works again, but being able to delete controllers is something that I would like to be able to.

Upvotes: 0

Views: 1742

Answers (1)

Pavel Oganesyan
Pavel Oganesyan

Reputation: 6924

Try to remove routes manually and retry deleting with

rails d controller welcome -p

-p will post output to terminal. Check it for errors. If there are any errors, update answer with information about them. And if no errors are shown, try command again without -p.

Here is a post with lots of comments and answers about this command.

Upvotes: 1

Related Questions