How can i destroy controller??

I can generate a controller, but cannot destroy a controller.
I can generate by "tools>run rails generator" but I cannot find destroy menu.
So I have to open terminal and type command.

How can i execute "rails destroy controller ***** on RedMine" ?
My RubyMine version is 4.5.3

4 comments
Comment actions Permalink

Hi,

you can use Tools|Run Rails Script... for this

Hope this helps, Oleg.

0
Comment actions Permalink

i tried to do that,but i couldn't do that.
script/destroy is for rails2, isn't it?
I am using rails3.

when i open Tools|Run Rails Script and input "destroy" in the script textbox and push "run" botton,
error occurs like "unable to execute Rails script. Script  "destroy" not found!"
i also typed on terminal like this:

$ruby script/destroy

ruby: No such file or directory -- script/destroy (LoadError)



should i install rails2? or other problems?
thanks.
0
Comment actions Permalink

Hi,

the script is "rails".  "destroy" is the first parameter of the script.

Regards, Oleg.

1
Comment actions Permalink

i see.it worked!
i appriciate you!

0

Please sign in to leave a comment.