# Rails

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

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

---

## [Single Table Inheritance](https://www.ruby-forum.com/t/single-table-inheritance/107739)

<div class="topic-metadata">

**Author:** [@Serengeti](https://www.ruby-forum.com/u/Serengeti)\
**Replies:** 2\
**Last updated:** [June 26, 2007, 5:23pm UTC](https://www.ruby-forum.com/t/single-table-inheritance/107739 "2007-06-26T17:23:50Z")

</div>

I am trying to implement single table inheritance according to the example in Agile Web D. with Rails. I have set up my model like this: class Entry \< ActiveRecord::Base belongs\_to :customer belongs\_to :ticket belo…

---

## [.exists?](https://www.ruby-forum.com/t/exists/107831)

<div class="topic-metadata">

**Author:** [@revanche](https://www.ruby-forum.com/u/revanche)\
**Replies:** 1\
**Last updated:** [June 26, 2007, 5:22pm UTC](https://www.ruby-forum.com/t/exists/107831 "2007-06-26T17:22:50Z")

</div>

Is there any way to use .exists? to check multiple conditions? Ideally, I’d like to verify it against four other fields. Thanks in advance! if Contact.exists?(:mobilephone =\> @contact.mobilephone)

---

## [Re: Debugging](https://www.ruby-forum.com/t/re-debugging/107837)

<div class="topic-metadata">

**Author:** [@Jonathan\_Bradley](https://www.ruby-forum.com/u/Jonathan_Bradley)\
**Replies:** 0\
**Last updated:** [June 26, 2007, 5:18pm UTC](https://www.ruby-forum.com/t/re-debugging/107837 "2007-06-26T17:18:48Z")

</div>

Is there any easy way to turn on debugging within a rails app besides running it as development? Like using the ruby-debug gem and such. I’m using fcgi to handle my application with apache due to memory leaks with rm…

---

## [Support & Consultants](https://www.ruby-forum.com/t/support-consultants/107826)

<div class="topic-metadata">

**Author:** [@Joe\_J](https://www.ruby-forum.com/u/Joe_J)\
**Replies:** 1\
**Last updated:** [June 26, 2007, 4:11pm UTC](https://www.ruby-forum.com/t/support-consultants/107826 "2007-06-26T16:11:39Z")

</div>

We are preparing to build a new Web site and the potential consultant we may be hiring has strongly recommended that we don’t go with our initial planning with asp.net but go with Ruby on Rails. We are not familiar w…

---

## [Non english rails sites?](https://www.ruby-forum.com/t/non-english-rails-sites/107793)

<div class="topic-metadata">

**Author:** [@matthew](https://www.ruby-forum.com/u/matthew)\
**Replies:** 4\
**Last updated:** [June 26, 2007, 4:02pm UTC](https://www.ruby-forum.com/t/non-english-rails-sites/107793 "2007-06-26T16:02:38Z")

</div>

Hi, Does anyone know of any non English rails sites? In particular Japanese sites. I’ve done a Google search, but could not really find much. rgds, matt.

---

## [Validates\_presence\_of of polymophic fields](https://www.ruby-forum.com/t/validates-presence-of-of-polymophic-fields/107818)

<div class="topic-metadata">

**Author:** [@pedz](https://www.ruby-forum.com/u/pedz)\
**Replies:** 0\
**Last updated:** [June 26, 2007, 3:11pm UTC](https://www.ruby-forum.com/t/validates-presence-of-of-polymophic-fields/107818 "2007-06-26T15:11:18Z")

</div>

My models looks like: class Relationship \< ActiveRecord::Base belongs\_to :link\_type belongs\_to :parent, :polymorphic =\> true belongs\_to :child, :polymorphic =\> true validates\_presence\_of :link\_type\_id validates\_pr…

---

## [ActionController::RoutingError (no route found to match "/ja](https://www.ruby-forum.com/t/actioncontroller-routingerror-no-route-found-to-match-ja/107815)

<div class="topic-metadata">

**Author:** [@Vimal\_B](https://www.ruby-forum.com/u/Vimal_B)\
**Replies:** 0\
**Last updated:** [June 26, 2007, 2:48pm UTC](https://www.ruby-forum.com/t/actioncontroller-routingerror-no-route-found-to-match-ja/107815 "2007-06-26T14:48:53Z")

</div>

Hi All, I have an application running on mongrel. i am getting the access of application .but it seems that its not picking up stylesheets,javascript. My production.log contains the error: ActionController::RoutingE…

---

## [How to not load helpers?](https://www.ruby-forum.com/t/how-to-not-load-helpers/107806)

<div class="topic-metadata">

**Author:** [@mark](https://www.ruby-forum.com/u/mark)\
**Replies:** 0\
**Last updated:** [June 26, 2007, 1:39pm UTC](https://www.ruby-forum.com/t/how-to-not-load-helpers/107806 "2007-06-26T13:39:30Z")

</div>

Anyone aware of setting I can put in environment.rb so that un-used helpers are not loaded? Cheers Mark

---

## [Has\_many :through, form for join model attributes](https://www.ruby-forum.com/t/has-many-through-form-for-join-model-attributes/59314)

<div class="topic-metadata">

**Author:** [@dmarkow](https://www.ruby-forum.com/u/dmarkow)\
**Replies:** 1\
**Last updated:** [June 26, 2007, 1:27pm UTC](https://www.ruby-forum.com/t/has-many-through-form-for-join-model-attributes/59314 "2007-06-26T13:27:32Z")

</div>

I have the following schema: class ClientsProject \< ActiveRecord::Base belongs\_to :client belongs\_to :project end class Client \< ActiveRecord::Base has\_many :clients\_projects has\_many :projects, :through =\> :clien…

---

## [Name of foreign key in innodb table](https://www.ruby-forum.com/t/name-of-foreign-key-in-innodb-table/107804)

<div class="topic-metadata">

**Author:** [@psimoes](https://www.ruby-forum.com/u/psimoes)\
**Replies:** 1\
**Last updated:** [June 26, 2007, 1:14pm UTC](https://www.ruby-forum.com/t/name-of-foreign-key-in-innodb-table/107804 "2007-06-26T13:14:18Z")

</div>

Hello, I’m trying to do a ALTER TABLE to add a foreign key. The code is: execute “ALTER TABLE table1 ADD CONSTRAINT FOREIGN KEY const\_fk\_table1\_table2\_id (table2\_id) REFERENCES table2 (id) ON DELETE CASCADE” Inste…

---

## [Functional tests and active scaffold: unexpected assertion f](https://www.ruby-forum.com/t/functional-tests-and-active-scaffold-unexpected-assertion-f/107693)

<div class="topic-metadata">

**Author:** [@gian](https://www.ruby-forum.com/u/gian)\
**Replies:** 1\
**Last updated:** [June 26, 2007, 1:07pm UTC](https://www.ruby-forum.com/t/functional-tests-and-active-scaffold-unexpected-assertion-f/107693 "2007-06-26T13:07:16Z")

</div>

Hello, I’m writing a functional test for a controller that uses active scaffold. def test\_presence\_of\_field login\_as(:peter) profile = Profile.find :first get :edit, {:id =\> profile.id} assert\_response 200 assert…

---

## [Assert\_select trying to verify the presence of a textarea](https://www.ruby-forum.com/t/assert-select-trying-to-verify-the-presence-of-a-textarea/107500)

<div class="topic-metadata">

**Author:** [@gian](https://www.ruby-forum.com/u/gian)\
**Replies:** 5\
**Last updated:** [June 26, 2007, 1:05pm UTC](https://www.ruby-forum.com/t/assert-select-trying-to-verify-the-presence-of-a-textarea/107500 "2007-06-26T13:05:13Z")

</div>

Hello, One of my functional tests looks like this: def test\_presence\_of\_free\_text profile = Profile.find :first post :edit, {:id =\> profile.id} assert\_select “textarea”, :name =\> “record\[free\_text\_ec\]” end The tes…

---

## [Undefined method \`alias\_method\_chain' for ActiveRecord::Vali](https://www.ruby-forum.com/t/undefined-method-alias-method-chain-for-activerecord-vali/107803)

<div class="topic-metadata">

**Author:** [@hanoc](https://www.ruby-forum.com/u/hanoc)\
**Replies:** 0\
**Last updated:** [June 26, 2007, 12:58pm UTC](https://www.ruby-forum.com/t/undefined-method-alias-method-chain-for-activerecord-vali/107803 "2007-06-26T12:58:04Z")

</div>

Hi, I had a problem with a dependency so I decided to upgrade from rails v. 1.1.6 to rails v. 1.2.3. The problem persits and I don’t know if it’s a dependency issue or another thing… here’s all the information I got…

---

## [Weakness of helper?](https://www.ruby-forum.com/t/weakness-of-helper/107104)

<div class="topic-metadata">

**Author:** [@Kevin\_Yang](https://www.ruby-forum.com/u/Kevin_Yang)\
**Replies:** 2\
**Last updated:** [June 26, 2007, 12:10pm UTC](https://www.ruby-forum.com/t/weakness-of-helper/107104 "2007-06-26T12:10:08Z")

</div>

Hi , It comes to me that helper has some weaknesses: 1) It is hard to test . No easy way to write test code for it. (or Just i didn’t know?) 2) Not easy to reuse it on other controller/view/model. it looks like…

---

## [Click On a Link to Update Database Record. How Do You Do It?](https://www.ruby-forum.com/t/click-on-a-link-to-update-database-record-how-do-you-do-it/107090)

<div class="topic-metadata">

**Author:** [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Replies:** 2\
**Last updated:** [June 26, 2007, 12:00pm UTC](https://www.ruby-forum.com/t/click-on-a-link-to-update-database-record-how-do-you-do-it/107090 "2007-06-26T12:00:05Z")

</div>

I’m experimenting with creating a very small To-Do List. I want to be able to click on a link that says: “Complete This To-Do Item” right beside the item – and then the database field underneath, “Status”, will update…

---

## [Keywords](https://www.ruby-forum.com/t/keywords/106733)

<div class="topic-metadata">

**Author:** [@dgm](https://www.ruby-forum.com/u/dgm)\
**Replies:** 1\
**Last updated:** [June 26, 2007, 11:44am UTC](https://www.ruby-forum.com/t/keywords/106733 "2007-06-26T11:44:02Z")

</div>

I’m looking for a list of words that I shouldn’t use for my models. I used “attribute” and rails didn’t like it because I think it is a keyword. I’m looking to use group, category, item and project.

---

## [Ruby for beginner](https://www.ruby-forum.com/t/ruby-for-beginner/107785)

<div class="topic-metadata">

**Author:** [@omnamohbhairav](https://www.ruby-forum.com/u/omnamohbhairav)\
**Replies:** 1\
**Last updated:** [June 26, 2007, 11:25am UTC](https://www.ruby-forum.com/t/ruby-for-beginner/107785 "2007-06-26T11:25:59Z")

</div>

hi , I am a new bie in ruby. pls let me know how to start working on ruby.which is good book for beginner of ruby. i have prior java experinece. Regards brajesh K.

---

## [Search technique](https://www.ruby-forum.com/t/search-technique/107514)

<div class="topic-metadata">

**Author:** [@arun123](https://www.ruby-forum.com/u/arun123)\
**Replies:** 6\
**Last updated:** [June 26, 2007, 11:17am UTC](https://www.ruby-forum.com/t/search-technique/107514 "2007-06-26T11:17:58Z")

</div>

hello all, I need to implement search in my app. any one guide me which search technique or plugin or gem is good for it. the search must be too fast. i used ferret before. but if there is any good other than this t…

---

## [Can someone clear up nested transactions?](https://www.ruby-forum.com/t/can-someone-clear-up-nested-transactions/105202)

<div class="topic-metadata">

**Author:** [@PeteSalty](https://www.ruby-forum.com/u/PeteSalty)\
**Replies:** 2\
**Last updated:** [June 26, 2007, 10:54am UTC](https://www.ruby-forum.com/t/can-someone-clear-up-nested-transactions/105202 "2007-06-26T10:54:56Z")

</div>

I simply can’t find a straight answer on this anywhere. If I have the need of nested transactions do I need to do this Article.transaction my\_article = Article.new(:title =\> ‘This is a new title’, :content =\> ‘This i…

---

## [Scaling...the other way](https://www.ruby-forum.com/t/scaling-the-other-way/107780)

<div class="topic-metadata">

**Author:** [@jeffpritchard](https://www.ruby-forum.com/u/jeffpritchard)\
**Replies:** 1\
**Last updated:** [June 26, 2007, 8:06am UTC](https://www.ruby-forum.com/t/scaling-the-other-way/107780 "2007-06-26T08:06:40Z")

</div>

There has been much discussion here about scaling to host a “normal” app for lots of traffic. I’m wondering if there are any particular difficulties with scaling a rails app itself up to gargantuan proportions, with j…

---

## [Load balancing in Rails](https://www.ruby-forum.com/t/load-balancing-in-rails/107558)

<div class="topic-metadata">

**Author:** [@raam](https://www.ruby-forum.com/u/raam)\
**Replies:** 9\
**Last updated:** [June 26, 2007, 6:32am UTC](https://www.ruby-forum.com/t/load-balancing-in-rails/107558 "2007-06-26T06:32:11Z")

</div>

Hey, Can someone give me some advice in setting up load balancing (and suggestions on some good cheap software load balancers.) I need a load balancer which can look at the incoming http request, query a session vari…

---

## [Validations and Transactions](https://www.ruby-forum.com/t/validations-and-transactions/107775)

<div class="topic-metadata">

**Author:** [@cammo](https://www.ruby-forum.com/u/cammo)\
**Replies:** 2\
**Last updated:** [June 26, 2007, 4:44am UTC](https://www.ruby-forum.com/t/validations-and-transactions/107775 "2007-06-26T04:44:11Z")

</div>

Hey I have a rather complex record set with lots of associated models all being save by 1 form. So I’ve wrapped the whole thing in a transaction block, but, does anyone know how I can get Active Record to return my va…

---

## [Associations not found - breaks randomly](https://www.ruby-forum.com/t/associations-not-found-breaks-randomly/107770)

<div class="topic-metadata">

**Author:** [@Elmar\_Schraml](https://www.ruby-forum.com/u/Elmar_Schraml)\
**Replies:** 1\
**Last updated:** [June 26, 2007, 2:58am UTC](https://www.ruby-forum.com/t/associations-not-found-breaks-randomly/107770 "2007-06-26T02:58:07Z")

</div>

Hi, I’ve set up an association for a 1:n-relationship, totally standard stuff. However, I sometimes get an error “Association XY not found, maybe you misspelled it?” when loading a view that makes use of the associat…

---

## [Capistrano rollback\_with\_migrations](https://www.ruby-forum.com/t/capistrano-rollback-with-migrations/107771)

<div class="topic-metadata">

**Author:** [@snacktime](https://www.ruby-forum.com/u/snacktime)\
**Replies:** 1\
**Last updated:** [June 26, 2007, 2:23am UTC](https://www.ruby-forum.com/t/capistrano-rollback-with-migrations/107771 "2007-06-26T02:23:05Z")

</div>

Is there a reason why there is no built in task rollback\_with\_migrations in capistrano? Before I go look at the source and try overriding that method, I thought there might be a good reason why it’s not there that I …

---

## [Announcing Multisite Plugin for Rails 2.0](https://www.ruby-forum.com/t/announcing-multisite-plugin-for-rails-2-0/107772)

<div class="topic-metadata">

**Author:** [@Gabe\_da\_Silveira](https://www.ruby-forum.com/u/Gabe_da_Silveira)\
**Replies:** 0\
**Last updated:** [June 26, 2007, 1:45am UTC](https://www.ruby-forum.com/t/announcing-multisite-plugin-for-rails-2-0/107772 "2007-06-26T01:45:02Z")

</div>

I’ve been working on this for a while, and gotten interest from several people, so I’m posting an announcement here. Building on the work of John L.'s multiple controller view paths in Rails core, I’ve created a plug…

---

## [REST Routing issue](https://www.ruby-forum.com/t/rest-routing-issue/106610)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 1\
**Last updated:** [June 26, 2007, 1:28am UTC](https://www.ruby-forum.com/t/rest-routing-issue/106610 "2007-06-26T01:28:00Z")

</div>

If I use http://0.0.0.0:3000/users/25/messages/new I can create a new message ressource for user 25 that’s OK… I would like to be able to use such url : http://0.0.0.0:3000/users/25/messages;send?to=5 in order to cre…

---

## [Windows version of http://wiki.rubyonrails.org/rails/pages/T](https://www.ruby-forum.com/t/windows-version-of-http-wiki-rubyonrails-org-rails-pages-t/107729)

<div class="topic-metadata">

**Author:** [@bluejaguar](https://www.ruby-forum.com/u/bluejaguar)\
**Replies:** 1\
**Last updated:** [June 26, 2007, 1:19am UTC](https://www.ruby-forum.com/t/windows-version-of-http-wiki-rubyonrails-org-rails-pages-t/107729 "2007-06-26T01:19:59Z")

</div>

Is there a windows (non-\*nix) version of the tutorial at http://wiki.rubyonrails.org/rails/pages/Tutorial ?

---

## [Saving data to web server](https://www.ruby-forum.com/t/saving-data-to-web-server/107766)

<div class="topic-metadata">

**Author:** [@keaja](https://www.ruby-forum.com/u/keaja)\
**Replies:** 0\
**Last updated:** [June 26, 2007, 1:15am UTC](https://www.ruby-forum.com/t/saving-data-to-web-server/107766 "2007-06-26T01:15:59Z")

</div>

Hello, I have the following script that prompts the user to save a vcs file to there computer. Instead, I would like to save the file to the web server so I can do some server side things with it. http://pastie.cabo…

---

## [Formatting a pretty page for 'raise' errors](https://www.ruby-forum.com/t/formatting-a-pretty-page-for-raise-errors/107764)

<div class="topic-metadata">

**Author:** [@luke](https://www.ruby-forum.com/u/luke)\
**Replies:** 1\
**Last updated:** [June 26, 2007, 1:07am UTC](https://www.ruby-forum.com/t/formatting-a-pretty-page-for-raise-errors/107764 "2007-06-26T01:07:58Z")

</div>

Hi, I’m using the following code to handle an error unless user\_can\_view\_group raise "User does not have permission to view group'" end Which happily prevents users from viewing groups. But the error page is rather…

---

## [Credit Card processor suggestions](https://www.ruby-forum.com/t/credit-card-processor-suggestions/107757)

<div class="topic-metadata">

**Author:** [@jdhale](https://www.ruby-forum.com/u/jdhale)\
**Replies:** 2\
**Last updated:** [June 26, 2007, 1:07am UTC](https://www.ruby-forum.com/t/credit-card-processor-suggestions/107757 "2007-06-26T01:07:58Z")

</div>

I have a rails site that processes credit cards using Paypal because our volume is so low that I wanted to avoid a monthly fee and storing CC info in our database. Does anyone have any suggestions for an alternative …

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

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