# Rails

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

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

---

## [Ruby Acronyms](https://www.ruby-forum.com/t/ruby-acronyms/168602)

<div class="topic-metadata">

**Author:** [@JannaB](https://www.ruby-forum.com/u/JannaB)\
**Replies:** 3\
**Last updated:** [May 23, 2009, 12:23am UTC](https://www.ruby-forum.com/t/ruby-acronyms/168602 "2009-05-23T00:23:02Z")

</div>

Newbie question, but I cannot seem to find this anywhere. What does REST stand for? What about DRY (I think it means write only once?) ? - Janna

---

## [Nested resources and collection weirdness](https://www.ruby-forum.com/t/nested-resources-and-collection-weirdness/168573)

<div class="topic-metadata">

**Author:** [@joshs](https://www.ruby-forum.com/u/joshs)\
**Replies:** 3\
**Last updated:** [May 22, 2009, 11:09pm UTC](https://www.ruby-forum.com/t/nested-resources-and-collection-weirdness/168573 "2009-05-22T23:09:56Z")

</div>

I need the route /events/:event\_id/races/edit, so: map.resources :events do |event| event.resources :races, :collection =\> {:edit =\> :get} end Which produces this: edit\_event\_races GET /events/:event\_id/races/edi…

---

## [Git PUSH!](https://www.ruby-forum.com/t/git-push/168616)

<div class="topic-metadata">

**Author:** [@mekdigital](https://www.ruby-forum.com/u/mekdigital)\
**Replies:** 0\
**Last updated:** [May 22, 2009, 10:34pm UTC](https://www.ruby-forum.com/t/git-push/168616 "2009-05-22T22:34:10Z")

</div>

The most useful script I’ve ever created! :slight\_smile: – Emanuele T. +1 (619) 549 3230 1985 Sherington Place, #E302 Newport Beach, CA 92663

---

## [Annotating Graphs cleanly](https://www.ruby-forum.com/t/annotating-graphs-cleanly/168614)

<div class="topic-metadata">

**Author:** [@arvliet](https://www.ruby-forum.com/u/arvliet)\
**Replies:** 0\
**Last updated:** [May 22, 2009, 10:09pm UTC](https://www.ruby-forum.com/t/annotating-graphs-cleanly/168614 "2009-05-22T22:09:34Z")

</div>

Hello! I am working on an application where I need to annotate graphs I generate in such a way that each point is labelled with a small bit of text. For instance, my point may be drawn as (12, 100), but I need a labe…

---

## [Modern day auth](https://www.ruby-forum.com/t/modern-day-auth/168612)

<div class="topic-metadata">

**Author:** [@bouldr-matt](https://www.ruby-forum.com/u/bouldr-matt)\
**Replies:** 1\
**Last updated:** [May 22, 2009, 10:08pm UTC](https://www.ruby-forum.com/t/modern-day-auth/168612 "2009-05-22T22:08:04Z")

</div>

It’s been quite a while since I last rolled out a rails app, and now I have to start on another. I’m wondering what is the currently accepted method for implementing authentication and authorisation. My last apps used…

---

## [Import from excel, data store in database](https://www.ruby-forum.com/t/import-from-excel-data-store-in-database/168570)

<div class="topic-metadata">

**Author:** [@nishi](https://www.ruby-forum.com/u/nishi)\
**Replies:** 1\
**Last updated:** [May 22, 2009, 8:02pm UTC](https://www.ruby-forum.com/t/import-from-excel-data-store-in-database/168570 "2009-05-22T20:02:29Z")

</div>

Hi, Im tryng to import data from excel sheet and storing data into database. But geeting problem. I hv followed this link : http://spreadsheet.rubyforge.org/ Error occurs " OLE2 signature is invalid" If any one ha…

---

## [Git + Capistrano deploying Rails app in Mor.ph AppSpace](https://www.ruby-forum.com/t/git-capistrano-deploying-rails-app-in-mor-ph-appspace/168599)

<div class="topic-metadata">

**Author:** [@gattone](https://www.ruby-forum.com/u/gattone)\
**Replies:** 1\
**Last updated:** [May 22, 2009, 7:24pm UTC](https://www.ruby-forum.com/t/git-capistrano-deploying-rails-app-in-mor-ph-appspace/168599 "2009-05-22T19:24:17Z")

</div>

I have a directory for images uploaded through the admin page of my app. But whenever I redeploy the app, the images in my local environment overwrite those in the server (which is pretty much expected, although unde…

---

## [Awesome\_nested\_set is too paranoid for me :(](https://www.ruby-forum.com/t/awesome-nested-set-is-too-paranoid-for-me/168592)

<div class="topic-metadata">

**Author:** [@Pietro](https://www.ruby-forum.com/u/Pietro)\
**Replies:** 0\
**Last updated:** [May 22, 2009, 6:42pm UTC](https://www.ruby-forum.com/t/awesome-nested-set-is-too-paranoid-for-me/168592 "2009-05-22T18:42:45Z")

</div>

So awesome\_nested\_set protects its parent\_id attribute and even redefines the parent\_id= method. This is causing me difficulty. My models have a uniqueness constraint on :name that is scoped by parent\_id. So I could c…

---

## [Rails 2.3.2, active scaffold, nested, ActionView::TemplateError (undefined method \`format\_column'](https://www.ruby-forum.com/t/rails-2-3-2-active-scaffold-nested-actionview-templateerror-undefined-method-format-column/168537)

<div class="topic-metadata">

**Author:** [@cpr](https://www.ruby-forum.com/u/cpr)\
**Replies:** 1\
**Last updated:** [May 22, 2009, 6:31pm UTC](https://www.ruby-forum.com/t/rails-2-3-2-active-scaffold-nested-actionview-templateerror-undefined-method-format-column/168537 "2009-05-22T18:31:38Z")

</div>

Before I dig in any further (since I have no idea where to go from here…) Has anyone been succcessful with 2.3.2, AS, and nested scaffolds? I have the latest of AS and the render\_component plugin via % script/plugin …

---

## [Difference between html.erb and .erb](https://www.ruby-forum.com/t/difference-between-html-erb-and-erb/168584)

<div class="topic-metadata">

**Author:** [@saljamil](https://www.ruby-forum.com/u/saljamil)\
**Replies:** 2\
**Last updated:** [May 22, 2009, 6:15pm UTC](https://www.ruby-forum.com/t/difference-between-html-erb-and-erb/168584 "2009-05-22T18:15:02Z")

</div>

I spend few hours debugging a flash chart issue. At the end and after a lot of trial and error, I switched my view name from dashboard.erb to dashboard.html.erb and that resolved the problem. Any idea why? I tried to …

---

## [How can I read a cookie set on another subdomain by a non-Rails app?](https://www.ruby-forum.com/t/how-can-i-read-a-cookie-set-on-another-subdomain-by-a-non-rails-app/168577)

<div class="topic-metadata">

**Author:** [@andy](https://www.ruby-forum.com/u/andy)\
**Replies:** 3\
**Last updated:** [May 22, 2009, 5:40pm UTC](https://www.ruby-forum.com/t/how-can-i-read-a-cookie-set-on-another-subdomain-by-a-non-rails-app/168577 "2009-05-22T17:40:31Z")

</div>

I’m trying to build some single sign on functionality into our web application. There’s community site on a subdomain: i.e. community.domain.com The Rails app is on: www.domain.com When I inspect the cookies, I do…

---

## [Stuck on passing variable from controller to view](https://www.ruby-forum.com/t/stuck-on-passing-variable-from-controller-to-view/168568)

<div class="topic-metadata">

**Author:** [@S-marek](https://www.ruby-forum.com/u/S-marek)\
**Replies:** 15\
**Last updated:** [May 22, 2009, 5:32pm UTC](https://www.ruby-forum.com/t/stuck-on-passing-variable-from-controller-to-view/168568 "2009-05-22T17:32:17Z")

</div>

Hello, I am pretty new to RoR and I am stuck on this problem and not even sure how to troubleshoot it. The issue is that my index.rhtml is not displaying any variables from my controller. Controller (versions\_contro…

---

## [Changing access to DataBase](https://www.ruby-forum.com/t/changing-access-to-database/168575)

<div class="topic-metadata">

**Author:** [@Rui\_Carvalho](https://www.ruby-forum.com/u/Rui_Carvalho)\
**Replies:** 0\
**Last updated:** [May 22, 2009, 4:13pm UTC](https://www.ruby-forum.com/t/changing-access-to-database/168575 "2009-05-22T16:13:42Z")

</div>

Hi, i am kind of new to ror, i have rails connected to a remote DB in Postgres,i am trying to remake the connection instead of accessing directly through query to table start using the views available, any help/hi…

---

## [Deploy with specific earlier version of capistrano](https://www.ruby-forum.com/t/deploy-with-specific-earlier-version-of-capistrano/168572)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 0\
**Last updated:** [May 22, 2009, 4:07pm UTC](https://www.ruby-forum.com/t/deploy-with-specific-earlier-version-of-capistrano/168572 "2009-05-22T16:07:31Z")

</div>

I started a new app, using the latest version of capistrano (2.5.5) to deploy. All fine. But, when i’ve gone back to an app i started earlier, i can’t deploy it - i get this error: failed: “sh -c "sudo -p 'sudo pass…

---

## [Using console is a proper way in produciton?](https://www.ruby-forum.com/t/using-console-is-a-proper-way-in-produciton/168567)

<div class="topic-metadata">

**Author:** [@serenobs](https://www.ruby-forum.com/u/serenobs)\
**Replies:** 2\
**Last updated:** [May 22, 2009, 2:50pm UTC](https://www.ruby-forum.com/t/using-console-is-a-proper-way-in-produciton/168567 "2009-05-22T14:50:30Z")

</div>

Hello. I’ve planned to use script/console to support mainloop for my rails application. I need some infinite loop for doing my logic. For example, I want to give a point every second to users. to do this task I thin…

---

## [Same code different databases?](https://www.ruby-forum.com/t/same-code-different-databases/168074)

<div class="topic-metadata">

**Author:** [@simonsaid](https://www.ruby-forum.com/u/simonsaid)\
**Replies:** 4\
**Last updated:** [May 22, 2009, 2:17pm UTC](https://www.ruby-forum.com/t/same-code-different-databases/168074 "2009-05-22T14:17:45Z")

</div>

Hello, We want to serve multiple clients using the same logic but having a separate database for each client. We are using capistrano to deploy our web application. Anybody has any idea how we could do this? Thanks!

---

## [How to get the path prefix?](https://www.ruby-forum.com/t/how-to-get-the-path-prefix/168562)

<div class="topic-metadata">

**Author:** [@kittu.py](https://www.ruby-forum.com/u/kittu.py)\
**Replies:** 0\
**Last updated:** [May 22, 2009, 12:30pm UTC](https://www.ruby-forum.com/t/how-to-get-the-path-prefix/168562 "2009-05-22T12:30:28Z")

</div>

Hi, I started my rails application using mongrel with --prefix=/myapp; I have a javascript file where it makes an ajax call to ‘/get\_pics’; But this fails when I use --prefix option; is there a method in rails which …

---

## [Mysql date out of range](https://www.ruby-forum.com/t/mysql-date-out-of-range/168340)

<div class="topic-metadata">

**Author:** [@pink-ink](https://www.ruby-forum.com/u/pink-ink)\
**Replies:** 5\
**Last updated:** [May 22, 2009, 10:25am UTC](https://www.ruby-forum.com/t/mysql-date-out-of-range/168340 "2009-05-22T10:25:57Z")

</div>

Hi ruby community, I use ruby 1.8.6, rails 2.2.2 and mysql 5.045. In my scaffold I use “t.date :birthday”. When I want to save a birthday like 12.05.1970 I can save it. But when I try to save older birthdays like 12…

---

## [Rails coding/design input](https://www.ruby-forum.com/t/rails-coding-design-input/168547)

<div class="topic-metadata">

**Author:** [@vivekamn](https://www.ruby-forum.com/u/vivekamn)\
**Replies:** 2\
**Last updated:** [May 22, 2009, 10:25am UTC](https://www.ruby-forum.com/t/rails-coding-design-input/168547 "2009-05-22T10:25:43Z")

</div>

Hi, We have a web app which serves typical social content(blogs/forums/streams etc). All the content is optionally marked with a city. I.e. if a blog post is specific to New York, it will be marked so. The task is t…

---

## [Multithreaded BG task which does AR updates okay?](https://www.ruby-forum.com/t/multithreaded-bg-task-which-does-ar-updates-okay/168533)

<div class="topic-metadata">

**Author:** [@timhunter](https://www.ruby-forum.com/u/timhunter)\
**Replies:** 2\
**Last updated:** [May 22, 2009, 9:18am UTC](https://www.ruby-forum.com/t/multithreaded-bg-task-which-does-ar-updates-okay/168533 "2009-05-22T09:18:56Z")

</div>

Hey guys, I’m thinking about writing a method which utilises multithreading to do a bunch of api calls and make AR updates. Then calling the method once an hour with Rufus scheduler. I’m a little concerned if this …

---

## [Https enabled method for ssl not working](https://www.ruby-forum.com/t/https-enabled-method-for-ssl-not-working/168549)

<div class="topic-metadata">

**Author:** [@anubhaw](https://www.ruby-forum.com/u/anubhaw)\
**Replies:** 0\
**Last updated:** [May 22, 2009, 7:52am UTC](https://www.ruby-forum.com/t/https-enabled-method-for-ssl-not-working/168549 "2009-05-22T07:52:49Z")

</div>

Hi All, I am using SSL enable for some part of my application. Normal flow without SSL is working fine which is ‘http://’, but when I try to navigate to SSL enabled methods which should be 'https://'it gives me error…

---

## [\[ANN\] Kete 1.2 released](https://www.ruby-forum.com/t/ann-kete-1-2-released/168546)

<div class="topic-metadata">

**Author:** [@Walter\_McGinnis](https://www.ruby-forum.com/u/Walter_McGinnis)\
**Replies:** 0\
**Last updated:** [May 22, 2009, 7:10am UTC](https://www.ruby-forum.com/t/ann-kete-1-2-released/168546 "2009-05-22T07:10:53Z")

</div>

Hello everyone, The Kete 1.2 release is now available. For those that aren’t familiar with Kete, it is an open source Rails app that you can use to create online areas for collaboration for your community. Write top…

---

## [Rails install/update worked?](https://www.ruby-forum.com/t/rails-install-update-worked/168504)

<div class="topic-metadata">

**Author:** [@calvin](https://www.ruby-forum.com/u/calvin)\
**Replies:** 1\
**Last updated:** [May 22, 2009, 3:01am UTC](https://www.ruby-forum.com/t/rails-install-update-worked/168504 "2009-05-22T03:01:08Z")

</div>

Hello, I followed the instructions on the ruby on rails website (i am new to this) and now when I type this into the terminal I get: rails -v Rails 2.3.2 which rails /usr/bin/rails does this mean I installed rails…

---

## [How to install ActiveScaffold plugin?](https://www.ruby-forum.com/t/how-to-install-activescaffold-plugin/168531)

<div class="topic-metadata">

**Author:** [@sultan](https://www.ruby-forum.com/u/sultan)\
**Replies:** 1\
**Last updated:** [May 22, 2009, 1:12am UTC](https://www.ruby-forum.com/t/how-to-install-activescaffold-plugin/168531 "2009-05-22T01:12:59Z")

</div>

I am upgrading to raills 2.3.2. I’m having problems with AjaxScaffold which has been deprecated. I am a linux novice. The web site http://activescaffold.com/ has the following command: script/plugin install git://g…

---

## [Shell command execution problem!](https://www.ruby-forum.com/t/shell-command-execution-problem/168445)

<div class="topic-metadata">

**Author:** [@CiriusMex](https://www.ruby-forum.com/u/CiriusMex)\
**Replies:** 3\
**Last updated:** [May 21, 2009, 11:45pm UTC](https://www.ruby-forum.com/t/shell-command-execution-problem/168445 "2009-05-21T23:45:49Z")

</div>

Hi, well here comes my problem. I’m working on a function that will generate PDF files automatically using files already existing. I’m using pdftk utils to generate those files and everythings is working just fine whe…

---

## [What does has\_one :through get me?](https://www.ruby-forum.com/t/what-does-has-one-through-get-me/168378)

<div class="topic-metadata">

**Author:** [@brian](https://www.ruby-forum.com/u/brian)\
**Replies:** 13\
**Last updated:** [May 21, 2009, 11:07pm UTC](https://www.ruby-forum.com/t/what-does-has-one-through-get-me/168378 "2009-05-21T23:07:40Z")

</div>

Apparently I assumed functionality that doesn’t exist for this association. Should I not be able to reference the target model as an attribute? Here are my models: class User \< ActiveRecord::Base has\_one :membershi…

---

## [Modifing db](https://www.ruby-forum.com/t/modifing-db/168517)

<div class="topic-metadata">

**Author:** [@mk27](https://www.ruby-forum.com/u/mk27)\
**Replies:** 6\
**Last updated:** [May 21, 2009, 9:48pm UTC](https://www.ruby-forum.com/t/modifing-db/168517 "2009-05-21T21:48:08Z")

</div>

If I am going to build a sql database for use in rails (rather than building it in rails), is there anything I need to know beyond using an id column in every table? Does the id need to be the “primary key”?

---

## [Can't dup Fixnum](https://www.ruby-forum.com/t/cant-dup-fixnum/168524)

<div class="topic-metadata">

**Author:** [@JannaB](https://www.ruby-forum.com/u/JannaB)\
**Replies:** 2\
**Last updated:** [May 21, 2009, 9:44pm UTC](https://www.ruby-forum.com/t/cant-dup-fixnum/168524 "2009-05-21T21:44:26Z")

</div>

I know this mst be a newbie error, but here goes: I have two classes class User \< ActiveRecord::Base has\_one :associate end and class Associate \< ActiveRecord::Base belongs\_to :user end These are one-to-one. In o…

---

## [Beginner question](https://www.ruby-forum.com/t/beginner-question/168452)

<div class="topic-metadata">

**Author:** [@calvin](https://www.ruby-forum.com/u/calvin)\
**Replies:** 3\
**Last updated:** [May 21, 2009, 9:35pm UTC](https://www.ruby-forum.com/t/beginner-question/168452 "2009-05-21T21:35:44Z")

</div>

Hello, I am using rails 1.2.3 that came with my mac Xcode installation. If I update rails with: sudo gem update rails will the latest version of rails cause a conflict with Xcode? Thanks for your time, Calvin

---

## [\[ANN\] BDD w/Rails training June 2nd thru 5th](https://www.ruby-forum.com/t/ann-bdd-w-rails-training-june-2nd-thru-5th/168521)

<div class="topic-metadata">

**Author:** [@zdennis](https://www.ruby-forum.com/u/zdennis)\
**Replies:** 0\
**Last updated:** [May 21, 2009, 9:02pm UTC](https://www.ruby-forum.com/t/ann-bdd-w-rails-training-june-2nd-thru-5th/168521 "2009-05-21T21:02:44Z")

</div>

A long time I announced this on the ML, but now that it is close to occurrence I thought I’d drop another line for anyone who may be interested in the class, but missed the announcement. In just a couple week I’ll be…

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

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