# Rails

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

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

---

## [PNG Fix not working with Unique Identifiers on image paths](https://www.ruby-forum.com/t/png-fix-not-working-with-unique-identifiers-on-image-paths/110393)

<div class="topic-metadata">

**Author:** [@dkanders](https://www.ruby-forum.com/u/dkanders)\
**Replies:** 1\
**Last updated:** [July 26, 2007, 12:45am UTC](https://www.ruby-forum.com/t/png-fix-not-working-with-unique-identifiers-on-image-paths/110393 "2007-07-26T00:45:51Z")

</div>

Hola, We’re having a problem with Internet Explorer not rendering .png files properly. We’re using a Javascript fix right now, but it’s failing when it gets to an image that has been generated by a rails image tag (…

---

## [Another test question for Rails](https://www.ruby-forum.com/t/another-test-question-for-rails/110036)

<div class="topic-metadata">

**Author:** [@pedz](https://www.ruby-forum.com/u/pedz)\
**Replies:** 1\
**Last updated:** [July 26, 2007, 12:45am UTC](https://www.ruby-forum.com/t/another-test-question-for-rails/110036 "2007-07-26T00:45:51Z")

</div>

I added in: config.active\_record.schema\_format = :sql But I have another problem. I have a deferred constraint which means that it does not trigger until the commit. But… the test rig does not do a commit. It just…

---

## [Popup Content Without Application Layout](https://www.ruby-forum.com/t/popup-content-without-application-layout/110247)

<div class="topic-metadata">

**Author:** [@eboss](https://www.ruby-forum.com/u/eboss)\
**Replies:** 1\
**Last updated:** [July 26, 2007, 12:45am UTC](https://www.ruby-forum.com/t/popup-content-without-application-layout/110247 "2007-07-26T00:45:46Z")

</div>

I am building a page that uses ThickBox (http://jquery.com/demo/thickbox/) to display details about a record. A user clicks a link on the page and a ThickBox pops up showing the record as HTML. Unfortunately since I h…

---

## [Displaying related records in a new frame](https://www.ruby-forum.com/t/displaying-related-records-in-a-new-frame/110237)

<div class="topic-metadata">

**Author:** [@nanouk](https://www.ruby-forum.com/u/nanouk)\
**Replies:** 1\
**Last updated:** [July 26, 2007, 12:45am UTC](https://www.ruby-forum.com/t/displaying-related-records-in-a-new-frame/110237 "2007-07-26T00:45:46Z")

</div>

Can someone point me in the right direction of some directions/tutorials to achieve the following… I have a list of records displayed on a page, and when a record is selected i would like some related information disp…

---

## [Executing a model from two different controllers - one contr](https://www.ruby-forum.com/t/executing-a-model-from-two-different-controllers-one-contr/110059)

<div class="topic-metadata">

**Author:** [@aquaflow](https://www.ruby-forum.com/u/aquaflow)\
**Replies:** 3\
**Last updated:** [July 26, 2007, 12:45am UTC](https://www.ruby-forum.com/t/executing-a-model-from-two-different-controllers-one-contr/110059 "2007-07-26T00:45:45Z")

</div>

My appllication uses a “Video” table. I have a video\_controller and associated video model The video\_controller requirs the user to login to the system. class VideoController \< ApplicationController before\_filter :lo…

---

## [Setting upload limits](https://www.ruby-forum.com/t/setting-upload-limits/110018)

<div class="topic-metadata">

**Author:** [@dcgrigsby](https://www.ruby-forum.com/u/dcgrigsby)\
**Replies:** 1\
**Last updated:** [July 26, 2007, 12:45am UTC](https://www.ruby-forum.com/t/setting-upload-limits/110018 "2007-07-26T00:45:43Z")

</div>

Hi, I was wondering what would be the best way to limit the number of file uploads per user using attachment\_fu and a :has\_many relationship. -Thanks

---

## [Installing Ruby On Rails with Gem](https://www.ruby-forum.com/t/installing-ruby-on-rails-with-gem/110373)

<div class="topic-metadata">

**Author:** [@Kick\_The\_Donkey](https://www.ruby-forum.com/u/Kick_The_Donkey)\
**Replies:** 1\
**Last updated:** [July 26, 2007, 12:39am UTC](https://www.ruby-forum.com/t/installing-ruby-on-rails-with-gem/110373 "2007-07-26T00:39:09Z")

</div>

Hi all, I’m having a bit of a problem with installing ruby on rails using gem on Ubuntu server. For some reason, it tells me that the actionmailer is in an invalid format: chris@gumshoe:~/rubygems-0.9.4$ sudo gem in…

---

## [Table id's never get recycled?](https://www.ruby-forum.com/t/table-ids-never-get-recycled/110379)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [July 25, 2007, 11:32pm UTC](https://www.ruby-forum.com/t/table-ids-never-get-recycled/110379 "2007-07-25T23:32:29Z")

</div>

I’ve noticed that as you create and delete records, id’s that are no longer being used don’t seem to get used again. Is this supposed to happen? Is there a way to choose an id that is not being used for a new record?…

---

## [Rails finders , how do you find based on children's attribut](https://www.ruby-forum.com/t/rails-finders-how-do-you-find-based-on-childrens-attribut/110387)

<div class="topic-metadata">

**Author:** [@jay](https://www.ruby-forum.com/u/jay)\
**Replies:** 0\
**Last updated:** [July 25, 2007, 11:29pm UTC](https://www.ruby-forum.com/t/rails-finders-how-do-you-find-based-on-childrens-attribut/110387 "2007-07-25T23:29:04Z")

</div>

So, I have class Building \< ActiveRecord::Base has\_many :programs end class Program \< Activerecord::Base belongs\_to :building end I want to find all Buildings that have at least one program.type == x Is t…

---

## [Two columns reference to the same table](https://www.ruby-forum.com/t/two-columns-reference-to-the-same-table/110386)

<div class="topic-metadata">

**Author:** [@cfingerh](https://www.ruby-forum.com/u/cfingerh)\
**Replies:** 0\
**Last updated:** [July 25, 2007, 11:24pm UTC](https://www.ruby-forum.com/t/two-columns-reference-to-the-same-table/110386 "2007-07-25T23:24:20Z")

</div>

I have one table with the users (id, name, birthday) and another table with messages from one user to another. The problem is, in the message table I need to create a relationship for the sender and the receiver like …

---

## [Error Handling on Ajax pages](https://www.ruby-forum.com/t/error-handling-on-ajax-pages/110369)

<div class="topic-metadata">

**Author:** [@MarcS](https://www.ruby-forum.com/u/MarcS)\
**Replies:** 1\
**Last updated:** [July 25, 2007, 11:05pm UTC](https://www.ruby-forum.com/t/error-handling-on-ajax-pages/110369 "2007-07-25T23:05:19Z")

</div>

Hi, I’m having a problem with displaying errors on an Ajax page. On the page users can upload images and when an image is uploaded it will be added to the list of already uploaded images using page.insert\_html :botto…

---

## [Attachment\_fu and get file from session](https://www.ruby-forum.com/t/attachment-fu-and-get-file-from-session/110331)

<div class="topic-metadata">

**Author:** [@Solid](https://www.ruby-forum.com/u/Solid)\
**Replies:** 2\
**Last updated:** [July 25, 2007, 10:51pm UTC](https://www.ruby-forum.com/t/attachment-fu-and-get-file-from-session/110331 "2007-07-25T22:51:56Z")

</div>

Hello, I’m using the attachment\_fu right now and I don’t know how to get the image from session to the browser, before I’ll save it. How to output uploaded\_data to the browser? (I think there are two ways: 1) saving …

---

## [ERROR: While executing gem](https://www.ruby-forum.com/t/error-while-executing-gem/110382)

<div class="topic-metadata">

**Author:** [@simplydope](https://www.ruby-forum.com/u/simplydope)\
**Replies:** 0\
**Last updated:** [July 25, 2007, 10:48pm UTC](https://www.ruby-forum.com/t/error-while-executing-gem/110382 "2007-07-25T22:48:27Z")

</div>

Hi! I am new on Ruby. Trying to install Rails as described on site: http://angrys0ul.com/blog/2007/04/25/how-to-install-ruby-on-rails-on-a-windows-pc/ I got the messages bellow. It seems like the productâ€™s installat…

---

## [Top down reference for Rails?](https://www.ruby-forum.com/t/top-down-reference-for-rails/110375)

<div class="topic-metadata">

**Author:** [@ming](https://www.ruby-forum.com/u/ming)\
**Replies:** 4\
**Last updated:** [July 25, 2007, 10:23pm UTC](https://www.ruby-forum.com/t/top-down-reference-for-rails/110375 "2007-07-25T22:23:37Z")

</div>

I appreciate the blend of demo development with top down perspective – big picture view – of the Agile Rails book. Is there a reference that focuses on the big picture view with less demo? None of the Rails books I’v…

---

## [Multiple header rows with FasterCSV?](https://www.ruby-forum.com/t/multiple-header-rows-with-fastercsv/110378)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [July 25, 2007, 10:20pm UTC](https://www.ruby-forum.com/t/multiple-header-rows-with-fastercsv/110378 "2007-07-25T22:20:10Z")

</div>

Hi, So I’m new to RoR and have been playing around with the FasterCSV gem. One thing I can’t figure out is how you get it to skip multiple header rows. I can do one row no problem. But 2 or more is completely beyond …

---

## [Rails on Tomcat Tutorial](https://www.ruby-forum.com/t/rails-on-tomcat-tutorial/110377)

<div class="topic-metadata">

**Author:** [@shane](https://www.ruby-forum.com/u/shane)\
**Replies:** 0\
**Last updated:** [July 25, 2007, 9:51pm UTC](https://www.ruby-forum.com/t/rails-on-tomcat-tutorial/110377 "2007-07-25T21:51:51Z")

</div>

I’ve just completed a new tutorial on running a Rails app on Tomcat for those that are interested. http://www.digitalsanctum.com/2007/07/24/jruby-deploying-a-rails-application-on-tomcat/ Comments are welcome.

---

## [:action Problem](https://www.ruby-forum.com/t/action-problem/110376)

<div class="topic-metadata">

**Author:** [@turnkeytraders](https://www.ruby-forum.com/u/turnkeytraders)\
**Replies:** 0\
**Last updated:** [July 25, 2007, 9:39pm UTC](https://www.ruby-forum.com/t/action-problem/110376 "2007-07-25T21:39:36Z")

</div>

Hello, I am trying to create a new message in my application and when I click on the submit button to create the new message, I get redirected to the form to create a new message. Here is my code: class MessageContro…

---

## [Original port from apache needed in rails ? RequestHeader?](https://www.ruby-forum.com/t/original-port-from-apache-needed-in-rails-requestheader/110362)

<div class="topic-metadata">

**Author:** [@uncle](https://www.ruby-forum.com/u/uncle)\
**Replies:** 1\
**Last updated:** [July 25, 2007, 9:30pm UTC](https://www.ruby-forum.com/t/original-port-from-apache-needed-in-rails-requestheader/110362 "2007-07-25T21:30:20Z")

</div>

I have a web app that listens on 443 and 444 via apache, I need to know in my rails app which port the request came from. I think something with the RequestHeader directive is required, but not sure how to do it… an…

---

## [How do I build a search engine with Ruby on Rails](https://www.ruby-forum.com/t/how-do-i-build-a-search-engine-with-ruby-on-rails/109032)

<div class="topic-metadata">

**Author:** [@CreativeHeart](https://www.ruby-forum.com/u/CreativeHeart)\
**Replies:** 9\
**Last updated:** [July 25, 2007, 9:03pm UTC](https://www.ruby-forum.com/t/how-do-i-build-a-search-engine-with-ruby-on-rails/109032 "2007-07-25T21:03:24Z")

</div>

I need to build a search engine like google or rollyo, can anyone help me? Or point me in the right direction?

---

## [Acceder a variables de clase](https://www.ruby-forum.com/t/acceder-a-variables-de-clase/110363)

<div class="topic-metadata">

**Author:** [@kabish](https://www.ruby-forum.com/u/kabish)\
**Replies:** 1\
**Last updated:** [July 25, 2007, 7:26pm UTC](https://www.ruby-forum.com/t/acceder-a-variables-de-clase/110363 "2007-07-25T19:26:26Z")

</div>

Hola a todos, llevo un tiempo peleandome con un error. Tiene pinta de basico asi que se lo pongo aqui porque seguro que mucha gente puede resolverlo: Tengo una clase Target: class Target attr\_writer :hit\_sequence\_ac…

---

## [Lightbox problem](https://www.ruby-forum.com/t/lightbox-problem/110207)

<div class="topic-metadata">

**Author:** [@arun123](https://www.ruby-forum.com/u/arun123)\
**Replies:** 3\
**Last updated:** [July 25, 2007, 7:10pm UTC](https://www.ruby-forum.com/t/lightbox-problem/110207 "2007-07-25T19:10:20Z")

</div>

hi all, i need to implement Lightbox using rails. need to show the data from the data base in lightbox… Any body please help me … – Arun A.

---

## [Attachment fu on windows](https://www.ruby-forum.com/t/attachment-fu-on-windows/110056)

<div class="topic-metadata">

**Author:** [@brianspaid](https://www.ruby-forum.com/u/brianspaid)\
**Replies:** 3\
**Last updated:** [July 25, 2007, 6:48pm UTC](https://www.ruby-forum.com/t/attachment-fu-on-windows/110056 "2007-07-25T18:48:51Z")

</div>

I’ve tried and tried. I couldn’t get freeimage installed. I got mini\_magick installed, but everytime I try Mike C.'s tutorial, I get the error ‘Size is not in the list’. I found some people fixed this by putting a sle…

---

## [What happens to people who try to use Rails with another CMS](https://www.ruby-forum.com/t/what-happens-to-people-who-try-to-use-rails-with-another-cms/110352)

<div class="topic-metadata">

**Author:** [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Replies:** 5\
**Last updated:** [July 25, 2007, 6:48pm UTC](https://www.ruby-forum.com/t/what-happens-to-people-who-try-to-use-rails-with-another-cms/110352 "2007-07-25T18:48:51Z")

</div>

Just curious, because the Subversion hooks seem so pervasive and un-polymorphic in all the Rails source. Do people who try to use Perforce or CVS get used as pinatas? Do they wake up in the middle of the night with gl…

---

## [Suggestion for filtering your stack traces with Test::Unit::](https://www.ruby-forum.com/t/suggestion-for-filtering-your-stack-traces-with-test/110038)

<div class="topic-metadata">

**Author:** [@noagenda](https://www.ruby-forum.com/u/noagenda)\
**Replies:** 1\
**Last updated:** [July 25, 2007, 6:29pm UTC](https://www.ruby-forum.com/t/suggestion-for-filtering-your-stack-traces-with-test/110038 "2007-07-25T18:29:45Z")

</div>

Most of the time, I don’t want to see the whole stack trace including the environment - I just want to see my code. So, I tossed this in my test: module Test module Unit module Util module BacktraceFilter def fil…

---

## [Alert if dispatch.fcgi fails](https://www.ruby-forum.com/t/alert-if-dispatch-fcgi-fails/109877)

<div class="topic-metadata">

**Author:** [@plewizard](https://www.ruby-forum.com/u/plewizard)\
**Replies:** 1\
**Last updated:** [July 25, 2007, 6:08pm UTC](https://www.ruby-forum.com/t/alert-if-dispatch-fcgi-fails/109877 "2007-07-25T18:08:33Z")

</div>

hey guys, my company had a meltdown today because the site was down. turns out dispatch.fcgi was erroring. does anyone have a handy solution that will notify me somehow if dispatch.fcgi errors in the future. some wa…

---

## [Dbase query performance vs. iterating over large result arra](https://www.ruby-forum.com/t/dbase-query-performance-vs-iterating-over-large-result-arra/110289)

<div class="topic-metadata">

**Author:** [@amin1426](https://www.ruby-forum.com/u/amin1426)\
**Replies:** 4\
**Last updated:** [July 25, 2007, 6:04pm UTC](https://www.ruby-forum.com/t/dbase-query-performance-vs-iterating-over-large-result-arra/110289 "2007-07-25T18:04:17Z")

</div>

Hello Folks. Please excuse my beginner’s ignorance … My question regards database query performance vs. iterating over nested results in an array. In the example below, a Project has many Tasks. Tasks have a due date.…

---

## [FasterCSV load file to table](https://www.ruby-forum.com/t/fastercsv-load-file-to-table/110324)

<div class="topic-metadata">

**Author:** [@Vitali](https://www.ruby-forum.com/u/Vitali)\
**Replies:** 3\
**Last updated:** [July 25, 2007, 5:08pm UTC](https://www.ruby-forum.com/t/fastercsv-load-file-to-table/110324 "2007-07-25T17:08:07Z")

</div>

Hello G.s, May be it is simply but any way… fasterCSV 1.2.0 how to load data from file to table :frowning: I have tried this: file has just one line 1,2,3 data = FCSV.read(“C:\\temp\_file.csv”) table = FCSV.parse(data…

---

## [Piston & svn up first time](https://www.ruby-forum.com/t/piston-svn-up-first-time/110306)

<div class="topic-metadata">

**Author:** [@jemminger](https://www.ruby-forum.com/u/jemminger)\
**Replies:** 2\
**Last updated:** [July 25, 2007, 4:56pm UTC](https://www.ruby-forum.com/t/piston-svn-up-first-time/110306 "2007-07-25T16:56:54Z")

</div>

hi all, yeah, this isn’t a rails thing specifically but the piston list on rubyforge looks empty? anyhoo you guys are smart so maybe someone will know: i’ve just run ‘piston convert vendor/plugin’ to pistonize all o…

---

## [POST or ActiveRecord save?](https://www.ruby-forum.com/t/post-or-activerecord-save/110320)

<div class="topic-metadata">

**Author:** [@mohits](https://www.ruby-forum.com/u/mohits)\
**Replies:** 1\
**Last updated:** [July 25, 2007, 4:53pm UTC](https://www.ruby-forum.com/t/post-or-activerecord-save/110320 "2007-07-25T16:53:41Z")

</div>

Hi, I have an application in which I’m generating data on my PC at work and then sending it to a shared hosting site where a Rails application shares it out to the world. I have 2 options for forwarding the data from …

---

## [How to call javascript function in RJS?](https://www.ruby-forum.com/t/how-to-call-javascript-function-in-rjs/110343)

<div class="topic-metadata">

**Author:** [@ss\_1982](https://www.ruby-forum.com/u/ss_1982)\
**Replies:** 2\
**Last updated:** [July 25, 2007, 4:22pm UTC](https://www.ruby-forum.com/t/how-to-call-javascript-function-in-rjs/110343 "2007-07-25T16:22:12Z")

</div>

Hi, I have a javascript function in an included javascript file. How can I call a function in this file from within an rjs template? Thanks Scott

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

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