# Rails

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

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

---

## [Why the cult-like adherence to the One True Way of Agile works](https://www.ruby-forum.com/t/why-the-cult-like-adherence-to-the-one-true-way-of-agile-works/169277)

<div class="topic-metadata">

**Author:** [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Replies:** 0\
**Last updated:** [June 1, 2009, 7:58pm UTC](https://www.ruby-forum.com/t/why-the-cult-like-adherence-to-the-one-true-way-of-agile-works/169277 "2009-06-01T19:58:13Z")

</div>

From else-net, here’s the results of an informal survey why professional testers who actually help do all the developer- and customer-testing we authors advocate feel about the results: Here’s my final top ten list, …

---

## [Riding case in form\_for.label](https://www.ruby-forum.com/t/riding-case-in-form-for-label/169275)

<div class="topic-metadata">

**Author:** [@JannaB](https://www.ruby-forum.com/u/JannaB)\
**Replies:** 0\
**Last updated:** [June 1, 2009, 7:56pm UTC](https://www.ruby-forum.com/t/riding-case-in-form-for-label/169275 "2009-06-01T19:56:28Z")

</div>

It seems for\_for.label wishes to override the case of the label I give it. Is there a way to stop this behavior? Thanks Janna

---

## [Event Calendar in Rails](https://www.ruby-forum.com/t/event-calendar-in-rails/169205)

<div class="topic-metadata">

**Author:** [@lyntaff](https://www.ruby-forum.com/u/lyntaff)\
**Replies:** 3\
**Last updated:** [June 1, 2009, 7:08pm UTC](https://www.ruby-forum.com/t/event-calendar-in-rails/169205 "2009-06-01T19:08:16Z")

</div>

Hi, I’m looking to develop a dynamic event calendar for a rails application. I found some nifty little embeddable calendars in jQuery and Moo Tools that use Json feeds but they seem to conflict with some features tha…

---

## [Specific exceptions for database errors: please speak up](https://www.ruby-forum.com/t/specific-exceptions-for-database-errors-please-speak-up/169262)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 0\
**Last updated:** [June 1, 2009, 5:20pm UTC](https://www.ruby-forum.com/t/specific-exceptions-for-database-errors-please-speak-up/169262 "2009-06-01T17:20:58Z")

</div>

With ActiveRecord as it currently is, you get the same error for anything that might go wrong in the database, ActiveRecord::InvalidStatement. That’s rather undistinctive, considering that there are some problems only…

---

## [Engine Yard Adds JRuby Support -- http://bit.ly/MALvT](https://www.ruby-forum.com/t/engine-yard-adds-jruby-support-http-bit-ly-malvt/169261)

<div class="topic-metadata">

**Author:** [@LJMecca](https://www.ruby-forum.com/u/LJMecca)\
**Replies:** 0\
**Last updated:** [June 1, 2009, 5:19pm UTC](https://www.ruby-forum.com/t/engine-yard-adds-jruby-support-http-bit-ly-malvt/169261 "2009-06-01T17:19:13Z")

</div>

Today at Java One, Engine Y. is announcing support for JRuby. This means that people will soon be able to select JRuby as a runtime option in the Engine Y. Cloud, and subsequently on the Engine Y. private cloud for cl…

---

## [Shorten a link](https://www.ruby-forum.com/t/shorten-a-link/169000)

<div class="topic-metadata">

**Author:** [@df-sean](https://www.ruby-forum.com/u/df-sean)\
**Replies:** 7\
**Last updated:** [June 1, 2009, 5:13pm UTC](https://www.ruby-forum.com/t/shorten-a-link/169000 "2009-06-01T17:13:55Z")

</div>

Suppose a user submits a url: http://www.nyt.com/education/2345545. How can this be shortened to a cleaner url, like nyt.com?

---

## [Ruby and RoR Setup Frustrations](https://www.ruby-forum.com/t/ruby-and-ror-setup-frustrations/169160)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 11\
**Last updated:** [June 1, 2009, 5:13pm UTC](https://www.ruby-forum.com/t/ruby-and-ror-setup-frustrations/169160 "2009-06-01T17:13:55Z")

</div>

Okay, I’m starting to get a headache (mostly because I refuse to give up) and continue to try to get ruby and ruby on rails configured. Let me explain my issues… I’m running Windows Vista with Ruby 1.9.1 and MySql 5.0…

---

## [Autocomplete lookup speedup](https://www.ruby-forum.com/t/autocomplete-lookup-speedup/169174)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 6\
**Last updated:** [June 1, 2009, 4:33pm UTC](https://www.ruby-forum.com/t/autocomplete-lookup-speedup/169174 "2009-06-01T16:33:58Z")

</div>

Is there anything I can do to speed up the query of a table that has 380,000 entries and will only get bigger? I tried the recipe in the rails recipe book but the page takes a long time just for the page to load due t…

---

## [Nested forms with select lists](https://www.ruby-forum.com/t/nested-forms-with-select-lists/169190)

<div class="topic-metadata">

**Author:** [@anrake](https://www.ruby-forum.com/u/anrake)\
**Replies:** 2\
**Last updated:** [June 1, 2009, 4:24pm UTC](https://www.ruby-forum.com/t/nested-forms-with-select-lists/169190 "2009-06-01T16:24:35Z")

</div>

I’d like to use a drop down select field to add multiple categories to my model (has\_many relationship) using nested forms in Rails 2.3.2. I can get it to work fine with straight text fields, but no matter what I do …

---

## [Handling multiple form data](https://www.ruby-forum.com/t/handling-multiple-form-data/169195)

<div class="topic-metadata">

**Author:** [@charan](https://www.ruby-forum.com/u/charan)\
**Replies:** 2\
**Last updated:** [June 1, 2009, 3:59pm UTC](https://www.ruby-forum.com/t/handling-multiple-form-data/169195 "2009-06-01T15:59:24Z")

</div>

HI guys I am using different forms with respective controller,model and view.If the user press back button in the browser,after submitting the form data.How do we handle such scenario… chandra sekhar

---

## [Radio\_button\_tag checked='checked'](https://www.ruby-forum.com/t/radio-button-tag-checked-checked/169258)

<div class="topic-metadata">

**Author:** [@chetan](https://www.ruby-forum.com/u/chetan)\
**Replies:** 0\
**Last updated:** [June 1, 2009, 3:37pm UTC](https://www.ruby-forum.com/t/radio-button-tag-checked-checked/169258 "2009-06-01T15:37:37Z")

</div>

Hello, I have 3 radio buttons, \<%= radio\_button\_tag(‘method’, ‘auto’, checked = ‘checked’, options = {:onclick =\> “Element.show(‘avsAutoWrapper’); Element.hide(‘avsCustomWrapper’); Element.hide(‘avsLocalWrapper’);”}) …

---

## [Using attachment fu in masse](https://www.ruby-forum.com/t/using-attachment-fu-in-masse/169202)

<div class="topic-metadata">

**Author:** [@holden](https://www.ruby-forum.com/u/holden)\
**Replies:** 5\
**Last updated:** [June 1, 2009, 3:02pm UTC](https://www.ruby-forum.com/t/using-attachment-fu-in-masse/169202 "2009-06-01T15:02:35Z")

</div>

I’m trying to use attachment fu to add a large number of images at once using a script but i can’t even get it to add an image from the console… the other documentation i’ve found no longer seems to work. Something li…

---

## [Routing Error with Passenger for Images and stylesheets](https://www.ruby-forum.com/t/routing-error-with-passenger-for-images-and-stylesheets/169169)

<div class="topic-metadata">

**Author:** [@johnt519](https://www.ruby-forum.com/u/johnt519)\
**Replies:** 4\
**Last updated:** [June 1, 2009, 2:50pm UTC](https://www.ruby-forum.com/t/routing-error-with-passenger-for-images-and-stylesheets/169169 "2009-06-01T14:50:21Z")

</div>

Hi, I updated my server with the latest Rails (2.3.2) and Passenger (2.2.2). I also updated my Rails app to run under 2.3.2. It runs fine locally under Mongrel. The app is deployed into my own home directory under: (…

---

## [ArgumentError (interning empty string)](https://www.ruby-forum.com/t/argumenterror-interning-empty-string/169256)

<div class="topic-metadata">

**Author:** [@zufar](https://www.ruby-forum.com/u/zufar)\
**Replies:** 0\
**Last updated:** [June 1, 2009, 2:49pm UTC](https://www.ruby-forum.com/t/argumenterror-interning-empty-string/169256 "2009-06-01T14:49:07Z")

</div>

Hello, I am trying to send an email out on registration for confirming and I am thrown this error. I am unable to understand as nothing is nil in the class which I am passing to the Mailer. Please do help me. The sta…

---

## [Quick question - access attributes through form helper?](https://www.ruby-forum.com/t/quick-question-access-attributes-through-form-helper/169253)

<div class="topic-metadata">

**Author:** [@mdaoust](https://www.ruby-forum.com/u/mdaoust)\
**Replies:** 0\
**Last updated:** [June 1, 2009, 2:41pm UTC](https://www.ruby-forum.com/t/quick-question-access-attributes-through-form-helper/169253 "2009-06-01T14:41:53Z")

</div>

So within a form\_for/fields\_for can I access the field attributes. \[code=ruby\]\<%= form.text\_field :name %\>#gives me a text box with the value of :name %\> \<%= form.label :name %\>#gives me a label with ‘name’ when I nee…

---

## [Can't get around this Routing Error](https://www.ruby-forum.com/t/cant-get-around-this-routing-error/169222)

<div class="topic-metadata">

**Author:** [@jayco](https://www.ruby-forum.com/u/jayco)\
**Replies:** 3\
**Last updated:** [June 1, 2009, 1:27pm UTC](https://www.ruby-forum.com/t/cant-get-around-this-routing-error/169222 "2009-06-01T13:27:02Z")

</div>

Hi All, I’m currently stuck trying to get a scaffold routed correctly. The line of code causing me problems is: (link\_to ‘Edit’, edit\_listhub\_path(@listhub)) It works fine in 127.0.0.1:3000/listhubs. However, when I…

---

## [Can't deploy using Git!](https://www.ruby-forum.com/t/cant-deploy-using-git/169188)

<div class="topic-metadata">

**Author:** [@lpdahito](https://www.ruby-forum.com/u/lpdahito)\
**Replies:** 6\
**Last updated:** [June 1, 2009, 1:25pm UTC](https://www.ruby-forum.com/t/cant-deploy-using-git/169188 "2009-06-01T13:25:35Z")

</div>

Hey guys, So here’s the deal… I’m trying to deploy an app on EC2 using the EC2onRails gem… I’m using git as my SCM and capistrano to deploy obviously… Everytime I try to deploy with this command: cap deploy:cold, I g…

---

## [Form validation on non-CRUD activities](https://www.ruby-forum.com/t/form-validation-on-non-crud-activities/169245)

<div class="topic-metadata">

**Author:** [@Tom\_R](https://www.ruby-forum.com/u/Tom_R)\
**Replies:** 1\
**Last updated:** [June 1, 2009, 1:08pm UTC](https://www.ruby-forum.com/t/form-validation-on-non-crud-activities/169245 "2009-06-01T13:08:35Z")

</div>

Hi there, I’m relativity new to Rails (I’ve been eying it for some time, though). I’m reasonably familiar with Ruby’s syntax. When I pick up a new language, I like to make a simple blog. I’m focusing on the authentic…

---

## [Sqlite db is note created with "rails" command](https://www.ruby-forum.com/t/sqlite-db-is-note-created-with-rails-command/169238)

<div class="topic-metadata">

**Author:** [@John\_Sun](https://www.ruby-forum.com/u/John_Sun)\
**Replies:** 1\
**Last updated:** [June 1, 2009, 11:24am UTC](https://www.ruby-forum.com/t/sqlite-db-is-note-created-with-rails-command/169238 "2009-06-01T11:24:23Z")

</div>

When I try to create my rail demo application by following an example, there is no default database created under db directory? Is that normal? I do have all the sqlite3 stuff installed. Thanks, J.w.

---

## [Time.parse seems to fail](https://www.ruby-forum.com/t/time-parse-seems-to-fail/169058)

<div class="topic-metadata">

**Author:** [@ccude](https://www.ruby-forum.com/u/ccude)\
**Replies:** 6\
**Last updated:** [June 1, 2009, 11:20am UTC](https://www.ruby-forum.com/t/time-parse-seems-to-fail/169058 "2009-06-01T11:20:51Z")

</div>

Hi, it’s seems to me the function Time.parse has an error: ok - Time.parse(“12/01/2008”) =\> 2008-12-01 Error - Time.parse(“01.12.2008”) =\> 2008-01-12 Or is there an option/timezone I have to chnage, so it will wor…

---

## [Nested models and forms](https://www.ruby-forum.com/t/nested-models-and-forms/169243)

<div class="topic-metadata">

**Author:** [@Sahil\_D](https://www.ruby-forum.com/u/Sahil_D)\
**Replies:** 0\
**Last updated:** [June 1, 2009, 11:18am UTC](https://www.ruby-forum.com/t/nested-models-and-forms/169243 "2009-06-01T11:18:30Z")

</div>

Hi, I have been trying to use the new nested models & forms feature in rails 2.3 #helper def add\_job\_profile\_link(name, form, vacancy) link\_to\_function name do |page| profile = render(:partial =\> ‘job\_profile’, :lo…

---

## [Prevent caching of helper method](https://www.ruby-forum.com/t/prevent-caching-of-helper-method/169193)

<div class="topic-metadata">

**Author:** [@chris](https://www.ruby-forum.com/u/chris)\
**Replies:** 5\
**Last updated:** [June 1, 2009, 10:03am UTC](https://www.ruby-forum.com/t/prevent-caching-of-helper-method/169193 "2009-06-01T10:03:29Z")

</div>

Hi, I have a helper method to get a date from a cookie (in application helper) that looks like this: def getToday if(cookies\[:date\]) cookies\[:date\].to\_date else Date.today end end I set the cooke date using a b…

---

## [Rails, rake and postgresql roles](https://www.ruby-forum.com/t/rails-rake-and-postgresql-roles/169242)

<div class="topic-metadata">

**Author:** [@Ajax](https://www.ruby-forum.com/u/Ajax)\
**Replies:** 0\
**Last updated:** [June 1, 2009, 9:55am UTC](https://www.ruby-forum.com/t/rails-rake-and-postgresql-roles/169242 "2009-06-01T09:55:18Z")

</div>

Hello! I have a problem when running db:create in a newly created rails project. With a project named ‘yoyo’ as an example, rake db:create gives me the response FATAL C28000 Mrole “yoyo” does not exist Fmiscinit.…

---

## [Way to divide long article and store in database](https://www.ruby-forum.com/t/way-to-divide-long-article-and-store-in-database/169214)

<div class="topic-metadata">

**Author:** [@winterheat](https://www.ruby-forum.com/u/winterheat)\
**Replies:** 4\
**Last updated:** [June 1, 2009, 9:23am UTC](https://www.ruby-forum.com/t/way-to-divide-long-article-and-store-in-database/169214 "2009-06-01T09:23:41Z")

</div>

I wonder if a Ruby on Rails developer has encounter this before: suppose it is a long article (say 100,000 words), and I need to write a Ruby file to display page 1, 2, or page 38 of the article, by display.html.erb?p…

---

## [Would ROR be a good choice to build my site?](https://www.ruby-forum.com/t/would-ror-be-a-good-choice-to-build-my-site/169081)

<div class="topic-metadata">

**Author:** [@jackson](https://www.ruby-forum.com/u/jackson)\
**Replies:** 7\
**Last updated:** [June 1, 2009, 9:15am UTC](https://www.ruby-forum.com/t/would-ror-be-a-good-choice-to-build-my-site/169081 "2009-06-01T09:15:29Z")

</div>

Would ROR be a good choice to build my site? Hi Gang, I’m in the process of developing a social media-ish site built around WordPress and VBulletin forum. A site where a visitor has a username and password and their …

---

## [Simple model password protection?](https://www.ruby-forum.com/t/simple-model-password-protection/169175)

<div class="topic-metadata">

**Author:** [@beacon](https://www.ruby-forum.com/u/beacon)\
**Replies:** 2\
**Last updated:** [June 1, 2009, 9:15am UTC](https://www.ruby-forum.com/t/simple-model-password-protection/169175 "2009-06-01T09:15:29Z")

</div>

Hey everybody, I would like to know how to do simple password protection in rails a la \<a href="http://writeboard.com\>writeboard. At writeboard, when a new writeboard object is created, the creator must assign a pass…

---

## [Perplexing nested form issue](https://www.ruby-forum.com/t/perplexing-nested-form-issue/169240)

<div class="topic-metadata">

**Author:** [@nodoubtarockstar](https://www.ruby-forum.com/u/nodoubtarockstar)\
**Replies:** 0\
**Last updated:** [June 1, 2009, 9:15am UTC](https://www.ruby-forum.com/t/perplexing-nested-form-issue/169240 "2009-06-01T09:15:28Z")

</div>

Two apps, both running Rails 2.3.2, local machine, development environment, just to clarify that all gems are the same (obviously) and most of the code is “standard fare” — CRUD and such, nothing fancy going on. Now …

---

## [Dump and import MySQL table w/ accents](https://www.ruby-forum.com/t/dump-and-import-mysql-table-w-accents/168859)

<div class="topic-metadata">

**Author:** [@Jeffrey\_LSTaylor](https://www.ruby-forum.com/u/Jeffrey_LSTaylor)\
**Replies:** 6\
**Last updated:** [June 1, 2009, 9:09am UTC](https://www.ruby-forum.com/t/dump-and-import-mysql-table-w-accents/168859 "2009-06-01T09:09:36Z")

</div>

I am switching to a composite primary key (string and user ID) from the Rails conventional auto-incrementing integer primary ID. The table is large (2.5 million records) and I’d rather not discard the contents. The …

---

## [SubDomain Queries](https://www.ruby-forum.com/t/subdomain-queries/169087)

<div class="topic-metadata">

**Author:** [@Sahil\_D](https://www.ruby-forum.com/u/Sahil_D)\
**Replies:** 5\
**Last updated:** [June 1, 2009, 7:52am UTC](https://www.ruby-forum.com/t/subdomain-queries/169087 "2009-06-01T07:52:23Z")

</div>

Hi, I have a requirement in my rails application where i need to provide access to a blog from another domain. e.g: blog.company.com should point to my app’s blog\_controller’s show action. Is this possible. & if i…

---

## [Managing multiple form data](https://www.ruby-forum.com/t/managing-multiple-form-data/169232)

<div class="topic-metadata">

**Author:** [@charan](https://www.ruby-forum.com/u/charan)\
**Replies:** 0\
**Last updated:** [June 1, 2009, 7:18am UTC](https://www.ruby-forum.com/t/managing-multiple-form-data/169232 "2009-06-01T07:18:26Z")

</div>

HI guys I am using different forms with respective controller,model and view.If the user press back button in the browser,after submitting the form data.How do we handle such scenario… i mean to say that i want to ma…

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

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