# Rails

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

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

---

## [How to visualize mandatory fields](https://www.ruby-forum.com/t/how-to-visualize-mandatory-fields/132046)

<div class="topic-metadata">

**Author:** [@html-kurs](https://www.ruby-forum.com/u/html-kurs)\
**Replies:** 3\
**Last updated:** [March 16, 2008, 3:34pm UTC](https://www.ruby-forum.com/t/how-to-visualize-mandatory-fields/132046 "2008-03-16T15:34:48Z")

</div>

Hi, I’d like to display an input form with some mandatory fields (e.g. with an extra “"). Some fields aren’t mandatory ( so they don’t get the "”). How do I get the information about the field if there’s an “valida…

---

## [Ar\_mailer problem](https://www.ruby-forum.com/t/ar-mailer-problem/132074)

<div class="topic-metadata">

**Author:** [@ankit2584](https://www.ruby-forum.com/u/ankit2584)\
**Replies:** 0\
**Last updated:** [March 16, 2008, 3:23pm UTC](https://www.ruby-forum.com/t/ar-mailer-problem/132074 "2008-03-16T15:23:06Z")

</div>

Hi, I am having the following problem with ar\_mailer. FOr the time being i have manualyy created a record for the email to be sent, in the database in a table named ‘emails’. Now if I run ar\_sendmail i get the follwin…

---

## [Fallback layout mechanism](https://www.ruby-forum.com/t/fallback-layout-mechanism/131940)

<div class="topic-metadata">

**Author:** [@goodwill](https://www.ruby-forum.com/u/goodwill)\
**Replies:** 1\
**Last updated:** [March 16, 2008, 12:08pm UTC](https://www.ruby-forum.com/t/fallback-layout-mechanism/131940 "2008-03-16T12:08:14Z")

</div>

I am doing a multi-lingual website which might have several layout pages (language dependent)available. I want to do a mechanism to fall back from one language to another default language if such layout file is missin…

---

## [Passing an array to a Ruby controller (from AJAX)](https://www.ruby-forum.com/t/passing-an-array-to-a-ruby-controller-from-ajax/132039)

<div class="topic-metadata">

**Author:** [@Backov](https://www.ruby-forum.com/u/Backov)\
**Replies:** 1\
**Last updated:** [March 16, 2008, 12:01pm UTC](https://www.ruby-forum.com/t/passing-an-array-to-a-ruby-controller-from-ajax/132039 "2008-03-16T12:01:12Z")

</div>

I thought I knew how to do this, but it’s not working. I’m passing an array of ids to a ruby controller with an HTTPService call… It’s getting the call but it’s only using the first value. The url is like so (GET for …

---

## [Query realated to date\_select tag](https://www.ruby-forum.com/t/query-realated-to-date-select-tag/132062)

<div class="topic-metadata">

**Author:** [@subhadip](https://www.ruby-forum.com/u/subhadip)\
**Replies:** 1\
**Last updated:** [March 16, 2008, 12:00pm UTC](https://www.ruby-forum.com/t/query-realated-to-date-select-tag/132062 "2008-03-16T12:00:36Z")

</div>

i have two date select tag like:in view \<%= date\_select:date1,:order=\>\[:year,:month,:date\] %\> \<%= date\_select:date2,:order=\>\[:year,:month,:date\] %\> and in controller i write @infos = Info.find(:all, :conditions =\> \[“…

---

## [Spaces in Ruby on Rails and how to avoid them!](https://www.ruby-forum.com/t/spaces-in-ruby-on-rails-and-how-to-avoid-them/132043)

<div class="topic-metadata">

**Author:** [@azamsharp](https://www.ruby-forum.com/u/azamsharp)\
**Replies:** 9\
**Last updated:** [March 16, 2008, 11:38am UTC](https://www.ruby-forum.com/t/spaces-in-ruby-on-rails-and-how-to-avoid-them/132043 "2008-03-16T11:38:07Z")

</div>

Hi, I just started learning ruby on rails and I am having hard time with white spacing! Here is the piece of code that will not work: validates\_format\_of :image\_url, :with =\> %r{.(gif|jpg|png)$}i, :message =\> “mus…

---

## [Negative find : trying to find what is NOT there :-)](https://www.ruby-forum.com/t/negative-find-trying-to-find-what-is-not-there/131996)

<div class="topic-metadata">

**Author:** [@Fredrik\_K](https://www.ruby-forum.com/u/Fredrik_K)\
**Replies:** 11\
**Last updated:** [March 16, 2008, 9:23am UTC](https://www.ruby-forum.com/t/negative-find-trying-to-find-what-is-not-there/131996 "2008-03-16T09:23:26Z")

</div>

Hi, Sorry about the confusing title. I’m feeling a bit frustrated about Ruby now… Ok, I have a membership database appication. For one view, I would like to show all members who has NOT payed for the current term :sl…

---

## [Serialize typed id arrays - howto?](https://www.ruby-forum.com/t/serialize-typed-id-arrays-howto/132058)

<div class="topic-metadata">

**Author:** [@Wladimir\_Mutel](https://www.ruby-forum.com/u/Wladimir_Mutel)\
**Replies:** 3\
**Last updated:** [March 16, 2008, 8:34am UTC](https://www.ruby-forum.com/t/serialize-typed-id-arrays-howto/132058 "2008-03-16T08:34:43Z")

</div>

Hi, Here is a part of type system in my Rails app : daytime : just an integer \>= 0 and \< 86400 dayinterval : a pair of daytimes, where first one is less than last dayschedule : zero or more (non-intersecting) dayinte…

---

## [Custom Actions in Routes.rb](https://www.ruby-forum.com/t/custom-actions-in-routes-rb/186739)

<div class="topic-metadata">

**Author:** [@evan](https://www.ruby-forum.com/u/evan)\
**Replies:** 7\
**Last updated:** [March 16, 2008, 8:18am UTC](https://www.ruby-forum.com/t/custom-actions-in-routes-rb/186739 "2008-03-16T08:18:19Z")

</div>

Hi, on rails 2.0.2 i generate a controller with actions Index and New using: “script/generate controller Recipe Index New” I can now access the actions index/new through /recipe/index or / recipe/new. But if i create…

---

## [Images don't show up from show.html.erb](https://www.ruby-forum.com/t/images-dont-show-up-from-show-html-erb/132051)

<div class="topic-metadata">

**Author:** [@big\_rog](https://www.ruby-forum.com/u/big_rog)\
**Replies:** 5\
**Last updated:** [March 16, 2008, 7:26am UTC](https://www.ruby-forum.com/t/images-dont-show-up-from-show-html-erb/132051 "2008-03-16T07:26:41Z")

</div>

In my app, i’m storing the name of images in the database, and keeping the images in the /images folder. The index.html.erb for my view uses an image tag: \<td\>\<div class="icon"/\>\<img src=\<%=h reagent.icon %\>/\>\</div\>\<…

---

## [\* Please help a RoR Newbie!\*](https://www.ruby-forum.com/t/please-help-a-ror-newbie/132036)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 4\
**Last updated:** [March 16, 2008, 7:22am UTC](https://www.ruby-forum.com/t/please-help-a-ror-newbie/132036 "2008-03-16T07:22:04Z")

</div>

Hi Everyone! I’ve only just started with Ruby so am a touch lost. THis morning i downloaded the quick win (locomotive) and, once i swith that on, I can view the Ruby start page at localhost:3000 My problem is, I’m no…

---

## [Recomendations for a forum plug-in?](https://www.ruby-forum.com/t/recomendations-for-a-forum-plug-in/132060)

<div class="topic-metadata">

**Author:** [@nahabed](https://www.ruby-forum.com/u/nahabed)\
**Replies:** 0\
**Last updated:** [March 16, 2008, 7:20am UTC](https://www.ruby-forum.com/t/recomendations-for-a-forum-plug-in/132060 "2008-03-16T07:20:54Z")

</div>

I’m working on a project that needs to plug-in a forum for users… In researching what to use, I have come across: Beat, R Form, F Form, acts\_as\_threaded. Generally speaking, the requirements are for a package that be …

---

## [Integration Plugin](https://www.ruby-forum.com/t/integration-plugin/131885)

<div class="topic-metadata">

**Author:** [@TapajSSS\_s](https://www.ruby-forum.com/u/TapajSSS_s)\
**Replies:** 1\
**Last updated:** [March 16, 2008, 6:43am UTC](https://www.ruby-forum.com/t/integration-plugin/131885 "2008-03-16T06:43:26Z")

</div>

http://blog.improveit.com.br/articles/2008/03/12/ruby-on-rails-integration-plugin Continuous Integration is a very important practice for us. The problem is that we never liked the way it’s done most of the time, usin…

---

## [Crating a Gem with native code](https://www.ruby-forum.com/t/crating-a-gem-with-native-code/132055)

<div class="topic-metadata">

**Author:** [@elemental](https://www.ruby-forum.com/u/elemental)\
**Replies:** 0\
**Last updated:** [March 16, 2008, 4:13am UTC](https://www.ruby-forum.com/t/crating-a-gem-with-native-code/132055 "2008-03-16T04:13:27Z")

</div>

Hi all, I need to embed the FireFox engine in a pet project of mine I’m working on. I have a couple of questions. Does such a Gem already exist? There’s no point in re-inventing the wheel if it does. If not, wher…

---

## [One view is rendered as plain text instead of HTML after deployment](https://www.ruby-forum.com/t/one-view-is-rendered-as-plain-text-instead-of-html-after-deployment/125945)

<div class="topic-metadata">

**Author:** [@elemental](https://www.ruby-forum.com/u/elemental)\
**Replies:** 2\
**Last updated:** [March 16, 2008, 4:05am UTC](https://www.ruby-forum.com/t/one-view-is-rendered-as-plain-text-instead-of-html-after-deployment/125945 "2008-03-16T04:05:51Z")

</div>

Hi all, I have a very simple rails app I’m working on. Everything works well, except for some reason, my search results page is always rendered in Safari and Firefox as plain text. This only happens once I upload m…

---

## [Nested routes in 2.0.2](https://www.ruby-forum.com/t/nested-routes-in-2-0-2/132045)

<div class="topic-metadata">

**Author:** [@drsharp](https://www.ruby-forum.com/u/drsharp)\
**Replies:** 5\
**Last updated:** [March 16, 2008, 3:20am UTC](https://www.ruby-forum.com/t/nested-routes-in-2-0-2/132045 "2008-03-16T03:20:42Z")

</div>

Hi. I have 3 tables, forum, post and reply. I would like to access replies with the url forums/x/posts/x/replies/x … I have the posts nested within the forums, but if I wanted to add another layer, would I have to d…

---

## [Need suggestions on how to extend collection\_select in form](https://www.ruby-forum.com/t/need-suggestions-on-how-to-extend-collection-select-in-form/132053)

<div class="topic-metadata">

**Author:** [@jawosis](https://www.ruby-forum.com/u/jawosis)\
**Replies:** 1\
**Last updated:** [March 16, 2008, 3:17am UTC](https://www.ruby-forum.com/t/need-suggestions-on-how-to-extend-collection-select-in-form/132053 "2008-03-16T03:17:46Z")

</div>

My goal: Offer the oportunity to extend the given options of a collection\_select with custom text within a form My problem: The collection’s ressource is the same the form data will be saved to, so I cannot update the…

---

## [Mysql encrypt on rails?](https://www.ruby-forum.com/t/mysql-encrypt-on-rails/131970)

<div class="topic-metadata">

**Author:** [@ReK2](https://www.ruby-forum.com/u/ReK2)\
**Replies:** 4\
**Last updated:** [March 16, 2008, 12:54am UTC](https://www.ruby-forum.com/t/mysql-encrypt-on-rails/131970 "2008-03-16T00:54:47Z")

</div>

Hi sorry, I’m a noob and my first language is not English… I just started with ruby/rails 2 weeks a go, and this is the first time I am working with my mysql db. I have a mysql database were I store all the postfix/co…

---

## [Login/Logff Button -- doesn't update](https://www.ruby-forum.com/t/login-logff-button-doesnt-update/132001)

<div class="topic-metadata">

**Author:** [@tbobker](https://www.ruby-forum.com/u/tbobker)\
**Replies:** 9\
**Last updated:** [March 15, 2008, 11:58pm UTC](https://www.ruby-forum.com/t/login-logff-button-doesnt-update/132001 "2008-03-15T23:58:19Z")

</div>

on every page i have a button in the upper right that is either log in or log out. this button is pulled into my application.html.erb file by a partial ( \_TopNav). I have tried a number of different ways to get this …

---

## [Cookie-based session store - can it get you in trouble?](https://www.ruby-forum.com/t/cookie-based-session-store-can-it-get-you-in-trouble/132040)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 3\
**Last updated:** [March 15, 2008, 11:24pm UTC](https://www.ruby-forum.com/t/cookie-based-session-store-can-it-get-you-in-trouble/132040 "2008-03-15T23:24:45Z")

</div>

All, I recently moved to Rails 2.0 on one of my projects, and was surprised and interested to find out that the new session store is client cookie-based. I’m skeptical about DHH’s claim that it will be “zero maintena…

---

## [Best way to backup a rails project on linux?](https://www.ruby-forum.com/t/best-way-to-backup-a-rails-project-on-linux/132030)

<div class="topic-metadata">

**Author:** [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Replies:** 2\
**Last updated:** [March 15, 2008, 7:52pm UTC](https://www.ruby-forum.com/t/best-way-to-backup-a-rails-project-on-linux/132030 "2008-03-15T19:52:27Z")

</div>

I need to set up a back up system to back up my rails projects and databases. What would you recommend for doing this on linux? rsync? Thanks for your help.

---

## [How to enforce ActiveRecord session store with Rails 2.0.2?](https://www.ruby-forum.com/t/how-to-enforce-activerecord-session-store-with-rails-2-0-2/131990)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 7\
**Last updated:** [March 15, 2008, 7:42pm UTC](https://www.ruby-forum.com/t/how-to-enforce-activerecord-session-store-with-rails-2-0-2/131990 "2008-03-15T19:42:23Z")

</div>

All, Rails 2.0.2 SQL Server 2000 database SQL Server AR adapter 1.0 using ODBC Apparently the new default session store is cookie based. I was using the ActiveRecord based session store and would like to continue to…

---

## [Is :dependent -\> :delete\_all gone in Rails 2.0.2?](https://www.ruby-forum.com/t/is-dependent-delete-all-gone-in-rails-2-0-2/131986)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 2\
**Last updated:** [March 15, 2008, 6:19pm UTC](https://www.ruby-forum.com/t/is-dependent-delete-all-gone-in-rails-2-0-2/131986 "2008-03-15T18:19:35Z")

</div>

Rails 2.0.2 DB: SQL Server 2000 using AR adapter/ODBC I seem to be having a problem instantiating any models with :dependent =\> :delete\_all. If I change them to :dependent =\> :delete, they seem to be ok. Is the :de…

---

## [ActiveRecord inner joins](https://www.ruby-forum.com/t/activerecord-inner-joins/132021)

<div class="topic-metadata">

**Author:** [@tbobker](https://www.ruby-forum.com/u/tbobker)\
**Replies:** 4\
**Last updated:** [March 15, 2008, 6:12pm UTC](https://www.ruby-forum.com/t/activerecord-inner-joins/132021 "2008-03-15T18:12:11Z")

</div>

I have these models: User -\> Order -\> Registration \<- Camp So a user has many orders, orders have many registrations and camps have many registrations. I have all the associations written up correctly, but I want to …

---

## [How to use SWFObject](https://www.ruby-forum.com/t/how-to-use-swfobject/132008)

<div class="topic-metadata">

**Author:** [@SS\_SSSSS\_SSSSSSSSSS](https://www.ruby-forum.com/u/SS_SSSSS_SSSSSSSSSS)\
**Replies:** 2\
**Last updated:** [March 15, 2008, 6:04pm UTC](https://www.ruby-forum.com/t/how-to-use-swfobject/132008 "2008-03-15T18:04:53Z")

</div>

SWFObject??sounds it’s a good plugin but how to use it ? anybody know or who did use it before? thanks!!!

---

## [Query depending on between two values](https://www.ruby-forum.com/t/query-depending-on-between-two-values/131953)

<div class="topic-metadata">

**Author:** [@subhadip](https://www.ruby-forum.com/u/subhadip)\
**Replies:** 1\
**Last updated:** [March 15, 2008, 5:49pm UTC](https://www.ruby-forum.com/t/query-depending-on-between-two-values/131953 "2008-03-15T17:49:32Z")

</div>

hey, i am new in ruby…i have two textbox…where i will give two dates.i will fire query for retriving data between two dates given textboxes…pleaes give me any simple code.how will i proceed? urgent… controller code: …

---

## [Really Simple RJS question](https://www.ruby-forum.com/t/really-simple-rjs-question/132032)

<div class="topic-metadata">

**Author:** [@sjglazer](https://www.ruby-forum.com/u/sjglazer)\
**Replies:** 2\
**Last updated:** [March 15, 2008, 5:22pm UTC](https://www.ruby-forum.com/t/really-simple-rjs-question/132032 "2008-03-15T17:22:22Z")

</div>

I have a really simple RJS question. Lets say I have a controller with the action create. I want to handle the action in a rjs template so I have something like… def create respond\_to do |format| … format.js end …

---

## [Random image based verification for new user creation](https://www.ruby-forum.com/t/random-image-based-verification-for-new-user-creation/131947)

<div class="topic-metadata">

**Author:** [@ron](https://www.ruby-forum.com/u/ron)\
**Replies:** 2\
**Last updated:** [March 15, 2008, 4:51pm UTC](https://www.ruby-forum.com/t/random-image-based-verification-for-new-user-creation/131947 "2008-03-15T16:51:16Z")

</div>

Hi all, I’m creating an email list managed by my CMS. I’m wondering if people had any thoughts about securing it? I’m just concerned that my application server might be overwhelmed by requests to add to the list by …

---

## [Ð¡Ð¿Ð¾Ñ€Ñ‚Ð¸Ð²Ð½Ñ‹Ð¹ Ð¾Ð±Ñ€ÑƒÑ‡ Ñ…Ð°Ð»Ð°Ñ…ÑƒÐ¿ (Ð¾Ð±Ñ€ÑƒÑ‡ Ñ… ÑƒÐ»Ð°Ñ…ÑƒÐ¿)](https://www.ruby-forum.com/t/d-d-d-n-n-d-d-d-n-d-d-d-n-n-n-n-d-d-d-n-n-d-d-d-n-n-n-n-n-d-d-n-n-d/132029)

<div class="topic-metadata">

**Author:** [@ShopBody.ru](https://www.ruby-forum.com/u/ShopBody.ru)\
**Replies:** 0\
**Last updated:** [March 15, 2008, 3:57pm UTC](https://www.ruby-forum.com/t/d-d-d-n-n-d-d-d-n-d-d-d-n-n-n-n-d-d-d-n-n-d-d-d-n-n-n-n-n-d-d-n-n-d/132029 "2008-03-15T15:57:06Z")

</div>

åÓÌÉ Õ ×ÁÓ ÎÅÔ ×ÒÅÍÅÎÉ, ÄÌÑ ÔÏÇÏ ÞÔÏÂÙ ÐÏÓÅÝÁÔØ ÔÒÅÎÁÖÅÒÎÙÊ ÚÁÌ, É ÍÅÓÔÁ, ÄÌÑ ÔÏÇÏ ÞÔÏÂÙ ÕÓÔÁÎÏ×ÉÔØ ÔÒÅÎÁÖÅÒÙ ÄÏÍÁ, ÓÂÒÏÓÉÔØ ÌÉÛÎÉÊ ×ÅÓ , ÕÂÒÁÔØ ÖÉ×ÏÔ ×ÓÅ ÒÁ×ÎÏ ÍÏÖÎÏ. ëÁË? ó ÐÏÍÏÝØÀ ÕÐÒÁÖÎÅÎÉÊ ÓÏ ÓÐÏÒÔÉ×ÎÙÍ ÏÂÒÕÞÅÍ È…

---

## [How to send SMTP emails in background](https://www.ruby-forum.com/t/how-to-send-smtp-emails-in-background/131971)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 3\
**Last updated:** [March 15, 2008, 2:49pm UTC](https://www.ruby-forum.com/t/how-to-send-smtp-emails-in-background/131971 "2008-03-15T14:49:04Z")

</div>

My application sends emails with SMTP but I have a problem: It is very slow, so every time my application sends an email it goes very slow. I wonder if there is any kind of mode to do all the SMTP in background. I mea…

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

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