# Rails

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

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

---

## [Has\_one with reference to the one stored in this object's ta](https://www.ruby-forum.com/t/has-one-with-reference-to-the-one-stored-in-this-objects-ta/92018)

<div class="topic-metadata">

**Author:** [@trejkaz](https://www.ruby-forum.com/u/trejkaz)\
**Replies:** 0\
**Last updated:** [April 14, 2007, 5:21pm UTC](https://www.ruby-forum.com/t/has-one-with-reference-to-the-one-stored-in-this-objects-ta/92018 "2007-04-14T17:21:35Z")

</div>

I’m trying to build a system for generically storing an object graph, on top of AR itself. The idea is to define one base class, and use AR’s automatic single table inheritance to have it create the right class. Her…

---

## [Ruby on Rails Software Developmens and Development Manager](https://www.ruby-forum.com/t/ruby-on-rails-software-developmens-and-development-manager/92015)

<div class="topic-metadata">

**Author:** [@Tina](https://www.ruby-forum.com/u/Tina)\
**Replies:** 0\
**Last updated:** [April 14, 2007, 5:21pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-software-developmens-and-development-manager/92015 "2007-04-14T17:21:35Z")

</div>

Good morning, I’m working with a company in Utah that needs to hire a number of Software Developments and a SW Dev. Manager. Take a look at the job description and send me your resume if you are interested or feel fr…

---

## [Attachment\_fu functional testing](https://www.ruby-forum.com/t/attachment-fu-functional-testing/91997)

<div class="topic-metadata">

**Author:** [@helzer](https://www.ruby-forum.com/u/helzer)\
**Replies:** 1\
**Last updated:** [April 14, 2007, 4:55pm UTC](https://www.ruby-forum.com/t/attachment-fu-functional-testing/91997 "2007-04-14T16:55:34Z")

</div>

Hi, I’m trying to write a functional test to a model that has attachment\_fu: {{{ fdata = fixture\_file\_upload(fname,‘application/octet-stream’) post url\_for(:controller=\>:support\_files, :action=\>:create), :session=\>s…

---

## [Alex Payne (from twitter): Rails doesn't scale](https://www.ruby-forum.com/t/alex-payne-from-twitter-rails-doesnt-scale/91831)

<div class="topic-metadata">

**Author:** [@phillyloco](https://www.ruby-forum.com/u/phillyloco)\
**Replies:** 5\
**Last updated:** [April 14, 2007, 4:13pm UTC](https://www.ruby-forum.com/t/alex-payne-from-twitter-rails-doesnt-scale/91831 "2007-04-14T16:13:30Z")

</div>

Ok Ok Ok… first off, I apologize for the sliiightly misleading subject line. But, I thought I’d try to draw some attention and see if I could get some discussion going (hopefully no flames though!). I was browsing aro…

---

## [Multiple applications](https://www.ruby-forum.com/t/multiple-applications/91969)

<div class="topic-metadata">

**Author:** [@goodieboy](https://www.ruby-forum.com/u/goodieboy)\
**Replies:** 4\
**Last updated:** [April 14, 2007, 4:01pm UTC](https://www.ruby-forum.com/t/multiple-applications/91969 "2007-04-14T16:01:30Z")

</div>

Hi, I’ve decided to go with Nginx and mongrel clusters. The setup is very simple and works well. My question is related to running multiple applications. For Nginx, should I run one instance (one config file) and th…

---

## [Programming Job](https://www.ruby-forum.com/t/programming-job/92013)

<div class="topic-metadata">

**Author:** [@cindy](https://www.ruby-forum.com/u/cindy)\
**Replies:** 0\
**Last updated:** [April 14, 2007, 3:13pm UTC](https://www.ruby-forum.com/t/programming-job/92013 "2007-04-14T15:13:27Z")

</div>

Find Many Programmer Job Vacancy and resources here → http://www.jobbankdata.com/job-programming.htm

---

## [Instant Rails and cygwin problem](https://www.ruby-forum.com/t/instant-rails-and-cygwin-problem/92010)

<div class="topic-metadata">

**Author:** [@geolev](https://www.ruby-forum.com/u/geolev)\
**Replies:** 0\
**Last updated:** [April 14, 2007, 2:42pm UTC](https://www.ruby-forum.com/t/instant-rails-and-cygwin-problem/92010 "2007-04-14T14:42:23Z")

</div>

Hi, Has anyone dealt with this issue. I installed Instant Rails and then setup cygwin as my shell. Everything except rake seems to work. When I try to use rake from within cygwin, I get the following error: rake --ve…

---

## [How to create a plugin](https://www.ruby-forum.com/t/how-to-create-a-plugin/91915)

<div class="topic-metadata">

**Author:** [@Stephane](https://www.ruby-forum.com/u/Stephane)\
**Replies:** 5\
**Last updated:** [April 14, 2007, 1:38pm UTC](https://www.ruby-forum.com/t/how-to-create-a-plugin/91915 "2007-04-14T13:38:48Z")

</div>

Hi all, I would like to create a ‘piece’ of application, a poll system, and want to make it as a plugin. I found many information about plugins, most about mixin and extending core, but not so much for making plugin …

---

## [Persistence of a model with arbitrary inheritance](https://www.ruby-forum.com/t/persistence-of-a-model-with-arbitrary-inheritance/92007)

<div class="topic-metadata">

**Author:** [@trejkaz](https://www.ruby-forum.com/u/trejkaz)\
**Replies:** 0\
**Last updated:** [April 14, 2007, 10:20am UTC](https://www.ruby-forum.com/t/persistence-of-a-model-with-arbitrary-inheritance/92007 "2007-04-14T10:20:03Z")

</div>

I want to write an application where plugins can add new model objects, and I want these objects to be able to inherit from the basic ones which will ship with the application. I have identified a number of possible a…

---

## [Model validation crashes my early migrations - what to do?](https://www.ruby-forum.com/t/model-validation-crashes-my-early-migrations-what-to-do/91851)

<div class="topic-metadata">

**Author:** [@Andreas\_Hallberg](https://www.ruby-forum.com/u/Andreas_Hallberg)\
**Replies:** 3\
**Last updated:** [April 14, 2007, 9:49am UTC](https://www.ruby-forum.com/t/model-validation-crashes-my-early-migrations-what-to-do/91851 "2007-04-14T09:49:41Z")

</div>

Hi all, I am quite new to RoR but have immediately managed to stumble into some migration difficulties. Some migrations setting up my “users” table: 001\_add\_user.rb (creates the users table) 002\_insert\_test\_user.r…

---

## [Sharing one session data for multiple site](https://www.ruby-forum.com/t/sharing-one-session-data-for-multiple-site/92003)

<div class="topic-metadata">

**Author:** [@adrianliem](https://www.ruby-forum.com/u/adrianliem)\
**Replies:** 0\
**Last updated:** [April 14, 2007, 9:42am UTC](https://www.ruby-forum.com/t/sharing-one-session-data-for-multiple-site/92003 "2007-04-14T09:42:52Z")

</div>

eg: site A (www.a.com) and site B (www.b.com) share the same database user X log in into site A, stored in a session data user X enter site B, old session data from site A for user X loaded for site B, and user X is n…

---

## [Pretty urls with to\_param and rails sweepers problem](https://www.ruby-forum.com/t/pretty-urls-with-to-param-and-rails-sweepers-problem/92002)

<div class="topic-metadata">

**Author:** [@ingoweiss](https://www.ruby-forum.com/u/ingoweiss)\
**Replies:** 0\
**Last updated:** [April 14, 2007, 7:44am UTC](https://www.ruby-forum.com/t/pretty-urls-with-to-param-and-rails-sweepers-problem/92002 "2007-04-14T07:44:36Z")

</div>

Hi all, as seems to be quite common, I am overriding to\_param for some of my models to get nicer urls. For example: countries/us/regions/ri instead of countries/15/regions/96 I understand the argument in favor of n…

---

## [Map.resources route generation: :format and variables](https://www.ruby-forum.com/t/map-resources-route-generation-format-and-variables/91996)

<div class="topic-metadata">

**Author:** [@tekhne](https://www.ruby-forum.com/u/tekhne)\
**Replies:** 2\
**Last updated:** [April 14, 2007, 5:05am UTC](https://www.ruby-forum.com/t/map-resources-route-generation-format-and-variables/91996 "2007-04-14T05:05:49Z")

</div>

In my config/routes.rb I have: map.resources :discussions But I can’t generate proper URLs: discussions\_path(:format =\> :xml) -\> /discussions?format=xml instead of /discussions.xml discussion\_path(discussion, :forma…

---

## [Anymore RailsConf Roomies?](https://www.ruby-forum.com/t/anymore-railsconf-roomies/91995)

<div class="topic-metadata">

**Author:** [@Joannou\_Ng](https://www.ruby-forum.com/u/Joannou_Ng)\
**Replies:** 0\
**Last updated:** [April 14, 2007, 3:44am UTC](https://www.ruby-forum.com/t/anymore-railsconf-roomies/91995 "2007-04-14T03:44:43Z")

</div>

Hey folks, WRT to RailsConf, I’m looking for a roomie at any of DoubleTree (if someone cancels), Red Lion, Holiday Inn, or Courtyard from Wednesday/ Thursday night to Saturday/Sunday night. Male/Female doesn’t matter. …

---

## [Stuck on validation](https://www.ruby-forum.com/t/stuck-on-validation/91935)

<div class="topic-metadata">

**Author:** [@wintermute](https://www.ruby-forum.com/u/wintermute)\
**Replies:** 3\
**Last updated:** [April 14, 2007, 3:40am UTC](https://www.ruby-forum.com/t/stuck-on-validation/91935 "2007-04-14T03:40:43Z")

</div>

Hello, I am brand new to RoR trying to use the framework to build a simple web application (for an imaginary online shop) just to learn the ropes. Once every so often I come upon some problem that seems to have a rea…

---

## [ActionMailer rhtml in deep file hierarchy bad?](https://www.ruby-forum.com/t/actionmailer-rhtml-in-deep-file-hierarchy-bad/91993)

<div class="topic-metadata">

**Author:** [@brianj](https://www.ruby-forum.com/u/brianj)\
**Replies:** 0\
**Last updated:** [April 14, 2007, 3:29am UTC](https://www.ruby-forum.com/t/actionmailer-rhtml-in-deep-file-hierarchy-bad/91993 "2007-04-14T03:29:42Z")

</div>

I have a big project I am working on, and like to use file hierarchy conventions to keep portions of the system separated. I ran the following command: bojo@boji:~/Development/rails/ims$ ruby script/generate mailer w…

---

## [Monitoring tools? experience with fiveruns.com?](https://www.ruby-forum.com/t/monitoring-tools-experience-with-fiveruns-com/86242)

<div class="topic-metadata">

**Author:** [@rsanheim](https://www.ruby-forum.com/u/rsanheim)\
**Replies:** 12\
**Last updated:** [April 14, 2007, 3:15am UTC](https://www.ruby-forum.com/t/monitoring-tools-experience-with-fiveruns-com/86242 "2007-04-14T03:15:42Z")

</div>

Hi all, I was wondering what experience the group has for monitoring tools, particularily monit and nagios? We have a PHP platform that we are pushing live in Rails soon, and we need to get a better handle on the he…

---

## [Railsplayground MIA?](https://www.ruby-forum.com/t/railsplayground-mia/91918)

<div class="topic-metadata">

**Author:** [@xia](https://www.ruby-forum.com/u/xia)\
**Replies:** 3\
**Last updated:** [April 14, 2007, 2:57am UTC](https://www.ruby-forum.com/t/railsplayground-mia/91918 "2007-04-14T02:57:06Z")

</div>

Is anyone else having trouble getting in contact with railsplayground? I haven’t had even an automated response to support requests all week, and my forum registration is still pending. The toll free number on their s…

---

## [Changing the font around a link\_to](https://www.ruby-forum.com/t/changing-the-font-around-a-link-to/91873)

<div class="topic-metadata">

**Author:** [@scott](https://www.ruby-forum.com/u/scott)\
**Replies:** 5\
**Last updated:** [April 14, 2007, 2:36am UTC](https://www.ruby-forum.com/t/changing-the-font-around-a-link-to/91873 "2007-04-14T02:36:39Z")

</div>

Hi, Before I migrated over to the link\_to tag, I had the following: view all reports\</ font\> I tried to do this: \<%= link\_to ‘my reports’, :action =\> ‘my\_reports’, :id =\> session\[:user\_id\]%\> which doesn’t work, un…

---

## [SQL syntax: conditions question for less than or equal to](https://www.ruby-forum.com/t/sql-syntax-conditions-question-for-less-than-or-equal-to/91959)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 8\
**Last updated:** [April 14, 2007, 2:24am UTC](https://www.ruby-forum.com/t/sql-syntax-conditions-question-for-less-than-or-equal-to/91959 "2007-04-14T02:24:39Z")

</div>

When price is less than or equal to the price the user enters, display it. I can’t seem to get this condition right: conditions = \[“price \< ?”, “%#{@params\[:query\]}%”\] unless @params\[:query\].nil?

---

## [How to read image data offline without using the browser](https://www.ruby-forum.com/t/how-to-read-image-data-offline-without-using-the-browser/91963)

<div class="topic-metadata">

**Author:** [@dorelal](https://www.ruby-forum.com/u/dorelal)\
**Replies:** 1\
**Last updated:** [April 14, 2007, 2:12am UTC](https://www.ruby-forum.com/t/how-to-read-image-data-offline-without-using-the-browser/91963 "2007-04-14T02:12:25Z")

</div>

Hi, I uploaded a lot of images and resized them using RMagick and everything is working fine. Now I need to resize the existing images to some different dimenstion. In my existing controller all the processing star…

---

## [Programmer Career!](https://www.ruby-forum.com/t/programmer-career/91992)

<div class="topic-metadata">

**Author:** [@Christine](https://www.ruby-forum.com/u/Christine)\
**Replies:** 0\
**Last updated:** [April 14, 2007, 2:03am UTC](https://www.ruby-forum.com/t/programmer-career/91992 "2007-04-14T02:03:37Z")

</div>

Find Many Programming Job Vacancy and resources here → http://www.jobbankdata.com/job-programming.htm

---

## [Unencrypted Password Appears in Log](https://www.ruby-forum.com/t/unencrypted-password-appears-in-log/91961)

<div class="topic-metadata">

**Author:** [@randall](https://www.ruby-forum.com/u/randall)\
**Replies:** 4\
**Last updated:** [April 14, 2007, 12:38am UTC](https://www.ruby-forum.com/t/unencrypted-password-appears-in-log/91961 "2007-04-14T00:38:31Z")

</div>

I have a requirement to authenticate my app users through Active Directory. My login form captures a user’s ID and password and passes them to a net/ldap routine. I’m using form\_for…|form| to create the form and fo…

---

## [Installing Developed Application on to another PC](https://www.ruby-forum.com/t/installing-developed-application-on-to-another-pc/91986)

<div class="topic-metadata">

**Author:** [@David\_Cabaniuk](https://www.ruby-forum.com/u/David_Cabaniuk)\
**Replies:** 0\
**Last updated:** [April 14, 2007, 12:35am UTC](https://www.ruby-forum.com/t/installing-developed-application-on-to-another-pc/91986 "2007-04-14T00:35:14Z")

</div>

I have developed a forum in Ruby on Rails based on a mySQL 4.1 server database. What I need to do is install this application on other PC. I was wondering if there is a neat and tidy way of doing this. Currently I ha…

---

## [How to create an app plugin?](https://www.ruby-forum.com/t/how-to-create-an-app-plugin/91985)

<div class="topic-metadata">

**Author:** [@sbusso](https://www.ruby-forum.com/u/sbusso)\
**Replies:** 1\
**Last updated:** [April 14, 2007, 12:34am UTC](https://www.ruby-forum.com/t/how-to-create-an-app-plugin/91985 "2007-04-14T00:34:31Z")

</div>

Hi all, I would like to create a ‘piece’ of application, a poll system, and want to make it as a plugin. I found many information about plugins, most about mixin and extending core, but not so much for making plugin…

---

## [MIME decoding](https://www.ruby-forum.com/t/mime-decoding/246510)

<div class="topic-metadata">

**Author:** [@daniel](https://www.ruby-forum.com/u/daniel)\
**Replies:** 0\
**Last updated:** [April 14, 2007, 12:32am UTC](https://www.ruby-forum.com/t/mime-decoding/246510 "2007-04-14T00:32:08Z")

</div>

Hello! Im getting data sent to me in the header, im not sure how to use it. If i make an output with: \<%= @request.inspect %\> I will get the result: # #\<ActionController::CgiRequest:0xb60c6eb0 @session=#\<CGI::Session…

---

## [HTML table out of a dataset](https://www.ruby-forum.com/t/html-table-out-of-a-dataset/91877)

<div class="topic-metadata">

**Author:** [@leonb](https://www.ruby-forum.com/u/leonb)\
**Replies:** 1\
**Last updated:** [April 14, 2007, 12:20am UTC](https://www.ruby-forum.com/t/html-table-out-of-a-dataset/91877 "2007-04-14T00:20:31Z")

</div>

Hi, Is it possible to automatically create a table / grid out of a dataset? Just like in java or .Net? Thanks in advance!

---

## [Default routing to main page and hiding the original request](https://www.ruby-forum.com/t/default-routing-to-main-page-and-hiding-the-original-request/91984)

<div class="topic-metadata">

**Author:** [@ehudros](https://www.ruby-forum.com/u/ehudros)\
**Replies:** 0\
**Last updated:** [April 14, 2007, 12:19am UTC](https://www.ruby-forum.com/t/default-routing-to-main-page-and-hiding-the-original-request/91984 "2007-04-14T00:19:44Z")

</div>

Hi everyone, I’m currently redirecting every request that has not matched any other route to my site controller’s index action. so if someone has tried to access Custom Application Development Software for Business -…

---

## [Rails Popup Window Not Passing Session Data](https://www.ruby-forum.com/t/rails-popup-window-not-passing-session-data/91978)

<div class="topic-metadata">

**Author:** [@JPJPJP](https://www.ruby-forum.com/u/JPJPJP)\
**Replies:** 0\
**Last updated:** [April 13, 2007, 10:41pm UTC](https://www.ruby-forum.com/t/rails-popup-window-not-passing-session-data/91978 "2007-04-13T22:41:28Z")

</div>

I am using sessions to authenticate users for a web based application I am writing. I need to open popup windows for certain functions. These popup windows pass the session information in Mozilla allowing the windo…

---

## [Modules and classes](https://www.ruby-forum.com/t/modules-and-classes/91976)

<div class="topic-metadata">

**Author:** [@simplydope](https://www.ruby-forum.com/u/simplydope)\
**Replies:** 0\
**Last updated:** [April 13, 2007, 10:33pm UTC](https://www.ruby-forum.com/t/modules-and-classes/91976 "2007-04-13T22:33:36Z")

</div>

I have a module that has a hash of classes and a few methods. For example: SERVICES\[Services::ServiceA::SERVICE\_A\_UNIQUE\_ID\] = Services::ServiceA SERVICES\[Services::ServiceB::SERVICE\_B\_UNIQUE\_ID\] = Services::ServiceB …

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

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