# Rails

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

[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:** 1423

---

## [Creating front end in RoR of already done DB. need help](https://www.ruby-forum.com/t/creating-front-end-in-ror-of-already-done-db-need-help/133250)

<div class="topic-metadata">

**Author:** [@ReK2](https://www.ruby-forum.com/u/ReK2)\
**Replies:** 0\
**Last updated:** [March 29, 2008, 10:09am UTC](https://www.ruby-forum.com/t/creating-front-end-in-ror-of-already-done-db-need-help/133250 "2008-03-29T10:09:10Z")

</div>

In this link below almost at then end it shows the mysql Schema… http://jabberd2.xiaoka.com/wiki/InstallGuide/Jabberd2Architecture Unfurtunally this is hard coded so I can’t create my own table names etc… how can I …

---

## [How to upload multiple images with file\_column + rmagick](https://www.ruby-forum.com/t/how-to-upload-multiple-images-with-file-column-rmagick/133240)

<div class="topic-metadata">

**Author:** [@beexk](https://www.ruby-forum.com/u/beexk)\
**Replies:** 1\
**Last updated:** [March 29, 2008, 7:59am UTC](https://www.ruby-forum.com/t/how-to-upload-multiple-images-with-file-column-rmagick/133240 "2008-03-29T07:59:35Z")

</div>

how to upload multiple images with file\_column + rmagick in one form?

---

## [Problem with inheritance mysql jabber server database](https://www.ruby-forum.com/t/problem-with-inheritance-mysql-jabber-server-database/133119)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [March 29, 2008, 7:05am UTC](https://www.ruby-forum.com/t/problem-with-inheritance-mysql-jabber-server-database/133119 "2008-03-29T07:05:57Z")

</div>

rake db:migrate (in /var/www/jabber.myserver/jabber) rake aborted! Mysql::Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near …

---

## [Weird DB Session error, "Mysql::Error: Lost connection to MySQL server during query"](https://www.ruby-forum.com/t/weird-db-session-error-mysql-lost-connection-to-mysql-server-during-query/127510)

<div class="topic-metadata">

**Author:** [@jonzo](https://www.ruby-forum.com/u/jonzo)\
**Replies:** 6\
**Last updated:** [March 29, 2008, 6:45am UTC](https://www.ruby-forum.com/t/weird-db-session-error-mysql-lost-connection-to-mysql-server-during-query/127510 "2008-03-29T06:45:46Z")

</div>

I’ve discovered something really weird in rails 1.2.3 (It could be fixed in 2.0? but I don’t know). Recently I started getting the error “Mysql::Error: Lost connection to MySQL server during query” in my application. …

---

## [Scalibility issues in CMS application?](https://www.ruby-forum.com/t/scalibility-issues-in-cms-application/197063)

<div class="topic-metadata">

**Author:** [@varunkumargoel](https://www.ruby-forum.com/u/varunkumargoel)\
**Replies:** 0\
**Last updated:** [March 29, 2008, 5:24am UTC](https://www.ruby-forum.com/t/scalibility-issues-in-cms-application/197063 "2008-03-29T05:24:36Z")

</div>

Hi All, I am creating on CMS application and there i am providing feature to create document. I have some issue about scalibilty in CMS: How to make size limitation when user is going to create document. How to …

---

## [Struggling with collect](https://www.ruby-forum.com/t/struggling-with-collect/133184)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 1\
**Last updated:** [March 29, 2008, 5:19am UTC](https://www.ruby-forum.com/t/struggling-with-collect/133184 "2008-03-29T05:19:49Z")

</div>

I use a lot of this but I am struggling to get it to show the 'selected value. \<%= options = \[\[‘Select Facility’, “” \] \] + @facilities.sort { |a,b| a.name \<=\> b.name }.collect { |fac| \[fac.name, fac.id\] } select ‘co…

---

## [&#9792;&#9794; 3,559,534 active members' live webcams. &#9786; 7,292 members online now! &#9792](https://www.ruby-forum.com/t/9792-9794-3-559-534-active-members-live-webcams-9786-7-292-members-online-now-9792/133232)

<div class="topic-metadata">

**Author:** [@Verona\_dsm](https://www.ruby-forum.com/u/Verona_dsm)\
**Replies:** 0\
**Last updated:** [March 29, 2008, 3:40am UTC](https://www.ruby-forum.com/t/9792-9794-3-559-534-active-members-live-webcams-9786-7-292-members-online-now-9792/133232 "2008-03-29T03:40:13Z")

</div>

:female\_sign::male\_sign: 3,559,534 active members’ live webcams. :smiling\_face: 7,292 members online now! :female\_sign::male\_sign: :smiling\_face: http://www.adultfinderdating.0catch.com/videocam.htm :female\_sign:…

---

## [Help with Routes](https://www.ruby-forum.com/t/help-with-routes/133212)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 5\
**Last updated:** [March 29, 2008, 3:31am UTC](https://www.ruby-forum.com/t/help-with-routes/133212 "2008-03-29T03:31:30Z")

</div>

I have the following models entity has\_many :locations has\_many :sites, :through =\> :locations location belongs\_to :entity belongs\_to :site site has\_many :locations has\_many :entities, :through =\> :locations …

---

## [OT - Debt Collection agency for Contractor payments?](https://www.ruby-forum.com/t/ot-debt-collection-agency-for-contractor-payments/133228)

<div class="topic-metadata">

**Author:** [@jeffpritchard](https://www.ruby-forum.com/u/jeffpritchard)\
**Replies:** 1\
**Last updated:** [March 29, 2008, 2:52am UTC](https://www.ruby-forum.com/t/ot-debt-collection-agency-for-contractor-payments/133228 "2008-03-29T02:52:00Z")

</div>

I’m guessing there are a fair number of people on this board that make their living doing software contract work. After more than twenty years of doing this on-and-off, for the very first time I’m having difficulty g…

---

## [Counting records in an association](https://www.ruby-forum.com/t/counting-records-in-an-association/133181)

<div class="topic-metadata">

**Author:** [@mridelmann](https://www.ruby-forum.com/u/mridelmann)\
**Replies:** 2\
**Last updated:** [March 29, 2008, 1:16am UTC](https://www.ruby-forum.com/t/counting-records-in-an-association/133181 "2008-03-29T01:16:52Z")

</div>

Hi, I would like to know how to count records in an association. My Models look like this: // Users class User \< ActiveRecord::Base has\_many :read has\_many :books, :through =\> :read end //Read class Read \< Activ…

---

## [Dynamically add javascript tag to a view](https://www.ruby-forum.com/t/dynamically-add-javascript-tag-to-a-view/133167)

<div class="topic-metadata">

**Author:** [@joel](https://www.ruby-forum.com/u/joel)\
**Replies:** 3\
**Last updated:** [March 29, 2008, 12:42am UTC](https://www.ruby-forum.com/t/dynamically-add-javascript-tag-to-a-view/133167 "2008-03-29T00:42:48Z")

</div>

Hi everybody, I would like to add javascript tags dynamically to my view. So I used the following code : @events.each do |e| %(javascript\_tag 'new Popup(‘event\_popup\_#{e.id}’,‘event\_link\_#{e.id}’)’) end Howe…

---

## [Radiant on bluehost error - undefined method \`downcase' for](https://www.ruby-forum.com/t/radiant-on-bluehost-error-undefined-method-downcase-for/131163)

<div class="topic-metadata">

**Author:** [@afewtips](https://www.ruby-forum.com/u/afewtips)\
**Replies:** 2\
**Last updated:** [March 28, 2008, 11:48pm UTC](https://www.ruby-forum.com/t/radiant-on-bluehost-error-undefined-method-downcase-for/131163 "2008-03-28T23:48:52Z")

</div>

Hello, I am new to Ruby (seems to be a common starting line) and I am having a problem running Radiant. I am using Bluehost and have installed and ran the sample app that Bluehost uses for Ruby. Then I installed Rad…

---

## [REST routes & link\_to paths](https://www.ruby-forum.com/t/rest-routes-link-to-paths/133217)

<div class="topic-metadata">

**Author:** [@Sav](https://www.ruby-forum.com/u/Sav)\
**Replies:** 1\
**Last updated:** [March 28, 2008, 10:53pm UTC](https://www.ruby-forum.com/t/rest-routes-link-to-paths/133217 "2008-03-28T22:53:19Z")

</div>

I’ve mapped this nested route for a product catalog… map.resources :brands do |brand| brand.resources :product\_lines do |product\_line| product\_line.resources :products do |product| product.resources :upcs end end …

---

## [What is a good virtual hosting service for rails that's inexpensive but scales up?](https://www.ruby-forum.com/t/what-is-a-good-virtual-hosting-service-for-rails-thats-inexpensive-but-scales-up/133120)

<div class="topic-metadata">

**Author:** [@dewie](https://www.ruby-forum.com/u/dewie)\
**Replies:** 2\
**Last updated:** [March 28, 2008, 10:23pm UTC](https://www.ruby-forum.com/t/what-is-a-good-virtual-hosting-service-for-rails-thats-inexpensive-but-scales-up/133120 "2008-03-28T22:23:15Z")

</div>

What is a good virtual hosting service for rails that starts off inexpensive but can be scaled up? I like the slicehost model, but on the slicehost signup they say we will email you your password, change it right away…

---

## [Download Problem](https://www.ruby-forum.com/t/download-problem/133201)

<div class="topic-metadata">

**Author:** [@sigma](https://www.ruby-forum.com/u/sigma)\
**Replies:** 4\
**Last updated:** [March 28, 2008, 9:57pm UTC](https://www.ruby-forum.com/t/download-problem/133201 "2008-03-28T21:57:35Z")

</div>

Hi there I’ve got following strange problem. Follwing code: send\_data(originalString, :filename =\> “foo.bar”, :type =\> ‘text/plain; charset=utf-8’ ) I send the file “foo.bar” to the browser. If I save it, the charse…

---

## [No update after AJAX request!](https://www.ruby-forum.com/t/no-update-after-ajax-request/133138)

<div class="topic-metadata">

**Author:** [@niedral](https://www.ruby-forum.com/u/niedral)\
**Replies:** 1\
**Last updated:** [March 28, 2008, 9:21pm UTC](https://www.ruby-forum.com/t/no-update-after-ajax-request/133138 "2008-03-28T21:21:13Z")

</div>

I try to implement a little AJAX powered voting on a site. I checked, that the template includes the javascript libraries: \<%= javascript\_include\_tag :defaults %\> and add a remote form to the template: \<div id="votin…

---

## [Rails \<-\> MySQL](https://www.ruby-forum.com/t/rails-mysql/133207)

<div class="topic-metadata">

**Author:** [@tharrisx](https://www.ruby-forum.com/u/tharrisx)\
**Replies:** 2\
**Last updated:** [March 28, 2008, 8:47pm UTC](https://www.ruby-forum.com/t/rails-mysql/133207 "2008-03-28T20:47:35Z")

</div>

Hi there, I have this table “friendships” and it contains the 2 columns: fsrq\_sender\_id fsrq\_receiver\_id When I tell Rails to create a record, the log file says (correctly, it seems to me): INSERT INTO friendships …

---

## [How to clean up this code?](https://www.ruby-forum.com/t/how-to-clean-up-this-code/133170)

<div class="topic-metadata">

**Author:** [@oldbug](https://www.ruby-forum.com/u/oldbug)\
**Replies:** 4\
**Last updated:** [March 28, 2008, 8:34pm UTC](https://www.ruby-forum.com/t/how-to-clean-up-this-code/133170 "2008-03-28T20:34:42Z")

</div>

OK, I’ve got my code working. As you will no doubt infer from my questions below, I am completely new to web development. If clueless n00b questions drive you crazy, then hit now and move on… For those of you I hav…

---

## [YM4R plugin controls](https://www.ruby-forum.com/t/ym4r-plugin-controls/133215)

<div class="topic-metadata">

**Author:** [@agorilla](https://www.ruby-forum.com/u/agorilla)\
**Replies:** 0\
**Last updated:** [March 28, 2008, 8:14pm UTC](https://www.ruby-forum.com/t/ym4r-plugin-controls/133215 "2008-03-28T20:14:11Z")

</div>

Does anyone know if there’s a way to show only the top controls on a google map while hiding the zoom in bar? I know this can be down with straight JavaScript, but would like to avoid using that if at all possible. T…

---

## [URL with data help](https://www.ruby-forum.com/t/url-with-data-help/133190)

<div class="topic-metadata">

**Author:** [@megax](https://www.ruby-forum.com/u/megax)\
**Replies:** 2\
**Last updated:** [March 28, 2008, 6:20pm UTC](https://www.ruby-forum.com/t/url-with-data-help/133190 "2008-03-28T18:20:07Z")

</div>

Im want to put some data on a url and take it to another page were it will be put in a text box. I tried to ad it to the link like this but ut says I have a nil object. \<%= link\_to ‘Rate this product’, new\_rating\_path…

---

## [Generating monitrc file](https://www.ruby-forum.com/t/generating-monitrc-file/133065)

<div class="topic-metadata">

**Author:** [@jeff](https://www.ruby-forum.com/u/jeff)\
**Replies:** 2\
**Last updated:** [March 28, 2008, 5:26pm UTC](https://www.ruby-forum.com/t/generating-monitrc-file/133065 "2008-03-28T17:26:40Z")

</div>

I am using monit to monitor my mongrel processes. It is tedious to have to write the monitc to watch, say, 20 instances, so I wrote a script to do generate monitrc. Now I want to modify the generator futther to l…

---

## [How to create images with dynamic text using RoR?](https://www.ruby-forum.com/t/how-to-create-images-with-dynamic-text-using-ror/133186)

<div class="topic-metadata">

**Author:** [@gokul\_murthy](https://www.ruby-forum.com/u/gokul_murthy)\
**Replies:** 1\
**Last updated:** [March 28, 2008, 5:03pm UTC](https://www.ruby-forum.com/t/how-to-create-images-with-dynamic-text-using-ror/133186 "2008-03-28T17:03:44Z")

</div>

Hi to all, Here is the good question for Rails expert. can you any please help me to solve this issue… In one of my Rails web application, i need to create images with dynamic text. I found the solution for this tas…

---

## [FixtureReplacement overriding How to](https://www.ruby-forum.com/t/fixturereplacement-overriding-how-to/133193)

<div class="topic-metadata">

**Author:** [@Reggie\_on\_rails](https://www.ruby-forum.com/u/Reggie_on_rails)\
**Replies:** 0\
**Last updated:** [March 28, 2008, 4:56pm UTC](https://www.ruby-forum.com/t/fixturereplacement-overriding-how-to/133193 "2008-03-28T16:56:26Z")

</div>

Is anyone familiar with overriding the values for FixtureReplacement.defaults\_file I’ve reviewed the rspec testcases. Changing the defaults\_file on first initial request fails; as it tries to load the default file f…

---

## [Stack level too deep?!](https://www.ruby-forum.com/t/stack-level-too-deep/133194)

<div class="topic-metadata">

**Author:** [@cojones](https://www.ruby-forum.com/u/cojones)\
**Replies:** 0\
**Last updated:** [March 28, 2008, 4:48pm UTC](https://www.ruby-forum.com/t/stack-level-too-deep/133194 "2008-03-28T16:48:14Z")

</div>

Hallo, ich bekomme den Fehler: “stack level too deep” und bin weder aus Google noch aus der Suchfunktion schlauer geworden. Application Trace: vendor/plugins/globalize/lib/globalize/localization/db\_translate.rb:767:i…

---

## [Struggling with collect](https://www.ruby-forum.com/t/struggling-with-collect/133191)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 0\
**Last updated:** [March 28, 2008, 4:24pm UTC](https://www.ruby-forum.com/t/struggling-with-collect/133191 "2008-03-28T16:24:28Z")

</div>

I use a lot of this but I am struggling to get it to show the 'selected value…I think that my issue is that I’m using an indexed array. \<%= options = \[\[‘Select Facility’, “” \] \] + @facilities.sort { |a,b| a.name \<=\> b…

---

## [Deconflicting namespaces](https://www.ruby-forum.com/t/deconflicting-namespaces/133189)

<div class="topic-metadata">

**Author:** [@avramd](https://www.ruby-forum.com/u/avramd)\
**Replies:** 0\
**Last updated:** [March 28, 2008, 4:24pm UTC](https://www.ruby-forum.com/t/deconflicting-namespaces/133189 "2008-03-28T16:24:25Z")

</div>

Hello, I’m in the unfortunate position of needing to include a gem whose name conflict with an existing class in my application. Specifically, I already have a Color class, and I’m trying to add the Color (v1.4) gem.…

---

## [Rails server benchmarks](https://www.ruby-forum.com/t/rails-server-benchmarks/133187)

<div class="topic-metadata">

**Author:** [@Jan\_De\_Poorter](https://www.ruby-forum.com/u/Jan_De_Poorter)\
**Replies:** 0\
**Last updated:** [March 28, 2008, 4:24pm UTC](https://www.ruby-forum.com/t/rails-server-benchmarks/133187 "2008-03-28T16:24:24Z")

</div>

Hello rails-talk, A colleague of me recently did some benchmarking on different ways to server Rails (Lighttpd + FCgi, Lighttpd+Thin, Nginx+Ebb, and so on) to find the best solution for our shared hosting. He did a wr…

---

## [Less than 8 days till PostgreSQL Confernece East](https://www.ruby-forum.com/t/less-than-8-days-till-postgresql-confernece-east/133188)

<div class="topic-metadata">

**Author:** [@Joshua\_DSDrake](https://www.ruby-forum.com/u/Joshua_DSDrake)\
**Replies:** 0\
**Last updated:** [March 28, 2008, 4:24pm UTC](https://www.ruby-forum.com/t/less-than-8-days-till-postgresql-confernece-east/133188 "2008-03-28T16:24:23Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 We are quickly approaching the start of the PostgreSQL Community Conference, East at the University of Maryland. The conference runs on March 29th and 30th of this year, …

---

## [Joining polymorphic tables](https://www.ruby-forum.com/t/joining-polymorphic-tables/133185)

<div class="topic-metadata">

**Author:** [@Love\_AJAX](https://www.ruby-forum.com/u/Love_AJAX)\
**Replies:** 0\
**Last updated:** [March 28, 2008, 4:24pm UTC](https://www.ruby-forum.com/t/joining-polymorphic-tables/133185 "2008-03-28T16:24:22Z")

</div>

Hi, I have been trying to join a table with another which has got a polymporhic set of columns. So I don’t know what would be there in “\_type" column upfront. Moreover the join branches out based on what is present i…

---

## [FixtureReplacement How to](https://www.ruby-forum.com/t/fixturereplacement-how-to/133183)

<div class="topic-metadata">

**Author:** [@R\_T\_Ealey](https://www.ruby-forum.com/u/R_T_Ealey)\
**Replies:** 0\
**Last updated:** [March 28, 2008, 4:16pm UTC](https://www.ruby-forum.com/t/fixturereplacement-how-to/133183 "2008-03-28T16:16:56Z")

</div>

Is anyone familiar with overriding the values for FixtureReplacement.defaults\_file I’ve reviewed the rspec testcases. Changing the defaults\_file on first initial request fails; as it tries to load the default file fi…

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

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