Calling an application from rails

I have an existing website / application that uses COBOL-CGI where the COBOL application generates html pages by populating data using placeholders.

Now I want to create a rails site that in addition to using its own db also needs to call an external application to get various information.

Can this application be called with cgi? Is there a better way to call third party apps from rails? ActiveX?

+1


source to share


1 answer


You probably want to do it a little differently. You can make your Rails application call COBOL CGI, but the current one produces HTML that you need to clean up for data.



You are probably best off changing COBOL to create a simpler view, all the way down to a CSV file, including YAML or JSON, which might be a little easier to use. Then you can call the COBOL application and write its output for use by the rails application.

+4


source







All Articles