search for: active_record_queri

Displaying 5 results from an estimated 5 matches for "active_record_queri".

2009 Oct 06
8
How do I access a child table/model from the parent in sql s
I am trying to use the fourth normal form for my applications so that i can get the information in the appropriate language. I have a table called manufacturers. I have another called descriptions. The descriptions are in two languages and each description belongs to a particular language. So two records in the Descriptions table one in English and One in French for each manufacturer. The
2012 Jun 30
4
find_by_sql and join
hi I amd tanizawa. I had problem. I can not get main.name value from below sql. "find_by_sql ''select main.id,main.name,sub.name from main left join sub on sub.id = main.id''" Please teach me how to get borth name value. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the
2010 Sep 08
2
Rails 2 to Rails 3 - How to convert this sql query ?
Hello all, Can someone help me with this query ? Here is the query used in rails 2. The idea here is to obtain the top 10 widgets. Widget.find(:all, :select => ''widget_type_id, COUNT(widget_type_id) AS widgettypeid'', :group => ''widget_type_id'', :order => ''widgettypeid DESC'', :limit => 10) This is deprecated and i want to port it
2011 Feb 14
4
Begining with RoR, litle questions
Hello, First, sorry about my english. I come from lamp+symfony world, i understand the MVC design and so on... my questions... 1. Should learn ruby 100% before entering the documentation for RoR? 2. Works with apache as module? 3. What about DB abstraction? something similar to PDO in php? Appreciate a few links in addition to the official. In short, a little guidance of where to start PD:
2012 Jan 27
2
to_json performance
Originally posted on github, reported to the right place. I would like to open a discussion about how `to_json` and `as_json` operates in Rails from a performance standpoint. I''m using Rails 3.2 but this issue applies to almost all versions of Rails. Our use case presents the challenge in sending out potentially large JSON (or XML, but we''ll focus on JSON rendering here)