def index self.this = Engineer.where(["available_date < ?", Date.today]) hobo_index end
Bryan On Wed, Oct 10, 2012 at 11:26 AM, tomkins <[email protected]> wrote: > I would like to know how I can do a conditional query: (SELECT * FROM > engineers WHERE available_date < todaysDate) and then put the results inside > a table plus. I currently can only get every engineer. > Any help is greatly appreciated, thanks. > > -- > You received this message because you are subscribed to the Google Groups > "Hobo Users" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/hobousers/-/lYhsGBQ8yjgJ. > 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/hobousers?hl=en. -- You received this message because you are subscribed to the Google Groups "Hobo Users" 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/hobousers?hl=en.
