# Rails

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

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

---

## [Help with link\_to and its kin](https://www.ruby-forum.com/t/help-with-link-to-and-its-kin/155871)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [December 17, 2008, 9:32pm UTC](https://www.ruby-forum.com/t/help-with-link-to-and-its-kin/155871 "2008-12-17T21:32:27Z")

</div>

Hi Everyone I am a new user of Ruby and Rails, and would like some help with the following problem. I have created a navbar with a styled unordered list and I would like to apply class=“current” to the tab for the cu…

---

## [Problem with Phusion passenger V 1.0.5](https://www.ruby-forum.com/t/problem-with-phusion-passenger-v-1-0-5/155878)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 1\
**Last updated:** [December 17, 2008, 9:27pm UTC](https://www.ruby-forum.com/t/problem-with-phusion-passenger-v-1-0-5/155878 "2008-12-17T21:27:43Z")

</div>

OS = CentOS-5.2 Ruby = 1.8.6 Rails = 2.0.2 Passenger = 1.0.5 Redmine = 0.7.3 Apache = 2.2.3 I have created an rsync copy of our company project administration site and am trying to get Redmine to start on the back…

---

## [How to overcome ActionController::Filters::Filter?](https://www.ruby-forum.com/t/how-to-overcome-actioncontroller-filter/155877)

<div class="topic-metadata">

**Author:** [@vivek](https://www.ruby-forum.com/u/vivek)\
**Replies:** 1\
**Last updated:** [December 17, 2008, 9:24pm UTC](https://www.ruby-forum.com/t/how-to-overcome-actioncontroller-filter/155877 "2008-12-17T21:24:41Z")

</div>

I had a model called filter defined in an ancient version of rails (about 1 yr old). Now I upgrade to 2.2.2 and see that all my references to Filter resolve to ActionController::Filters::Filter and that gives all kind…

---

## [One functional test spoils another](https://www.ruby-forum.com/t/one-functional-test-spoils-another/155876)

<div class="topic-metadata">

**Author:** [@fritza](https://www.ruby-forum.com/u/fritza)\
**Replies:** 0\
**Last updated:** [December 17, 2008, 9:23pm UTC](https://www.ruby-forum.com/t/one-functional-test-spoils-another/155876 "2008-12-17T21:23:36Z")

</div>

In my functional test suite, I have two tests. Each is meant to test the redirection that “verify :method =\> :post” will do when I trigger the respective actions with a GET instead of a POST. In both tests, I have a f…

---

## [ActiveRecord.find results as array of arrays](https://www.ruby-forum.com/t/activerecord-find-results-as-array-of-arrays/155826)

<div class="topic-metadata">

**Author:** [@michael\_teter](https://www.ruby-forum.com/u/michael_teter)\
**Replies:** 2\
**Last updated:** [December 17, 2008, 8:51pm UTC](https://www.ruby-forum.com/t/activerecord-find-results-as-array-of-arrays/155826 "2008-12-17T20:51:07Z")

</div>

Howdy. I imagine this is an elementary Ruby question, but I’d love to learn the right Ruby idiom for this. I’d like to take the results of an ActiveRecord.find() and turn them into an array of arrays \[\[item1\_col1,ite…

---

## [Missing Dependency subversion is needed by package subversion-ruby](https://www.ruby-forum.com/t/missing-dependency-subversion-is-needed-by-package-subversion-ruby/155873)

<div class="topic-metadata">

**Author:** [@imarichardson](https://www.ruby-forum.com/u/imarichardson)\
**Replies:** 0\
**Last updated:** [December 17, 2008, 8:18pm UTC](https://www.ruby-forum.com/t/missing-dependency-subversion-is-needed-by-package-subversion-ruby/155873 "2008-12-17T20:18:07Z")

</div>

Greets. I’m currently trying to install GIT on an RHEL5 box. I’ve tried to both build from source and install via yum. In both instances I continue to receive the error message (full error stack at the end): Error: M…

---

## [Gem\_original\_require': no such file to load -- mime/types](https://www.ruby-forum.com/t/gem-original-require-no-such-file-to-load-mime-types/155864)

<div class="topic-metadata">

**Author:** [@stratboy](https://www.ruby-forum.com/u/stratboy)\
**Replies:** 1\
**Last updated:** [December 17, 2008, 7:16pm UTC](https://www.ruby-forum.com/t/gem-original-require-no-such-file-to-load-mime-types/155864 "2008-12-17T19:16:54Z")

</div>

the gems mime\_types and mini\_magick are installed. When i try to launch my application, i receive this error: gem\_original\_require’: no such file to load – mime/types (MissingSourceFile) from /usr/lib/ruby/site\_ruby/…

---

## [Move MySQL database/app to different isp?](https://www.ruby-forum.com/t/move-mysql-database-app-to-different-isp/153149)

<div class="topic-metadata">

**Author:** [@jeffpritchard](https://www.ruby-forum.com/u/jeffpritchard)\
**Replies:** 5\
**Last updated:** [December 17, 2008, 6:48pm UTC](https://www.ruby-forum.com/t/move-mysql-database-app-to-different-isp/153149 "2008-12-17T18:48:40Z")

</div>

I have a deployed rails app that has been running for several months on one ISP. I’m moving everything to a different ISP in the next couple days. What is the easiest way to duplicate the production database on the ne…

---

## [Help with calculation](https://www.ruby-forum.com/t/help-with-calculation/155851)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 3\
**Last updated:** [December 17, 2008, 6:22pm UTC](https://www.ruby-forum.com/t/help-with-calculation/155851 "2008-12-17T18:22:36Z")

</div>

I need some help with a calculation in a survey that I run. I have one table with words, characteristics, such as “careful, dominant, positive” etc. People are then to select the words they think belong to a visual d…

---

## [Windows Vista 64 Bit compatibility](https://www.ruby-forum.com/t/windows-vista-64-bit-compatibility/155825)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [December 17, 2008, 5:59pm UTC](https://www.ruby-forum.com/t/windows-vista-64-bit-compatibility/155825 "2008-12-17T17:59:54Z")

</div>

Does Ruby work on a computer running Windows Vista 64 Bit OS.

---

## [Submitting a form on another application](https://www.ruby-forum.com/t/submitting-a-form-on-another-application/155858)

<div class="topic-metadata">

**Author:** [@daniel](https://www.ruby-forum.com/u/daniel)\
**Replies:** 0\
**Last updated:** [December 17, 2008, 5:59pm UTC](https://www.ruby-forum.com/t/submitting-a-form-on-another-application/155858 "2008-12-17T17:59:22Z")

</div>

I am starting a project where the rails app will have to fill in an external web form without user intervention and submit it. Do you have any suggestions on what I can use for this task? Thanks in advance, Daniel

---

## [Re: relative urls - browser plugin? scraper? other?](https://www.ruby-forum.com/t/re-relative-urls-browser-plugin-scraper-other/155859)

<div class="topic-metadata">

**Author:** [@jshow](https://www.ruby-forum.com/u/jshow)\
**Replies:** 0\
**Last updated:** [December 17, 2008, 5:42pm UTC](https://www.ruby-forum.com/t/re-relative-urls-browser-plugin-scraper-other/155859 "2008-12-17T17:42:58Z")

</div>

A short update on this - never saw this behaviour before - but will see more now Googlebot just hit this url - /companies/1199238-action-assembly/forum All I can imagine is that the relative url must exist - but for t…

---

## [Relative urls - browser plugin? scraper? other?](https://www.ruby-forum.com/t/relative-urls-browser-plugin-scraper-other/155856)

<div class="topic-metadata">

**Author:** [@jshow](https://www.ruby-forum.com/u/jshow)\
**Replies:** 0\
**Last updated:** [December 17, 2008, 5:07pm UTC](https://www.ruby-forum.com/t/relative-urls-browser-plugin-scraper-other/155856 "2008-12-17T17:07:43Z")

</div>

I have a very strange situation that I’ve been tracking for some months now. This may or may not be a rails issue. The symptoms don’t feel like it, so I guess I’m appealing to my rails colleagues to lend me their tho…

---

## [Counter to keep track of references?](https://www.ruby-forum.com/t/counter-to-keep-track-of-references/155849)

<div class="topic-metadata">

**Author:** [@comopasta](https://www.ruby-forum.com/u/comopasta)\
**Replies:** 3\
**Last updated:** [December 17, 2008, 4:32pm UTC](https://www.ruby-forum.com/t/counter-to-keep-track-of-references/155849 "2008-12-17T16:32:12Z")

</div>

Hi, I’d like to ask something. I have messages and I have countries. I do searches of messages by country. So a country has\_many messages and message belongs\_to country. I have defined a country\_id on the messages co…

---

## [DBI / FCGI not working](https://www.ruby-forum.com/t/dbi-fcgi-not-working/155854)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [December 17, 2008, 4:13pm UTC](https://www.ruby-forum.com/t/dbi-fcgi-not-working/155854 "2008-12-17T16:13:07Z")

</div>

I an run a simple DBI app fine no issues. When trying it on FCGI on my server I get this error: Could not load driver (undefined local variable or method \`e’ for DBI:Module) Anyone got any idea why this would error …

---

## [Testing Engines with Spec](https://www.ruby-forum.com/t/testing-engines-with-spec/155850)

<div class="topic-metadata">

**Author:** [@Antonio\_Tapiador\_de](https://www.ruby-forum.com/u/Antonio_Tapiador_de)\
**Replies:** 0\
**Last updated:** [December 17, 2008, 3:29pm UTC](https://www.ruby-forum.com/t/testing-engines-with-spec/155850 "2008-12-17T15:29:05Z")

</div>

Hi, I’d like to write Spec tests of my Engine. However, I don’t know how to setup the database, environment, boot and any other things present in an ordinary Rails app. Anyone have pointers to examples, tips? Than…

---

## [Princely Plugin:](https://www.ruby-forum.com/t/princely-plugin/155839)

<div class="topic-metadata">

**Author:** [@brijesh](https://www.ruby-forum.com/u/brijesh)\
**Replies:** 1\
**Last updated:** [December 17, 2008, 3:25pm UTC](https://www.ruby-forum.com/t/princely-plugin/155839 "2008-12-17T15:25:34Z")

</div>

Hi All, I am using princly plugin to generate pdf with css. Code is: respond\_to do |format| format.html format.pdf do render :pdf =\> “paid\_invoice”, :template =\> “/users/paid\_invoice”, :stylesheets =\> \[“prince”,“…

---

## [Move data with migration](https://www.ruby-forum.com/t/move-data-with-migration/155836)

<div class="topic-metadata">

**Author:** [@Tarscher](https://www.ruby-forum.com/u/Tarscher)\
**Replies:** 1\
**Last updated:** [December 17, 2008, 3:19pm UTC](https://www.ruby-forum.com/t/move-data-with-migration/155836 "2008-12-17T15:19:44Z")

</div>

Hi all, I have to change my database structure for a new release. I can change the database structure with migrations but I also want to move the data from the old structure to the new structure. Is this best done v…

---

## [Buttons with different actions... for a single form](https://www.ruby-forum.com/t/buttons-with-different-actions-for-a-single-form/155793)

<div class="topic-metadata">

**Author:** [@The\_N](https://www.ruby-forum.com/u/The_N)\
**Replies:** 3\
**Last updated:** [December 17, 2008, 3:03pm UTC](https://www.ruby-forum.com/t/buttons-with-different-actions-for-a-single-form/155793 "2008-12-17T15:03:46Z")

</div>

Hello… I have a form with 3 buttons, each with a different functionality concerning to forum user information. Once it’s shown in the form, you can: Modify your information Print your info (via Prawn) Delete the use…

---

## [How to iterate through an instance](https://www.ruby-forum.com/t/how-to-iterate-through-an-instance/155794)

<div class="topic-metadata">

**Author:** [@tharrisx](https://www.ruby-forum.com/u/tharrisx)\
**Replies:** 6\
**Last updated:** [December 17, 2008, 2:20pm UTC](https://www.ruby-forum.com/t/how-to-iterate-through-an-instance/155794 "2008-12-17T14:20:21Z")

</div>

Hi there, I have an instance of an object in my database and need to get out every element of it, like this: Example: model = student firstname = Fred lastname = Williams streetname = NULL city = NULL date of birt…

---

## [How to log in from console?](https://www.ruby-forum.com/t/how-to-log-in-from-console/155770)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 8\
**Last updated:** [December 17, 2008, 1:58pm UTC](https://www.ruby-forum.com/t/how-to-log-in-from-console/155770 "2008-12-17T13:58:38Z")

</div>

I am attempting to investigate the object state during a login process. I need instruction in the correct technique to emulate filling out an html form and submitting it within the rails console. Given a login form at…

---

## [Gears on Rails](https://www.ruby-forum.com/t/gears-on-rails/155846)

<div class="topic-metadata">

**Author:** [@vikas\_rathee](https://www.ruby-forum.com/u/vikas_rathee)\
**Replies:** 0\
**Last updated:** [December 17, 2008, 12:59pm UTC](https://www.ruby-forum.com/t/gears-on-rails/155846 "2008-12-17T12:59:54Z")

</div>

Hi Everybody I am new to both Rails and Gears. Can anybody provide me the sample code for gearsonrail application. or could tell me a link for simple tutorial. I tried the documentation at project site, but not able…

---

## [Problem with starting the rails server through cron](https://www.ruby-forum.com/t/problem-with-starting-the-rails-server-through-cron/155845)

<div class="topic-metadata">

**Author:** [@archanasubodh](https://www.ruby-forum.com/u/archanasubodh)\
**Replies:** 0\
**Last updated:** [December 17, 2008, 12:40pm UTC](https://www.ruby-forum.com/t/problem-with-starting-the-rails-server-through-cron/155845 "2008-12-17T12:40:03Z")

</div>

Hai, My application is built on ruby on rails and the database used is Berkeley database the problem i get when the script is executed through cron is: /usr/local/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:27:…

---

## [Send mail with ActionMailer on localhost for leopard](https://www.ruby-forum.com/t/send-mail-with-actionmailer-on-localhost-for-leopard/155841)

<div class="topic-metadata">

**Author:** [@jlstar](https://www.ruby-forum.com/u/jlstar)\
**Replies:** 1\
**Last updated:** [December 17, 2008, 11:52am UTC](https://www.ruby-forum.com/t/send-mail-with-actionmailer-on-localhost-for-leopard/155841 "2008-12-17T11:52:31Z")

</div>

For @free.fr email address Don’t use any tls plugin !!! add in config/environnements/development.rb ActionMailer::Base.perform\_deliveries = true ActionMailer::Base.raise\_delivery\_errors = false ActionMailer::Base.de…

---

## [How to use switchdiv( ) method in views?](https://www.ruby-forum.com/t/how-to-use-switchdiv-method-in-views/155840)

<div class="topic-metadata">

**Author:** [@srikanth](https://www.ruby-forum.com/u/srikanth)\
**Replies:** 0\
**Last updated:** [December 17, 2008, 11:28am UTC](https://www.ruby-forum.com/t/how-to-use-switchdiv-method-in-views/155840 "2008-12-17T11:28:53Z")

</div>

I have four tables called: video audio image audio each table ia having differnet parameters. While iam uploading new stream i can choose video/audio/image/audio and i can update corresponding table params; Here…

---

## [Upgrade to 2.2.2 - problem with existing Localization library](https://www.ruby-forum.com/t/upgrade-to-2-2-2-problem-with-existing-localization-library/155835)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [December 17, 2008, 11:25am UTC](https://www.ruby-forum.com/t/upgrade-to-2-2-2-problem-with-existing-localization-library/155835 "2008-12-17T11:25:21Z")

</div>

I upgraded my application to Rails 2.2.2 from 1.2.6 last night. I encountered a problem with the Localization library (1.0.7) that I installed at the time of installing SaltedHashLoginGenerator (requires Localization)…

---

## [Migration to move data](https://www.ruby-forum.com/t/migration-to-move-data/155834)

<div class="topic-metadata">

**Author:** [@Tarscher](https://www.ruby-forum.com/u/Tarscher)\
**Replies:** 0\
**Last updated:** [December 17, 2008, 10:59am UTC](https://www.ruby-forum.com/t/migration-to-move-data/155834 "2008-12-17T10:59:28Z")

</div>

Hi all, I have to change my database structure for a new release. I can change the database structure with migrations but I also want to move the data to the new structure. Is this best done via a migration (if possi…

---

## [Dependencies.load\_paths](https://www.ruby-forum.com/t/dependencies-load-paths/155817)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 3\
**Last updated:** [December 17, 2008, 10:42am UTC](https://www.ruby-forum.com/t/dependencies-load-paths/155817 "2008-12-17T10:42:26Z")

</div>

Hi what is Dependencies.load\_paths and placing it in environment.rb? Thanks in advance Sijo

---

## [Http://localhost/3000 cant see my pages](https://www.ruby-forum.com/t/http-localhost-3000-cant-see-my-pages/155796)

<div class="topic-metadata">

**Author:** [@goneale](https://www.ruby-forum.com/u/goneale)\
**Replies:** 4\
**Last updated:** [December 17, 2008, 9:17am UTC](https://www.ruby-forum.com/t/http-localhost-3000-cant-see-my-pages/155796 "2008-12-17T09:17:40Z")

</div>

I think I’m going to cry. I have been trying to get this to work for the last 6 hours and cant get anywhere. My installation was working fine yesterday now I cant get it to work. I have IIS turned off My apache serv…

---

## [Thoughts on controllers](https://www.ruby-forum.com/t/thoughts-on-controllers/155809)

<div class="topic-metadata">

**Author:** [@elliottg](https://www.ruby-forum.com/u/elliottg)\
**Replies:** 5\
**Last updated:** [December 17, 2008, 8:10am UTC](https://www.ruby-forum.com/t/thoughts-on-controllers/155809 "2008-12-17T08:10:00Z")

</div>

I am new to Rails. I have read a couple books and ran through a few tutorials as well. I have been using scaffolding a bit to structure a few projects that I am building for learning purposes. I am curious what your t…

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

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