Mitchell Gould wrote:
> Alexei Spirit wrote:
>> Alexei Spirit wrote:
>>> Something like this:
>>> 
>>> Manufacturer.all :joins => :description, :conditions => {:descriptions 
>>> => {:locale => I18n.locale}}
>> 
>> Version with :order
>> 
>> Manufacturer.all :joins => :description, :order => :name, :conditions => 
>> {:descriptions => {:locale => I18n.locale}}
> 
> Thank you so much.
> 
> I did this based upon what you wrote above and it works great.
> 
> find(:all, :joins => :descriptions, :order => :name, :conditions => 
> {:descriptions => {:locale => I18n.locale}})
> 
> 
> Thanks again.

One last question.
I need the description for the manufacturer that is found in the table 
descriptions. How do I get this columns info and how do I access it in 
the view?

Thank you in advance
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
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