# Rails

**URL:** https://www.ruby-forum.com/c/ruby-on-rails/6.md?page=1500

[Latest](https://www.ruby-forum.com/latest.md) · [Categories](https://www.ruby-forum.com/categories.md) · [Tags](https://www.ruby-forum.com/tags.md)

**Page:** 1501

---

## [Find\_by\_sql not settings model attributes and eager loading](https://www.ruby-forum.com/t/find-by-sql-not-settings-model-attributes-and-eager-loading/128435)

<div class="topic-metadata">

**Author:** [@Tarscher](https://www.ruby-forum.com/u/Tarscher)\
**Replies:** 1\
**Last updated:** [February 7, 2008, 7:02pm UTC](https://www.ruby-forum.com/t/find-by-sql-not-settings-model-attributes-and-eager-loading/128435 "2008-02-07T19:02:43Z")

</div>

Hi all, I want to get all users for an event and the registration data: I use find\_by\_sql to get data for 2 models: users and registrations (user has many events through registrations). @players = User.find\_by\_sql(\[“…

---

## [How to simulate passage of time during tests?](https://www.ruby-forum.com/t/how-to-simulate-passage-of-time-during-tests/126184)

<div class="topic-metadata">

**Author:** [@dracos](https://www.ruby-forum.com/u/dracos)\
**Replies:** 6\
**Last updated:** [February 7, 2008, 6:54pm UTC](https://www.ruby-forum.com/t/how-to-simulate-passage-of-time-during-tests/126184 "2008-02-07T18:54:47Z")

</div>

The primary function of my rails app compares database date values to the current date. In order to test this functionality, I need to simulate time passing. I currently roll back date fields to trigger certain proces…

---

## [Help using active scaffold](https://www.ruby-forum.com/t/help-using-active-scaffold/128236)

<div class="topic-metadata">

**Author:** [@agilehack](https://www.ruby-forum.com/u/agilehack)\
**Replies:** 3\
**Last updated:** [February 7, 2008, 6:27pm UTC](https://www.ruby-forum.com/t/help-using-active-scaffold/128236 "2008-02-07T18:27:48Z")

</div>

I am trying to build a simple search/show tool as a first iteration of a larger project. I only have one table right now and I would like to implement active scaffold from the start of this project. I have tried sev…

---

## [Every controller has to be ended with \_controller?](https://www.ruby-forum.com/t/every-controller-has-to-be-ended-with-controller/128345)

<div class="topic-metadata">

**Author:** [@andreh](https://www.ruby-forum.com/u/andreh)\
**Replies:** 8\
**Last updated:** [February 7, 2008, 5:32pm UTC](https://www.ruby-forum.com/t/every-controller-has-to-be-ended-with-controller/128345 "2008-02-07T17:32:22Z")

</div>

Hi there, I’m thinking here about this, if the controller are located inside the controllers folder, why should we name them with \_controller at the end? it’ll screw with the routing system if we get the ‘\_controller’…

---

## [To\_xml serialization with special characters](https://www.ruby-forum.com/t/to-xml-serialization-with-special-characters/128433)

<div class="topic-metadata">

**Author:** [@Erwin](https://www.ruby-forum.com/u/Erwin)\
**Replies:** 0\
**Last updated:** [February 7, 2008, 5:31pm UTC](https://www.ruby-forum.com/t/to-xml-serialization-with-special-characters/128433 "2008-02-07T17:31:06Z")

</div>

It appears thet some of my Model attributes have special characters … and they are not serialized (ex; url attribute or email address attribute) how can I avoid such problem ? thanks erwin

---

## [Companies using Ruby](https://www.ruby-forum.com/t/companies-using-ruby/128398)

<div class="topic-metadata">

**Author:** [@phil](https://www.ruby-forum.com/u/phil)\
**Replies:** 11\
**Last updated:** [February 7, 2008, 5:30pm UTC](https://www.ruby-forum.com/t/companies-using-ruby/128398 "2008-02-07T17:30:31Z")

</div>

After developing a large commercial website in Ruby my client is getting cold feet. They don’t want to be the first big, commercial website out there using a RoR site. The company is an online sports betting company t…

---

## [Flash charts with live update and slider](https://www.ruby-forum.com/t/flash-charts-with-live-update-and-slider/128428)

<div class="topic-metadata">

**Author:** [@chirag](https://www.ruby-forum.com/u/chirag)\
**Replies:** 0\
**Last updated:** [February 7, 2008, 4:57pm UTC](https://www.ruby-forum.com/t/flash-charts-with-live-update-and-slider/128428 "2008-02-07T16:57:45Z")

</div>

Does anyone know of any good Rails-friendly Flash charts that have Live AJAX-type update of data (without reloading entire Flash chart) Horizontal axis slider to be able to zoom in (like the time slider on Google Fin…

---

## [Nested Resource Generator?](https://www.ruby-forum.com/t/nested-resource-generator/128354)

<div class="topic-metadata">

**Author:** [@stephen](https://www.ruby-forum.com/u/stephen)\
**Replies:** 1\
**Last updated:** [February 7, 2008, 4:48pm UTC](https://www.ruby-forum.com/t/nested-resource-generator/128354 "2008-02-07T16:48:55Z")

</div>

Thanks in advance for your help! I’ve found and read a number of blog postings that introduce Rails 2 concepts, including nested resources. In my newest Rails app, I ran the new generate scaffold command for the chil…

---

## [Armailer and exception notification](https://www.ruby-forum.com/t/armailer-and-exception-notification/128422)

<div class="topic-metadata">

**Author:** [@macovsky](https://www.ruby-forum.com/u/macovsky)\
**Replies:** 0\
**Last updated:** [February 7, 2008, 3:48pm UTC](https://www.ruby-forum.com/t/armailer-and-exception-notification/128422 "2008-02-07T15:48:56Z")

</div>

I’m using both ARMailer gem and Exception Notification plugin, but i don’t receive any notifications from the server (i can see them in the production log). Can anyone help with it? I suppose i have everything set up…

---

## [Render xml eliminates email address](https://www.ruby-forum.com/t/render-xml-eliminates-email-address/128417)

<div class="topic-metadata">

**Author:** [@Erwin](https://www.ruby-forum.com/u/Erwin)\
**Replies:** 0\
**Last updated:** [February 7, 2008, 3:25pm UTC](https://www.ruby-forum.com/t/render-xml-eliminates-email-address/128417 "2008-02-07T15:25:11Z")

</div>

Hello Very strange I get a member list @members = Member.find(:all) w debugger I can see that all atributes are there… (including attribute email) format.html {} I can get a nice list with email address format.…

---

## [Building an html file from the db?](https://www.ruby-forum.com/t/building-an-html-file-from-the-db/128414)

<div class="topic-metadata">

**Author:** [@agilehack](https://www.ruby-forum.com/u/agilehack)\
**Replies:** 0\
**Last updated:** [February 7, 2008, 3:07pm UTC](https://www.ruby-forum.com/t/building-an-html-file-from-the-db/128414 "2008-02-07T15:07:20Z")

</div>

could someone point me in the right direction with this? I am looking to create a physical HTML file from the database and then FTP that file. Think FTP’ing a file to a website to update a page for CMS purposes. but…

---

## [Updating a record with select](https://www.ruby-forum.com/t/updating-a-record-with-select/128413)

<div class="topic-metadata">

**Author:** [@ankit2584](https://www.ruby-forum.com/u/ankit2584)\
**Replies:** 0\
**Last updated:** [February 7, 2008, 3:05pm UTC](https://www.ruby-forum.com/t/updating-a-record-with-select/128413 "2008-02-07T15:05:55Z")

</div>

Hello, I have displayed a list of people and now i want to assign them a relation for example … friend, brother,stranger,etc. the list of relations is stored with me. How can I use the select option(probably have to …

---

## [EARNING for reading SMS](https://www.ruby-forum.com/t/earning-for-reading-sms/128410)

<div class="topic-metadata">

**Author:** [@Priyabrata\_Patra](https://www.ruby-forum.com/u/Priyabrata_Patra)\
**Replies:** 0\
**Last updated:** [February 7, 2008, 3:00pm UTC](https://www.ruby-forum.com/t/earning-for-reading-sms/128410 "2008-02-07T15:00:50Z")

</div>

Hello, I found few genuine sites for earning through your mobile. http://www.sms2india.co.in/?user=patrapb http://www.youmint.com/network-patrapb mginger.com - This website is for sale! - mginger Resources and …

---

## [Ruby + Cron Job](https://www.ruby-forum.com/t/ruby-cron-job/128383)

<div class="topic-metadata">

**Author:** [@Haris\_G](https://www.ruby-forum.com/u/Haris_G)\
**Replies:** 2\
**Last updated:** [February 7, 2008, 2:44pm UTC](https://www.ruby-forum.com/t/ruby-cron-job/128383 "2008-02-07T14:44:54Z")

</div>

Hello all, I have to write a cron\_job and have to access a remote database in that cron job. How can I do it? Any tutorials or can anyone please guide me. – Regards Haris G.

---

## [Getting StringIO in Mozilla and String in Safari for file up](https://www.ruby-forum.com/t/getting-stringio-in-mozilla-and-string-in-safari-for-file-up/128403)

<div class="topic-metadata">

**Author:** [@saravanankrishnan](https://www.ruby-forum.com/u/saravanankrishnan)\
**Replies:** 3\
**Last updated:** [February 7, 2008, 2:43pm UTC](https://www.ruby-forum.com/t/getting-stringio-in-mozilla-and-string-in-safari-for-file-up/128403 "2008-02-07T14:43:44Z")

</div>

Hi Folks, When i try to upload files, its working in both Mozilla and IE. But It’s not working in Safari. The reason is,mozilla has StringIO class and safari has string class. My controller codings are based on …

---

## [Rails + Flashpaper, anyone?](https://www.ruby-forum.com/t/rails-flashpaper-anyone/128409)

<div class="topic-metadata">

**Author:** [@peri](https://www.ruby-forum.com/u/peri)\
**Replies:** 0\
**Last updated:** [February 7, 2008, 2:42pm UTC](https://www.ruby-forum.com/t/rails-flashpaper-anyone/128409 "2008-02-07T14:42:34Z")

</div>

I have been trying to find some type of documentation on integrating Adobe Flash Paper into my rails apps as type of output for reports. possible to upload a document =\> convert it to flash paper (like scribd) take r…

---

## [Best ldap search package](https://www.ruby-forum.com/t/best-ldap-search-package/128404)

<div class="topic-metadata">

**Author:** [@KTU](https://www.ruby-forum.com/u/KTU)\
**Replies:** 2\
**Last updated:** [February 7, 2008, 2:19pm UTC](https://www.ruby-forum.com/t/best-ldap-search-package/128404 "2008-02-07T14:19:29Z")

</div>

Hi Since there are so many ldap packages there any idea which is the best one currently ? I just need to do simple thing. I need to find out common name (cn) by using ldapsearch for the ENV variable REMOTE\_USER ie. …

---

## [Problem configuring SMTP with GMAIL in my rails app](https://www.ruby-forum.com/t/problem-configuring-smtp-with-gmail-in-my-rails-app/128147)

<div class="topic-metadata">

**Author:** [@envynicky](https://www.ruby-forum.com/u/envynicky)\
**Replies:** 4\
**Last updated:** [February 7, 2008, 1:56pm UTC](https://www.ruby-forum.com/t/problem-configuring-smtp-with-gmail-in-my-rails-app/128147 "2008-02-07T13:56:24Z")

</div>

hello everybody… i was trying configuring SMTP with GMail n my rails appliaction. when running everything seems alright but the mails not getting delivered. also the logs show the action as successful .not much detai…

---

## [Extract controller name from URL](https://www.ruby-forum.com/t/extract-controller-name-from-url/128388)

<div class="topic-metadata">

**Author:** [@Love\_AJAX](https://www.ruby-forum.com/u/Love_AJAX)\
**Replies:** 3\
**Last updated:** [February 7, 2008, 1:51pm UTC](https://www.ruby-forum.com/t/extract-controller-name-from-url/128388 "2008-02-07T13:51:03Z")

</div>

Is there a way of extracing controller name from a URL?

---

## [Single inheritance 2 models OK, but what about the controller?](https://www.ruby-forum.com/t/single-inheritance-2-models-ok-but-what-about-the-controller/128407)

<div class="topic-metadata">

**Author:** [@Erwin](https://www.ruby-forum.com/u/Erwin)\
**Replies:** 2\
**Last updated:** [February 7, 2008, 1:49pm UTC](https://www.ruby-forum.com/t/single-inheritance-2-models-ok-but-what-about-the-controller/128407 "2008-02-07T13:49:53Z")

</div>

Hey I am using a single inherance table : class User \< ActiveRecord::Base class Member \< User I would like to use only ONE controller accessing GET /members.xml should be equivalent to GET / users.xml shoul…

---

## [Announcement: Throttler Plugin](https://www.ruby-forum.com/t/announcement-throttler-plugin/128305)

<div class="topic-metadata">

**Author:** [@ariejan](https://www.ruby-forum.com/u/ariejan)\
**Replies:** 1\
**Last updated:** [February 7, 2008, 11:39am UTC](https://www.ruby-forum.com/t/announcement-throttler-plugin/128305 "2008-02-07T11:39:28Z")

</div>

For those who haven’t seen it yet, I’ve developed a neat plugin that makes it possible for your app to “throttle”. E.g. If your site get a lot of traffic, you may want to disable certain features of your site or repla…

---

## [Dreamhost + Ferret](https://www.ruby-forum.com/t/dreamhost-ferret/128332)

<div class="topic-metadata">

**Author:** [@Bala](https://www.ruby-forum.com/u/Bala)\
**Replies:** 2\
**Last updated:** [February 7, 2008, 10:43am UTC](https://www.ruby-forum.com/t/dreamhost-ferret/128332 "2008-02-07T10:43:25Z")

</div>

Hi Experts, Ferret server not running couldnt figure it out. because i’m using subdomain. Error: DRb::DRbConnError (druby://localhost:9010 - #\<Errno::ECONNREFUSED: Connection refused - connect(2)\>): /usr/lib/ruby/1…

---

## [Migration between versions](https://www.ruby-forum.com/t/migration-between-versions/128394)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 0\
**Last updated:** [February 7, 2008, 10:15am UTC](https://www.ruby-forum.com/t/migration-between-versions/128394 "2008-02-07T10:15:03Z")

</div>

Hi how to migrate in between versions ? suppose if i have version 1-76 . if i want to revert from 57-65 then what should i do ?without affecting data of migrations from 66-76.Please help Sijo View this message in c…

---

## [Problems when calling rendering a template from a cron job](https://www.ruby-forum.com/t/problems-when-calling-rendering-a-template-from-a-cron-job/128393)

<div class="topic-metadata">

**Author:** [@kusako](https://www.ruby-forum.com/u/kusako)\
**Replies:** 0\
**Last updated:** [February 7, 2008, 10:15am UTC](https://www.ruby-forum.com/t/problems-when-calling-rendering-a-template-from-a-cron-job/128393 "2008-02-07T10:15:00Z")

</div>

Hi, I am trying to use a cron job to render and mail pdf files on a daily basis. Problem is that this code doesn’t compile and render the template; it just passes the embedded ruby code on as text. app = ActionView::…

---

## [Inserting lots of data at once](https://www.ruby-forum.com/t/inserting-lots-of-data-at-once/128346)

<div class="topic-metadata">

**Author:** [@plambert](https://www.ruby-forum.com/u/plambert)\
**Replies:** 2\
**Last updated:** [February 7, 2008, 9:46am UTC](https://www.ruby-forum.com/t/inserting-lots-of-data-at-once/128346 "2008-02-07T09:46:44Z")

</div>

Is there a way in Rails to insert many records at once, with a single SQL command? I’ve noticed that loading a dump file of data from the command line is much faster to doing something like SomeModelClass.create(…) f…

---

## [Rails newbie asking another question](https://www.ruby-forum.com/t/rails-newbie-asking-another-question/128377)

<div class="topic-metadata">

**Author:** [@flychunjae](https://www.ruby-forum.com/u/flychunjae)\
**Replies:** 1\
**Last updated:** [February 7, 2008, 9:46am UTC](https://www.ruby-forum.com/t/rails-newbie-asking-another-question/128377 "2008-02-07T09:46:44Z")

</div>

i think i’ve read somewhere lots of sql queries would slow things down. how slow are we talking about? in terms of seconds i guess. i would also assume that the size of the db would come into account as well as the a…

---

## [Complex SQL Query with Pagination](https://www.ruby-forum.com/t/complex-sql-query-with-pagination/128150)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [February 7, 2008, 9:24am UTC](https://www.ruby-forum.com/t/complex-sql-query-with-pagination/128150 "2008-02-07T09:24:54Z")

</div>

I am trying to write a relatively complex searching mechanism that searches for items in a product database that has a where clause that needs many joins (including joins that pass through two tables, and joins to dif…

---

## [How to make copy of tree node?](https://www.ruby-forum.com/t/how-to-make-copy-of-tree-node/128386)

<div class="topic-metadata">

**Author:** [@Igor](https://www.ruby-forum.com/u/Igor)\
**Replies:** 0\
**Last updated:** [February 7, 2008, 8:51am UTC](https://www.ruby-forum.com/t/how-to-make-copy-of-tree-node/128386 "2008-02-07T08:51:17Z")

</div>

Hi guys, I’m working with betternestedset and need to make copy of any node, for example: root |\_ Child 1 |\_ Child 1.1 |\_ Child 1.2 |\_ Child 2 |\_ Child 2.1 |\_ Child 2.2 root2 |\_ Child 1 |\_ Child 1.1 |\_ Child…

---

## [Stack traces showing in production mode with consider local off](https://www.ruby-forum.com/t/stack-traces-showing-in-production-mode-with-consider-local-off/128385)

<div class="topic-metadata">

**Author:** [@Mikel\_L](https://www.ruby-forum.com/u/Mikel_L)\
**Replies:** 0\
**Last updated:** [February 7, 2008, 8:45am UTC](https://www.ruby-forum.com/t/stack-traces-showing-in-production-mode-with-consider-local-off/128385 "2008-02-07T08:45:24Z")

</div>

Hey all, I have some mongrels running in mongrel service sitting behind apache on top of Windows Server 2003. The problem is that in the log files, the request IP address is showing up as 127.0.0.1 - and so rails is …

---

## [Rake db:dbdata:load](https://www.ruby-forum.com/t/rake-dbload/128378)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 0\
**Last updated:** [February 7, 2008, 5:46am UTC](https://www.ruby-forum.com/t/rake-dbload/128378 "2008-02-07T05:46:19Z")

</div>

I haven’t tried it yet, but does anyone have experience with something like: Dump the DB: “rake db:dbdata:dump” Load the DB: “rake db:dbdata:load” http://webchicanery.com/2007/08/22/rake-database-dump/ I’d like to u…

[Previous page](https://www.ruby-forum.com/c/ruby-on-rails/6.md?page=1499)

[Next page](https://www.ruby-forum.com/c/ruby-on-rails/6.md?page=1501)
