Forum: Ruby on Rails SQL Console to View

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Lubomir H. (Guest)
on 2009-03-06 12:52
Hi, I have one request.. is there any way, how can I display SQL console
results in view? I mean, for example I have PostgreSQL server, and a
simple form, where user can put any SQL command, which will be executed
via ActiveRecord::Base.connection.execute(sql) and the actual response
(if possible) will be returned to view.. just like sql comman line
utility or something..

Thanks for any advice..

Lubomir Herko
This topic is locked and can not be replied to.