Topic: SQL query defined by my users.
I am developing my first rails app and I am having a hard time trying to figure out something.
In my app, users have to be able to make sql queries directly.
I tough about having something resembling www.tryruby.org console, but i have no clue how to do it.
What I am doing now is, i have a form_for that sends the query to my sql controller, that will be making the validations and then return the result of the query on a partial to be rendered on the same page.
The problem is that my partial is rendering a new page, which is weird, because my controller should UPDATE the page, rendering the partial on a given DIV.
As soon as I am home I am gonna post some code.
Last edited by erzads (2011-07-13 09:52:57)