Browse the Ruby on Rails Community.

You are here: Forums Ask a Rails expert Make model from function...

Replytotopic

Make model from function

Posted in Forums : Ask a Rails expert

 
Profile

Authority 0
Posting Rating 0
Sign in to rate this post

Hello people,

is it posible to make a model mapped on the table-valued function. I need this composed with Caboose::EZ:: plugin for search. All I need is to reduce time for execution this big SQL. Make query is made: include_ids = find( :all, :conditions => cond.to_sql , :include => [ :work_experiences, :person_tests,....
and I want to put this model in the first place for join before :work_experience.
My problem is how to call this model/table with one input parameter of my function.

Sorry if I’m confusing :)
Thanks in advance!

 
Profile

Authority 0
Posting Rating 0
Sign in to rate this post

I’had to remove this plugin and to simulate that at my own, using joins as I needed.
That looked me as only possible solution and the fastest at the moment

Replytotopic

Other Recent Topics

Ask a Rails expert : How to work with ror 2.1.1 using Netbeans IDE 6.1

Ask a Rails expert : json gem error

Ask a Rails expert : Problem with break

Ask a Rails expert : activesupport string first method error

Ask a Rails expert : url_for broken ?

Ask a Rails expert : map.routes.rb pls help

Ask a Rails expert : how to h tag in controller

Ask a Rails expert : Problem with Restful routing and partial form

Ask a Rails expert : will_paginate, search and ajax

Ask a Rails expert : captcha

Formatting Help
  • *bold*       _italics_      
    bq. (quotes)
  • "DSC":http://www.dsc.net
  • * or # (lists)
or cancel