Trying to get a command line function to work in rails

Hello all, let me preface by saying that I am a complete neophyte.

I have put together a toy application to monitor the domains that we
host. It displays basic information about the domain which I pull
from a database. One of the things that I would like to do is, when
the user drills down on a particular domain, have the system do a dig
and display the returned info in the page. I have tried several
things such as:

def dig
@dig = dig @ns2.emarketsouth.com #{domain.domain_name}
end

and none of them seem to work. This type of construct does seem to
work in IRB, but I am obviously missing something. Could someone
give me a nudge in the right direction?

Phil P.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs