# Rails

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

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

---

## [Newbie: need to delete object in loop](https://www.ruby-forum.com/t/newbie-need-to-delete-object-in-loop/118990)

<div class="topic-metadata">

**Author:** [@alii](https://www.ruby-forum.com/u/alii)\
**Replies:** 1\
**Last updated:** [November 1, 2007, 11:58pm UTC](https://www.ruby-forum.com/t/newbie-need-to-delete-object-in-loop/118990 "2007-11-01T23:58:10Z")

</div>

Hi, sorry for this rather simplistic question, but I can’t think of a good way of googling the answer (just been trying for 20 mins). Anyway… so I have this rather simplistic piece of code: \<% for artwork in @artworks …

---

## [Defaults in routes](https://www.ruby-forum.com/t/defaults-in-routes/118989)

<div class="topic-metadata">

**Author:** [@andrewkendall](https://www.ruby-forum.com/u/andrewkendall)\
**Replies:** 0\
**Last updated:** [November 1, 2007, 11:39pm UTC](https://www.ruby-forum.com/t/defaults-in-routes/118989 "2007-11-01T23:39:49Z")

</div>

Hello, I have a routes question regarding defaults. If I have a route defined as follows… map.connect ‘events/:year/:month’, :controller =\> ‘events’, :action =\> ‘index’, :defaults =\> { :year =\> Date.today.year, …

---

## [Seagull DMS and rails](https://www.ruby-forum.com/t/seagull-dms-and-rails/118703)

<div class="topic-metadata">

**Author:** [@advait](https://www.ruby-forum.com/u/advait)\
**Replies:** 1\
**Last updated:** [November 1, 2007, 11:20pm UTC](https://www.ruby-forum.com/t/seagull-dms-and-rails/118703 "2007-11-01T23:20:42Z")

</div>

Hello, I needed to know how does seagull interact with rails , and what is the structure and working or seagull Anybody with some idea about it please give me the link as i could not obtain any data from google Than…

---

## [Help with RJS to loop through divs and change hyperlinks](https://www.ruby-forum.com/t/help-with-rjs-to-loop-through-divs-and-change-hyperlinks/118812)

<div class="topic-metadata">

**Author:** [@chirag](https://www.ruby-forum.com/u/chirag)\
**Replies:** 6\
**Last updated:** [November 1, 2007, 11:18pm UTC](https://www.ruby-forum.com/t/help-with-rjs-to-loop-through-divs-and-change-hyperlinks/118812 "2007-11-01T23:18:56Z")

</div>

I have some rhtml (see below) which includes 5 divs placed under a div with classname “container”. Can somone help me write some RJS to a. Find the “container” div b. Loop through the 5 child divs and: i. Change the …

---

## [Help with RJS](https://www.ruby-forum.com/t/help-with-rjs/118964)

<div class="topic-metadata">

**Author:** [@totallygirl212](https://www.ruby-forum.com/u/totallygirl212)\
**Replies:** 5\
**Last updated:** [November 1, 2007, 11:13pm UTC](https://www.ruby-forum.com/t/help-with-rjs/118964 "2007-11-01T23:13:04Z")

</div>

Hi guys I’m trying to use rjs to access a tag property. For example, How do I get the value of trogdor\_id with rjs? Thanks!

---

## [Mongrel 1.1 Gem no showing up](https://www.ruby-forum.com/t/mongrel-1-1-gem-no-showing-up/118940)

<div class="topic-metadata">

**Author:** [@rawn027](https://www.ruby-forum.com/u/rawn027)\
**Replies:** 4\
**Last updated:** [November 1, 2007, 10:47pm UTC](https://www.ruby-forum.com/t/mongrel-1-1-gem-no-showing-up/118940 "2007-11-01T22:47:53Z")

</div>

When I go to run gem update mongrel I get the lastest version as 1.0.4. Anyone else seeing this problem? -Ron

---

## [Find all object through another object - how?](https://www.ruby-forum.com/t/find-all-object-through-another-object-how/118960)

<div class="topic-metadata">

**Author:** [@joep](https://www.ruby-forum.com/u/joep)\
**Replies:** 3\
**Last updated:** [November 1, 2007, 10:44pm UTC](https://www.ruby-forum.com/t/find-all-object-through-another-object-how/118960 "2007-11-01T22:44:57Z")

</div>

I’m trying to find all “apples” that belong to user\_id 2. But the “apples” table doesn’t have a “user\_id” column; it has a “fruit\_id” column, that points to a “fruit” object. The “fruit” table has a “user\_id” column. …

---

## [Attach database in active record with sqlite3](https://www.ruby-forum.com/t/attach-database-in-active-record-with-sqlite3/118986)

<div class="topic-metadata">

**Author:** [@eclubb](https://www.ruby-forum.com/u/eclubb)\
**Replies:** 0\
**Last updated:** [November 1, 2007, 10:29pm UTC](https://www.ruby-forum.com/t/attach-database-in-active-record-with-sqlite3/118986 "2007-11-01T22:29:24Z")

</div>

Sqlite3 is capable of attaching multiple databases together so two or more can be accessed with a single SQL query. Do AR and sqlite3-ruby support this functionality? If not, is there a way to achieve similar functi…

---

## [PDF files are being cached in my browser](https://www.ruby-forum.com/t/pdf-files-are-being-cached-in-my-browser/118984)

<div class="topic-metadata">

**Author:** [@joergd](https://www.ruby-forum.com/u/joergd)\
**Replies:** 0\
**Last updated:** [November 1, 2007, 10:25pm UTC](https://www.ruby-forum.com/t/pdf-files-are-being-cached-in-my-browser/118984 "2007-11-01T22:25:15Z")

</div>

Hi, I am generating PDF files and sending them with send\_data, like this: def myaction if request.env\[‘HTTP\_USER\_AGENT’\] =~ /msie/i headers\[‘Pragma’\] = ‘’ headers\[‘Cache-Control’\] = ‘’ headers\[“Expires”\] = “-1” el…

---

## [Log to email](https://www.ruby-forum.com/t/log-to-email/118982)

<div class="topic-metadata">

**Author:** [@makenai](https://www.ruby-forum.com/u/makenai)\
**Replies:** 0\
**Last updated:** [November 1, 2007, 10:14pm UTC](https://www.ruby-forum.com/t/log-to-email/118982 "2007-11-01T22:14:04Z")

</div>

Hi, I want to send logs to email. I am using log4r for this, but something doesn’t work. My system is ubuntu gutsy gibbon. I have created logger in like this: email\_all\_outputter = Log4r::EmailOutputter.new ‘mail\_all…

---

## [Payment system with hold option](https://www.ruby-forum.com/t/payment-system-with-hold-option/118965)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [November 1, 2007, 9:20pm UTC](https://www.ruby-forum.com/t/payment-system-with-hold-option/118965 "2007-11-01T21:20:46Z")

</div>

Hi, What on-line payment system would you choose for the following situation: my web-site intermediates payments between client Anna and client Bob. These two clients have a contract. Anna is paying Bob for something…

---

## [MySql Errors On .save](https://www.ruby-forum.com/t/mysql-errors-on-save/118944)

<div class="topic-metadata">

**Author:** [@twaters](https://www.ruby-forum.com/u/twaters)\
**Replies:** 4\
**Last updated:** [November 1, 2007, 8:32pm UTC](https://www.ruby-forum.com/t/mysql-errors-on-save/118944 "2007-11-01T20:32:58Z")

</div>

Hi All, I am a real neophyte with Rails and am struggling with something. I hope you can point me in the right direction. I have a model of an object that class Thing\< ActiveRecord::Base attr\_accessor :locator\_id h…

---

## [A question about accessing a controller's helper](https://www.ruby-forum.com/t/a-question-about-accessing-a-controllers-helper/118955)

<div class="topic-metadata">

**Author:** [@awhayes](https://www.ruby-forum.com/u/awhayes)\
**Replies:** 2\
**Last updated:** [November 1, 2007, 8:02pm UTC](https://www.ruby-forum.com/t/a-question-about-accessing-a-controllers-helper/118955 "2007-11-01T20:02:49Z")

</div>

When I set up my controllers, I put some of them in a sub-directory under app/controllers. That works fine. My problem is that the helpers are also placed in a sub-directory of the same name. I can’t seem to figure…

---

## [How to avoid components?](https://www.ruby-forum.com/t/how-to-avoid-components/118959)

<div class="topic-metadata">

**Author:** [@rehevkor5](https://www.ruby-forum.com/u/rehevkor5)\
**Replies:** 0\
**Last updated:** [November 1, 2007, 7:01pm UTC](https://www.ruby-forum.com/t/how-to-avoid-components/118959 "2007-11-01T19:01:58Z")

</div>

I’ve seen this asked once asked before, but I haven’t seen a good response. If components are “bad” how does one avoid using them? I have a list of items on a page. Each item can be one of two types. We don’t know wh…

---

## [Prepared SQL Statement Support in Rails](https://www.ruby-forum.com/t/prepared-sql-statement-support-in-rails/118900)

<div class="topic-metadata">

**Author:** [@cammo](https://www.ruby-forum.com/u/cammo)\
**Replies:** 1\
**Last updated:** [November 1, 2007, 6:36pm UTC](https://www.ruby-forum.com/t/prepared-sql-statement-support-in-rails/118900 "2007-11-01T18:36:46Z")

</div>

Does anyone know if we have prepared SQL statement support (Postgres) in Rails yet. I know there’s been talk of it for some time, but I’d love to know if it’s in trunk yet, and if so how to use it?

---

## [RSpec, nested routes and :path\_prefix](https://www.ruby-forum.com/t/rspec-nested-routes-and-path-prefix/118952)

<div class="topic-metadata">

**Author:** [@harm](https://www.ruby-forum.com/u/harm)\
**Replies:** 0\
**Last updated:** [November 1, 2007, 5:38pm UTC](https://www.ruby-forum.com/t/rspec-nested-routes-and-path-prefix/118952 "2007-11-01T17:38:48Z")

</div>

Dear list, In the app we are making we have a rout something like this: map.resources :projects do |projects| projects.resources :pages, :controller =\> “Wiki::Pages”, :path\_prefix =\> “/projects/:project\_id/ wiki”, :…

---

## [Ruby on Rails developers /manger - up to 140K base](https://www.ruby-forum.com/t/ruby-on-rails-developers-manger-up-to-140k-base/118951)

<div class="topic-metadata">

**Author:** [@QSQSQS](https://www.ruby-forum.com/u/QSQSQS)\
**Replies:** 0\
**Last updated:** [November 1, 2007, 5:36pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-developers-manger-up-to-140k-base/118951 "2007-11-01T17:36:27Z")

</div>

We are a digital media company who is currently looking to hire junior to senior Ruby on Rails developers and a manager. Location: Manhattan Requirements: · Managed a development team (2-4 people) · Keep technical fo…

---

## [Ruby on Rails developers /manger - up to 140K base -NYC](https://www.ruby-forum.com/t/ruby-on-rails-developers-manger-up-to-140k-base-nyc/118949)

<div class="topic-metadata">

**Author:** [@QSQSQS](https://www.ruby-forum.com/u/QSQSQS)\
**Replies:** 0\
**Last updated:** [November 1, 2007, 5:33pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-developers-manger-up-to-140k-base-nyc/118949 "2007-11-01T17:33:32Z")

</div>

We are a digital media company who is currently looking to hire junior to senior Ruby on Rails developers and a manager. Location: Manhattan Requirements: · Managed a development team (2-4 people) · Keep technical fo…

---

## [Ruby on Rails developers /manger - up to 140K base](https://www.ruby-forum.com/t/ruby-on-rails-developers-manger-up-to-140k-base/118948)

<div class="topic-metadata">

**Author:** [@QSQSQS](https://www.ruby-forum.com/u/QSQSQS)\
**Replies:** 0\
**Last updated:** [November 1, 2007, 5:28pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-developers-manger-up-to-140k-base/118948 "2007-11-01T17:28:51Z")

</div>

We are a digital media company who is currently looking to hire junior to senior Ruby on Rails developers and a manager. Requirements: · Managed a development team (2-4 people) · Keep technical focus while ensuring b…

---

## [How do You Transform User-inputted URLs into Links?](https://www.ruby-forum.com/t/how-do-you-transform-user-inputted-urls-into-links/118943)

<div class="topic-metadata">

**Author:** [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Replies:** 2\
**Last updated:** [November 1, 2007, 5:26pm UTC](https://www.ruby-forum.com/t/how-do-you-transform-user-inputted-urls-into-links/118943 "2007-11-01T17:26:07Z")

</div>

Do you know of a way to transform user-inputted URLs into actual links? For instance, when a user types in “http://yahoo.com”, how can we convert that into http://yahoo.com Any ideas?

---

## [Using view helpers from a controller](https://www.ruby-forum.com/t/using-view-helpers-from-a-controller/118935)

<div class="topic-metadata">

**Author:** [@ldk2005](https://www.ruby-forum.com/u/ldk2005)\
**Replies:** 0\
**Last updated:** [November 1, 2007, 3:04pm UTC](https://www.ruby-forum.com/t/using-view-helpers-from-a-controller/118935 "2007-11-01T15:04:00Z")

</div>

Hi, I want to access a view helper from a controller. (Of course, you all want to know why??? – See below.) To be specific, I want to access methods such as ActionView::Helpers::FormTagHelper – form\_tag and text\_fiel…

---

## [Contact us for your any kind of Addvertisment,any link,website,yourself or your own product,,,,we ad](https://www.ruby-forum.com/t/contact-us-for-your-any-kind-of-addvertisment-any-link-website-yourself-or-your-own-product-we-ad/118932)

<div class="topic-metadata">

**Author:** [@net\_expert](https://www.ruby-forum.com/u/net_expert)\
**Replies:** 0\
**Last updated:** [November 1, 2007, 2:44pm UTC](https://www.ruby-forum.com/t/contact-us-for-your-any-kind-of-addvertisment-any-link-website-yourself-or-your-own-product-we-ad/118932 "2007-11-01T14:44:31Z")

</div>

Its true that today world is Internet world,every thing is globelised,differences go away WE gave you our service on your pay demand,if you want to advertise your product,website,yourself profile or any thing you want…

---

## [We advertise you on internet,in world,,,any thing you want to be sale/advertise contact us.....we gi](https://www.ruby-forum.com/t/we-advertise-you-on-internet-in-world-any-thing-you-want-to-be-sale-advertise-contact-us-we-gi/118930)

<div class="topic-metadata">

**Author:** [@net\_expert](https://www.ruby-forum.com/u/net_expert)\
**Replies:** 0\
**Last updated:** [November 1, 2007, 2:31pm UTC](https://www.ruby-forum.com/t/we-advertise-you-on-internet-in-world-any-thing-you-want-to-be-sale-advertise-contact-us-we-gi/118930 "2007-11-01T14:31:39Z")

</div>

Its true that today world is Internet world,every thing is globelised,differences go away WE gave you our service on your pay demand,if you want to advertise your product,website,yourself profile or any thing you want…

---

## [AJAX RJS manipualation background image broken in IE 6](https://www.ruby-forum.com/t/ajax-rjs-manipualation-background-image-broken-in-ie-6/118891)

<div class="topic-metadata">

**Author:** [@eblatt](https://www.ruby-forum.com/u/eblatt)\
**Replies:** 3\
**Last updated:** [November 1, 2007, 2:11pm UTC](https://www.ruby-forum.com/t/ajax-rjs-manipualation-background-image-broken-in-ie-6/118891 "2007-11-01T14:11:12Z")

</div>

Let’s see who’s got the best cross-browser chops! Here’s my problem: #OBJECTIVE : change the background image of a div and have it work in IE 6/7 and the real browsers. #HTML: ... At this point, my background imag…

---

## [Uploading file behaviour in Mongrel](https://www.ruby-forum.com/t/uploading-file-behaviour-in-mongrel/118854)

<div class="topic-metadata">

**Author:** [@matthew](https://www.ruby-forum.com/u/matthew)\
**Replies:** 4\
**Last updated:** [November 1, 2007, 2:10pm UTC](https://www.ruby-forum.com/t/uploading-file-behaviour-in-mongrel/118854 "2007-11-01T14:10:37Z")

</div>

Hi Please could someone clarify how Mongrel behaves when uploading files? I have an application with Apache which proxies to about 5 mongrels. Files are uploaded to the system from mobile PDAs using GPRS, and the f…

---

## [Creating two activerecords with one form](https://www.ruby-forum.com/t/creating-two-activerecords-with-one-form/118850)

<div class="topic-metadata">

**Author:** [@chrismalek](https://www.ruby-forum.com/u/chrismalek)\
**Replies:** 2\
**Last updated:** [November 1, 2007, 1:31pm UTC](https://www.ruby-forum.com/t/creating-two-activerecords-with-one-form/118850 "2007-11-01T13:31:59Z")

</div>

There must be a better way of doing this. If website.save fails…I’m stuck with the new domain, thats not associated to a website. def create website = Website.new(params\[:website\]) website.domain = Domain.create(par…

---

## [From lighttpd to Apache-mongrel](https://www.ruby-forum.com/t/from-lighttpd-to-apache-mongrel/118871)

<div class="topic-metadata">

**Author:** [@tomtt](https://www.ruby-forum.com/u/tomtt)\
**Replies:** 1\
**Last updated:** [November 1, 2007, 12:42pm UTC](https://www.ruby-forum.com/t/from-lighttpd-to-apache-mongrel/118871 "2007-11-01T12:42:14Z")

</div>

I am trying to move a Rails app from OS X using Lighttpd to a OS X Leopard server with Apache and Mongrel. I’ve got as far as the welcome to rails message, but I can’t get any further. This works: http://myserver.com…

---

## [Problem with Rake task execution on server for rails appn](https://www.ruby-forum.com/t/problem-with-rake-task-execution-on-server-for-rails-appn/196507)

<div class="topic-metadata">

**Author:** [@jhonny](https://www.ruby-forum.com/u/jhonny)\
**Replies:** 0\
**Last updated:** [November 1, 2007, 12:23pm UTC](https://www.ruby-forum.com/t/problem-with-rake-task-execution-on-server-for-rails-appn/196507 "2007-11-01T12:23:49Z")

</div>

Hi, I have my rails application on textdrive server as production. I am facing problem with execution of rake tasks on textdrive server. when I am trying to run rake tasks using putty, I am getting error as â€œrake a…

---

## [Learning REST: Multiple routes to the same resource?](https://www.ruby-forum.com/t/learning-rest-multiple-routes-to-the-same-resource/118924)

<div class="topic-metadata">

**Author:** [@Isak\_H](https://www.ruby-forum.com/u/Isak_H)\
**Replies:** 1\
**Last updated:** [November 1, 2007, 12:21pm UTC](https://www.ruby-forum.com/t/learning-rest-multiple-routes-to-the-same-resource/118924 "2007-11-01T12:21:11Z")

</div>

I just started looking at REST, and am working on a simple app made up from Authors and Books with an Author has\_many :books relationship. I’m thinking the following resources make sense: /books books/book\_id /books…

---

## [Problem with Rake task execution on textdrive server](https://www.ruby-forum.com/t/problem-with-rake-task-execution-on-textdrive-server/118926)

<div class="topic-metadata">

**Author:** [@jhonny](https://www.ruby-forum.com/u/jhonny)\
**Replies:** 0\
**Last updated:** [November 1, 2007, 12:20pm UTC](https://www.ruby-forum.com/t/problem-with-rake-task-execution-on-textdrive-server/118926 "2007-11-01T12:20:36Z")

</div>

Hi, I have my rails application on textdrive server as production. I am facing problem with execution of rake tasks on textdrive server. when I am trying to run rake tasks using putty, I am getting error as “rake abo…

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

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