# Rails

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

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

---

## [Rjs toggle blind effect headache](https://www.ruby-forum.com/t/rjs-toggle-blind-effect-headache/87529)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [March 3, 2007, 2:50pm UTC](https://www.ruby-forum.com/t/rjs-toggle-blind-effect-headache/87529 "2007-03-03T14:50:47Z")

</div>

I am trying to write a little rjs template that toggles a div. Aha: page\[:div\_id\].toggle I hear you cry, and yes it works, but what I am trying to do is the equivalent of: Effect.toggle(‘div\_id’, ‘blind’) Can anybo…

---

## [Routes and link generation](https://www.ruby-forum.com/t/routes-and-link-generation/87020)

<div class="topic-metadata">

**Author:** [@jordelver](https://www.ruby-forum.com/u/jordelver)\
**Replies:** 8\
**Last updated:** [March 3, 2007, 2:47pm UTC](https://www.ruby-forum.com/t/routes-and-link-generation/87020 "2007-03-03T14:47:46Z")

</div>

Hi, I’m setting up some routes for an online shop. I want to the urls to look like: /category/department/product The problem I’m having is how to generate the urls needed. Do I have to specify the category and depa…

---

## [Offline plugin installation](https://www.ruby-forum.com/t/offline-plugin-installation/87530)

<div class="topic-metadata">

**Author:** [@teesea](https://www.ruby-forum.com/u/teesea)\
**Replies:** 0\
**Last updated:** [March 3, 2007, 2:16pm UTC](https://www.ruby-forum.com/t/offline-plugin-installation/87530 "2007-03-03T14:16:45Z")

</div>

I recently tried to install the acts\_as\_taggable\_on\_steroids plugin by downloading the files one by one from http://svn.viney.net.nz/things/rails/plugins/acts\_as\_taggable\_on\_steroids/ using firefox and saving them in …

---

## [Any tools/scripts for nightly build/testing](https://www.ruby-forum.com/t/any-tools-scripts-for-nightly-build-testing/87396)

<div class="topic-metadata">

**Author:** [@crax](https://www.ruby-forum.com/u/crax)\
**Replies:** 2\
**Last updated:** [March 3, 2007, 2:01pm UTC](https://www.ruby-forum.com/t/any-tools-scripts-for-nightly-build-testing/87396 "2007-03-03T14:01:43Z")

</div>

Hi all, I am finding a tool/script that can help to do nightly building or testing. Is there any existing one or some advises from you, thanks. If there is no such tool/script, i will write one and share it. crax

---

## [Acts\_as\_versioned and migrations](https://www.ruby-forum.com/t/acts-as-versioned-and-migrations/87525)

<div class="topic-metadata">

**Author:** [@Claudio\_PSSSSSSS](https://www.ruby-forum.com/u/Claudio_PSSSSSSS)\
**Replies:** 0\
**Last updated:** [March 3, 2007, 12:55pm UTC](https://www.ruby-forum.com/t/acts-as-versioned-and-migrations/87525 "2007-03-03T12:55:38Z")

</div>

does anybody knows why this error happens? you can see a better formattation here: Parked at Loopia thanks. #model Acts acts\_as\_versioned :version\_column =\> :version do def self.included(base) base.belongs\_to :cat…

---

## [Best practices: form fails, now what](https://www.ruby-forum.com/t/best-practices-form-fails-now-what/87517)

<div class="topic-metadata">

**Author:** [@Faisal\_N\_Jawdat](https://www.ruby-forum.com/u/Faisal_N_Jawdat)\
**Replies:** 1\
**Last updated:** [March 3, 2007, 12:09pm UTC](https://www.ruby-forum.com/t/best-practices-form-fails-now-what/87517 "2007-03-03T12:09:32Z")

</div>

Situation: A user submits a form. The inputs are in some way invalid. You present the original form. Question: How do you present the original form as the user had it filled out (so they can correct it) rather tha…

---

## [Need help with approach for application backend](https://www.ruby-forum.com/t/need-help-with-approach-for-application-backend/87523)

<div class="topic-metadata">

**Author:** [@ogurec](https://www.ruby-forum.com/u/ogurec)\
**Replies:** 0\
**Last updated:** [March 3, 2007, 11:41am UTC](https://www.ruby-forum.com/t/need-help-with-approach-for-application-backend/87523 "2007-03-03T11:41:30Z")

</div>

Hi! At this time i work with backend for my application. In the backend i will provide for user the ability to create and edit documents which contains images. According to this goal i think about what is a good wa…

---

## [\[ANN\] Vim/Ruby Configuration Files, 2007.03.02](https://www.ruby-forum.com/t/ann-vim-ruby-configuration-files-2007-03-02/87520)

<div class="topic-metadata">

**Author:** [@Doug\_K](https://www.ruby-forum.com/u/Doug_K)\
**Replies:** 0\
**Last updated:** [March 3, 2007, 10:05am UTC](https://www.ruby-forum.com/t/ann-vim-ruby-configuration-files-2007-03-02/87520 "2007-03-03T10:05:24Z")

</div>

G’day folks, A new release of Vim/Ruby has just been uploaded to RubyForge. Tim Pope has taken over maintenance of the eRuby indent file and added support for indenting the Ruby code in these files (in addition to the …

---

## [Resources and uncountable names](https://www.ruby-forum.com/t/resources-and-uncountable-names/87515)

<div class="topic-metadata">

**Author:** [@maurocicio](https://www.ruby-forum.com/u/maurocicio)\
**Replies:** 0\
**Last updated:** [March 3, 2007, 9:18am UTC](https://www.ruby-forum.com/t/resources-and-uncountable-names/87515 "2007-03-03T09:18:53Z")

</div>

It seems that the single resource has introduced an issue of with uncountable names, like ‘fish’. Does anybody know more about that? The experiment is very simple: Just try: ./script/generate scaffold\_resource fish …

---

## [Executing PHP and ERB one after the other or How I tried to](https://www.ruby-forum.com/t/executing-php-and-erb-one-after-the-other-or-how-i-tried-to/87516)

<div class="topic-metadata">

**Author:** [@brendon](https://www.ruby-forum.com/u/brendon)\
**Replies:** 0\
**Last updated:** [March 3, 2007, 9:04am UTC](https://www.ruby-forum.com/t/executing-php-and-erb-one-after-the-other-or-how-i-tried-to/87516 "2007-03-03T09:04:21Z")

</div>

I’m having fun and games trying to integrate KTML (a PHP based in- browser HTML editor) with my Rail application (a CMS). Here’s how I’ve managed to make most of it work so far: I have my Rails ERB view that construct…

---

## [Trying to understand something about instance variables](https://www.ruby-forum.com/t/trying-to-understand-something-about-instance-variables/87483)

<div class="topic-metadata">

**Author:** [@Kristen](https://www.ruby-forum.com/u/Kristen)\
**Replies:** 6\
**Last updated:** [March 3, 2007, 8:07am UTC](https://www.ruby-forum.com/t/trying-to-understand-something-about-instance-variables/87483 "2007-03-03T08:07:19Z")

</div>

My question is based on the following code from the agile book: File: depot\_f/app/controllers/store\_controller.rb private def find\_cart session\[:cart\] ||= Cart.new File: depot\_f/app/models/cart.rb class Cart Ö’att…

---

## [Why the record is updated?](https://www.ruby-forum.com/t/why-the-record-is-updated/87514)

<div class="topic-metadata">

**Author:** [@threeeyedfish](https://www.ruby-forum.com/u/threeeyedfish)\
**Replies:** 0\
**Last updated:** [March 3, 2007, 8:03am UTC](https://www.ruby-forum.com/t/why-the-record-is-updated/87514 "2007-03-03T08:03:18Z")

</div>

Hi, all! I have the following problem: Suppose I have a post that has and belongs to many tags. If I do e.g. my\_post.title = “New title” I still need to do my\_post.save to write changes to the database But if I d…

---

## [RJS to refresh partial not working](https://www.ruby-forum.com/t/rjs-to-refresh-partial-not-working/87507)

<div class="topic-metadata">

**Author:** [@wcheung](https://www.ruby-forum.com/u/wcheung)\
**Replies:** 4\
**Last updated:** [March 3, 2007, 7:59am UTC](https://www.ruby-forum.com/t/rjs-to-refresh-partial-not-working/87507 "2007-03-03T07:59:18Z")

</div>

Hi, I have the following: \_list\_user.rhtml \<% for column in User.content\_columns %\> \<%= column.human\_name %\> \<% end %\> \<% for user in @users %\> \<% for column in user.content\_columns %\> \<%=h u…

---

## [Multiple objects of the same type with one form - REST](https://www.ruby-forum.com/t/multiple-objects-of-the-same-type-with-one-form-rest/87438)

<div class="topic-metadata">

**Author:** [@jko170](https://www.ruby-forum.com/u/jko170)\
**Replies:** 5\
**Last updated:** [March 3, 2007, 7:22am UTC](https://www.ruby-forum.com/t/multiple-objects-of-the-same-type-with-one-form-rest/87438 "2007-03-03T07:22:16Z")

</div>

I’ve looked at all the tutorials on how to create multiple objects of the same type with one form. However, I cannot get it to work with my REST app. This is what I have tried: ----- Controller --------- ‘new’ action…

---

## [Trying to retrieve a model from the session that uses acts\_a](https://www.ruby-forum.com/t/trying-to-retrieve-a-model-from-the-session-that-uses-acts-a/87033)

<div class="topic-metadata">

**Author:** [@scott](https://www.ruby-forum.com/u/scott)\
**Replies:** 1\
**Last updated:** [March 3, 2007, 7:19am UTC](https://www.ruby-forum.com/t/trying-to-retrieve-a-model-from-the-session-that-uses-acts-a/87033 "2007-03-03T07:19:16Z")

</div>

I am using acts\_as\_attachement on my Photo model to upload a photo. I have a wizard-like set of pages that the user can step through. Rather than save the photo to the db/filesystem I want to save it to the session un…

---

## [Paginate with :order AND :include?](https://www.ruby-forum.com/t/paginate-with-order-and-include/87502)

<div class="topic-metadata">

**Author:** [@taylorstrait](https://www.ruby-forum.com/u/taylorstrait)\
**Replies:** 2\
**Last updated:** [March 3, 2007, 6:23am UTC](https://www.ruby-forum.com/t/paginate-with-order-and-include/87502 "2007-03-03T06:23:42Z")

</div>

My two goals: display last 10 posts in reverse chronological order link to the author without hitting the database 2n-1 times These work: def list @post\_pages, @posts = paginate :posts, :order =\> “created\_at DESC”, …

---

## [Interpreting a link statement in "Ajax on Rails"](https://www.ruby-forum.com/t/interpreting-a-link-statement-in-ajax-on-rails/87512)

<div class="topic-metadata">

**Author:** [@richard](https://www.ruby-forum.com/u/richard)\
**Replies:** 0\
**Last updated:** [March 3, 2007, 5:48am UTC](https://www.ruby-forum.com/t/interpreting-a-link-statement-in-ajax-on-rails/87512 "2007-03-03T05:48:12Z")

</div>

Hi All, In Chapter 2, the author adds the following line to create a hyperlink in app/views/chapter2/myaction.rhtml: Inline alert() Without the href clause, the text “Inline alert” would be rendered merely as plain …

---

## [NetBeans IDE Ruby/Rails - support for auto-completion](https://www.ruby-forum.com/t/netbeans-ide-ruby-rails-support-for-auto-completion/87508)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 0\
**Last updated:** [March 3, 2007, 5:30am UTC](https://www.ruby-forum.com/t/netbeans-ide-ruby-rails-support-for-auto-completion/87508 "2007-03-03T05:30:11Z")

</div>

Hi all, Thought some people may be interested in the following info / threads I have just come across myself. They are regarding what seemingly is the fast upcoming support for Ruby/Rails within the NetBean’s IDE. I…

---

## [Hiding \<div\> tag thru an action event](https://www.ruby-forum.com/t/hiding-div-tag-thru-an-action-event/87505)

<div class="topic-metadata">

**Author:** [@wcheung](https://www.ruby-forum.com/u/wcheung)\
**Replies:** 0\
**Last updated:** [March 3, 2007, 4:45am UTC](https://www.ruby-forum.com/t/hiding-div-tag-thru-an-action-event/87505 "2007-03-03T04:45:09Z")

</div>

Hi, I’m having a hard time figuring this one out - hopefully somebody can shed some light on this. I have a page with top half consisting a partial of the scaffold list page, and bottom with another partial of a form…

---

## [Url\_for and arrays parameters (diff between 1.1.6 and 1.2.2)](https://www.ruby-forum.com/t/url-for-and-arrays-parameters-diff-between-1-1-6-and-1-2-2/87504)

<div class="topic-metadata">

**Author:** [@andrew](https://www.ruby-forum.com/u/andrew)\
**Replies:** 0\
**Last updated:** [March 3, 2007, 4:24am UTC](https://www.ruby-forum.com/t/url-for-and-arrays-parameters-diff-between-1-1-6-and-1-2-2/87504 "2007-03-03T04:24:44Z")

</div>

Hello, I apologize in advance if this has been brought up before, but I tried searching the previous convos for this and didn’t come up with anything. I’m wondering if I’m experiencing a bug or expected behavior in th…

---

## [Looking for ideas or a template to create a new application](https://www.ruby-forum.com/t/looking-for-ideas-or-a-template-to-create-a-new-application/87359)

<div class="topic-metadata">

**Author:** [@jsn1](https://www.ruby-forum.com/u/jsn1)\
**Replies:** 2\
**Last updated:** [March 3, 2007, 4:02am UTC](https://www.ruby-forum.com/t/looking-for-ideas-or-a-template-to-create-a-new-application/87359 "2007-03-03T04:02:03Z")

</div>

Hello everyone, I had a request from an accountant to build a web site to present his different activities, for example assistance to fill IRS taxes, assitance creating a company, etc I would like to know if there is…

---

## [Apache 2.2.4 + Mongrel 1.0.1, Random Hanging](https://www.ruby-forum.com/t/apache-2-2-4-mongrel-1-0-1-random-hanging/87339)

<div class="topic-metadata">

**Author:** [@dmarkow](https://www.ruby-forum.com/u/dmarkow)\
**Replies:** 1\
**Last updated:** [March 2, 2007, 11:48pm UTC](https://www.ruby-forum.com/t/apache-2-2-4-mongrel-1-0-1-random-hanging/87339 "2007-03-02T23:48:48Z")

</div>

I have an apache 2.2.4 server proxying requests to 5 backend mongrels, 8001-8005. (It’s an ubuntu 6.10 server). Some of the users are having sporadic problems with the site simply not responding, and eventually timing…

---

## [Documentation for Writing Helpers?](https://www.ruby-forum.com/t/documentation-for-writing-helpers/87486)

<div class="topic-metadata">

**Author:** [@plambert](https://www.ruby-forum.com/u/plambert)\
**Replies:** 3\
**Last updated:** [March 2, 2007, 11:40pm UTC](https://www.ruby-forum.com/t/documentation-for-writing-helpers/87486 "2007-03-02T23:40:46Z")

</div>

Is there documentation somewhere for how to write a helper? I understand that I’m supposed to define a method in the \*\_helper.rb method associated with my view, but I’m not sure how to output stuff to the page. (I t…

---

## [Where's the list of valid attributes / methods for column ob](https://www.ruby-forum.com/t/wheres-the-list-of-valid-attributes-methods-for-column-ob/87390)

<div class="topic-metadata">

**Author:** [@wpwood](https://www.ruby-forum.com/u/wpwood)\
**Replies:** 2\
**Last updated:** [March 2, 2007, 10:26pm UTC](https://www.ruby-forum.com/t/wheres-the-list-of-valid-attributes-methods-for-column-ob/87390 "2007-03-02T22:26:37Z")

</div>

I’m trying to figure out what the valid attributes are on a column object. The Rails scaffolding generates a list view that uses column.column\_name for example. ActiveRecord::Base#columns says it returns “an array of…

---

## [How do you change the currency to pounds or euros](https://www.ruby-forum.com/t/how-do-you-change-the-currency-to-pounds-or-euros/87415)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [March 2, 2007, 10:19pm UTC](https://www.ruby-forum.com/t/how-do-you-change-the-currency-to-pounds-or-euros/87415 "2007-03-02T22:19:36Z")

</div>

hi guys great forum for ruby on rails can anyone tell me how to change the currency to anything other than $?

---

## [Generic validation / maxlength off column\[colname\].limit?](https://www.ruby-forum.com/t/generic-validation-maxlength-off-column-colname-limit/87477)

<div class="topic-metadata">

**Author:** [@wpwood](https://www.ruby-forum.com/u/wpwood)\
**Replies:** 3\
**Last updated:** [March 2, 2007, 10:16pm UTC](https://www.ruby-forum.com/t/generic-validation-maxlength-off-column-colname-limit/87477 "2007-03-02T22:16:36Z")

</div>

I’m currently using validates\_length\_of to guard against buffer overruns in the model and using js max\_length in the views to try to “head it off at the pass.” There are two problems with the approach I’m currently u…

---

## [Any advise on exception / error handling approaches/prinicip](https://www.ruby-forum.com/t/any-advise-on-exception-error-handling-approaches-prinicip/87341)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 2\
**Last updated:** [March 2, 2007, 9:37pm UTC](https://www.ruby-forum.com/t/any-advise-on-exception-error-handling-approaches-prinicip/87341 "2007-03-02T21:37:44Z")

</div>

Hi, Can I ask for some advise re what the best practice is for handling exceptions & errors through my rails code from the point of view of how to display them back to the user? Some items I’d love to be covered in…

---

## [Trouble with functional tests](https://www.ruby-forum.com/t/trouble-with-functional-tests/84948)

<div class="topic-metadata">

**Author:** [@jeff](https://www.ruby-forum.com/u/jeff)\
**Replies:** 5\
**Last updated:** [March 2, 2007, 8:24pm UTC](https://www.ruby-forum.com/t/trouble-with-functional-tests/84948 "2007-03-02T20:24:17Z")

</div>

I’m having trouble making my functional tests work. I’m trying to simulate an action performed while a user is logged in, but it only redirects me to the signin page as if no user was logged in. Here’s my functional …

---

## [Looking for PHP frameworks similar to Rails etc](https://www.ruby-forum.com/t/looking-for-php-frameworks-similar-to-rails-etc/87464)

<div class="topic-metadata">

**Author:** [@surfivor](https://www.ruby-forum.com/u/surfivor)\
**Replies:** 2\
**Last updated:** [March 2, 2007, 8:03pm UTC](https://www.ruby-forum.com/t/looking-for-php-frameworks-similar-to-rails-etc/87464 "2007-03-02T20:03:08Z")

</div>

I posted the following on the PHP newsgroup. Someone recommended code igniter in PHP which looks alot like rails kind of so at least there is a small learning curve, but if anyone has any other recommendations, pleas…

---

## [\[solved\] merging controllers and helpers includes?](https://www.ruby-forum.com/t/solved-merging-controllers-and-helpers-includes/87467)

<div class="topic-metadata">

**Author:** [@jshow](https://www.ruby-forum.com/u/jshow)\
**Replies:** 0\
**Last updated:** [March 2, 2007, 7:57pm UTC](https://www.ruby-forum.com/t/solved-merging-controllers-and-helpers-includes/87467 "2007-03-02T19:57:07Z")

</div>

all good now - my fu is still weak but growing! iniit.rb now mixes in the module. Jodi Greetings, I’m enginefying a popular rails forum, and have found it’s necessary to include the engines lib module into the appl…

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

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