# Rails

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

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

---

## [Deprecations Gon' Wild](https://www.ruby-forum.com/t/deprecations-gon-wild/109262)

<div class="topic-metadata">

**Author:** [@davidtl](https://www.ruby-forum.com/u/davidtl)\
**Replies:** 1\
**Last updated:** [July 13, 2007, 12:13am UTC](https://www.ruby-forum.com/t/deprecations-gon-wild/109262 "2007-07-13T00:13:32Z")

</div>

I’m sorry, but I have GOT to ping in on this… In Rails 2.0, the .rhtml and .rxml file extensions will be deprecatedhttp://dev.rubyonrails.org/changeset/6178in favor of the .erb and .builder extensions. “And in other …

---

## [Sharing database config between apps](https://www.ruby-forum.com/t/sharing-database-config-between-apps/109274)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 0\
**Last updated:** [July 13, 2007, 12:07am UTC](https://www.ruby-forum.com/t/sharing-database-config-between-apps/109274 "2007-07-13T00:07:31Z")

</div>

Is there a convention in Rails for sharing the database.yml between apps that have the same config? At work we use Cold Fusion which use Java datasources underneath, and would like to be able to similarly change the d…

---

## [Filters for finders](https://www.ruby-forum.com/t/filters-for-finders/79783)

<div class="topic-metadata">

**Author:** [@jonbaer](https://www.ruby-forum.com/u/jonbaer)\
**Replies:** 6\
**Last updated:** [July 13, 2007, 12:01am UTC](https://www.ruby-forum.com/t/filters-for-finders/79783 "2007-07-13T00:01:31Z")

</div>

Is there a way to filter all finders for a model? In my example, I have a TINYINT column called ‘active’. I wan’t to somehow filter it so that all finders by default can’t see the records where active=0. I know that…

---

## [Migrations-looping through add\_column lines](https://www.ruby-forum.com/t/migrations-looping-through-add-column-lines/109271)

<div class="topic-metadata">

**Author:** [@dkanders](https://www.ruby-forum.com/u/dkanders)\
**Replies:** 1\
**Last updated:** [July 12, 2007, 11:50pm UTC](https://www.ruby-forum.com/t/migrations-looping-through-add-column-lines/109271 "2007-07-12T23:50:27Z")

</div>

Hi All, Hoping this is an easy question… Can I loop through add\_columns? I’ve got a bunch of columns that I need to add to a table… I don’t really want to type “add\_column” 30 times… and then “remove\_column” another …

---

## [\[ANN\] Essential Rails registration now open](https://www.ruby-forum.com/t/ann-essential-rails-registration-now-open/109272)

<div class="topic-metadata">

**Author:** [@jeff](https://www.ruby-forum.com/u/jeff)\
**Replies:** 0\
**Last updated:** [July 12, 2007, 11:39pm UTC](https://www.ruby-forum.com/t/ann-essential-rails-registration-now-open/109272 "2007-07-12T23:39:26Z")

</div>

Hi all, Jeff here from softiesonrails.com… just wanted to get the word out that registration is now open for our next class, a two-day workshop for Rails beginners. Our one day “Web D. Makeover” back in January was s…

---

## [Find method not working](https://www.ruby-forum.com/t/find-method-not-working/108203)

<div class="topic-metadata">

**Author:** [@tomb](https://www.ruby-forum.com/u/tomb)\
**Replies:** 12\
**Last updated:** [July 12, 2007, 11:16pm UTC](https://www.ruby-forum.com/t/find-method-not-working/108203 "2007-07-12T23:16:23Z")

</div>

I’m learning Rails. I have a simple find that doesn’t work: @expense = Expense.find\_all\_by\_clientid(‘tbg’) There a number of records in the MySQL DB with clientid = ‘tbg’ but the find returns all records, including t…

---

## [How to make auto\_link work in script/console](https://www.ruby-forum.com/t/how-to-make-auto-link-work-in-script-console/109227)

<div class="topic-metadata">

**Author:** [@dorelal](https://www.ruby-forum.com/u/dorelal)\
**Replies:** 5\
**Last updated:** [July 12, 2007, 10:53pm UTC](https://www.ruby-forum.com/t/how-to-make-auto-link-work-in-script-console/109227 "2007-07-12T22:53:22Z")

</div>

I wanted to take auto\_link method for a ride but in script/console I get the message that “undefined method ‘tag\_options’”. What do I need to include in order to run auto\_link(“ruby on rails”) on ruby script/console…

---

## [Creating menu items](https://www.ruby-forum.com/t/creating-menu-items/109268)

<div class="topic-metadata">

**Author:** [@andrewkendall](https://www.ruby-forum.com/u/andrewkendall)\
**Replies:** 0\
**Last updated:** [July 12, 2007, 10:52pm UTC](https://www.ruby-forum.com/t/creating-menu-items/109268 "2007-07-12T22:52:34Z")

</div>

Hi. I’m creating menu items on a webpage. For the sake of cleaner code I’d like to create menu items in controller and just iterate through in my rthml. So, in modules I have created class Menu def items review = M…

---

## [Objects won't destroy when inside of a loop](https://www.ruby-forum.com/t/objects-wont-destroy-when-inside-of-a-loop/109242)

<div class="topic-metadata">

**Author:** [@jjkiesch](https://www.ruby-forum.com/u/jjkiesch)\
**Replies:** 5\
**Last updated:** [July 12, 2007, 9:34pm UTC](https://www.ruby-forum.com/t/objects-wont-destroy-when-inside-of-a-loop/109242 "2007-07-12T21:34:27Z")

</div>

I’m having a little trouble with this for some reason. Can someone tell me why I can do this… price = Price.find(5) price.destroy but not this… product.prices.each do |p| p.destroy end At the end of that latter p…

---

## [Password\_field helper](https://www.ruby-forum.com/t/password-field-helper/109249)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 4\
**Last updated:** [July 12, 2007, 9:21pm UTC](https://www.ruby-forum.com/t/password-field-helper/109249 "2007-07-12T21:21:10Z")

</div>

I am using a password\_field help to collect credit card information. Is there a way to make it so the field collects no more then 16 digits? In normal html this would be achieved through “nowrap.” Is there an equivale…

---

## [Can you put layout rhtml into a database blob](https://www.ruby-forum.com/t/can-you-put-layout-rhtml-into-a-database-blob/109234)

<div class="topic-metadata">

**Author:** [@ian](https://www.ruby-forum.com/u/ian)\
**Replies:** 2\
**Last updated:** [July 12, 2007, 9:21pm UTC](https://www.ruby-forum.com/t/can-you-put-layout-rhtml-into-a-database-blob/109234 "2007-07-12T21:21:10Z")

</div>

Is there a way to move the layout .rhtml into a database blob? I would like to get the information from the database and pass that to the ActiveRecord layout and then have it pull the rest as normal. e.g. class Weblo…

---

## [PayPal - SDK for Ruby](https://www.ruby-forum.com/t/paypal-sdk-for-ruby/109254)

<div class="topic-metadata">

**Author:** [@tomx](https://www.ruby-forum.com/u/tomx)\
**Replies:** 1\
**Last updated:** [July 12, 2007, 8:47pm UTC](https://www.ruby-forum.com/t/paypal-sdk-for-ruby/109254 "2007-07-12T20:47:07Z")

</div>

Hello, Does PayPal have SDK for Ruby? Thanks, Tom

---

## [Paginating a find](https://www.ruby-forum.com/t/paginating-a-find/109206)

<div class="topic-metadata">

**Author:** [@nanouk](https://www.ruby-forum.com/u/nanouk)\
**Replies:** 6\
**Last updated:** [July 12, 2007, 8:10pm UTC](https://www.ruby-forum.com/t/paginating-a-find/109206 "2007-07-12T20:10:01Z")

</div>

def summary @most\_recent\_fails = Run.find(:all, :order =\> ‘id DESC’) @fails\_pages, @most\_recent\_fails = paginate :most\_recent\_fails, :per\_page =\> 2, :conditions =\> \[‘run\_id=?’, @run.id\] end Brings up the following e…

---

## [Ar save! bug?](https://www.ruby-forum.com/t/ar-save-bug/109167)

<div class="topic-metadata">

**Author:** [@ara.t.howard](https://www.ruby-forum.com/u/ara.t.howard)\
**Replies:** 4\
**Last updated:** [July 12, 2007, 7:24pm UTC](https://www.ruby-forum.com/t/ar-save-bug/109167 "2007-07-12T19:24:54Z")

</div>

any ideas how this ever could be possible: @model.save! @model.update Model.find @model.id # raises ?? -a we can deny everything, except that we have the possibility of being better. simply reflect on that. h.h. …

---

## [TypeError while doing tests](https://www.ruby-forum.com/t/typeerror-while-doing-tests/109250)

<div class="topic-metadata">

**Author:** [@visaolive](https://www.ruby-forum.com/u/visaolive)\
**Replies:** 0\
**Last updated:** [July 12, 2007, 6:57pm UTC](https://www.ruby-forum.com/t/typeerror-while-doing-tests/109250 "2007-07-12T18:57:51Z")

</div>

I have a problem testing an invalid situation, the valid situation without merging params (or merging valid ones) works fine. Controller: @user is setted with a filter def update if @user.update\_attributes(params\[:u…

---

## [With\_scope and a special relationship](https://www.ruby-forum.com/t/with-scope-and-a-special-relationship/109243)

<div class="topic-metadata">

**Author:** [@carlosparamio](https://www.ruby-forum.com/u/carlosparamio)\
**Replies:** 2\
**Last updated:** [July 12, 2007, 6:13pm UTC](https://www.ruby-forum.com/t/with-scope-and-a-special-relationship/109243 "2007-07-12T18:13:42Z")

</div>

Hi! I have a little problem with two specially related models and an accesor for one of them. In our application, we have users (with a rights/roles subsystem) and documents. For each document, we have some users rel…

---

## [\[retry\] fixture\_references: "Mysql::Error #HY000"? (fwd)](https://www.ruby-forum.com/t/retry-fixture-references-mysql-error-hy000-fwd/109245)

<div class="topic-metadata">

**Author:** [@Hugh\_S](https://www.ruby-forum.com/u/Hugh_S)\
**Replies:** 0\
**Last updated:** [July 12, 2007, 5:45pm UTC](https://www.ruby-forum.com/t/retry-fixture-references-mysql-error-hy000-fwd/109245 "2007-07-12T17:45:38Z")

</div>

I’m resending this with additional information, as I’ve had no response. I’ve been trying to use the fixture\_references plugin, and I seem to be getting lots of: Error: test\_truth(DeviceTest): ActiveRecord::Statem…

---

## [Selenium and Rails](https://www.ruby-forum.com/t/selenium-and-rails/109240)

<div class="topic-metadata">

**Author:** [@hotgazpacho](https://www.ruby-forum.com/u/hotgazpacho)\
**Replies:** 1\
**Last updated:** [July 12, 2007, 5:01pm UTC](https://www.ruby-forum.com/t/selenium-and-rails/109240 "2007-07-12T17:01:34Z")

</div>

Hello all, Has anyone had any luck writing and using Selenium tests in the rails environment. If so, what pitfalls have you run into? Have you got any tips or tricks? Thanks, Will TV dinner still cooling? Check o…

---

## [Help with hosting](https://www.ruby-forum.com/t/help-with-hosting/109170)

<div class="topic-metadata">

**Author:** [@DBC\_User](https://www.ruby-forum.com/u/DBC_User)\
**Replies:** 3\
**Last updated:** [July 12, 2007, 4:44pm UTC](https://www.ruby-forum.com/t/help-with-hosting/109170 "2007-07-12T16:44:31Z")

</div>

I am a windows developer and I am able to develop and test my RoR apps with webricks good. But the hosting company I choose was Linux based and when I moved the app nothing worked bacause of the path of ruby and gem e…

---

## [Getting field value from child window \[Using Redbox\]](https://www.ruby-forum.com/t/getting-field-value-from-child-window-using-redbox/109202)

<div class="topic-metadata">

**Author:** [@unnikrishnanes](https://www.ruby-forum.com/u/unnikrishnanes)\
**Replies:** 3\
**Last updated:** [July 12, 2007, 4:28pm UTC](https://www.ruby-forum.com/t/getting-field-value-from-child-window-using-redbox/109202 "2007-07-12T16:28:25Z")

</div>

I have a page in which I have a text field and next to that a button , when I click on the button it should open window \[using Redbox\] so that I can type it in the window and when I give submit in the child window it…

---

## [How change routes.rb?](https://www.ruby-forum.com/t/how-change-routes-rb/109218)

<div class="topic-metadata">

**Author:** [@Oleg\_Muntyan](https://www.ruby-forum.com/u/Oleg_Muntyan)\
**Replies:** 2\
**Last updated:** [July 12, 2007, 4:26pm UTC](https://www.ruby-forum.com/t/how-change-routes-rb/109218 "2007-07-12T16:26:24Z")

</div>

http://localhost:3002/contr/index?action=‘UPDATE’ When I try to get params\[:action\] it return ‘index’ I can not use any other name, because it is command interface for other service Probably, I have to change routes.…

---

## [More radio\_buttons](https://www.ruby-forum.com/t/more-radio-buttons/109231)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 0\
**Last updated:** [July 12, 2007, 4:17pm UTC](https://www.ruby-forum.com/t/more-radio-buttons/109231 "2007-07-12T16:17:14Z")

</div>

I posted a question yesterday about radio buttons and got some good feedback, but I don’t think I was asking the right question. I’m using a group of three radio buttons to let me know if a user would like info about …

---

## ["We're sorry, but something went wrong." - Error!](https://www.ruby-forum.com/t/were-sorry-but-something-went-wrong-error/109193)

<div class="topic-metadata">

**Author:** [@farfignugen](https://www.ruby-forum.com/u/farfignugen)\
**Replies:** 2\
**Last updated:** [July 12, 2007, 4:15pm UTC](https://www.ruby-forum.com/t/were-sorry-but-something-went-wrong-error/109193 "2007-07-12T16:15:21Z")

</div>

Hi, I am currently running a rails / mysql project and keep getting the error as seen in the title of this topic. " We’re sorry, but something went wrong. We’ve been notified about this issue and we’ll take a look a…

---

## [Mongrel and ssl](https://www.ruby-forum.com/t/mongrel-and-ssl/109090)

<div class="topic-metadata">

**Author:** [@simon1](https://www.ruby-forum.com/u/simon1)\
**Replies:** 4\
**Last updated:** [July 12, 2007, 3:49pm UTC](https://www.ruby-forum.com/t/mongrel-and-ssl/109090 "2007-07-12T15:49:16Z")

</div>

Hi, I currently have an app running using Mongrel, and need to add SSL to certain functions. I found this link (http://www.styledbits.com/ articles/2006/06/04/adding-ssl-to-your-rails-app-in-5-minutes) hunting throu…

---

## [Backgroundrb run programm](https://www.ruby-forum.com/t/backgroundrb-run-programm/109223)

<div class="topic-metadata">

**Author:** [@pipistrellrf](https://www.ruby-forum.com/u/pipistrellrf)\
**Replies:** 0\
**Last updated:** [July 12, 2007, 3:19pm UTC](https://www.ruby-forum.com/t/backgroundrb-run-programm/109223 "2007-07-12T15:19:18Z")

</div>

Please, help! I can’t run my C++ programm from Ruby scheduler “Backgroundrb”. But other programms work fine (for example “echo hello”). Here my code snippet: class TasksWorker \< BackgrounDRb::Worker::RailsBase def d…

---

## [Ruby Migration \>\> Foreign Keys](https://www.ruby-forum.com/t/ruby-migration-foreign-keys/109214)

<div class="topic-metadata">

**Author:** [@Gladiator](https://www.ruby-forum.com/u/Gladiator)\
**Replies:** 1\
**Last updated:** [July 12, 2007, 2:48pm UTC](https://www.ruby-forum.com/t/ruby-migration-foreign-keys/109214 "2007-07-12T14:48:39Z")

</div>

I have two tables having many-to-many relationship. I created a join table containing the primary keys of both tables. Can any body tell me how use Ruby migration for foreign keys… Thanks in advance Satish

---

## [(no subject)](https://www.ruby-forum.com/t/no-subject/108385)

<div class="topic-metadata">

**Author:** [@Nathan\_Garza](https://www.ruby-forum.com/u/Nathan_Garza)\
**Replies:** 1\
**Last updated:** [July 12, 2007, 2:22pm UTC](https://www.ruby-forum.com/t/no-subject/108385 "2007-07-12T14:22:07Z")

</div>

Any one know of a library to READ rtf documents in ruby? I’ve been consulting with Dr. Google, and some how just can’t find one. Lots of lib’s to WRITE them… Thanks in advance! – Nathan Garza AshLeaf Media | Dir…

---

## [Getting value from Child value but parent window should not](https://www.ruby-forum.com/t/getting-value-from-child-value-but-parent-window-should-not/109216)

<div class="topic-metadata">

**Author:** [@unnikrishnanes](https://www.ruby-forum.com/u/unnikrishnanes)\
**Replies:** 0\
**Last updated:** [July 12, 2007, 1:30pm UTC](https://www.ruby-forum.com/t/getting-value-from-child-value-but-parent-window-should-not/109216 "2007-07-12T13:30:31Z")

</div>

I have a window in which I have a text field followed by a add button. when I click on add button a window will open up. and I will add some data to the child window and when I enter , the entered data should go to a …

---

## [Setting default format to mobile for resources](https://www.ruby-forum.com/t/setting-default-format-to-mobile-for-resources/109213)

<div class="topic-metadata">

**Author:** [@spdemac](https://www.ruby-forum.com/u/spdemac)\
**Replies:** 0\
**Last updated:** [July 12, 2007, 1:12pm UTC](https://www.ruby-forum.com/t/setting-default-format-to-mobile-for-resources/109213 "2007-07-12T13:12:05Z")

</div>

I am trying to set routes starting with /m to :format =\> “mobile” but am stumbling when it comes to resources. Has anyone accomplished something similar?

---

## [Mongrel hanging on exit. Reaping threads](https://www.ruby-forum.com/t/mongrel-hanging-on-exit-reaping-threads/109212)

<div class="topic-metadata">

**Author:** [@tricon](https://www.ruby-forum.com/u/tricon)\
**Replies:** 1\
**Last updated:** [July 12, 2007, 1:08pm UTC](https://www.ruby-forum.com/t/mongrel-hanging-on-exit-reaping-threads/109212 "2007-07-12T13:08:57Z")

</div>

Greetings, I’m using the net-ping library within a Rails app to determine server status. However, whenever the action which utilizes the net-ping lib is run, it appears to cause a “rogue” thread. The following appears …

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

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