Commandline statement inside rails controller

Viewed 8286

How to execute rails commandline statement inside our rails controller

eg: I need to execute this statement

$rails new test -d postgresql

from my rails controller

def index

/Code to execute the command line statement/

end

Hope am clear..

4 Answers
Related