# Rails

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

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

---

## [Libopenssl-ruby NEEDED ON MAC OS X?](https://www.ruby-forum.com/t/libopenssl-ruby-needed-on-mac-os-x/140819)

<div class="topic-metadata">

**Author:** [@nahabed](https://www.ruby-forum.com/u/nahabed)\
**Replies:** 2\
**Last updated:** [June 18, 2008, 10:31pm UTC](https://www.ruby-forum.com/t/libopenssl-ruby-needed-on-mac-os-x/140819 "2008-06-18T22:31:19Z")

</div>

Hello all! You’ve been most helpful in the past so I am here again with another question… I am trying to use s3sync to backup data from a Rails app to S3. The app is about to be deployed on Fedora machine. Meanwhile, …

---

## [How are indexes managed in migrations](https://www.ruby-forum.com/t/how-are-indexes-managed-in-migrations/140815)

<div class="topic-metadata">

**Author:** [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Replies:** 1\
**Last updated:** [June 18, 2008, 9:34pm UTC](https://www.ruby-forum.com/t/how-are-indexes-managed-in-migrations/140815 "2008-06-18T21:34:56Z")

</div>

This is something I have not fully understood. So I figured I would ask a quick question. If I have an index on a column in a table and I rename that column does the index reflect the new name? Also what if I remove a…

---

## [Useful or Not? Idea to rails application](https://www.ruby-forum.com/t/useful-or-not-idea-to-rails-application/140813)

<div class="topic-metadata">

**Author:** [@di3go](https://www.ruby-forum.com/u/di3go)\
**Replies:** 3\
**Last updated:** [June 18, 2008, 9:25pm UTC](https://www.ruby-forum.com/t/useful-or-not-idea-to-rails-application/140813 "2008-06-18T21:25:04Z")

</div>

I live in Brazil, in most parts we dont have a high speed internet, i download lots torrents and its a pain \>.\< take some time, some take weeks to download \>.\> My idea is a webserver to download torrents and than down…

---

## [Deploying a Production app \*without\* Capistrano...?](https://www.ruby-forum.com/t/deploying-a-production-app-without-capistrano/140807)

<div class="topic-metadata">

**Author:** [@dezrtdude](https://www.ruby-forum.com/u/dezrtdude)\
**Replies:** 4\
**Last updated:** [June 18, 2008, 8:45pm UTC](https://www.ruby-forum.com/t/deploying-a-production-app-without-capistrano/140807 "2008-06-18T20:45:10Z")

</div>

Hi All, Silly question here, but what is the quickest route for setting up a simple rails app with load balancing without Capistrano? My current server “rails.conf” file looks like this: NameVirtualHost \*:80 Setup…

---

## [Adding a array up?](https://www.ruby-forum.com/t/adding-a-array-up/140735)

<div class="topic-metadata">

**Author:** [@GabrielG1976](https://www.ruby-forum.com/u/GabrielG1976)\
**Replies:** 11\
**Last updated:** [June 18, 2008, 8:41pm UTC](https://www.ruby-forum.com/t/adding-a-array-up/140735 "2008-06-18T20:41:02Z")

</div>

hello I have a question about the elements of a array up say i have array x=\[1,2,3,4,5\] and i want to add all the numbers up so the output would be 15 what would be the easiest way of doing this ? thanks for the help …

---

## [Replace\_html and page.select behaviour](https://www.ruby-forum.com/t/replace-html-and-page-select-behaviour/140805)

<div class="topic-metadata">

**Author:** [@hildegunst](https://www.ruby-forum.com/u/hildegunst)\
**Replies:** 3\
**Last updated:** [June 18, 2008, 8:08pm UTC](https://www.ruby-forum.com/t/replace-html-and-page-select-behaviour/140805 "2008-06-18T20:08:53Z")

</div>

Hi, I want to update a div element selected using its class. This is the code I tried in the RJS: page.replace\_html page.select(’#account div.content’).first, :partial =\> ‘my\_html’ and also page.select(’#account di…

---

## [Working with Selenium](https://www.ruby-forum.com/t/working-with-selenium/140806)

<div class="topic-metadata">

**Author:** [@Elizabeth\_B](https://www.ruby-forum.com/u/Elizabeth_B)\
**Replies:** 1\
**Last updated:** [June 18, 2008, 7:46pm UTC](https://www.ruby-forum.com/t/working-with-selenium/140806 "2008-06-18T19:46:13Z")

</div>

I’ve posted about RoR learning (http://www.yoyobrain.com/cardboxes/ preview/863), but we now have some Selenium stuff up too if that’s helpful to anyone: Selenium - UI Testing for JavaScript.... FYI: We built YoYoBrai…

---

## [Why this Action Pack test case failed with JRuby 1.0.3?](https://www.ruby-forum.com/t/why-this-action-pack-test-case-failed-with-jruby-1-0-3/140804)

<div class="topic-metadata">

**Author:** [@Song\_Ma](https://www.ruby-forum.com/u/Song_Ma)\
**Replies:** 0\
**Last updated:** [June 18, 2008, 7:18pm UTC](https://www.ruby-forum.com/t/why-this-action-pack-test-case-failed-with-jruby-1-0-3/140804 "2008-06-18T19:18:51Z")

</div>

Hi, I was running the test cases from Rails 1.2.6 Action Pack. The full text of test is here. There is one case like this: def test\_process\_with\_session\_arg process :no\_op, nil, { ‘string’ =\> ‘value1’, :symbol =\> ‘va…

---

## [Rails 2 to 2.1](https://www.ruby-forum.com/t/rails-2-to-2-1/140686)

<div class="topic-metadata">

**Author:** [@flaubert](https://www.ruby-forum.com/u/flaubert)\
**Replies:** 10\
**Last updated:** [June 18, 2008, 7:17pm UTC](https://www.ruby-forum.com/t/rails-2-to-2-1/140686 "2008-06-18T19:17:40Z")

</div>

Hello, I am lonking for some text that explain this for me. What should I modify to upgrade my 2.0 apps to 2.1? Is it recommended? please help!

---

## [Date format on text\_field when editing](https://www.ruby-forum.com/t/date-format-on-text-field-when-editing/140788)

<div class="topic-metadata">

**Author:** [@flaubert](https://www.ruby-forum.com/u/flaubert)\
**Replies:** 1\
**Last updated:** [June 18, 2008, 6:06pm UTC](https://www.ruby-forum.com/t/date-format-on-text-field-when-editing/140788 "2008-06-18T18:06:25Z")

</div>

Hello all, for weeks I have been looking for any code that can help me with this. I type the date in a text\_field in the Brazilian format “dd/mm/yyyy”. Ok, everything works well, the data is stored in the table, great…

---

## [Clear search box the first time it's selected](https://www.ruby-forum.com/t/clear-search-box-the-first-time-its-selected/140795)

<div class="topic-metadata">

**Author:** [@dino\_d](https://www.ruby-forum.com/u/dino_d)\
**Replies:** 4\
**Last updated:** [June 18, 2008, 5:36pm UTC](https://www.ruby-forum.com/t/clear-search-box-the-first-time-its-selected/140795 "2008-06-18T17:36:40Z")

</div>

Hi - I’m trying to implement a search box that has a pre-filled message “enter search text.” The first time it’s selected, I’d like it to clear out, but after that, I’d like it to remain. I imagine lots of people ha…

---

## [Has\_many and belong\_to association not working](https://www.ruby-forum.com/t/has-many-and-belong-to-association-not-working/140281)

<div class="topic-metadata">

**Author:** [@THEBIGO](https://www.ruby-forum.com/u/THEBIGO)\
**Replies:** 23\
**Last updated:** [June 18, 2008, 5:30pm UTC](https://www.ruby-forum.com/t/has-many-and-belong-to-association-not-working/140281 "2008-06-18T17:30:08Z")

</div>

I have two models. call.rb which has\_many :visits and visit.rb which belongs\_to :call. After populating call from the form which then shows all the parameters including the call.id I then make a visit corresponding …

---

## [Check\_box\_tag with instance variable](https://www.ruby-forum.com/t/check-box-tag-with-instance-variable/140790)

<div class="topic-metadata">

**Author:** [@purab](https://www.ruby-forum.com/u/purab)\
**Replies:** 2\
**Last updated:** [June 18, 2008, 4:21pm UTC](https://www.ruby-forum.com/t/check-box-tag-with-instance-variable/140790 "2008-06-18T16:21:42Z")

</div>

hi, i am trying to use one check\_box with instance variable and trying to get true or false value from database table. and also please give me solution for multiple check\_box and select all how to feed and retrieve v…

---

## [Problems with Ferret and acts\_as\_ferret](https://www.ruby-forum.com/t/problems-with-ferret-and-acts-as-ferret/140771)

<div class="topic-metadata">

**Author:** [@adam](https://www.ruby-forum.com/u/adam)\
**Replies:** 4\
**Last updated:** [June 18, 2008, 4:07pm UTC](https://www.ruby-forum.com/t/problems-with-ferret-and-acts-as-ferret/140771 "2008-06-18T16:07:27Z")

</div>

Hi all, I’m trying to set up Ferret with the acts\_as\_ferret plugin and have run into some problems. I’m using a very basic setup as recommended by all the tutorials: install the ferret gem and acts\_as\_ferret plugin, …

---

## [Optimal workflow for doing bdd with rspec specs and story frameworks](https://www.ruby-forum.com/t/optimal-workflow-for-doing-bdd-with-rspec-specs-and-story-frameworks/140501)

<div class="topic-metadata">

**Author:** [@mhfs](https://www.ruby-forum.com/u/mhfs)\
**Replies:** 10\
**Last updated:** [June 18, 2008, 4:06pm UTC](https://www.ruby-forum.com/t/optimal-workflow-for-doing-bdd-with-rspec-specs-and-story-frameworks/140501 "2008-06-18T16:06:51Z")

</div>

Hello list, I’m just starting with rspec specs framework and the rspec stories framework. I got the basics already with the peepcode screecasts, but I’m still confused on how I could implement an optimal workflow: wr…

---

## [Update div using render:update](https://www.ruby-forum.com/t/update-div-using-render-update/140752)

<div class="topic-metadata">

**Author:** [@supriyaiiita](https://www.ruby-forum.com/u/supriyaiiita)\
**Replies:** 6\
**Last updated:** [June 18, 2008, 3:30pm UTC](https://www.ruby-forum.com/t/update-div-using-render-update/140752 "2008-06-18T15:30:20Z")

</div>

Hi! I am trying to show devices in my database in a table format and in each column corresponding to one device im trying to give a ping link which will ping the device and update the result of ping just below the pi…

---

## [Best Way of Extracting Key Value from File](https://www.ruby-forum.com/t/best-way-of-extracting-key-value-from-file/140786)

<div class="topic-metadata">

**Author:** [@ror\_arch](https://www.ruby-forum.com/u/ror_arch)\
**Replies:** 3\
**Last updated:** [June 18, 2008, 3:30pm UTC](https://www.ruby-forum.com/t/best-way-of-extracting-key-value-from-file/140786 "2008-06-18T15:30:07Z")

</div>

What is the best way of extracting a key value pair from a file. For example I have an email text file which goes like so : – Return-Path: removed\_email\_address@domain.invalid Delivered-To: removed\_email\_address@doma…

---

## [Help with error - uninitialized constant AuthenticatedSystem::Base64](https://www.ruby-forum.com/t/help-with-error-uninitialized-constant-authenticatedsystem-base64/140730)

<div class="topic-metadata">

**Author:** [@haries](https://www.ruby-forum.com/u/haries)\
**Replies:** 3\
**Last updated:** [June 18, 2008, 3:19pm UTC](https://www.ruby-forum.com/t/help-with-error-uninitialized-constant-authenticatedsystem-base64/140730 "2008-06-18T15:19:06Z")

</div>

I am using restful\_Authentication plugin combined with the built-in http\_basic authentication Rails 2.0.2 The following code in my controller seemed to work fine, before\_filter :authenticate def authenticate cas…

---

## [Custom resources](https://www.ruby-forum.com/t/custom-resources/140606)

<div class="topic-metadata">

**Author:** [@DarkTatka](https://www.ruby-forum.com/u/DarkTatka)\
**Replies:** 2\
**Last updated:** [June 18, 2008, 2:33pm UTC](https://www.ruby-forum.com/t/custom-resources/140606 "2008-06-18T14:33:18Z")

</div>

Hi, i’m curently designing an app which requires lots (and lots) of named routes. I want it RESTful, but with paths not named after controller. Example of what I need: for controller User generate. user\_path, user\_u…

---

## [How to use Chars in classes not derived from AR](https://www.ruby-forum.com/t/how-to-use-chars-in-classes-not-derived-from-ar/140767)

<div class="topic-metadata">

**Author:** [@davidstokar](https://www.ruby-forum.com/u/davidstokar)\
**Replies:** 4\
**Last updated:** [June 18, 2008, 1:49pm UTC](https://www.ruby-forum.com/t/how-to-use-chars-in-classes-not-derived-from-ar/140767 "2008-06-18T13:49:02Z")

</div>

Hi! I have a class that derives from nothing and is located in /models. I’m using " my string ".chars to manipulate strings that potentially contain special chars and replace them with an US-ASCII equivalent. It did …

---

## [Modeling help needed](https://www.ruby-forum.com/t/modeling-help-needed/140700)

<div class="topic-metadata">

**Author:** [@jc71229](https://www.ruby-forum.com/u/jc71229)\
**Replies:** 3\
**Last updated:** [June 18, 2008, 1:46pm UTC](https://www.ruby-forum.com/t/modeling-help-needed/140700 "2008-06-18T13:46:30Z")

</div>

Hi, I have a modeling problem I can’t figure out yet. Say I have an club of members and every member can have favorite other members. class Member \< ActiveRecord::Base has\_many :favorites end class Favorite \< Acti…

---

## [Install rmagick on vista](https://www.ruby-forum.com/t/install-rmagick-on-vista/140525)

<div class="topic-metadata">

**Author:** [@Tarscher](https://www.ruby-forum.com/u/Tarscher)\
**Replies:** 1\
**Last updated:** [June 18, 2008, 1:38pm UTC](https://www.ruby-forum.com/t/install-rmagick-on-vista/140525 "2008-06-18T13:38:38Z")

</div>

Hi all, I tried to install rmagick on Vista but get 126: The specified module could not be found. - D:/InstantRails/ruby/ lib/ruby/gems/1.8/gems/rmagick-2.5.0-x86-mswin32/ext/RMagick2.so Thuogh Rmagick is localted …

---

## [ActiveRecord: using a YAML file instead of a DB table](https://www.ruby-forum.com/t/activerecord-using-a-yaml-file-instead-of-a-db-table/140749)

<div class="topic-metadata">

**Author:** [@pond](https://www.ruby-forum.com/u/pond)\
**Replies:** 1\
**Last updated:** [June 18, 2008, 1:28pm UTC](https://www.ruby-forum.com/t/activerecord-using-a-yaml-file-instead-of-a-db-table/140749 "2008-06-18T13:28:34Z")

</div>

So, this may sound kind of “whacky”, but I’m trying to figure out a way to populate an ActiveRecord object using YAML instead of a DB table. I’m not even sure if this is actually feasible, but it sounds like a good wa…

---

## [Don't use the layouts/application.html.erb](https://www.ruby-forum.com/t/dont-use-the-layouts-application-html-erb/140762)

<div class="topic-metadata">

**Author:** [@eddy\_b](https://www.ruby-forum.com/u/eddy_b)\
**Replies:** 4\
**Last updated:** [June 18, 2008, 12:53pm UTC](https://www.ruby-forum.com/t/dont-use-the-layouts-application-html-erb/140762 "2008-06-18T12:53:36Z")

</div>

Hi, is it possible to disable the layouts/application.html.erb in some view. For example if I have a login for my backend which don’t need the standard layout. Regards, Eddy

---

## [SslRequirement on Rails 2.0](https://www.ruby-forum.com/t/sslrequirement-on-rails-2-0/140736)

<div class="topic-metadata">

**Author:** [@adrianunderwater](https://www.ruby-forum.com/u/adrianunderwater)\
**Replies:** 1\
**Last updated:** [June 18, 2008, 11:56am UTC](https://www.ruby-forum.com/t/sslrequirement-on-rails-2-0/140736 "2008-06-18T11:56:10Z")

</div>

Hi All, I’m fairly new to RoR and I’m having trouble using the plugin SslRequirement. I have an ApplicationController which includes the SslRequirement as so: class ApplicationController \< ActionController::Base inc…

---

## [Passing multiple parameter through observe\_field](https://www.ruby-forum.com/t/passing-multiple-parameter-through-observe-field/140765)

<div class="topic-metadata">

**Author:** [@supriyaiiita](https://www.ruby-forum.com/u/supriyaiiita)\
**Replies:** 3\
**Last updated:** [June 18, 2008, 11:52am UTC](https://www.ruby-forum.com/t/passing-multiple-parameter-through-observe-field/140765 "2008-06-18T11:52:22Z")

</div>

Hi! Im trying to search through multiple parameters through observe\_field. Following is my code.: its not showing any result, kindly help… Filter on Device Name : Filter on platform : \<%= image\_tag(“spinner.g…

---

## [Date\_select and selected options](https://www.ruby-forum.com/t/date-select-and-selected-options/140761)

<div class="topic-metadata">

**Author:** [@acgreen](https://www.ruby-forum.com/u/acgreen)\
**Replies:** 0\
**Last updated:** [June 18, 2008, 11:27am UTC](https://www.ruby-forum.com/t/date-select-and-selected-options/140761 "2008-06-18T11:27:57Z")

</div>

I can accept the dob date from the \_form partial and insert into the DB. But when I want to display the date as selected in the \_form partial, I’m hitting a wall. Googling hasn;t helped. \_form.rhtml \<%= date\_select ‘…

---

## [External\_control option of in\_place\_editor\_field](https://www.ruby-forum.com/t/external-control-option-of-in-place-editor-field/140760)

<div class="topic-metadata">

**Author:** [@suneeta](https://www.ruby-forum.com/u/suneeta)\
**Replies:** 0\
**Last updated:** [June 18, 2008, 11:21am UTC](https://www.ruby-forum.com/t/external-control-option-of-in-place-editor-field/140760 "2008-06-18T11:21:37Z")

</div>

Hi… I’m using in\_place\_editor\_field helper in Rails. I did the following in view: Edit \<%= in\_place\_editor\_field :node, :name, {:id =\> @node.id}, {:external\_control =\> ‘edit\_’+node.id.to\_s} %\> The above code is wor…

---

## [In-page popup not supporting DOM structure/properties](https://www.ruby-forum.com/t/in-page-popup-not-supporting-dom-structure-properties/138355)

<div class="topic-metadata">

**Author:** [@adhiraj](https://www.ruby-forum.com/u/adhiraj)\
**Replies:** 4\
**Last updated:** [June 18, 2008, 11:15am UTC](https://www.ruby-forum.com/t/in-page-popup-not-supporting-dom-structure-properties/138355 "2008-06-18T11:15:06Z")

</div>

In my current app, I have an in-page popup(those semi-transparent ones like you find on Facebook) for login, which has only two fields: login and password. I am not able to set focus in the login field. document.getE…

---

## [Symbols are more faster than variables](https://www.ruby-forum.com/t/symbols-are-more-faster-than-variables/140756)

<div class="topic-metadata">

**Author:** [@sunfish](https://www.ruby-forum.com/u/sunfish)\
**Replies:** 1\
**Last updated:** [June 18, 2008, 9:42am UTC](https://www.ruby-forum.com/t/symbols-are-more-faster-than-variables/140756 "2008-06-18T09:42:00Z")

</div>

symbols are more faster than variables why? need explanation

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

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