# Rails

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

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

---

## [One app - multiple instances - how to maintain?](https://www.ruby-forum.com/t/one-app-multiple-instances-how-to-maintain/126533)

<div class="topic-metadata">

**Author:** [@goodieboy](https://www.ruby-forum.com/u/goodieboy)\
**Replies:** 0\
**Last updated:** [January 19, 2008, 3:16am UTC](https://www.ruby-forum.com/t/one-app-multiple-instances-how-to-maintain/126533 "2008-01-19T03:16:58Z")

</div>

Hi, I’ve created basic cms/ecommerce application. I’ve got a couple of clients that are going to use it. I’d like to find a way to maintain the same code base in the back end, but customize the front. There are a cou…

---

## [Instance variable won't update using basic Ajax script](https://www.ruby-forum.com/t/instance-variable-wont-update-using-basic-ajax-script/126527)

<div class="topic-metadata">

**Author:** [@jackster](https://www.ruby-forum.com/u/jackster)\
**Replies:** 2\
**Last updated:** [January 19, 2008, 2:38am UTC](https://www.ruby-forum.com/t/instance-variable-wont-update-using-basic-ajax-script/126527 "2008-01-19T02:38:15Z")

</div>

I have been beating my head against the wall on this for days. It seems that I can’t get an instance variable to update using Ajax if it contains an array. If the instance variable contains a singular value, my Ajax u…

---

## [Svn: imported rails app, but when 'co', pub fldr mis files?](https://www.ruby-forum.com/t/svn-imported-rails-app-but-when-co-pub-fldr-mis-files/126529)

<div class="topic-metadata">

**Author:** [@bbqplate](https://www.ruby-forum.com/u/bbqplate)\
**Replies:** 0\
**Last updated:** [January 19, 2008, 2:01am UTC](https://www.ruby-forum.com/t/svn-imported-rails-app-but-when-co-pub-fldr-mis-files/126529 "2008-01-19T02:01:00Z")

</div>

hello, ive imported my app into a repository. however, when i check it out, my public folder is missing files and stylesheets folder. when i do a svn list in the public folder of the checked out app, the stylesheets f…

---

## [Unit Test and RecordNotSaved](https://www.ruby-forum.com/t/unit-test-and-recordnotsaved/126524)

<div class="topic-metadata">

**Author:** [@William\_P](https://www.ruby-forum.com/u/William_P)\
**Replies:** 4\
**Last updated:** [January 19, 2008, 1:44am UTC](https://www.ruby-forum.com/t/unit-test-and-recordnotsaved/126524 "2008-01-19T01:44:00Z")

</div>

I have a Company model that has an after\_create callback that creates default roles, users, etc for the new company. In the development environment, this all works great. In my company unit test however, an ActiveReco…

---

## [Storing encrypted passwords in the database](https://www.ruby-forum.com/t/storing-encrypted-passwords-in-the-database/126402)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 7\
**Last updated:** [January 19, 2008, 1:35am UTC](https://www.ruby-forum.com/t/storing-encrypted-passwords-in-the-database/126402 "2008-01-19T01:35:12Z")

</div>

Hi, I have a password column in my customer table. Right now, the scaffolding saves the passsword in plain text. If I wanted to store the password in an encrypted form, what is the easiest way of doing that? Much …

---

## [Looking for a good ruby book](https://www.ruby-forum.com/t/looking-for-a-good-ruby-book/126525)

<div class="topic-metadata">

**Author:** [@jimmypalmer](https://www.ruby-forum.com/u/jimmypalmer)\
**Replies:** 4\
**Last updated:** [January 19, 2008, 1:31am UTC](https://www.ruby-forum.com/t/looking-for-a-good-ruby-book/126525 "2008-01-19T01:31:07Z")

</div>

I’m pretty solid on the rails framework, but I would like to focus on the actually ruby language. does anyone know of any good ruby books? Preferably for the rails developer?

---

## [Application failed to start](https://www.ruby-forum.com/t/application-failed-to-start/126521)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 1\
**Last updated:** [January 19, 2008, 1:28am UTC](https://www.ruby-forum.com/t/application-failed-to-start/126521 "2008-01-19T01:28:17Z")

</div>

I have this encryption class that lives in the lib folder. I use it to encrypt and decrypt credit card numbers. On my local copy of the app on my machine it runs fine, but on the app that lives on the server I get “Ap…

---

## [Recursive ruby function in rhtml](https://www.ruby-forum.com/t/recursive-ruby-function-in-rhtml/126522)

<div class="topic-metadata">

**Author:** [@ankit2584](https://www.ruby-forum.com/u/ankit2584)\
**Replies:** 1\
**Last updated:** [January 19, 2008, 1:25am UTC](https://www.ruby-forum.com/t/recursive-ruby-function-in-rhtml/126522 "2008-01-19T01:25:16Z")

</div>

Hello, can anybody give me an idea(syntax)about how do i go abt writing a ruby function that is recursive in rhtml file. this function will display text on the screen. Thanks.

---

## [How to do retrieve database records with multiple joins?](https://www.ruby-forum.com/t/how-to-do-retrieve-database-records-with-multiple-joins/126296)

<div class="topic-metadata">

**Author:** [@eggman2001](https://www.ruby-forum.com/u/eggman2001)\
**Replies:** 17\
**Last updated:** [January 19, 2008, 1:18am UTC](https://www.ruby-forum.com/t/how-to-do-retrieve-database-records-with-multiple-joins/126296 "2008-01-19T01:18:50Z")

</div>

I’m not sure if this is a rails question or sql. Anyway… I have three models: book, author, publisher I have has\_and\_belongs\_to\_many relationships between book and author and between book and publisher, so tables: au…

---

## [Leopard upgrade causing problem with ruby install](https://www.ruby-forum.com/t/leopard-upgrade-causing-problem-with-ruby-install/126423)

<div class="topic-metadata">

**Author:** [@bobu\_on\_rails](https://www.ruby-forum.com/u/bobu_on_rails)\
**Replies:** 2\
**Last updated:** [January 19, 2008, 1:12am UTC](https://www.ruby-forum.com/t/leopard-upgrade-causing-problem-with-ruby-install/126423 "2008-01-19T01:12:25Z")

</div>

I installed Ruby by hand using the hive logic page a couple months ago. After i upgraded to leopard I keep getting NSlinkModule() errors. First when i ran ruby script/server and even when i run irb. Has anyone naviga…

---

## [Webistrano on Windows](https://www.ruby-forum.com/t/webistrano-on-windows/126349)

<div class="topic-metadata">

**Author:** [@cskidmore](https://www.ruby-forum.com/u/cskidmore)\
**Replies:** 6\
**Last updated:** [January 18, 2008, 11:39pm UTC](https://www.ruby-forum.com/t/webistrano-on-windows/126349 "2008-01-18T23:39:03Z")

</div>

Greetings. I just read a note on Webistrano’s website about Webistrano not running on Windows. Does anyone know if there’s a patch to get it running? I’d like to use this tool, but I’m using Windows XP for the time …

---

## [OT: Dynamically calculating the height of an HTML document](https://www.ruby-forum.com/t/ot-dynamically-calculating-the-height-of-an-html-document/126391)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 4\
**Last updated:** [January 18, 2008, 11:34pm UTC](https://www.ruby-forum.com/t/ot-dynamically-calculating-the-height-of-an-html-document/126391 "2008-01-18T23:34:58Z")

</div>

Apologies for the off-topicness, this is really a Javascript question, but I figure someone here may know how to do it. I need to dynamically add a “footer” to an already existing HTML page, sight unseen. Currently, …

---

## [Link\_to problem](https://www.ruby-forum.com/t/link-to-problem/126495)

<div class="topic-metadata">

**Author:** [@flnative](https://www.ruby-forum.com/u/flnative)\
**Replies:** 8\
**Last updated:** [January 18, 2008, 10:57pm UTC](https://www.ruby-forum.com/t/link-to-problem/126495 "2008-01-18T22:57:57Z")

</div>

hi @ all I create a new archiv.html.erb and a archiv method in the controller. Now, I would like to link from index.html.erb to archiv.html.erb. I tried to use \<%= link\_to ‘archive’, archiv\_xxx\_path %\> but it doesn’t …

---

## [ODBC to MSSQL - how?](https://www.ruby-forum.com/t/odbc-to-mssql-how/126513)

<div class="topic-metadata">

**Author:** [@sithadmin](https://www.ruby-forum.com/u/sithadmin)\
**Replies:** 0\
**Last updated:** [January 18, 2008, 10:17pm UTC](https://www.ruby-forum.com/t/odbc-to-mssql-how/126513 "2008-01-18T22:17:47Z")

</div>

Hello, I am running an app with InstantRails v1.6 on Windows Server 2003 (IIS6 is turned off, I’m running on Apache w/ MySQL), and I have an ODBC connection setup with “administrative tools \> data sources (ODBC)” to a…

---

## [Manipulating two arrays in ruby way](https://www.ruby-forum.com/t/manipulating-two-arrays-in-ruby-way/126268)

<div class="topic-metadata">

**Author:** [@backz](https://www.ruby-forum.com/u/backz)\
**Replies:** 4\
**Last updated:** [January 18, 2008, 10:11pm UTC](https://www.ruby-forum.com/t/manipulating-two-arrays-in-ruby-way/126268 "2008-01-18T22:11:22Z")

</div>

Hi, I have two arrays: A = \[“a”, “b”, “c”, “d”, …\] B = \[“1”, “2”, “3”, “4”, …\] And I need to create new array C C = \[“a$1”, “b$2”, “c$3”, “d$4”, …\] How so I do this in ruby way? Thanks,

---

## [Delete\_All Comparison](https://www.ruby-forum.com/t/delete-all-comparison/126501)

<div class="topic-metadata">

**Author:** [@sithadmin](https://www.ruby-forum.com/u/sithadmin)\
**Replies:** 2\
**Last updated:** [January 18, 2008, 9:11pm UTC](https://www.ruby-forum.com/t/delete-all-comparison/126501 "2008-01-18T21:11:14Z")

</div>

Hello, I’m trying to delete all rows with an older than current timestamp… However, my code is not working… It looks like this: @currenttime = Time.now Import.delete\_all(\[“created\_at \< ?”, @currentime\]) where create…

---

## [How to implement MooFlow (a fantastic dock bar style) on Rails?](https://www.ruby-forum.com/t/how-to-implement-mooflow-a-fantastic-dock-bar-style-on-rails/126410)

<div class="topic-metadata">

**Author:** [@lz-coelho](https://www.ruby-forum.com/u/lz-coelho)\
**Replies:** 3\
**Last updated:** [January 18, 2008, 8:19pm UTC](https://www.ruby-forum.com/t/how-to-implement-mooflow-a-fantastic-dock-bar-style-on-rails/126410 "2008-01-18T20:19:05Z")

</div>

Hi, How i can implement MooBoox (http://www.outcut.de/MooFlow/) on Rails? I need to port all JavaScript codes to RJS? Thanks for your attention! – Regards, Luiz Vitor Martinez C. Cel.: (11) 8187-8662 Blog: rubz.…

---

## [Ecommerce](https://www.ruby-forum.com/t/ecommerce/126494)

<div class="topic-metadata">

**Author:** [@melvinram](https://www.ruby-forum.com/u/melvinram)\
**Replies:** 2\
**Last updated:** [January 18, 2008, 8:18pm UTC](https://www.ruby-forum.com/t/ecommerce/126494 "2008-01-18T20:18:24Z")

</div>

I’m curious… how people are using rails for an ecommerce application? Just reply with ‘+1’ if you are or have in the past.

---

## [Please someone help with this active record question! its driving me crazy](https://www.ruby-forum.com/t/please-someone-help-with-this-active-record-question-its-driving-me-crazy/196551)

<div class="topic-metadata">

**Author:** [@paradise](https://www.ruby-forum.com/u/paradise)\
**Replies:** 47\
**Last updated:** [January 18, 2008, 7:50pm UTC](https://www.ruby-forum.com/t/please-someone-help-with-this-active-record-question-its-driving-me-crazy/196551 "2008-01-18T19:50:11Z")

</div>

Im having trouble developing the database structure for the following scenario. I have a table that only contains 2 fields for each object. It has a admirer\_id and an admired\_id. There is also a user table. Now al…

---

## [How best to handle non-serializable session data?](https://www.ruby-forum.com/t/how-best-to-handle-non-serializable-session-data/93880)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 1\
**Last updated:** [January 18, 2008, 7:43pm UTC](https://www.ruby-forum.com/t/how-best-to-handle-non-serializable-session-data/93880 "2008-01-18T19:43:19Z")

</div>

I have a piece of data that needs to persist across requests that is not serializable. It’s a Rubyful soup parse tree and it’s very expensive to instantiate and I need it for a while in my app. Therefore, by default,…

---

## [Omitting a line from a CSV during Parse](https://www.ruby-forum.com/t/omitting-a-line-from-a-csv-during-parse/126275)

<div class="topic-metadata">

**Author:** [@sithadmin](https://www.ruby-forum.com/u/sithadmin)\
**Replies:** 2\
**Last updated:** [January 18, 2008, 7:29pm UTC](https://www.ruby-forum.com/t/omitting-a-line-from-a-csv-during-parse/126275 "2008-01-18T19:29:00Z")

</div>

Hello everyone, I am very new to Ruby on Rails, and I am working on a project that involves uploading a CSV and putting it in the database. It works great, but I need to omit the first line of the CSV. My code looks l…

---

## [Where to put constants](https://www.ruby-forum.com/t/where-to-put-constants/126388)

<div class="topic-metadata">

**Author:** [@Pito](https://www.ruby-forum.com/u/Pito)\
**Replies:** 4\
**Last updated:** [January 18, 2008, 7:14pm UTC](https://www.ruby-forum.com/t/where-to-put-constants/126388 "2008-01-18T19:14:46Z")

</div>

I have a column in my database which is a code, kind of a record type. For example, in model Vehicle, I use a 1 for CAR and a 2 for BOAT in the database. I want to have constants accessible so that the mapping to 1 a…

---

## [Stub/mock normal methods](https://www.ruby-forum.com/t/stub-mock-normal-methods/126493)

<div class="topic-metadata">

**Author:** [@karnirevuri](https://www.ruby-forum.com/u/karnirevuri)\
**Replies:** 0\
**Last updated:** [January 18, 2008, 6:52pm UTC](https://www.ruby-forum.com/t/stub-mock-normal-methods/126493 "2008-01-18T18:52:41Z")

</div>

Hi friends I want to stub or/mock the normal mt=ethod in controller Can u give any idea? Example When i was testing the below code using mocks and stubs i m getting error is “Mock ‘errors’ received unexpected messag…

---

## [How to modify the html name attribute of a generated input?](https://www.ruby-forum.com/t/how-to-modify-the-html-name-attribute-of-a-generated-input/126411)

<div class="topic-metadata">

**Author:** [@dracos](https://www.ruby-forum.com/u/dracos)\
**Replies:** 2\
**Last updated:** [January 18, 2008, 6:40pm UTC](https://www.ruby-forum.com/t/how-to-modify-the-html-name-attribute-of-a-generated-input/126411 "2008-01-18T18:40:57Z")

</div>

How can I change the html name attribute of an input? I’ve tried the approach used to change the name of a form object: \<%= text\_field({‘object’, ‘field’}, ‘my\_name’) %\> But it only added to the name attribute instea…

---

## [Semantic Meaning in ActiveRecord Attributes](https://www.ruby-forum.com/t/semantic-meaning-in-activerecord-attributes/126491)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [January 18, 2008, 6:29pm UTC](https://www.ruby-forum.com/t/semantic-meaning-in-activerecord-attributes/126491 "2008-01-18T18:29:57Z")

</div>

Hello, My problem: Attributes in ActiveRecord have no semantic meaning. And the attributes are defined in the db making it difficult to attach semantic meaning in the db level (without making things complicated in t…

---

## [:model went where?](https://www.ruby-forum.com/t/model-went-where/126475)

<div class="topic-metadata">

**Author:** [@MohsinHijazee](https://www.ruby-forum.com/u/MohsinHijazee)\
**Replies:** 1\
**Last updated:** [January 18, 2008, 6:09pm UTC](https://www.ruby-forum.com/t/model-went-where/126475 "2008-01-18T18:09:28Z")

</div>

Hello! There used to be a way called :model for declaring the models to be loaded, but that’s deprecated. Simply removing it works but I am curious how and what has changed in Rails 2.02 about it? Regards, Mohsin

---

## [Validate mac address field](https://www.ruby-forum.com/t/validate-mac-address-field/126471)

<div class="topic-metadata">

**Author:** [@qwerty73](https://www.ruby-forum.com/u/qwerty73)\
**Replies:** 2\
**Last updated:** [January 18, 2008, 5:38pm UTC](https://www.ruby-forum.com/t/validate-mac-address-field/126471 "2008-01-18T17:38:10Z")

</div>

Hi to all, i’d like to insert a validation inside my model about a mac address field. I’ve used this sintax but it’s not working. validates\_format\_of :mac\_address, :with =\> /^((?:\[-a-f0-9\])+(?:\[-a-f0-9\])+(?:\[-a-f0-9…

---

## [Remove row from active record array](https://www.ruby-forum.com/t/remove-row-from-active-record-array/126485)

<div class="topic-metadata">

**Author:** [@hiddenhippo](https://www.ruby-forum.com/u/hiddenhippo)\
**Replies:** 3\
**Last updated:** [January 18, 2008, 5:36pm UTC](https://www.ruby-forum.com/t/remove-row-from-active-record-array/126485 "2008-01-18T17:36:31Z")

</div>

hi, I have the following scenario within my rails code, where @manufacturers is an activerecord object with many cars @manufacturers.each do |manufacturer| manufacturer.cars.each do |car| end end with the above i’…

---

## [Attachment\_fu on Windows?](https://www.ruby-forum.com/t/attachment-fu-on-windows/87524)

<div class="topic-metadata">

**Author:** [@jeff](https://www.ruby-forum.com/u/jeff)\
**Replies:** 22\
**Last updated:** [January 18, 2008, 5:32pm UTC](https://www.ruby-forum.com/t/attachment-fu-on-windows/87524 "2008-01-18T17:32:48Z")

</div>

Has anyone had any success using Rick O.'s “attachment\_fu” plugin while developing on a Windows machine? I’ve been looking for solutions to the issue described here RailsNotes — The Ruby on Rails guides you wished you…

---

## [Announcing: Ext Scaffold Generator Plugin for Rails](https://www.ruby-forum.com/t/announcing-ext-scaffold-generator-plugin-for-rails/126481)

<div class="topic-metadata">

**Author:** [@martinr](https://www.ruby-forum.com/u/martinr)\
**Replies:** 1\
**Last updated:** [January 18, 2008, 5:30pm UTC](https://www.ruby-forum.com/t/announcing-ext-scaffold-generator-plugin-for-rails/126481 "2008-01-18T17:30:36Z")

</div>

The Ext Scaffold Generator Plugin can be viewed as a drop-in replacement for Rails’ standard Resource Generator. Accepting the very same options, it will generate views using data grid and form components from the Ext…

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

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