# Rails

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

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

---

## [Slow-down when creating many records in the console](https://www.ruby-forum.com/t/slow-down-when-creating-many-records-in-the-console/106902)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [June 15, 2007, 7:38pm UTC](https://www.ruby-forum.com/t/slow-down-when-creating-many-records-in-the-console/106902 "2007-06-15T19:38:45Z")

</div>

Hi there, I have a script I run through console to populate my forum application with random test data. It is supposed to create thousands of forum posts with several comments per post. The method essentially looks …

---

## [Multiple Applications Setup](https://www.ruby-forum.com/t/multiple-applications-setup/106508)

<div class="topic-metadata">

**Author:** [@sjames](https://www.ruby-forum.com/u/sjames)\
**Replies:** 21\
**Last updated:** [June 15, 2007, 7:00pm UTC](https://www.ruby-forum.com/t/multiple-applications-setup/106508 "2007-06-15T19:00:49Z")

</div>

Hi everyone! I’ve just asked a question in the Rails forum: http://www.ruby-forum.com/topic/111412#new But I’ve been re-directed here for a more detailed answer :slight\_smile: Anyway, below is my original question(s)…

---

## [Why does db:schema:dump change float to double?](https://www.ruby-forum.com/t/why-does-dbdump-change-float-to-double/106920)

<div class="topic-metadata">

**Author:** [@mahadewa](https://www.ruby-forum.com/u/mahadewa)\
**Replies:** 2\
**Last updated:** [June 15, 2007, 6:39pm UTC](https://www.ruby-forum.com/t/why-does-dbdump-change-float-to-double/106920 "2007-06-15T18:39:31Z")

</div>

I have tables with double as their field’s datatype. When I ran db:schema:dump, Rails changed all of these double to float. I would like to know why, and if there is anyway I could preserve the datatype. Thanks a lo…

---

## [Getting Raw Request XML](https://www.ruby-forum.com/t/getting-raw-request-xml/106874)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [June 15, 2007, 6:02pm UTC](https://www.ruby-forum.com/t/getting-raw-request-xml/106874 "2007-06-15T18:02:31Z")

</div>

I’m writing a RESTful services application that receives XML in its POST and PUT requests. It’s great that Rails parses out the XML into the params hash, but occasionally I’d rather deal with the raw request XML inst…

---

## [Helper + conditional loop](https://www.ruby-forum.com/t/helper-conditional-loop/106945)

<div class="topic-metadata">

**Author:** [@apsingh1981](https://www.ruby-forum.com/u/apsingh1981)\
**Replies:** 1\
**Last updated:** [June 15, 2007, 5:48pm UTC](https://www.ruby-forum.com/t/helper-conditional-loop/106945 "2007-06-15T17:48:17Z")

</div>

hi everyone , I am new to RoR thing , i am building an application in that i am filling the text field with items present in my database …thus using code like this : \<% if @lost\_pro\_d.disease != "" %\> Disease: \<%= @…

---

## [ActiveRecord query using association](https://www.ruby-forum.com/t/activerecord-query-using-association/106757)

<div class="topic-metadata">

**Author:** [@inspire22](https://www.ruby-forum.com/u/inspire22)\
**Replies:** 6\
**Last updated:** [June 15, 2007, 4:50pm UTC](https://www.ruby-forum.com/t/activerecord-query-using-association/106757 "2007-06-15T16:50:10Z")

</div>

Hello all, I apologize if the answer to this question is going to be rudimentary, but I am thus far stymied by the information I have found on the web. This seems like it should be simple, but I haven’t really found a…

---

## [New Delhi Ruby and Rails Meetup: Friday 22nd June 2007](https://www.ruby-forum.com/t/new-delhi-ruby-and-rails-meetup-friday-22nd-june-2007/106948)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [June 15, 2007, 4:19pm UTC](https://www.ruby-forum.com/t/new-delhi-ruby-and-rails-meetup-friday-22nd-june-2007/106948 "2007-06-15T16:19:05Z")

</div>

http://ruby.meetup.com/108/calendar/5894879/

---

## [Error when running functional test - Errno::ENOENT](https://www.ruby-forum.com/t/error-when-running-functional-test-errno-enoent/106935)

<div class="topic-metadata">

**Author:** [@Nickb](https://www.ruby-forum.com/u/Nickb)\
**Replies:** 3\
**Last updated:** [June 15, 2007, 4:08pm UTC](https://www.ruby-forum.com/t/error-when-running-functional-test-errno-enoent/106935 "2007-06-15T16:08:04Z")

</div>

Hello, I’m getting an error when running functional tests as follows, using Mac OSX 10.4.9, Rails 1.2.3 . When I run: ruby test/functional/campaign\_controller\_test.rb I get this error: Started E Finished in 0.027…

---

## [Fixtures and Foreign keys](https://www.ruby-forum.com/t/fixtures-and-foreign-keys/106844)

<div class="topic-metadata">

**Author:** [@Hugh\_S](https://www.ruby-forum.com/u/Hugh_S)\
**Replies:** 11\
**Last updated:** [June 15, 2007, 3:22pm UTC](https://www.ruby-forum.com/t/fixtures-and-foreign-keys/106844 "2007-06-15T15:22:57Z")

</div>

Is there a recommended way to manage fixtures when your tables are normalized? I’m trying to manage a database of stock, with {description}s of {device}s, some of which have pictures, and I need to get the descriptio…

---

## [Comparer deux dates avec ruby](https://www.ruby-forum.com/t/comparer-deux-dates-avec-ruby/106918)

<div class="topic-metadata">

**Author:** [@massi](https://www.ruby-forum.com/u/massi)\
**Replies:** 1\
**Last updated:** [June 15, 2007, 2:18pm UTC](https://www.ruby-forum.com/t/comparer-deux-dates-avec-ruby/106918 "2007-06-15T14:18:49Z")

</div>

bonjour jai deux dates @date\_1 = date.new() @date\_2 = date.new() quand jeffectue une comparaison entre ces deux dates ca me renvoie toujours un false alors ya il une autre maniere de comparer ces deux dates , il y…

---

## [Sporadic IE hang on AJAX reponse handling](https://www.ruby-forum.com/t/sporadic-ie-hang-on-ajax-reponse-handling/106934)

<div class="topic-metadata">

**Author:** [@morten](https://www.ruby-forum.com/u/morten)\
**Replies:** 0\
**Last updated:** [June 15, 2007, 1:53pm UTC](https://www.ruby-forum.com/t/sporadic-ie-hang-on-ajax-reponse-handling/106934 "2007-06-15T13:53:43Z")

</div>

Hi. I’m running a questionaire with 90 questions and it usually works fine. Some times though, IE hangs as if it never gets a response. As far as I can see in the log, the response gets committed fine from Rails: Pro…

---

## [RoR App using SVN as Database](https://www.ruby-forum.com/t/ror-app-using-svn-as-database/106889)

<div class="topic-metadata">

**Author:** [@ivanstorck](https://www.ruby-forum.com/u/ivanstorck)\
**Replies:** 10\
**Last updated:** [June 15, 2007, 1:38pm UTC](https://www.ruby-forum.com/t/ror-app-using-svn-as-database/106889 "2007-06-15T13:38:40Z")

</div>

I am wondering if I can use SVN(Subversion) as the database for my RoR application. Searched around the web but all I can find is how to use SVN to do version control of a RoR project instead of using it as the databa…

---

## [Comparing dates](https://www.ruby-forum.com/t/comparing-dates/158903)

<div class="topic-metadata">

**Author:** [@massi](https://www.ruby-forum.com/u/massi)\
**Replies:** 1\
**Last updated:** [June 15, 2007, 12:44pm UTC](https://www.ruby-forum.com/t/comparing-dates/158903 "2007-06-15T12:44:24Z")

</div>

hello, i have to dates : @date\_1 = date.new() @date\_2 = date.new() i want to compare theses two dates i have tried @date\_1 \> @ date\_2 but every time it returns me FALSE is there a solution .??? thanks

---

## [Strange error when installing mysql](https://www.ruby-forum.com/t/strange-error-when-installing-mysql/106922)

<div class="topic-metadata">

**Author:** [@Kristian\_Frost](https://www.ruby-forum.com/u/Kristian_Frost)\
**Replies:** 1\
**Last updated:** [June 15, 2007, 12:35pm UTC](https://www.ruby-forum.com/t/strange-error-when-installing-mysql/106922 "2007-06-15T12:35:23Z")

</div>

Hello everyone, I am getting this error when i am trying to install the mysql driver. I do the following: sudo gem install mysql, i chose number 3 and then i get this error: Building native extensions. This could ta…

---

## [Silly Error!](https://www.ruby-forum.com/t/silly-error/106913)

<div class="topic-metadata">

**Author:** [@Armitage](https://www.ruby-forum.com/u/Armitage)\
**Replies:** 2\
**Last updated:** [June 15, 2007, 12:00pm UTC](https://www.ruby-forum.com/t/silly-error/106913 "2007-06-15T12:00:17Z")

</div>

What am I missing here? Controller def add\_history @history = History.new Patient.find(params\[:id\]).history.create(params\[:history\]) flash\[:notice\] = “Added History” redirect\_to :action =\>“show”, :id =\> params\[:id\] …

---

## [Comparind dates](https://www.ruby-forum.com/t/comparind-dates/106916)

<div class="topic-metadata">

**Author:** [@massi](https://www.ruby-forum.com/u/massi)\
**Replies:** 1\
**Last updated:** [June 15, 2007, 11:38am UTC](https://www.ruby-forum.com/t/comparind-dates/106916 "2007-06-15T11:38:13Z")

</div>

hello, i have to dates : @date\_1 = date.new() @date\_2 = date.new() i want to compare theses two dates i have tried @date\_1 \> @ date\_2 but every time it returns me FALSE is there a solution .??? thanks

---

## [A note on multiple databases & associations](https://www.ruby-forum.com/t/a-note-on-multiple-databases-associations/106833)

<div class="topic-metadata">

**Author:** [@Allan](https://www.ruby-forum.com/u/Allan)\
**Replies:** 1\
**Last updated:** [June 15, 2007, 11:18am UTC](https://www.ruby-forum.com/t/a-note-on-multiple-databases-associations/106833 "2007-06-15T11:18:08Z")

</div>

Hi, I have two databases (due to legacy) and have tried the two methods of having records stored in multiple databases as mentioned in http://groups.google.com/group/rubyonrails-talk/browse\_frm/thread/9b002dee39ecb9f4…

---

## [Hosting ROR Apps with Bluehost](https://www.ruby-forum.com/t/hosting-ror-apps-with-bluehost/106898)

<div class="topic-metadata">

**Author:** [@freewolf](https://www.ruby-forum.com/u/freewolf)\
**Replies:** 2\
**Last updated:** [June 15, 2007, 10:17am UTC](https://www.ruby-forum.com/t/hosting-ror-apps-with-bluehost/106898 "2007-06-15T10:17:57Z")

</div>

Hey does anyone out there have experience with hosting your ROR apps on Bluehost? How you like it? Can you run multiple apps? What is speed and down time like? How is the service? Would you recommend it?? Thanks f…

---

## [Help with this code](https://www.ruby-forum.com/t/help-with-this-code/106793)

<div class="topic-metadata">

**Author:** [@eagoweb](https://www.ruby-forum.com/u/eagoweb)\
**Replies:** 5\
**Last updated:** [June 15, 2007, 6:23am UTC](https://www.ruby-forum.com/t/help-with-this-code/106793 "2007-06-15T06:23:30Z")

</div>

Hello, I am doing a menu and i got this code, what i want is to print the categories and subcategories but with the products on all of these categories. Actually i am printing the categories and subcategories of each…

---

## [How to render normal rhtml page without active record?](https://www.ruby-forum.com/t/how-to-render-normal-rhtml-page-without-active-record/106893)

<div class="topic-metadata">

**Author:** [@fritz](https://www.ruby-forum.com/u/fritz)\
**Replies:** 2\
**Last updated:** [June 15, 2007, 5:48am UTC](https://www.ruby-forum.com/t/how-to-render-normal-rhtml-page-without-active-record/106893 "2007-06-15T05:48:27Z")

</div>

hi all, I’m very new to RoR and need some help over here. from what i learnt from the tutorials, I understand that it’s very easy to create, update, update, and delete data to and from the DB and load everything to th…

---

## [Show a radio button or checkbox as checked?](https://www.ruby-forum.com/t/show-a-radio-button-or-checkbox-as-checked/106891)

<div class="topic-metadata">

**Author:** [@sarah\_hutchinson](https://www.ruby-forum.com/u/sarah_hutchinson)\
**Replies:** 1\
**Last updated:** [June 15, 2007, 5:23am UTC](https://www.ruby-forum.com/t/show-a-radio-button-or-checkbox-as-checked/106891 "2007-06-15T05:23:26Z")

</div>

I have a bit of a newbie question here. I have two radio buttons that are grouped (yes and no values). When I come to edit a record, how do I get the radio button to be checked? I found a helper method on another site…

---

## [RoR programming question](https://www.ruby-forum.com/t/ror-programming-question/106899)

<div class="topic-metadata">

**Author:** [@randall](https://www.ruby-forum.com/u/randall)\
**Replies:** 0\
**Last updated:** [June 15, 2007, 5:16am UTC](https://www.ruby-forum.com/t/ror-programming-question/106899 "2007-06-15T05:16:03Z")

</div>

Hello all, I am working on a sample ruby on rails application just to get an idea on the framework. Here is where I am having a problem: I have set up users on the site and am using acts\_as\_authenticated. I set up …

---

## [Table relations and record creation](https://www.ruby-forum.com/t/table-relations-and-record-creation/106870)

<div class="topic-metadata">

**Author:** [@tayknight](https://www.ruby-forum.com/u/tayknight)\
**Replies:** 3\
**Last updated:** [June 15, 2007, 12:38am UTC](https://www.ruby-forum.com/t/table-relations-and-record-creation/106870 "2007-06-15T00:38:31Z")

</div>

I have a situation where I have three models, Album, Artists and Songs: class Album \< ActiveRecord::Base belongs\_to :song end class Artist \< ActiveRecord::Base belongs\_to :song end class Song \< ActiveRecord::Base …

---

## [Open Source ruby CRM / CMS | XLsuite](https://www.ruby-forum.com/t/open-source-ruby-crm-cms-xlsuite/106883)

<div class="topic-metadata">

**Author:** [@djriel](https://www.ruby-forum.com/u/djriel)\
**Replies:** 0\
**Last updated:** [June 15, 2007, 12:02am UTC](https://www.ruby-forum.com/t/open-source-ruby-crm-cms-xlsuite/106883 "2007-06-15T00:02:26Z")

</div>

Hello fellow RoR users. We are a small web development company in Vancouver, BC called iXLD Media Inc. We have been developing an open source Ruby on Rails CRM / ERP solution for our clients and would like to get mor…

---

## [Fixtures question - run \*before\* every test method?](https://www.ruby-forum.com/t/fixtures-question-run-before-every-test-method/106880)

<div class="topic-metadata">

**Author:** [@wpwood](https://www.ruby-forum.com/u/wpwood)\
**Replies:** 0\
**Last updated:** [June 14, 2007, 11:42pm UTC](https://www.ruby-forum.com/t/fixtures-question-run-before-every-test-method/106880 "2007-06-14T23:42:19Z")

</div>

I just noticed a behavior that makes me wonder exactly what the sequence of events is when unit tests are run. All the stuff I’ve read says that before every test method all the rows in the table get deleted and the …

---

## [Please Help!](https://www.ruby-forum.com/t/please-help/106875)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [June 14, 2007, 10:58pm UTC](https://www.ruby-forum.com/t/please-help/106875 "2007-06-14T22:58:06Z")

</div>

Ciao PPL! in our project we use this global method: application.rb def set\_user\_authenticated(user) self.app\_user = user end I need to call it from inside a method that belongs to User model… user.rb def track\_succ…

---

## [ActiveMerchant response for American Express](https://www.ruby-forum.com/t/activemerchant-response-for-american-express/106868)

<div class="topic-metadata">

**Author:** [@joep](https://www.ruby-forum.com/u/joep)\
**Replies:** 1\
**Last updated:** [June 14, 2007, 9:39pm UTC](https://www.ruby-forum.com/t/activemerchant-response-for-american-express/106868 "2007-06-14T21:39:11Z")

</div>

I’ve tested the credit card thing they’ve got and I have it working. The only problem is, when I try to charge using an American Express, I get this “card\_code\_message”: “Issuer was not certified for card verification…

---

## [Acts\_as\_taggable\_on\_steroids lates rev. 246 Kills Tags](https://www.ruby-forum.com/t/acts-as-taggable-on-steroids-lates-rev-246-kills-tags/106865)

<div class="topic-metadata">

**Author:** [@sthorpe](https://www.ruby-forum.com/u/sthorpe)\
**Replies:** 1\
**Last updated:** [June 14, 2007, 9:36pm UTC](https://www.ruby-forum.com/t/acts-as-taggable-on-steroids-lates-rev-246-kills-tags/106865 "2007-06-14T21:36:43Z")

</div>

Running ruby 1.8.5 Rails 1.2.3 Tags are gone. Any ideas? Help please. Thanks.

---

## [Rails Development Environment and Reloading Models](https://www.ruby-forum.com/t/rails-development-environment-and-reloading-models/106862)

<div class="topic-metadata">

**Author:** [@rooster](https://www.ruby-forum.com/u/rooster)\
**Replies:** 2\
**Last updated:** [June 14, 2007, 9:02pm UTC](https://www.ruby-forum.com/t/rails-development-environment-and-reloading-models/106862 "2007-06-14T21:02:40Z")

</div>

Hi, By default, rails reloads all your models, while in development mode, with each new request. Is there anyway to specify that a given model, or models, should not be reloaded? This is specific to rails 1.2.3 T…

---

## [Uploading pictures to database or put them in the file syste](https://www.ruby-forum.com/t/uploading-pictures-to-database-or-put-them-in-the-file-syste/106794)

<div class="topic-metadata">

**Author:** [@chamnap](https://www.ruby-forum.com/u/chamnap)\
**Replies:** 3\
**Last updated:** [June 14, 2007, 8:50pm UTC](https://www.ruby-forum.com/t/uploading-pictures-to-database-or-put-them-in-the-file-syste/106794 "2007-06-14T20:50:35Z")

</div>

Hello, guys I want your ideas whether uploading pictures to database or uploading to the file system on the web server is the best way to implement? Can you give me pros and cons about this issue? Thanks Chamnap

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

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