Terrific, guys. Thanks!

On Fri, Dec 18, 2009 at 11:27 AM, mat <[email protected]> wrote:
> There are a number of activerecord methods that will probably get you
> what you want.  Take a look at columns or inspect.
>
> http://api.rubyonrails.org/classes/ActiveRecord/Base.html
>
> M
>
> On Dec 17, 8:17 pm, Rilindo Foster <[email protected]> wrote:
>> Is there a method that can either run a describe on the table or pull a list 
>> of fields from a table? The rationale is that I am looking for a while to 
>> automatically populate a drop down list so that I can execute a search based 
>> on the field name submitted from the form. I can, of course, populate it 
>> manually, but with 8+ models, it gets old fast.
>>
>> Is this the way to do it, through? Or should I try something like Sphinx for 
>> these type of searches (which I am thinking of using anyway).
>>
>>  - Rilindo
>
> --
>
> You received this message because you are subscribed to the Google Groups 
> "Ruby on Rails: Talk" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>
>



-- 
Rilindo Foster
AOL Instant Messenger: rilindo
Google Talk: [email protected]
Web Site: http://www.monzell.com
Primary: [email protected]
Secondary: [email protected]
"Rich bachelors should be heavily taxed. It is not fair that some men
should be happier than others. -- Oscar Wilde

--

You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.


Reply via email to