Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9201499
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T23:01:21+00:00 2026-06-17T23:01:21+00:00

Using Globalize3 I am trying to load the following models including translations in a

  • 0

Using Globalize3 I am trying to load the following models including translations in a single query:

  • products (with product_translations)
  • properties (with property_translations)

When I try the query below it loads only the translations for product. Despite some tries, I have no idea how to load property_translations.

@products = Product.includes(:properties).with_translations

Edit (1)

My goal is to load the 2 models with translations with eager loading. Right now, It loads products, product_translations and properties in a single query but not property_translations

I have also tried:

Product.with_translations.all(:include => { :properties => :property_translations }

But the issue here is there is no property_translations model (table created with Globalize3)

Thanks for your thought!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T23:01:23+00:00Added an answer on June 17, 2026 at 11:01 pm

    I’ve got the answer from the following question: Rails 3 includes translations globalize3 activerecord which is:

    @products = Product.includes([:translations, {:properties => :translations}])
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using the DateTime class, if I try to run the following code: $mydate =
I'm trying to use Globalize3 as a simple way to provide translations to a
I'm using rails 3.2.8, globalize3 and batch_translations to translate specific content for an little
Using this code, the following execution yields strange results: C 100 R W The
using xmltextreader, how would I load a hashtable. XML: <base><user name=john>2342343</user><user name=mark>239099393</user></base> This was
I am looking to implement a simple search function while using the globalize3 gem
Using Sinatra and DataMapper. This is my first time trying to use more than
I’m using latest globalize2 and rails 2.2. I wonder if the following is bug
Using PHP and MySQL, I want to query a table of postings my users
I have been trying to format regional (locale) specific numbers, dates etc using Jquery.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.