# Rails

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

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

---

## [Query help](https://www.ruby-forum.com/t/query-help/182812)

<div class="topic-metadata">

**Author:** [@newb](https://www.ruby-forum.com/u/newb)\
**Replies:** 9\
**Last updated:** [February 3, 2010, 9:28pm UTC](https://www.ruby-forum.com/t/query-help/182812 "2010-02-03T21:28:42Z")

</div>

I have a table named logs. it has sender,receivers fields. my sample data from my table id sender receivers 1 1 2,3 2 2 3 3 1 3,2 when i execute the below query “select \* FROM…

---

## [Nested Rails Views](https://www.ruby-forum.com/t/nested-rails-views/182808)

<div class="topic-metadata">

**Author:** [@nappin](https://www.ruby-forum.com/u/nappin)\
**Replies:** 6\
**Last updated:** [February 3, 2010, 9:11pm UTC](https://www.ruby-forum.com/t/nested-rails-views/182808 "2010-02-03T21:11:43Z")

</div>

I’m at the point where I have a lot of view files for each controller in my app. I’d like to be able to add another level or two of directories in my view folders just for organizational purposes. What’s the best wa…

---

## [Design Pattern](https://www.ruby-forum.com/t/design-pattern/182824)

<div class="topic-metadata">

**Author:** [@eggie5](https://www.ruby-forum.com/u/eggie5)\
**Replies:** 6\
**Last updated:** [February 3, 2010, 8:10pm UTC](https://www.ruby-forum.com/t/design-pattern/182824 "2010-02-03T20:10:14Z")

</div>

Hi, I have a collection of arbitrary objects that have a date attribute. I want to display these objects by month. For example @things=Thing.all Now I want to display in a table all the things by month - how can I d…

---

## [Installation fails: ENOENT error](https://www.ruby-forum.com/t/installation-fails-enoent-error/182845)

<div class="topic-metadata">

**Author:** [@tantor](https://www.ruby-forum.com/u/tantor)\
**Replies:** 0\
**Last updated:** [February 3, 2010, 8:04pm UTC](https://www.ruby-forum.com/t/installation-fails-enoent-error/182845 "2010-02-03T20:04:16Z")

</div>

Hello. I’m very new at Ruby and RoR. From Win XP I try to install Rails : C:\\Ruby19\>gem install rails ERROR: While executing gem … (Errno::ENOENT) No such file or directory - C:/Documents and Settings I could not f…

---

## [\[JOBS\] Ruby on Rails Developer needed in Princeton NJ](https://www.ruby-forum.com/t/jobs-ruby-on-rails-developer-needed-in-princeton-nj/182839)

<div class="topic-metadata">

**Author:** [@Blue\_Antz](https://www.ruby-forum.com/u/Blue_Antz)\
**Replies:** 0\
**Last updated:** [February 3, 2010, 7:20pm UTC](https://www.ruby-forum.com/t/jobs-ruby-on-rails-developer-needed-in-princeton-nj/182839 "2010-02-03T19:20:29Z")

</div>

I’m looking for a seasoned Ruby on Rails developer. Our company is located in Princeton NJ. All work is done on-site. No remote work. At least 2 years of solid coding experience with Ruby/Rails and proficiency with Ja…

---

## [Ruby Job - SF \[jobs\]](https://www.ruby-forum.com/t/ruby-job-sf-jobs/182840)

<div class="topic-metadata">

**Author:** [@mark\_dinan](https://www.ruby-forum.com/u/mark_dinan)\
**Replies:** 0\
**Last updated:** [February 3, 2010, 7:20pm UTC](https://www.ruby-forum.com/t/ruby-job-sf-jobs/182840 "2010-02-03T19:20:29Z")

</div>

My name is Mark Dinan and I am a Silicon Valley based recruiter. Are you in the job market? I have three openings with a startup in San Francisco that is looking to hire 2-3 Ruby on Rails engineers. They just got …

---

## [Render :action =\> 'new' renders a blank page](https://www.ruby-forum.com/t/render-action-new-renders-a-blank-page/182777)

<div class="topic-metadata">

**Author:** [@diabolic](https://www.ruby-forum.com/u/diabolic)\
**Replies:** 7\
**Last updated:** [February 3, 2010, 7:01pm UTC](https://www.ruby-forum.com/t/render-action-new-renders-a-blank-page/182777 "2010-02-03T19:01:14Z")

</div>

Hello, Even though I’m quite a newbie in Ruby and Ruby on Rails, I’ve been trying to fix Binarylogic’s authlogic-openid gem, over on http://github.com/DBA/authlogic\_openid, which is current version is incredibly outd…

---

## [Simple captcha instllation problems](https://www.ruby-forum.com/t/simple-captcha-instllation-problems/182838)

<div class="topic-metadata">

**Author:** [@vihrao](https://www.ruby-forum.com/u/vihrao)\
**Replies:** 0\
**Last updated:** [February 3, 2010, 6:39pm UTC](https://www.ruby-forum.com/t/simple-captcha-instllation-problems/182838 "2010-02-03T18:39:31Z")

</div>

I am running XP. Downloaded simple captcha from expressica, unzipped into vendor/plugin. Ran rake simple\_captcha:setup. Gives me error: rake aborted! don’t know how to build task ‘simple captcha:setup\_old’ I check…

---

## [\[JOBS\] In SF](https://www.ruby-forum.com/t/jobs-in-sf/182821)

<div class="topic-metadata">

**Author:** [@airstream66](https://www.ruby-forum.com/u/airstream66)\
**Replies:** 1\
**Last updated:** [February 3, 2010, 5:28pm UTC](https://www.ruby-forum.com/t/jobs-in-sf/182821 "2010-02-03T17:28:12Z")

</div>

Nice opportunity for Rails Devs in San Fran, perm job, approx $120k. HR is not involved in the hire, thankfully.

---

## [Tracking changes to env\['PATH\_INFO'\]](https://www.ruby-forum.com/t/tracking-changes-to-env-path-info/182833)

<div class="topic-metadata">

**Author:** [@ralphshnelvar](https://www.ruby-forum.com/u/ralphshnelvar)\
**Replies:** 1\
**Last updated:** [February 3, 2010, 5:15pm UTC](https://www.ruby-forum.com/t/tracking-changes-to-env-path-info/182833 "2010-02-03T17:15:58Z")

</div>

I am using validates\_captcha … which for reasons I do not understand hooks into middleware. validates\_captcha is getting a bit upset (it dumps the stack and then rescues itself) when it sees env\[‘PATH\_INFO’\] equal t…

---

## [RoR/Net::SSH and RoR/Weblogic or RoR/Websphere](https://www.ruby-forum.com/t/ror-net-ssh-and-ror-weblogic-or-ror-websphere/182834)

<div class="topic-metadata">

**Author:** [@destiney](https://www.ruby-forum.com/u/destiney)\
**Replies:** 0\
**Last updated:** [February 3, 2010, 3:33pm UTC](https://www.ruby-forum.com/t/ror-net-ssh-and-ror-weblogic-or-ror-websphere/182834 "2010-02-03T15:33:57Z")

</div>

Has anyone used Net::SSH within a RoR project? What I’m looking at is to write an internal RoR app whose sole purpose is to deploy other software to internal servers/systems. These are not RoR apps to be deployed. Th…

---

## [Keeping a running count of user input](https://www.ruby-forum.com/t/keeping-a-running-count-of-user-input/182686)

<div class="topic-metadata">

**Author:** [@thechak](https://www.ruby-forum.com/u/thechak)\
**Replies:** 7\
**Last updated:** [February 3, 2010, 3:24pm UTC](https://www.ruby-forum.com/t/keeping-a-running-count-of-user-input/182686 "2010-02-03T15:24:10Z")

</div>

(Start disclaimer) New to ruby, new to rails, haven’t programmed since high school. (End disclaimer) I am working on a personal project which I can use to track my golf scores and progress but am having difficult keep…

---

## [Preserving has\_many order](https://www.ruby-forum.com/t/preserving-has-many-order/182746)

<div class="topic-metadata">

**Author:** [@markb](https://www.ruby-forum.com/u/markb)\
**Replies:** 9\
**Last updated:** [February 3, 2010, 3:19pm UTC](https://www.ruby-forum.com/t/preserving-has-many-order/182746 "2010-02-03T15:19:24Z")

</div>

My application will need to store many measurements (eg: temperature) for a set of locations (eg: roof) and periodically recall those measurements for charting, browsing, or editing. class Location \< ActiveRecord::Bas…

---

## [Shouldn't I18n default to English?](https://www.ruby-forum.com/t/shouldnt-i18n-default-to-english/182825)

<div class="topic-metadata">

**Author:** [@mrpete](https://www.ruby-forum.com/u/mrpete)\
**Replies:** 9\
**Last updated:** [February 3, 2010, 2:20pm UTC](https://www.ruby-forum.com/t/shouldnt-i18n-default-to-english/182825 "2010-02-03T14:20:47Z")

</div>

I’ve just started using I18n on a test application and everything is great except one thing: For the fun of it I set my Firefox user agent Accept-Language to Italian, and my page renders this: “it, hello\_world.” Shou…

---

## [Customizing validation msg](https://www.ruby-forum.com/t/customizing-validation-msg/182811)

<div class="topic-metadata">

**Author:** [@M\_I\_R](https://www.ruby-forum.com/u/M_I_R)\
**Replies:** 4\
**Last updated:** [February 3, 2010, 2:04pm UTC](https://www.ruby-forum.com/t/customizing-validation-msg/182811 "2010-02-03T14:04:09Z")

</div>

Hi, i am using the default validation of RoR how i will customize them i dont want to display the default message but i want to print the message i want like for city\_id the default message is “City can’t be blank” i…

---

## [View Helper Scope](https://www.ruby-forum.com/t/view-helper-scope/182608)

<div class="topic-metadata">

**Author:** [@johnlester](https://www.ruby-forum.com/u/johnlester)\
**Replies:** 21\
**Last updated:** [February 3, 2010, 1:04pm UTC](https://www.ruby-forum.com/t/view-helper-scope/182608 "2010-02-03T13:04:52Z")

</div>

Hello, I just noticed something that has confused me. I have a number of controllers, each with an associated helper file. If I have a helper function, say “x” defined in all of the helpers it would appear that the on…

---

## [Writing more advanced activerecord error messages](https://www.ruby-forum.com/t/writing-more-advanced-activerecord-error-messages/182525)

<div class="topic-metadata">

**Author:** [@Rob\_A](https://www.ruby-forum.com/u/Rob_A)\
**Replies:** 6\
**Last updated:** [February 3, 2010, 12:52pm UTC](https://www.ruby-forum.com/t/writing-more-advanced-activerecord-error-messages/182525 "2010-02-03T12:52:59Z")

</div>

Hi, I want to be able to have a more detailed friendly message for users when they register with an email address thats already taken. At the moment I have written a small validation method to produce what I want, pe…

---

## [Install a separate set of gems](https://www.ruby-forum.com/t/install-a-separate-set-of-gems/182787)

<div class="topic-metadata">

**Author:** [@yijisoo](https://www.ruby-forum.com/u/yijisoo)\
**Replies:** 4\
**Last updated:** [February 3, 2010, 12:52pm UTC](https://www.ruby-forum.com/t/install-a-separate-set-of-gems/182787 "2010-02-03T12:52:44Z")

</div>

I run a small RoR application on a company server. I try to install my own list of gems because I would like to test new features, but the admin did not want to install these because these may disrupt other applicati…

---

## [\[Jobs\] 3 Ruby on Rails opening - Bay Area - iPhone/Games](https://www.ruby-forum.com/t/jobs-3-ruby-on-rails-opening-bay-area-iphone-games/182822)

<div class="topic-metadata">

**Author:** [@mark\_dinan](https://www.ruby-forum.com/u/mark_dinan)\
**Replies:** 0\
**Last updated:** [February 3, 2010, 9:18am UTC](https://www.ruby-forum.com/t/jobs-3-ruby-on-rails-opening-bay-area-iphone-games/182822 "2010-02-03T09:18:47Z")

</div>

I have three openings with a startup in San Francisco that is looking to hire 2-3 Ruby on Rails engineers. They just got a strong funding round ($XX Million) and are looking to staff up in a hurry with some talen…

---

## [Custom ActiveRecord finder invoking named scopes?](https://www.ruby-forum.com/t/custom-activerecord-finder-invoking-named-scopes/182819)

<div class="topic-metadata">

**Author:** [@Erol\_F](https://www.ruby-forum.com/u/Erol_F)\
**Replies:** 0\
**Last updated:** [February 3, 2010, 8:29am UTC](https://www.ruby-forum.com/t/custom-activerecord-finder-invoking-named-scopes/182819 "2010-02-03T08:29:02Z")

</div>

I have a custom finder defined here: http://www.pastie.org/807187 Where search\_by\_date and search\_by\_text are named scopes, and eager is an eager-loading named scope defined as: named\_scope :eager, :include =\> \[{:cont…

---

## [Indigenius solutions --- job in ror](https://www.ruby-forum.com/t/indigenius-solutions-job-in-ror/182817)

<div class="topic-metadata">

**Author:** [@Rails\_ROR](https://www.ruby-forum.com/u/Rails_ROR)\
**Replies:** 0\
**Last updated:** [February 3, 2010, 8:12am UTC](https://www.ruby-forum.com/t/indigenius-solutions-job-in-ror/182817 "2010-02-03T08:12:03Z")

</div>

Hi, IndiGenius Solutions (www.indigenius.com)is a software company that has been serving many clients since 2004 till date. IndiGenius is now looking for bright, elegant, ROR developers. If interested, please post y…

---

## [Embedding New Line Character in XML Spreadsheet (Excel)](https://www.ruby-forum.com/t/embedding-new-line-character-in-xml-spreadsheet-excel/182656)

<div class="topic-metadata">

**Author:** [@Piyush\_with\_Rails](https://www.ruby-forum.com/u/Piyush_with_Rails)\
**Replies:** 2\
**Last updated:** [February 3, 2010, 6:58am UTC](https://www.ruby-forum.com/t/embedding-new-line-character-in-xml-spreadsheet-excel/182656 "2010-02-03T06:58:18Z")

</div>

Hi Friends, Hope all are doing well. I running with below problem here. please let me know if anyone have workaround on this. I am generating excel spreadsheet using XML representation for cells and rows in ROR. now…

---

## [Generating a PDF using popen and wkhtmltopdf](https://www.ruby-forum.com/t/generating-a-pdf-using-popen-and-wkhtmltopdf/182739)

<div class="topic-metadata">

**Author:** [@nrimbeau](https://www.ruby-forum.com/u/nrimbeau)\
**Replies:** 3\
**Last updated:** [February 3, 2010, 2:42am UTC](https://www.ruby-forum.com/t/generating-a-pdf-using-popen-and-wkhtmltopdf/182739 "2010-02-03T02:42:02Z")

</div>

As described on wkhtmltopdf Google group (Google Code Archive - Long-term storage for Google Code Project Hosting.), I have a problem generating a PDF while using popen and wkhtmltopdf. wkhtmltopdf takes HTML code as …

---

## [Is anyone running their Rails apps on Amazon EC2?](https://www.ruby-forum.com/t/is-anyone-running-their-rails-apps-on-amazon-ec2/182803)

<div class="topic-metadata">

**Author:** [@tronash](https://www.ruby-forum.com/u/tronash)\
**Replies:** 0\
**Last updated:** [February 3, 2010, 12:53am UTC](https://www.ruby-forum.com/t/is-anyone-running-their-rails-apps-on-amazon-ec2/182803 "2010-02-03T00:53:17Z")

</div>

Hi all, I’m just wondering if anyone is running their Rails apps on EC2 and what they like/dislike about it. Regards, Travis

---

## [Sqlite to mysql](https://www.ruby-forum.com/t/sqlite-to-mysql/182789)

<div class="topic-metadata">

**Author:** [@bluegreen](https://www.ruby-forum.com/u/bluegreen)\
**Replies:** 8\
**Last updated:** [February 3, 2010, 12:50am UTC](https://www.ruby-forum.com/t/sqlite-to-mysql/182789 "2010-02-03T00:50:07Z")

</div>

Hi, there. I have an application running with sqlite in development mode and production mode. I just installed mysql on windows and created a new database in mysql for the application in development mode. After putt…

---

## [Captcha installation](https://www.ruby-forum.com/t/captcha-installation/182802)

<div class="topic-metadata">

**Author:** [@vihrao](https://www.ruby-forum.com/u/vihrao)\
**Replies:** 0\
**Last updated:** [February 2, 2010, 11:44pm UTC](https://www.ruby-forum.com/t/captcha-installation/182802 "2010-02-02T23:44:46Z")

</div>

I am running XP. Downloaded simple captch from expressica, unzipped into vendor/plugin. Ran rake simple\_captcha:setup. Gives me error: rake aborted! don’t know how to build task ‘simple captcha:setup\_old’ I checked…

---

## [How to generate parameters similar to a form](https://www.ruby-forum.com/t/how-to-generate-parameters-similar-to-a-form/182794)

<div class="topic-metadata">

**Author:** [@ct9a](https://www.ruby-forum.com/u/ct9a)\
**Replies:** 2\
**Last updated:** [February 2, 2010, 11:38pm UTC](https://www.ruby-forum.com/t/how-to-generate-parameters-similar-to-a-form/182794 "2010-02-02T23:38:43Z")

</div>

hi guys, i have a search form set up which points to my search controller. When I hit “submit” in the form, it activates the perform\_search method in my search controller. It works ok. A typical GET request that is…

---

## [Admin Backend Metrics](https://www.ruby-forum.com/t/admin-backend-metrics/182801)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 0\
**Last updated:** [February 2, 2010, 11:24pm UTC](https://www.ruby-forum.com/t/admin-backend-metrics/182801 "2010-02-02T23:24:40Z")

</div>

Im interested in hearing any advice/tips on what or how to build an effective administrative backend for monitoring user input and actions while on my site. Some of the metrics that I’ve read or heard about that can b…

---

## [Has\_many, through with nested models?](https://www.ruby-forum.com/t/has-many-through-with-nested-models/182363)

<div class="topic-metadata">

**Author:** [@lunaclaire](https://www.ruby-forum.com/u/lunaclaire)\
**Replies:** 2\
**Last updated:** [February 2, 2010, 11:04pm UTC](https://www.ruby-forum.com/t/has-many-through-with-nested-models/182363 "2010-02-02T23:04:46Z")

</div>

First the data model: class Forum \< ActiveRecord::Base has\_many :topics, :dependent =\> :destroy, :order =\> ‘created\_at desc’ end class User \< ActiveRecord::Base has\_many :topics, :dependent =\> :destroy has\_m…

---

## [Rs 20,000 INR at stake in CodeWarrior](https://www.ruby-forum.com/t/rs-20-000-inr-at-stake-in-codewarrior/182798)

<div class="topic-metadata">

**Author:** [@ankit\_choudhary](https://www.ruby-forum.com/u/ankit_choudhary)\
**Replies:** 0\
**Last updated:** [February 2, 2010, 10:51pm UTC](https://www.ruby-forum.com/t/rs-20-000-inr-at-stake-in-codewarrior/182798 "2010-02-02T22:51:52Z")

</div>

CodeFest http://itbhu.ac.in/codefest & IEEE http://www.ieee.org/ present to you CodeWarrior http://www.itbhu.ac.in/codefest/event.php?eid=4 - Either Win or Die Coding! It is a completely Online event with two cumulat…

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

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