# Rails

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

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

---

## [Render multiple tags using helper method](https://www.ruby-forum.com/t/render-multiple-tags-using-helper-method/131610)

<div class="topic-metadata">

**Author:** [@tommy](https://www.ruby-forum.com/u/tommy)\
**Replies:** 0\
**Last updated:** [March 11, 2008, 10:01pm UTC](https://www.ruby-forum.com/t/render-multiple-tags-using-helper-method/131610 "2008-03-11T22:01:59Z")

</div>

I want to generate a few tags wrapped with a single helper method. For example, I want to generate 5 text\_fields by calling a helper method. Can I do that? As far as I know, you can only render once in the helper meth…

---

## [Edge Rails and ActionMailer problem (Bad file descriptor)](https://www.ruby-forum.com/t/edge-rails-and-actionmailer-problem-bad-file-descriptor/111484)

<div class="topic-metadata">

**Author:** [@ss\_1982](https://www.ruby-forum.com/u/ss_1982)\
**Replies:** 1\
**Last updated:** [March 11, 2008, 9:57pm UTC](https://www.ruby-forum.com/t/edge-rails-and-actionmailer-problem-bad-file-descriptor/111484 "2008-03-11T21:57:52Z")

</div>

Hi, I have just updated my rails app to use edge rails, however whenever I attempt to send an email using action mailer, I gain the following error, any suggestions t whats going wrong? Bad file descriptor - connect(…

---

## [Form Not Displaying Errors](https://www.ruby-forum.com/t/form-not-displaying-errors/225996)

<div class="topic-metadata">

**Author:** [@keaja](https://www.ruby-forum.com/u/keaja)\
**Replies:** 0\
**Last updated:** [March 11, 2008, 9:45pm UTC](https://www.ruby-forum.com/t/form-not-displaying-errors/225996 "2008-03-11T21:45:18Z")

</div>

Not sure why but my form is not displaying errors. One of the first parts of my method is to check for errors and display them before processing the credit card. It just skips that part regardless of errors or not and…

---

## [\[OT\] HTTP headers status diagram](https://www.ruby-forum.com/t/ot-http-headers-status-diagram/197160)

<div class="topic-metadata">

**Author:** [@Petite\_A](https://www.ruby-forum.com/u/Petite_A)\
**Replies:** 0\
**Last updated:** [March 11, 2008, 9:40pm UTC](https://www.ruby-forum.com/t/ot-http-headers-status-diagram/197160 "2008-03-11T21:40:00Z")

</div>

To paraphrase Woody Allen: “Everything you always wanted to know about HTTP headers status, but were afraid to ask” Alternatively: “An activity diagram to describe the resolution of HTTP response status codes, given…

---

## [Mac OS X or Windows?](https://www.ruby-forum.com/t/mac-os-x-or-windows/131361)

<div class="topic-metadata">

**Author:** [@zok](https://www.ruby-forum.com/u/zok)\
**Replies:** 32\
**Last updated:** [March 11, 2008, 9:38pm UTC](https://www.ruby-forum.com/t/mac-os-x-or-windows/131361 "2008-03-11T21:38:14Z")

</div>

Hey, I know it’s a basic question and I do not want a discussion about which one is the best in general, I only want to know which OS you’d recomment for programing in Rails and to do webdesign. Maybe you can also te…

---

## [Registration question?](https://www.ruby-forum.com/t/registration-question/131605)

<div class="topic-metadata">

**Author:** [@cesherman](https://www.ruby-forum.com/u/cesherman)\
**Replies:** 0\
**Last updated:** [March 11, 2008, 8:51pm UTC](https://www.ruby-forum.com/t/registration-question/131605 "2008-03-11T20:51:59Z")

</div>

I am new to Ruby. I am working on a registration application. Everything is working except I can not figure out how (or if it is even possible) to prevent attendees from registering for concurrent events. If anyone …

---

## [Specify Alternate View](https://www.ruby-forum.com/t/specify-alternate-view/131594)

<div class="topic-metadata">

**Author:** [@Sean\_CSHess](https://www.ruby-forum.com/u/Sean_CSHess)\
**Replies:** 2\
**Last updated:** [March 11, 2008, 8:38pm UTC](https://www.ruby-forum.com/t/specify-alternate-view/131594 "2008-03-11T20:38:56Z")

</div>

This may not be the right way to do this, but I already made a “list” action with a view corresponding to it. Now, I’m trying to make the “search” action, and I want it to use the view I made for list. What is the ri…

---

## [Hartford Ruby Brigade's first meeting: a Tour of Facets](https://www.ruby-forum.com/t/hartford-ruby-brigades-first-meeting-a-tour-of-facets/131601)

<div class="topic-metadata">

**Author:** [@Dan\_Bernier](https://www.ruby-forum.com/u/Dan_Bernier)\
**Replies:** 0\
**Last updated:** [March 11, 2008, 8:35pm UTC](https://www.ruby-forum.com/t/hartford-ruby-brigades-first-meeting-a-tour-of-facets/131601 "2008-03-11T20:35:59Z")

</div>

The Hartford Ruby Brigade is having its first meeting, and we would love for you to attend! The first meeting will have a 45 minute to an hour presentation about the goodness that comes in the Ruby F.s gem. After that…

---

## [Select() based on get parameters](https://www.ruby-forum.com/t/select-based-on-get-parameters/131600)

<div class="topic-metadata">

**Author:** [@Sean\_CSHess](https://www.ruby-forum.com/u/Sean_CSHess)\
**Replies:** 0\
**Last updated:** [March 11, 2008, 8:33pm UTC](https://www.ruby-forum.com/t/select-based-on-get-parameters/131600 "2008-03-11T20:33:35Z")

</div>

I’m still very new to rails, so tell me if I’m approaching this stupidly. I have a box that I want to filter some search results. I already made it so when they change the value, it goes to the url: / game/list/?pl…

---

## [FOR Loop with 2 variables](https://www.ruby-forum.com/t/for-loop-with-2-variables/131570)

<div class="topic-metadata">

**Author:** [@vasan\_cec](https://www.ruby-forum.com/u/vasan_cec)\
**Replies:** 6\
**Last updated:** [March 11, 2008, 8:03pm UTC](https://www.ruby-forum.com/t/for-loop-with-2-variables/131570 "2008-03-11T20:03:13Z")

</div>

Hi Everyone, Can anyone pls tell me how to use 2 variables (objects) in FOR Loop? Normally in most programming languages it will be like, for(i=1,j=1;i\<=5;i++,j++) Whats the equivalent for above statement in Rails? i…

---

## [Alternate Colors for row blocks](https://www.ruby-forum.com/t/alternate-colors-for-row-blocks/131585)

<div class="topic-metadata">

**Author:** [@newrubygirl](https://www.ruby-forum.com/u/newrubygirl)\
**Replies:** 4\
**Last updated:** [March 11, 2008, 7:44pm UTC](https://www.ruby-forum.com/t/alternate-colors-for-row-blocks/131585 "2008-03-11T19:44:41Z")

</div>

Hello. I need to do a twist on the alternate row colors. I looked at cycle(), but that appears to be table row specific. I have a table header. Then I have up to 3 table rows that are grouped together in a loop. I…

---

## [Globalize, partial, cache](https://www.ruby-forum.com/t/globalize-partial-cache/115798)

<div class="topic-metadata">

**Author:** [@demoversion](https://www.ruby-forum.com/u/demoversion)\
**Replies:** 1\
**Last updated:** [March 11, 2008, 7:35pm UTC](https://www.ruby-forum.com/t/globalize-partial-cache/115798 "2008-03-11T19:35:00Z")

</div>

Hello, I have a problem or don’t have :slight\_smile: Please check following if i did right: I have a web pages, that includes partials. Also i used Globalize plugin for translating web-pages. I get a problem with cac…

---

## [Remote\_form\_for does not work with method = :get](https://www.ruby-forum.com/t/remote-form-for-does-not-work-with-method-get/130960)

<div class="topic-metadata">

**Author:** [@sillydude](https://www.ruby-forum.com/u/sillydude)\
**Replies:** 3\
**Last updated:** [March 11, 2008, 7:09pm UTC](https://www.ruby-forum.com/t/remote-form-for-does-not-work-with-method-get/130960 "2008-03-11T19:09:14Z")

</div>

It seems that remote\_form\_for does not work with method = :get since it does not change the prototype call. Is this a bug?

---

## [Form\_for hidden \_method input, wrapped in div?!](https://www.ruby-forum.com/t/form-for-hidden-method-input-wrapped-in-div/125848)

<div class="topic-metadata">

**Author:** [@goodieboy](https://www.ruby-forum.com/u/goodieboy)\
**Replies:** 2\
**Last updated:** [March 11, 2008, 7:04pm UTC](https://www.ruby-forum.com/t/form-for-hidden-method-input-wrapped-in-div/125848 "2008-03-11T19:04:22Z")

</div>

Hi, I’m rendering a form using form\_for, and Rails (2.0.2) is automatically generating the \_method tag for me. Great! But why would the Rails team decide to wrap the thing in a div tag? Here is the output I’m getting…

---

## [Host recommdations](https://www.ruby-forum.com/t/host-recommdations/131541)

<div class="topic-metadata">

**Author:** [@boothy](https://www.ruby-forum.com/u/boothy)\
**Replies:** 4\
**Last updated:** [March 11, 2008, 6:49pm UTC](https://www.ruby-forum.com/t/host-recommdations/131541 "2008-03-11T18:49:36Z")

</div>

Hi I want to host a simple site with Ruby quickly at first no DB - just a site that can run a Hello Ruby script will use a template page Also I am very new to this so help will be need any suggestions for a Ruby H…

---

## ['Unsetting' methods/associations on a model?](https://www.ruby-forum.com/t/unsetting-methods-associations-on-a-model/131175)

<div class="topic-metadata">

**Author:** [@camerony](https://www.ruby-forum.com/u/camerony)\
**Replies:** 1\
**Last updated:** [March 11, 2008, 6:39pm UTC](https://www.ruby-forum.com/t/unsetting-methods-associations-on-a-model/131175 "2008-03-11T18:39:10Z")

</div>

An example of an ActiveRecord model class Product \< ActiveRecord::Base include ProductMethods class which is including a module of methods module ProductMethods def self.included(model) model.belongs\_to :brand en…

---

## [List in order by date](https://www.ruby-forum.com/t/list-in-order-by-date/131577)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 1\
**Last updated:** [March 11, 2008, 6:28pm UTC](https://www.ruby-forum.com/t/list-in-order-by-date/131577 "2008-03-11T18:28:09Z")

</div>

I have these entries in the database that have a date field attached to them and looks something like: March 1, 2008 March 9, 2008 March 10, 2008 When I do a find and get in oder of ASC it arranges the list as follo…

---

## [Shortcut for x = \[x\] unless x.is\_a?(Array)](https://www.ruby-forum.com/t/shortcut-for-x-x-unless-x-is-a-array/131524)

<div class="topic-metadata">

**Author:** [@ericgoodwin](https://www.ruby-forum.com/u/ericgoodwin)\
**Replies:** 11\
**Last updated:** [March 11, 2008, 6:21pm UTC](https://www.ruby-forum.com/t/shortcut-for-x-x-unless-x-is-a-array/131524 "2008-03-11T18:21:14Z")

</div>

Sorry for double posting this on the Ruby section, I realized this is kind of a rails question since it might relate to ActiveSupport. Is there any prettier or cleaner way to write x = \[x\] unless x.is\_a?(Array) I’ve …

---

## [Installing rubygems](https://www.ruby-forum.com/t/installing-rubygems/131571)

<div class="topic-metadata">

**Author:** [@learningruby](https://www.ruby-forum.com/u/learningruby)\
**Replies:** 1\
**Last updated:** [March 11, 2008, 5:48pm UTC](https://www.ruby-forum.com/t/installing-rubygems/131571 "2008-03-11T17:48:51Z")

</div>

Hi all, I have an ubuntu machine on which I installed ruby/rubygems/rails etc using synaptic pkg mngr. Today I tried a local installation of ruby in my “/home/myruby” dir by compiling ruby source code using gc and I …

---

## [\[Off-topic\] RailsConf 2008 ticket](https://www.ruby-forum.com/t/off-topic-railsconf-2008-ticket/131588)

<div class="topic-metadata">

**Author:** [@Ernesto\_JimSSSSnez](https://www.ruby-forum.com/u/Ernesto_JimSSSSnez)\
**Replies:** 0\
**Last updated:** [March 11, 2008, 5:39pm UTC](https://www.ruby-forum.com/t/off-topic-railsconf-2008-ticket/131588 "2008-03-11T17:39:17Z")

</div>

Hello, First of all, sorry for the offtopic. I won a RailsConf 2008 ticket in the past hackfest, but I won’t be able to attend (I’m spanish). I had a friend who was going in my place, but he finally cannot attend eit…

---

## [CMS plugin/gem](https://www.ruby-forum.com/t/cms-plugin-gem/131557)

<div class="topic-metadata">

**Author:** [@ayyanar](https://www.ruby-forum.com/u/ayyanar)\
**Replies:** 2\
**Last updated:** [March 11, 2008, 5:39pm UTC](https://www.ruby-forum.com/t/cms-plugin-gem/131557 "2008-03-11T17:39:17Z")

</div>

Plz suggest the best CMS plugin/gem.

---

## [Types of apps to use Rails for?](https://www.ruby-forum.com/t/types-of-apps-to-use-rails-for/131226)

<div class="topic-metadata">

**Author:** [@sara231](https://www.ruby-forum.com/u/sara231)\
**Replies:** 12\
**Last updated:** [March 11, 2008, 5:35pm UTC](https://www.ruby-forum.com/t/types-of-apps-to-use-rails-for/131226 "2008-03-11T17:35:44Z")

</div>

I am a web developer using PHP and very limited JavaScript. I keep hearing about RoR and am interested in learning it, but before I make the jump I’d like to hear about the types of applications I should be using it …

---

## [How to pass a parameter to a "before\_filter" filter?](https://www.ruby-forum.com/t/how-to-pass-a-parameter-to-a-before-filter-filter/131583)

<div class="topic-metadata">

**Author:** [@fizban](https://www.ruby-forum.com/u/fizban)\
**Replies:** 3\
**Last updated:** [March 11, 2008, 5:23pm UTC](https://www.ruby-forum.com/t/how-to-pass-a-parameter-to-a-before-filter-filter/131583 "2008-03-11T17:23:52Z")

</div>

Hi, I’m very new to rails, so I apologize if my question sounds dumb… I’m setting up an authentication system for this project. In order to login someone has to feed username/password. Since there are several portion…

---

## [Whats wrong with my form? (rails 2.0)](https://www.ruby-forum.com/t/whats-wrong-with-my-form-rails-2-0/131564)

<div class="topic-metadata">

**Author:** [@cldwalker](https://www.ruby-forum.com/u/cldwalker)\
**Replies:** 7\
**Last updated:** [March 11, 2008, 5:05pm UTC](https://www.ruby-forum.com/t/whats-wrong-with-my-form-rails-2-0/131564 "2008-03-11T17:05:35Z")

</div>

Hi everyone, I’m testing the 2.0 rails (after running into some gem problems to upgrade it) and I really don’t know what’s wrong with this form. I tried to keep it as simple as possible (maybe too simple that I forgot …

---

## [You have a nil object when you didn't expect it!](https://www.ruby-forum.com/t/you-have-a-nil-object-when-you-didnt-expect-it/131563)

<div class="topic-metadata">

**Author:** [@megax](https://www.ruby-forum.com/u/megax)\
**Replies:** 2\
**Last updated:** [March 11, 2008, 4:56pm UTC](https://www.ruby-forum.com/t/you-have-a-nil-object-when-you-didnt-expect-it/131563 "2008-03-11T16:56:05Z")

</div>

Im trying to get information from a database and display it on a view, I am using this in the controller: def comment @comments = Rating.find(:all) respond\_to do |format| format.html # show.html.erb format.xml {…

---

## [Probably OT, but CSS Help?](https://www.ruby-forum.com/t/probably-ot-but-css-help/131507)

<div class="topic-metadata">

**Author:** [@sw0rdfish](https://www.ruby-forum.com/u/sw0rdfish)\
**Replies:** 6\
**Last updated:** [March 11, 2008, 4:46pm UTC](https://www.ruby-forum.com/t/probably-ot-but-css-help/131507 "2008-03-11T16:46:25Z")

</div>

Ok I know this is off topic, but since you guys are usualy so helpful, I thought I’d try here first. Building a Rails App and one of the things we’ve done is put a CSS class of; { font-family:“Lucida Grande”,verdan…

---

## [Resources](https://www.ruby-forum.com/t/resources/131546)

<div class="topic-metadata">

**Author:** [@bepickle](https://www.ruby-forum.com/u/bepickle)\
**Replies:** 2\
**Last updated:** [March 11, 2008, 4:35pm UTC](https://www.ruby-forum.com/t/resources/131546 "2008-03-11T16:35:44Z")

</div>

Hi, I’m confused about resources. When should one choose to use the resource/REST approach to a model? For example, for the user model, should I choose to make the user a resource or should I just use the controller …

---

## [Lock Timeout on INSERT?](https://www.ruby-forum.com/t/lock-timeout-on-insert/131579)

<div class="topic-metadata">

**Author:** [@iamdirkcalloway](https://www.ruby-forum.com/u/iamdirkcalloway)\
**Replies:** 0\
**Last updated:** [March 11, 2008, 4:00pm UTC](https://www.ruby-forum.com/t/lock-timeout-on-insert/131579 "2008-03-11T16:00:10Z")

</div>

I’m getting a Lock Timeout on an INSERT in AR 1.15.6 – has anyone seen lock timeouts on INSERTS? I have the following models: I don’t, to my knowledge, have any open transactions in the current thread. I’m running My…

---

## [In place editor and rjs](https://www.ruby-forum.com/t/in-place-editor-and-rjs/131165)

<div class="topic-metadata">

**Author:** [@keeny](https://www.ruby-forum.com/u/keeny)\
**Replies:** 1\
**Last updated:** [March 11, 2008, 3:08pm UTC](https://www.ruby-forum.com/t/in-place-editor-and-rjs/131165 "2008-03-11T15:08:29Z")

</div>

Hi all, I’ve had a read thru similar topics on the list but am still confused… I want an in place editor to call an action that does some rjs, not just return a text string. Normally the action would do something li…

---

## [Get your open source on](https://www.ruby-forum.com/t/get-your-open-source-on/129600)

<div class="topic-metadata">

**Author:** [@sudara](https://www.ruby-forum.com/u/sudara)\
**Replies:** 2\
**Last updated:** [March 11, 2008, 2:49pm UTC](https://www.ruby-forum.com/t/get-your-open-source-on/129600 "2008-03-11T14:49:55Z")

</div>

Interested in diving into an open source project for a good cause? I’m looking for a bit of help from 1 or 2 other interested developers. Experience matters not. Passion and dedication certainly does. Love for indepen…

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

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