# Rails

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

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

---

## [How to DRY up this model a bit?](https://www.ruby-forum.com/t/how-to-dry-up-this-model-a-bit/131754)

<div class="topic-metadata">

**Author:** [@fizban](https://www.ruby-forum.com/u/fizban)\
**Replies:** 0\
**Last updated:** [March 13, 2008, 12:55am UTC](https://www.ruby-forum.com/t/how-to-dry-up-this-model-a-bit/131754 "2008-03-13T00:55:17Z")

</div>

Hi again, I have this model, trip.rb, which is getting bloated with the same things repeated all over. I’m new to both rails and ruby so I’m looking for help on how to DRY this thing a bit I basically have to repeat …

---

## [Please help: +1 for plugin patch needed](https://www.ruby-forum.com/t/please-help-1-for-plugin-patch-needed/129691)

<div class="topic-metadata">

**Author:** [@Sven\_F](https://www.ruby-forum.com/u/Sven_F)\
**Replies:** 2\
**Last updated:** [March 13, 2008, 12:45am UTC](https://www.ruby-forum.com/t/please-help-1-for-plugin-patch-needed/129691 "2008-03-13T00:45:52Z")

</div>

We still need one +1 for the following Rails patch which was submitted by James. http://dev.rubyonrails.org/ticket/10979 This moves former Engines functionality (loading of plugin about.yml) to Rails core in order to…

---

## [Please wait dialog](https://www.ruby-forum.com/t/please-wait-dialog/131675)

<div class="topic-metadata">

**Author:** [@makire](https://www.ruby-forum.com/u/makire)\
**Replies:** 3\
**Last updated:** [March 13, 2008, 12:10am UTC](https://www.ruby-forum.com/t/please-wait-dialog/131675 "2008-03-13T00:10:49Z")

</div>

Hi everyone I have an application that needs to execute a shell script with quite a long execution time. I would like to show some “Please wait”-dialog that can be updated with status from the script. Does anyone have…

---

## [@variable."field#{x}"](https://www.ruby-forum.com/t/variable-field-x/131750)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 3\
**Last updated:** [March 12, 2008, 11:49pm UTC](https://www.ruby-forum.com/t/variable-field-x/131750 "2008-03-12T23:49:28Z")

</div>

Ok so could anyone tell me what this is called so I can look it up rather posting questions in this forum all the time. I have had to post something to learn how to do the following: Model.send(“field#{x}”) and ses…

---

## [Respond\_to js and IE7](https://www.ruby-forum.com/t/respond-to-js-and-ie7/131744)

<div class="topic-metadata">

**Author:** [@andrewkendall](https://www.ruby-forum.com/u/andrewkendall)\
**Replies:** 1\
**Last updated:** [March 12, 2008, 11:07pm UTC](https://www.ruby-forum.com/t/respond-to-js-and-ie7/131744 "2008-03-12T23:07:09Z")

</div>

Hello, I’m having an issue serving up javascript in IE7. I have an action with… respond\_to do |format| format.js end This works fine in FF and Safari, but in IE7 I’m getting a file download dialog. IE7 is obvious…

---

## [Has\_many :through checkboxes + select](https://www.ruby-forum.com/t/has-many-through-checkboxes-select/131746)

<div class="topic-metadata">

**Author:** [@flaubert](https://www.ruby-forum.com/u/flaubert)\
**Replies:** 0\
**Last updated:** [March 12, 2008, 10:32pm UTC](https://www.ruby-forum.com/t/has-many-through-checkboxes-select/131746 "2008-03-12T22:32:45Z")

</div>

Hello all. I have 3 models: Profile.rb has\_many :knowledges has\_many :skills, :through =\> :knowledges table (id,name) Knowledge.rb belongs\_to :profile belongs\_to :skill table (profile\_id,skill\_id,level) Skill.r…

---

## [:order\_by =\> \["RAND()"\]](https://www.ruby-forum.com/t/order-by-rand/131642)

<div class="topic-metadata">

**Author:** [@daveamos](https://www.ruby-forum.com/u/daveamos)\
**Replies:** 6\
**Last updated:** [March 12, 2008, 9:54pm UTC](https://www.ruby-forum.com/t/order-by-rand/131642 "2008-03-12T21:54:13Z")

</div>

Hi there, I’m trying to grab a random row out of a database and I keep getting the error: Couldn’t find Reason with ID=random Here’s my controller: @reason = Reason.find(:first, :order =\> \[“RAND()”\]) I think that’s…

---

## [RJS replace\_html for all divs with a class](https://www.ruby-forum.com/t/rjs-replace-html-for-all-divs-with-a-class/131704)

<div class="topic-metadata">

**Author:** [@dino\_d](https://www.ruby-forum.com/u/dino_d)\
**Replies:** 2\
**Last updated:** [March 12, 2008, 8:18pm UTC](https://www.ruby-forum.com/t/rjs-replace-html-for-all-divs-with-a-class/131704 "2008-03-12T20:18:35Z")

</div>

Hi- I want to do a bunch of html\_replace 's for a class of divs, not one single div and I want to replace the content with a partial. I can round them up using page.select, but cannot find something that will easily…

---

## ["undefined method 'trips\_path for..." can anyone help?](https://www.ruby-forum.com/t/undefined-method-trips-path-for-can-anyone-help/131708)

<div class="topic-metadata">

**Author:** [@fizban](https://www.ruby-forum.com/u/fizban)\
**Replies:** 1\
**Last updated:** [March 12, 2008, 8:00pm UTC](https://www.ruby-forum.com/t/undefined-method-trips-path-for-can-anyone-help/131708 "2008-03-12T20:00:13Z")

</div>

Hi, I’m trying to use recipe 20 (handle multiple models in one form from “advanced rails recipes” but I’m hitting the error in the topic… I basically try to access /trips/new (it’s supposed to be an e- commerce solut…

---

## [F Forum Plugin](https://www.ruby-forum.com/t/f-forum-plugin/131709)

<div class="topic-metadata">

**Author:** [@megax](https://www.ruby-forum.com/u/megax)\
**Replies:** 4\
**Last updated:** [March 12, 2008, 7:45pm UTC](https://www.ruby-forum.com/t/f-forum-plugin/131709 "2008-03-12T19:45:56Z")

</div>

I was excited to find this but when I do ruby script/plugin install svn://rubyforge.org/var/svn/fforum/trunk nothing happens, has the plugin been removed or moved somewhere else as I would really like to use it in my …

---

## [Rfacebook http 500 error](https://www.ruby-forum.com/t/rfacebook-http-500-error/131726)

<div class="topic-metadata">

**Author:** [@shaish](https://www.ruby-forum.com/u/shaish)\
**Replies:** 0\
**Last updated:** [March 12, 2008, 7:23pm UTC](https://www.ruby-forum.com/t/rfacebook-http-500-error/131726 "2008-03-12T19:23:04Z")

</div>

hey, here’s my problem: I have a working rails application and everytime I install the rfacebook plugin (nothing more than running script/pluin install) all I get from the app is http 500s. I also did rake facebook:s…

---

## [Building a view for a 3 model has\_many relationship](https://www.ruby-forum.com/t/building-a-view-for-a-3-model-has-many-relationship/131717)

<div class="topic-metadata">

**Author:** [@matt](https://www.ruby-forum.com/u/matt)\
**Replies:** 2\
**Last updated:** [March 12, 2008, 7:13pm UTC](https://www.ruby-forum.com/t/building-a-view-for-a-3-model-has-many-relationship/131717 "2008-03-12T19:13:48Z")

</div>

I’m working with three models: Charge. has\_many :budget\_plans BudgetPlan. belongs\_to :charges, :rollups Rollup. has\_many :budget\_plans This works out perfectly. A budget plan contains the ID of a charge and rollup …

---

## [Session variables](https://www.ruby-forum.com/t/session-variables/131719)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 2\
**Last updated:** [March 12, 2008, 7:08pm UTC](https://www.ruby-forum.com/t/session-variables/131719 "2008-03-12T19:08:52Z")

</div>

Is there a way to concatenate a number onto a string and use that string in a session variable? I tried something like… x = 1 session\[“user” + x\] = user one but nothing happen unless I use the session\[:user\] syntax.…

---

## [Nested routes with a 2-way has\_many using join table?](https://www.ruby-forum.com/t/nested-routes-with-a-2-way-has-many-using-join-table/131691)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 2\
**Last updated:** [March 12, 2008, 6:54pm UTC](https://www.ruby-forum.com/t/nested-routes-with-a-2-way-has-many-using-join-table/131691 "2008-03-12T18:54:27Z")

</div>

I have two classes, InstructionalObject and Assets. They both have\_many of the other, implemented through a join table (so it’s like a habtm without the habtm). For the next version of our app, we’re refactoring to R…

---

## [Problem installing salted\_login](https://www.ruby-forum.com/t/problem-installing-salted-login/131712)

<div class="topic-metadata">

**Author:** [@jehoho](https://www.ruby-forum.com/u/jehoho)\
**Replies:** 0\
**Last updated:** [March 12, 2008, 6:15pm UTC](https://www.ruby-forum.com/t/problem-installing-salted-login/131712 "2008-03-12T18:15:11Z")

</div>

Hi. I am trying to install salted\_login. Executing “ruby script/generate salted\_login User Location” the following error occurs: create app/views/layouts/scaffold.rhtml No such file or directory - F:/InstantRails/r…

---

## [How do you define login information for Capistrano in deploy.rb?](https://www.ruby-forum.com/t/how-do-you-define-login-information-for-capistrano-in-deploy-rb/131710)

<div class="topic-metadata">

**Author:** [@ron](https://www.ruby-forum.com/u/ron)\
**Replies:** 0\
**Last updated:** [March 12, 2008, 5:44pm UTC](https://www.ruby-forum.com/t/how-do-you-define-login-information-for-capistrano-in-deploy-rb/131710 "2008-03-12T17:44:47Z")

</div>

Basic question: I’m trying to deploy my app and I’m not sure how to set login information so that Capistrano can log in to my VPS. Thoughts? Thanks, Ron

---

## [2.0 Fixtures with has\_many :through?](https://www.ruby-forum.com/t/2-0-fixtures-with-has-many-through/131653)

<div class="topic-metadata">

**Author:** [@philipp07](https://www.ruby-forum.com/u/philipp07)\
**Replies:** 3\
**Last updated:** [March 12, 2008, 5:42pm UTC](https://www.ruby-forum.com/t/2-0-fixtures-with-has-many-through/131653 "2008-03-12T17:42:59Z")

</div>

hi! did anyone get the new fixtures features (no join table, no ids) for a has\_many :through assocation running? I did everything like I saw in a couple of screencasts and tutorials, but they were all using a habtm a…

---

## [Downgrading Rails Version!](https://www.ruby-forum.com/t/downgrading-rails-version/126187)

<div class="topic-metadata">

**Author:** [@jigen7](https://www.ruby-forum.com/u/jigen7)\
**Replies:** 9\
**Last updated:** [March 12, 2008, 5:28pm UTC](https://www.ruby-forum.com/t/downgrading-rails-version/126187 "2008-03-12T17:28:46Z")

</div>

Hi im just new in studying rails, my prob is that i’ve installed the latest rails 2.01. My problem is that most of the Books available which i’ve bought uses lower version of rails. which at the start i cant pass the …

---

## [Routing problem?](https://www.ruby-forum.com/t/routing-problem/131694)

<div class="topic-metadata">

**Author:** [@Javier\_CH](https://www.ruby-forum.com/u/Javier_CH)\
**Replies:** 2\
**Last updated:** [March 12, 2008, 5:21pm UTC](https://www.ruby-forum.com/t/routing-problem/131694 "2008-03-12T17:21:36Z")

</div>

I have a form and always seem to be sent to the wrong controller- method. Can anyone help me with this pastie (controller-, view- and routing- code present in pastie)? http://rafb.net/p/tEvsAB49.html Saludos Javier …

---

## [Looking for contract linux(debian) mysql(5)](https://www.ruby-forum.com/t/looking-for-contract-linux-debian-mysql-5/131707)

<div class="topic-metadata">

**Author:** [@jshow](https://www.ruby-forum.com/u/jshow)\
**Replies:** 0\
**Last updated:** [March 12, 2008, 5:19pm UTC](https://www.ruby-forum.com/t/looking-for-contract-linux-debian-mysql-5/131707 "2008-03-12T17:19:15Z")

</div>

Greetings rails’ers; We’re a successful rails startup looking for some deeper infrastructure talent. We’ve launched www.homestars.com and are now rolling out and tuning Debian and Mysql. I’m hopeful that one of my …

---

## [Storing controllers outside of app/controllers](https://www.ruby-forum.com/t/storing-controllers-outside-of-app-controllers/131465)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [March 12, 2008, 5:18pm UTC](https://www.ruby-forum.com/t/storing-controllers-outside-of-app-controllers/131465 "2008-03-12T17:18:39Z")

</div>

Hi All, I’m trying to build a web application that will have an interface for developers to write ‘modules’ to add to the application. I’m currently following this structure: app/controllers \<= The main application c…

---

## [BJ Background jobs won't die](https://www.ruby-forum.com/t/bj-background-jobs-wont-die/131705)

<div class="topic-metadata">

**Author:** [@gdevore](https://www.ruby-forum.com/u/gdevore)\
**Replies:** 0\
**Last updated:** [March 12, 2008, 5:01pm UTC](https://www.ruby-forum.com/t/bj-background-jobs-wont-die/131705 "2008-03-12T17:01:29Z")

</div>

I am having a problem using the bj plugin and am wondering if someone can help. Basically we use attachment\_fu to upload images to our server and then send a job to bj to upload those files to S3 and then delete them…

---

## [Problem saving object graphs](https://www.ruby-forum.com/t/problem-saving-object-graphs/131703)

<div class="topic-metadata">

**Author:** [@hardy](https://www.ruby-forum.com/u/hardy)\
**Replies:** 0\
**Last updated:** [March 12, 2008, 5:00pm UTC](https://www.ruby-forum.com/t/problem-saving-object-graphs/131703 "2008-03-12T17:00:15Z")

</div>

Morning (as appropriate) all! I’m having a problem with rails 2.0.1 and am hoping somebody here might be able to help me out. I’m building a flex/rubyamf/rails app, and I’m having trouble saving object graphs. Here’…

---

## [UPS delivery package service select](https://www.ruby-forum.com/t/ups-delivery-package-service-select/131697)

<div class="topic-metadata">

**Author:** [@ericrchr](https://www.ruby-forum.com/u/ericrchr)\
**Replies:** 0\
**Last updated:** [March 12, 2008, 4:18pm UTC](https://www.ruby-forum.com/t/ups-delivery-package-service-select/131697 "2008-03-12T16:18:49Z")

</div>

Hi guys: I’m using gem shipping for my project,i wanna select UPS delivery package service, but it doesn’t work for me whatever value i send to UPS api. the following is some code i used. UPS\_SERVICE = { ‘UPS Next …

---

## [Email Verification](https://www.ruby-forum.com/t/email-verification/131221)

<div class="topic-metadata">

**Author:** [@ron](https://www.ruby-forum.com/u/ron)\
**Replies:** 1\
**Last updated:** [March 12, 2008, 4:18pm UTC](https://www.ruby-forum.com/t/email-verification/131221 "2008-03-12T16:18:31Z")

</div>

Hi, Does anyone know how to implement an email verification system? By this I mean, a user subscribes to a mailing list, receives an email with a link and has to follow that link to verify ownership of the email? A…

---

## [What's the point of using Selenium?](https://www.ruby-forum.com/t/whats-the-point-of-using-selenium/131604)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 7\
**Last updated:** [March 12, 2008, 4:15pm UTC](https://www.ruby-forum.com/t/whats-the-point-of-using-selenium/131604 "2008-03-12T16:15:49Z")

</div>

Hello, I’m wondering why I should use Selenium if I am already testing my application using functional and integration tests? Don’t Selenium tests merely test the same functionality? Thanks, Ruben

---

## [Delete / destroy question](https://www.ruby-forum.com/t/delete-destroy-question/131693)

<div class="topic-metadata">

**Author:** [@syg6](https://www.ruby-forum.com/u/syg6)\
**Replies:** 4\
**Last updated:** [March 12, 2008, 4:08pm UTC](https://www.ruby-forum.com/t/delete-destroy-question/131693 "2008-03-12T16:08:37Z")

</div>

I have a table with 2 columns, employee\_id and job\_id. There is no ‘id’ column. I can find a record by using the condition “employee\_id = ? and job\_id = ?” but I cant seem to get delete or destroy to work. delete is…

---

## [Basic RJS question with render update](https://www.ruby-forum.com/t/basic-rjs-question-with-render-update/131692)

<div class="topic-metadata">

**Author:** [@dino\_d](https://www.ruby-forum.com/u/dino_d)\
**Replies:** 1\
**Last updated:** [March 12, 2008, 3:17pm UTC](https://www.ruby-forum.com/t/basic-rjs-question-with-render-update/131692 "2008-03-12T15:17:36Z")

</div>

Hi- Just trying to confirm my understanding here. In Rails 2.02, all I have to do to fire off an RJS file is to simply name it the same as the action (plus .js.rjs) right? So in my view, if I have: \<%= link\_to\_remo…

---

## [Scheduled tasks](https://www.ruby-forum.com/t/scheduled-tasks/131515)

<div class="topic-metadata">

**Author:** [@ryan](https://www.ruby-forum.com/u/ryan)\
**Replies:** 15\
**Last updated:** [March 12, 2008, 2:42pm UTC](https://www.ruby-forum.com/t/scheduled-tasks/131515 "2008-03-12T14:42:15Z")

</div>

Hi What is the best way to go about creating a service that has access to my rails environment, but that runs on its own? My specific problem is creating a process that runs in the background and updates certain mode…

---

## [ÐœÐ°Ð½Ð¸ÐºÑŽÑ€Ð½Ñ‹Ð¹ Ð½Ð°Ð±Ð¾Ñ€ 8 Ð¿Ñ€ÐµÐ´Ð¼ÐµÑ‚Ð¾Ð²](https://www.ruby-forum.com/t/doed-d-d-d-nzn-d-n-d-d-d-d-d-n-8-d-n-d-d-d-d-n-d-d/131687)

<div class="topic-metadata">

**Author:** [@ShopBody.ru](https://www.ruby-forum.com/u/ShopBody.ru)\
**Replies:** 0\
**Last updated:** [March 12, 2008, 2:31pm UTC](https://www.ruby-forum.com/t/doed-d-d-d-nzn-d-n-d-d-d-d-d-n-8-d-n-d-d-d-d-n-d-d/131687 "2008-03-12T14:31:23Z")

</div>

íÁÎÉËÀÒÎÙÊ ÎÁÂÏÒ 8 ÐÒÅÄÍÅÔÏ× (ÓÅÒÅÂÒÑÎÎÙÊ ÍÅÔÁÌÌ) (Zinger Germany) http://shopbody.ru/zoms-202-s.htm –~–~---------~–~----~------------~-------~–~----~ You received this message because you are subscribed to the Google …

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

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