# Rails

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

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

---

## [Unit test failure](https://www.ruby-forum.com/t/unit-test-failure/120567)

<div class="topic-metadata">

**Author:** [@specpro](https://www.ruby-forum.com/u/specpro)\
**Replies:** 2\
**Last updated:** [November 19, 2007, 5:48pm UTC](https://www.ruby-forum.com/t/unit-test-failure/120567 "2007-11-19T17:48:37Z")

</div>

Getting the following Failures in my unit test. Can someone point me in the right direction?: Failure: test\_email\_with\_invalid\_examples(UserTest) \[./test/unit/user\_test.rb:134:in test\_email\_with\_invalid\_examples' …

---

## [Multiple database in Ruby on Rails](https://www.ruby-forum.com/t/multiple-database-in-ruby-on-rails/120637)

<div class="topic-metadata">

**Author:** [@gokul\_murthy](https://www.ruby-forum.com/u/gokul_murthy)\
**Replies:** 2\
**Last updated:** [November 19, 2007, 5:29pm UTC](https://www.ruby-forum.com/t/multiple-database-in-ruby-on-rails/120637 "2007-11-19T17:29:33Z")

</div>

Hi to all, Any can help me … How to handle multiple database in ruby on rails. I have to maintain two tables on one database and i have to maintain other 4 tables on another database. Can you any one send me sample…

---

## [AJAX call - weird special character problem](https://www.ruby-forum.com/t/ajax-call-weird-special-character-problem/120665)

<div class="topic-metadata">

**Author:** [@TFTFTF](https://www.ruby-forum.com/u/TFTFTF)\
**Replies:** 1\
**Last updated:** [November 19, 2007, 5:22pm UTC](https://www.ruby-forum.com/t/ajax-call-weird-special-character-problem/120665 "2007-11-19T17:22:16Z")

</div>

I’m using a form\_remote\_tag with a collection: \<%= select\_tag “fields\[\]”, options\_from\_collection\_for\_select(@fields, :keyname, :keyname), :multiple =\> true, :size =\> “10”%\> which works fine so far. The content of @…

---

## [Does anyone how to customize search query\>?](https://www.ruby-forum.com/t/does-anyone-how-to-customize-search-query/120662)

<div class="topic-metadata">

**Author:** [@Selvan](https://www.ruby-forum.com/u/Selvan)\
**Replies:** 0\
**Last updated:** [November 19, 2007, 4:52pm UTC](https://www.ruby-forum.com/t/does-anyone-how-to-customize-search-query/120662 "2007-11-19T16:52:45Z")

</div>

i wanted to customise the defaulte search to have my own fileds - based on teh user selecting the fields the query should dynamically pick up and return search. i need this to be done in ActiveScaffold plugin. does a…

---

## [Retrieve mails using POP](https://www.ruby-forum.com/t/retrieve-mails-using-pop/120496)

<div class="topic-metadata">

**Author:** [@dhaval\_parikh33](https://www.ruby-forum.com/u/dhaval_parikh33)\
**Replies:** 3\
**Last updated:** [November 19, 2007, 4:50pm UTC](https://www.ruby-forum.com/t/retrieve-mails-using-pop/120496 "2007-11-19T16:50:44Z")

</div>

Hello frnds Is there a method of retrieving mails using POP? Pls send refrences for the same. Thanks Dhaval P.

---

## [Need help for a table layout](https://www.ruby-forum.com/t/need-help-for-a-table-layout/120657)

<div class="topic-metadata">

**Author:** [@remco](https://www.ruby-forum.com/u/remco)\
**Replies:** 0\
**Last updated:** [November 19, 2007, 4:30pm UTC](https://www.ruby-forum.com/t/need-help-for-a-table-layout/120657 "2007-11-19T16:30:10Z")

</div>

Hi, Need some help in my table setup of my database. I want to realise the same as in this example \> http://www.renteoverzicht.nl/hypotheekrenteoverzicht.php Concept: The lender has 10 periods (variable, 1 year, 2 y…

---

## [Rspec / Duplicate Errors for same object](https://www.ruby-forum.com/t/rspec-duplicate-errors-for-same-object/120408)

<div class="topic-metadata">

**Author:** [@dave](https://www.ruby-forum.com/u/dave)\
**Replies:** 4\
**Last updated:** [November 19, 2007, 4:23pm UTC](https://www.ruby-forum.com/t/rspec-duplicate-errors-for-same-object/120408 "2007-11-19T16:23:28Z")

</div>

Hi there, I’m getting duplicate errors when I should only be receiving one error in the @errors array. I have an Rspec test that looks like this: describe ImageCollection, “validations” do it “should require max\_hei…

---

## [Question - Help the noobie](https://www.ruby-forum.com/t/question-help-the-noobie/196521)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 0\
**Last updated:** [November 19, 2007, 4:21pm UTC](https://www.ruby-forum.com/t/question-help-the-noobie/196521 "2007-11-19T16:21:49Z")

</div>

New to Ruby, getting “Application error (Rails)” when trying to access the page. Noticed in apache logs permissions denied problem to the fastcgi.crash.log, fixed that with chmod 777, now it just shows the pid that fa…

---

## [Setup Question](https://www.ruby-forum.com/t/setup-question/120437)

<div class="topic-metadata">

**Author:** [@syg6](https://www.ruby-forum.com/u/syg6)\
**Replies:** 3\
**Last updated:** [November 19, 2007, 3:37pm UTC](https://www.ruby-forum.com/t/setup-question/120437 "2007-11-19T15:37:58Z")

</div>

I was trying to use httperf to do some benchmarking on my server and the results were pretty dismal - very low connection /response rates and lots of 5xx values. While there was some other stuff running on the machin…

---

## [REST: Listing resources filtered by their attributes](https://www.ruby-forum.com/t/rest-listing-resources-filtered-by-their-attributes/120650)

<div class="topic-metadata">

**Author:** [@damaris](https://www.ruby-forum.com/u/damaris)\
**Replies:** 0\
**Last updated:** [November 19, 2007, 3:27pm UTC](https://www.ruby-forum.com/t/rest-listing-resources-filtered-by-their-attributes/120650 "2007-11-19T15:27:24Z")

</div>

Hi you all, I have a read-only resource called Tasks in my REST app, with some attributes, such as subject, initial date, etc. My users will be looking for listing not only all the tasks, but tasks with certain restri…

---

## [Creating remote backups of MYSQL Database using rails](https://www.ruby-forum.com/t/creating-remote-backups-of-mysql-database-using-rails/120632)

<div class="topic-metadata">

**Author:** [@jagan](https://www.ruby-forum.com/u/jagan)\
**Replies:** 1\
**Last updated:** [November 19, 2007, 3:14pm UTC](https://www.ruby-forum.com/t/creating-remote-backups-of-mysql-database-using-rails/120632 "2007-11-19T15:14:39Z")

</div>

Hello All, Can any body help me in writing a code for taking a mysql remote back through rails code.Has any body worked on this Thanks Jagan

---

## [Mini\_radiant](https://www.ruby-forum.com/t/mini-radiant/120638)

<div class="topic-metadata">

**Author:** [@arpit\_jain](https://www.ruby-forum.com/u/arpit_jain)\
**Replies:** 0\
**Last updated:** [November 19, 2007, 2:05pm UTC](https://www.ruby-forum.com/t/mini-radiant/120638 "2007-11-19T14:05:58Z")

</div>

Hi . I am using mini\_radiant plugin which is itself a rails application. I think i need to change routes.rb(of main application) for this to work. Can somebody tell me what are the changes i need to do… Thanks Arpi…

---

## [How Redisplay Failed User Data in Form?](https://www.ruby-forum.com/t/how-redisplay-failed-user-data-in-form/120523)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 6\
**Last updated:** [November 19, 2007, 2:03pm UTC](https://www.ruby-forum.com/t/how-redisplay-failed-user-data-in-form/120523 "2007-11-19T14:03:02Z")

</div>

Forms. Specifically entering data, submitting, discovering validation error, redisplaying the form with user’s entered data and error messages. I know how I would approach it left to my own devices (described below),…

---

## [Fixtures in edge and polymorphic associations](https://www.ruby-forum.com/t/fixtures-in-edge-and-polymorphic-associations/120420)

<div class="topic-metadata">

**Author:** [@dan](https://www.ruby-forum.com/u/dan)\
**Replies:** 4\
**Last updated:** [November 19, 2007, 12:54pm UTC](https://www.ruby-forum.com/t/fixtures-in-edge-and-polymorphic-associations/120420 "2007-11-19T12:54:58Z")

</div>

Hello, I’ve been using the fixture enhancements in edge rails to manage associations between objects. It has been working great except for polymorphic associations. I saw that they weren’t supported in Rathole. I …

---

## [Uninitialized constant](https://www.ruby-forum.com/t/uninitialized-constant/120550)

<div class="topic-metadata">

**Author:** [@gabru](https://www.ruby-forum.com/u/gabru)\
**Replies:** 2\
**Last updated:** [November 19, 2007, 12:18pm UTC](https://www.ruby-forum.com/t/uninitialized-constant/120550 "2007-11-19T12:18:20Z")

</div>

hi i am developing my first app with ror and i have experience and problem which i could not solve so far … i need a hand please :wink: following scenario… i have a file config/project.rb (my application specifc con…

---

## [InstantRails running problem](https://www.ruby-forum.com/t/instantrails-running-problem/120603)

<div class="topic-metadata">

**Author:** [@syed](https://www.ruby-forum.com/u/syed)\
**Replies:** 1\
**Last updated:** [November 19, 2007, 9:41am UTC](https://www.ruby-forum.com/t/instantrails-running-problem/120603 "2007-11-19T09:41:48Z")

</div>

My Desktop has MySql and Apache already installed and then I installed InstantRails on it without any trouble. Incase of my laptop I have both the softwares already installed and when I install InstantRails 1.7 and tr…

---

## [Flash\[:symbol\] with html possible?](https://www.ruby-forum.com/t/flash-symbol-with-html-possible/120607)

<div class="topic-metadata">

**Author:** [@yachtman](https://www.ruby-forum.com/u/yachtman)\
**Replies:** 3\
**Last updated:** [November 19, 2007, 9:10am UTC](https://www.ruby-forum.com/t/flash-symbol-with-html-possible/120607 "2007-11-19T09:10:20Z")

</div>

Trying to put in my controller Flash\[:notice\] = "\<%= #{link\_to 'edit', :action =\> 'edit'} =\>" but, I get a “undefined method link\_to” error. I would think that the :notice code would be rendered in the view, which sh…

---

## [Problem in has\_and\_belongs\_to\_many data retrieval](https://www.ruby-forum.com/t/problem-in-has-and-belongs-to-many-data-retrieval/120617)

<div class="topic-metadata">

**Author:** [@kamhei82](https://www.ruby-forum.com/u/kamhei82)\
**Replies:** 2\
**Last updated:** [November 19, 2007, 9:02am UTC](https://www.ruby-forum.com/t/problem-in-has-and-belongs-to-many-data-retrieval/120617 "2007-11-19T09:02:27Z")

</div>

Hi All, I’m new in RoR, I have a problem in retrieving data in has\_and\_belongs\_to\_many relationship. I have created 3 tables, Tag, Entry and Entries\_Tags . There are join in has\_and\_belongs\_to\_many I can successfull…

---

## [How deploy my ROR project to hostgator](https://www.ruby-forum.com/t/how-deploy-my-ror-project-to-hostgator/120618)

<div class="topic-metadata">

**Author:** [@bigapple2008](https://www.ruby-forum.com/u/bigapple2008)\
**Replies:** 0\
**Last updated:** [November 19, 2007, 9:00am UTC](https://www.ruby-forum.com/t/how-deploy-my-ror-project-to-hostgator/120618 "2007-11-19T09:00:59Z")

</div>

hi, all I’m a new comer of HOSTGATOR, and I want to deploy my ror project on this host. But I can’t find some useful guide, I follow the steps in this thread, but I meet the 400 error, any body can give me some steps…

---

## [Problems testing w/ seconds at runtime](https://www.ruby-forum.com/t/problems-testing-w-seconds-at-runtime/119300)

<div class="topic-metadata">

**Author:** [@clemrock](https://www.ruby-forum.com/u/clemrock)\
**Replies:** 5\
**Last updated:** [November 19, 2007, 6:21am UTC](https://www.ruby-forum.com/t/problems-testing-w-seconds-at-runtime/119300 "2007-11-19T06:21:12Z")

</div>

Hello, I constantly run into this problem when trying to test assertions against time w/ seconds. Since there can be a tiny lapse time between when a test is fired off and the value is tested your test can be off …

---

## [Integrating radiantCMS](https://www.ruby-forum.com/t/integrating-radiantcms/120605)

<div class="topic-metadata">

**Author:** [@arpit\_jain](https://www.ruby-forum.com/u/arpit_jain)\
**Replies:** 0\
**Last updated:** [November 19, 2007, 5:14am UTC](https://www.ruby-forum.com/t/integrating-radiantcms/120605 "2007-11-19T05:14:05Z")

</div>

Hi … I need to integrate radiant CMS inside the existing rails application. If anyone had done that please tell me how to do it? Thanks Arpit

---

## [Implementing Backpack/Lighthouse Email Input Feature](https://www.ruby-forum.com/t/implementing-backpack-lighthouse-email-input-feature/120602)

<div class="topic-metadata">

**Author:** [@hunter\_h](https://www.ruby-forum.com/u/hunter_h)\
**Replies:** 0\
**Last updated:** [November 19, 2007, 4:20am UTC](https://www.ruby-forum.com/t/implementing-backpack-lighthouse-email-input-feature/120602 "2007-11-19T04:20:20Z")

</div>

Howdy, I’m working on implementing email input for a Web app. I’ve got the basic email stuff working but I want to use an addressing scheme similar to Backpack or Lighthouse - where you assign randomly chosen English…

---

## [Variable inside of another variable](https://www.ruby-forum.com/t/variable-inside-of-another-variable/120534)

<div class="topic-metadata">

**Author:** [@Thiago\_G](https://www.ruby-forum.com/u/Thiago_G)\
**Replies:** 2\
**Last updated:** [November 19, 2007, 1:09am UTC](https://www.ruby-forum.com/t/variable-inside-of-another-variable/120534 "2007-11-19T01:09:13Z")

</div>

Hi everyone, I’m building partial and I need to use a variable inside of another variable name: I’ve tried like this: \<%= field\_title || field.humanize %\>: \<%= form.text\_field field, …

---

## [Trouble overriding default accessor/mutator](https://www.ruby-forum.com/t/trouble-overriding-default-accessor-mutator/120595)

<div class="topic-metadata">

**Author:** [@mojojojo](https://www.ruby-forum.com/u/mojojojo)\
**Replies:** 0\
**Last updated:** [November 19, 2007, 12:37am UTC](https://www.ruby-forum.com/t/trouble-overriding-default-accessor-mutator/120595 "2007-11-19T00:37:40Z")

</div>

I have a database column storing a duration value as a number of seconds, but I’d like users to be able to see it and edit it as a time value. I am trying to override the default accessor/mutator for the attribute and…

---

## [Class and Hash.from\_xml](https://www.ruby-forum.com/t/class-and-hash-from-xml/120575)

<div class="topic-metadata">

**Author:** [@george\_b](https://www.ruby-forum.com/u/george_b)\
**Replies:** 3\
**Last updated:** [November 19, 2007, 12:19am UTC](https://www.ruby-forum.com/t/class-and-hash-from-xml/120575 "2007-11-19T00:19:33Z")

</div>

I have some xml that looks like this: Smith Jones In this case, acct\_hash = Hash.from\_xml produces acct\_hash\[‘accounts’\]\[‘account’\] which is an Array. But if there is only one account in…

---

## [Validates\_uniqueness\_of question](https://www.ruby-forum.com/t/validates-uniqueness-of-question/120589)

<div class="topic-metadata">

**Author:** [@Jables](https://www.ruby-forum.com/u/Jables)\
**Replies:** 1\
**Last updated:** [November 18, 2007, 11:59pm UTC](https://www.ruby-forum.com/t/validates-uniqueness-of-question/120589 "2007-11-18T23:59:05Z")

</div>

Given three models: a design model, a votes model, and a users model the problem is a user can only vote for a design once. If I do a validates\_uniqueness\_of :user in the votes model that means a user can only vote on…

---

## [Syntax Problem](https://www.ruby-forum.com/t/syntax-problem/120461)

<div class="topic-metadata">

**Author:** [@tresero](https://www.ruby-forum.com/u/tresero)\
**Replies:** 18\
**Last updated:** [November 18, 2007, 11:56pm UTC](https://www.ruby-forum.com/t/syntax-problem/120461 "2007-11-18T23:56:45Z")

</div>

I admit I am stuck. I am converting a legacy php site to ROR. The old site uses MD5, a security flaw waiting to happen. I upgraded to AAA and am adding code in the session\_controller.rb file to see if crypted\_password…

---

## [Generating search conditions?](https://www.ruby-forum.com/t/generating-search-conditions/120591)

<div class="topic-metadata">

**Author:** [@Jables](https://www.ruby-forum.com/u/Jables)\
**Replies:** 1\
**Last updated:** [November 18, 2007, 11:55pm UTC](https://www.ruby-forum.com/t/generating-search-conditions/120591 "2007-11-18T23:55:00Z")

</div>

Could anyone tell me good options for generating search conditions. Specifically I have parameters based on time (today, yesterday, etc) and I want a private method in a model to generate a conditions statement. The …

---

## [Urgent help with rails, htaccess and shared hosting](https://www.ruby-forum.com/t/urgent-help-with-rails-htaccess-and-shared-hosting/120593)

<div class="topic-metadata">

**Author:** [@mix](https://www.ruby-forum.com/u/mix)\
**Replies:** 0\
**Last updated:** [November 18, 2007, 11:49pm UTC](https://www.ruby-forum.com/t/urgent-help-with-rails-htaccess-and-shared-hosting/120593 "2007-11-18T23:49:46Z")

</div>

Hi, i’m trying to set up a rails project in a shared hosting (i’ve no access to the vhost configuration). Actually i’ve a project folder in httpdocs. And this is the .htaccess in httpdocs RewriteEngine On RewriteRul…

---

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

<div class="topic-metadata">

**Author:** [@nfessel](https://www.ruby-forum.com/u/nfessel)\
**Replies:** 1\
**Last updated:** [November 18, 2007, 11:19pm UTC](https://www.ruby-forum.com/t/activerecord-query/120590 "2007-11-18T23:19:17Z")

</div>

Hello, I am trying to construct an ActiveRecord query to do the following: I have Tags that have a many-to-many relationship with Ledgers. Many Ledgers can have many Tags. I want to construct a query to get all the a…

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

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