# Rails

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

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

---

## [Date informations lost](https://www.ruby-forum.com/t/date-informations-lost/148210)

<div class="topic-metadata">

**Author:** [@mrdamien](https://www.ruby-forum.com/u/mrdamien)\
**Replies:** 0\
**Last updated:** [September 10, 2008, 2:06pm UTC](https://www.ruby-forum.com/t/date-informations-lost/148210 "2008-09-10T14:06:56Z")

</div>

Hi all, I am trying to save a DateTime in the database (oracle). The field is “datetime” and the ruby object I am trying to save a DateTime. But once I save the object in the database, it’s only saving the date (day…

---

## [Check if render's HTTP body was transmitted successfully](https://www.ruby-forum.com/t/check-if-renders-http-body-was-transmitted-successfully/148204)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [September 10, 2008, 12:48pm UTC](https://www.ruby-forum.com/t/check-if-renders-http-body-was-transmitted-successfully/148204 "2008-09-10T12:48:18Z")

</div>

Hi there, I want to be sure, that the data I send via render is transmitted fully and successfully to the recipient. In other words I want to know if the TCP connection to the recipient was finished without error. Is …

---

## [Help: fastcgi connection refused](https://www.ruby-forum.com/t/help-fastcgi-connection-refused/148094)

<div class="topic-metadata">

**Author:** [@wlefevre](https://www.ruby-forum.com/u/wlefevre)\
**Replies:** 5\
**Last updated:** [September 10, 2008, 12:15pm UTC](https://www.ruby-forum.com/t/help-fastcgi-connection-refused/148094 "2008-09-10T12:15:41Z")

</div>

Greetings, I just started a new Rails app and it’s dead in the water. It appears to be something to do with my lighttpd server or fastcgi. The error is ‘500 - internal server error’. In lighttpd.access.log I get: 20…

---

## [Find with includes, conditions on included tables, and limit](https://www.ruby-forum.com/t/find-with-includes-conditions-on-included-tables-and-limit/147684)

<div class="topic-metadata">

**Author:** [@Artifact](https://www.ruby-forum.com/u/Artifact)\
**Replies:** 4\
**Last updated:** [September 10, 2008, 12:01pm UTC](https://www.ruby-forum.com/t/find-with-includes-conditions-on-included-tables-and-limit/147684 "2008-09-10T12:01:57Z")

</div>

I have my main Night model, which has and belongs to many Users and Genres. I’m trying to put a limit on my find statement, but it causes SQL problems. Here’s what I’m trying to do: conditions = \[“genres\_nights.genre\_…

---

## [Regular Expression help](https://www.ruby-forum.com/t/regular-expression-help/147668)

<div class="topic-metadata">

**Author:** [@brendon](https://www.ruby-forum.com/u/brendon)\
**Replies:** 3\
**Last updated:** [September 10, 2008, 11:12am UTC](https://www.ruby-forum.com/t/regular-expression-help/147668 "2008-09-10T11:12:08Z")

</div>

Hi everyone, I hope it’s appropriate to post this question here. I couldn’t find anywhere else to post it (posting to the Ruby group didn’t work). I’m trying to write a regular expression to turn this string: ‘johnny…

---

## [Build objects from csv, using column headers as attributes](https://www.ruby-forum.com/t/build-objects-from-csv-using-column-headers-as-attributes/148128)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 2\
**Last updated:** [September 10, 2008, 10:59am UTC](https://www.ruby-forum.com/t/build-objects-from-csv-using-column-headers-as-attributes/148128 "2008-09-10T10:59:55Z")

</div>

I have a bunch of csvs for schools that i need to build School objects out of and save. The format and arrangement of columns is different between them, but they all use the same column headers strings to represent t…

---

## [Time Problem](https://www.ruby-forum.com/t/time-problem/148193)

<div class="topic-metadata">

**Author:** [@sunfish](https://www.ruby-forum.com/u/sunfish)\
**Replies:** 0\
**Last updated:** [September 10, 2008, 9:44am UTC](https://www.ruby-forum.com/t/time-problem/148193 "2008-09-10T09:44:15Z")

</div>

Hi, In my application I have to correct the time stamp on event discussion posts. Perhaps they are not observing DST? In any case, they are slow by one hour. how to do this ? I have following type of code and I have…

---

## [Forced to do CGI::unescape, an alternative?](https://www.ruby-forum.com/t/forced-to-do-cgi-unescape-an-alternative/148186)

<div class="topic-metadata">

**Author:** [@comopasta](https://www.ruby-forum.com/u/comopasta)\
**Replies:** 1\
**Last updated:** [September 10, 2008, 9:05am UTC](https://www.ruby-forum.com/t/forced-to-do-cgi-unescape-an-alternative/148186 "2008-09-10T09:05:30Z")

</div>

Hi, I have a server/client related question. I’m using a mobile client to update some records on the app using xml. Now, when using the browser interface we can use forms and the content is: Content-Type: application/…

---

## [Attach mail](https://www.ruby-forum.com/t/attach-mail/148187)

<div class="topic-metadata">

**Author:** [@redster](https://www.ruby-forum.com/u/redster)\
**Replies:** 1\
**Last updated:** [September 10, 2008, 8:34am UTC](https://www.ruby-forum.com/t/attach-mail/148187 "2008-09-10T08:34:23Z")

</div>

Hi I can able to send a mail in ruby on rails. but i can’t able to send attach mail in ruby on rails if any one help me… how to send attach mail…? Regards, karthik.

---

## [MethodNotAllowed error when reloading routes on Rails 2.1](https://www.ruby-forum.com/t/methodnotallowed-error-when-reloading-routes-on-rails-2-1/148189)

<div class="topic-metadata">

**Author:** [@Francesca\_Resta](https://www.ruby-forum.com/u/Francesca_Resta)\
**Replies:** 0\
**Last updated:** [September 10, 2008, 8:23am UTC](https://www.ruby-forum.com/t/methodnotallowed-error-when-reloading-routes-on-rails-2-1/148189 "2008-09-10T08:23:16Z")

</div>

Hello, I’m using Rails 2.1 on apache and in some functions of my application I need to reload routes on the fly. Now and then, it raises a MethodNotAllowed exception (“Only get, post, put, and delete requests are all…

---

## [Polymorphic problems with an abstract class](https://www.ruby-forum.com/t/polymorphic-problems-with-an-abstract-class/148147)

<div class="topic-metadata">

**Author:** [@subbu](https://www.ruby-forum.com/u/subbu)\
**Replies:** 3\
**Last updated:** [September 10, 2008, 8:23am UTC](https://www.ruby-forum.com/t/polymorphic-problems-with-an-abstract-class/148147 "2008-09-10T08:23:15Z")

</div>

This could have been solved earlier. But I couldn’t find a solution. Lets say I have an abstract base model called ‘Question’ and sub- models like Mcq, TrueFalse and FillInTheBlank. Mcq and TrueFalse models have a ha…

---

## [Convert javascript array to ruby array](https://www.ruby-forum.com/t/convert-javascript-array-to-ruby-array/148073)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 12\
**Last updated:** [September 10, 2008, 7:50am UTC](https://www.ruby-forum.com/t/convert-javascript-array-to-ruby-array/148073 "2008-09-10T07:50:28Z")

</div>

Hey can anyone help me convert a javascript array into a ruby array. Ive been struggling with this since friday to no avail. This is the function with the ajax.request call that is supposed to convert the array using…

---

## [Custom field name for error messages](https://www.ruby-forum.com/t/custom-field-name-for-error-messages/148184)

<div class="topic-metadata">

**Author:** [@tim](https://www.ruby-forum.com/u/tim)\
**Replies:** 0\
**Last updated:** [September 10, 2008, 7:42am UTC](https://www.ruby-forum.com/t/custom-field-name-for-error-messages/148184 "2008-09-10T07:42:16Z")

</div>

I know this may seem nit-picky, but I’m wondering if it’s possible to have a custom field name in the error messages instead of the attr\_name. I’ve got a form field that is labeled “E-Mail Address”, but the error mes…

---

## [Get Rid of Date in Migration Filename](https://www.ruby-forum.com/t/get-rid-of-date-in-migration-filename/148179)

<div class="topic-metadata">

**Author:** [@Trogdor](https://www.ruby-forum.com/u/Trogdor)\
**Replies:** 4\
**Last updated:** [September 10, 2008, 7:42am UTC](https://www.ruby-forum.com/t/get-rid-of-date-in-migration-filename/148179 "2008-09-10T07:42:16Z")

</div>

I was wondering how to get Rails 2.1 migrates to go from generating 20080910014108\_create\_table.rb-esque migrations to the old 22\_create\_table.rb style ones. I am sure that there is some sort of advantage in having ti…

---

## [Errno::E232 (The pipe is being closed.)](https://www.ruby-forum.com/t/errno-e232-the-pipe-is-being-closed/49608)

<div class="topic-metadata">

**Author:** [@MrSHeinz](https://www.ruby-forum.com/u/MrSHeinz)\
**Replies:** 4\
**Last updated:** [September 10, 2008, 6:35am UTC](https://www.ruby-forum.com/t/errno-e232-the-pipe-is-being-closed/49608 "2008-09-10T06:35:26Z")

</div>

I get this error on occasion using both Webrick and Apache2/FCGI: Webrick Debug: \[06/Dec/2005:07:46:19 :: 216\] Dispatcher failed to catch: The pipe is being closed. (Errno::E232) \[06/Dec/2005:07:46:19 :: 216\] Dispatc…

---

## [Paginator prob](https://www.ruby-forum.com/t/paginator-prob/148091)

<div class="topic-metadata">

**Author:** [@tashfeen.ekram](https://www.ruby-forum.com/u/tashfeen.ekram)\
**Replies:** 6\
**Last updated:** [September 10, 2008, 6:32am UTC](https://www.ruby-forum.com/t/paginator-prob/148091 "2008-09-10T06:32:01Z")

</div>

i am trying to implement the pagination solution for ferret provided at the following link: http://www.railsenvy.com/2007/2/19/acts-as-ferret-tutorial#what i am getting the following error: uninitialized constant App…

---

## [Clickheat on RoR](https://www.ruby-forum.com/t/clickheat-on-ror/148175)

<div class="topic-metadata">

**Author:** [@abednegoyulo](https://www.ruby-forum.com/u/abednegoyulo)\
**Replies:** 4\
**Last updated:** [September 10, 2008, 5:55am UTC](https://www.ruby-forum.com/t/clickheat-on-ror/148175 "2008-09-10T05:55:47Z")

</div>

Is it possible for a PHP based application, specifically Clickheat, be ported to a currently running web application built from RoR? I have managed to extract the directory of clickheat into the public directory of ou…

---

## [Is it possible to determine a page request from a refresh](https://www.ruby-forum.com/t/is-it-possible-to-determine-a-page-request-from-a-refresh/148066)

<div class="topic-metadata">

**Author:** [@PeteSalty](https://www.ruby-forum.com/u/PeteSalty)\
**Replies:** 4\
**Last updated:** [September 10, 2008, 3:45am UTC](https://www.ruby-forum.com/t/is-it-possible-to-determine-a-page-request-from-a-refresh/148066 "2008-09-10T03:45:20Z")

</div>

we’re trying to add a feature where we log a view each time a user looks at a particular item (it’s being logged as a database record against the item id). Problem is, if that user refreshes the page we don’t want it …

---

## [Wrong number of arguments](https://www.ruby-forum.com/t/wrong-number-of-arguments/148178)

<div class="topic-metadata">

**Author:** [@railsfid](https://www.ruby-forum.com/u/railsfid)\
**Replies:** 0\
**Last updated:** [September 10, 2008, 3:40am UTC](https://www.ruby-forum.com/t/wrong-number-of-arguments/148178 "2008-09-10T03:40:02Z")

</div>

I am a newbie at rails and can’t figure out the following problem. Can anyone help? I am running the following: Ruby version 1.8.6 (powerpc-darwin9.4.0) RubyGems version 1.2.0 Rails version 2.1.0 Active Record v…

---

## [Character not being displayed correctly using Rails](https://www.ruby-forum.com/t/character-not-being-displayed-correctly-using-rails/148084)

<div class="topic-metadata">

**Author:** [@nick](https://www.ruby-forum.com/u/nick)\
**Replies:** 2\
**Last updated:** [September 10, 2008, 3:18am UTC](https://www.ruby-forum.com/t/character-not-being-displayed-correctly-using-rails/148084 "2008-09-10T03:18:57Z")

</div>

Dear all, this might not be a Rails problem, but since I run my website on it, it might be one. I have a star rating on my website to rate trails and it displays those stars correctly on my Mac using any browser. How…

---

## [\[ANN\] Kete 1.1, an open source Rails application for online communities, is here](https://www.ruby-forum.com/t/ann-kete-1-1-an-open-source-rails-application-for-online-communities-is-here/147462)

<div class="topic-metadata">

**Author:** [@Walter\_McGinnis](https://www.ruby-forum.com/u/Walter_McGinnis)\
**Replies:** 3\
**Last updated:** [September 10, 2008, 3:13am UTC](https://www.ruby-forum.com/t/ann-kete-1-1-an-open-source-rails-application-for-online-communities-is-here/147462 "2008-09-10T03:13:41Z")

</div>

Kete 1.1 is now available with a giant helping of new features and improvements. This is also the first release where you can grab Kete from our code repository’s new home at Github.com. See http://kete.net.nz/site…

---

## [Objects and attributes](https://www.ruby-forum.com/t/objects-and-attributes/148143)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 3\
**Last updated:** [September 10, 2008, 12:05am UTC](https://www.ruby-forum.com/t/objects-and-attributes/148143 "2008-09-10T00:05:37Z")

</div>

I have this method that it’s soul purpose is to toggle a field and then redisplay a chech\_box helper and a image signifying that the field has been updated. My issue, however, is that this method is to toggle several …

---

## [Setting view path in a plugin to include plugin views](https://www.ruby-forum.com/t/setting-view-path-in-a-plugin-to-include-plugin-views/148160)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 0\
**Last updated:** [September 10, 2008, 12:00am UTC](https://www.ruby-forum.com/t/setting-view-path-in-a-plugin-to-include-plugin-views/148160 "2008-09-10T00:00:20Z")

</div>

I have a plugin that I’m trying to use but it keeps looking in another plugin’s path for the view files. I get this error: “ActionView::MissingTemplate (Missing template blah.rhtml in view path other\_plugin\_view\_dir:…

---

## [Logger.info request.headers in production does nothing?](https://www.ruby-forum.com/t/logger-info-request-headers-in-production-does-nothing/148125)

<div class="topic-metadata">

**Author:** [@comopasta](https://www.ruby-forum.com/u/comopasta)\
**Replies:** 5\
**Last updated:** [September 9, 2008, 10:30pm UTC](https://www.ruby-forum.com/t/logger-info-request-headers-in-production-does-nothing/148125 "2008-09-09T22:30:22Z")

</div>

Hi, logger.info request.headers is giving me the headers of the request in development mode. However I can’t get the same on production mode. Any hints? Thanks

---

## [Proxy pass based on html header attribute](https://www.ruby-forum.com/t/proxy-pass-based-on-html-header-attribute/148158)

<div class="topic-metadata">

**Author:** [@iberci](https://www.ruby-forum.com/u/iberci)\
**Replies:** 0\
**Last updated:** [September 9, 2008, 10:26pm UTC](https://www.ruby-forum.com/t/proxy-pass-based-on-html-header-attribute/148158 "2008-09-09T22:26:40Z")

</div>

Although this isn’t directly rails related, I am hopefull that I can get some advice here… :slight\_smile: I can’t seem to find a way to configure nginx with the standard modules included to proxy\_pass based off a cust…

---

## [CMS on Rails 2 and easy to integrate with?](https://www.ruby-forum.com/t/cms-on-rails-2-and-easy-to-integrate-with/148036)

<div class="topic-metadata">

**Author:** [@apm](https://www.ruby-forum.com/u/apm)\
**Replies:** 8\
**Last updated:** [September 9, 2008, 9:51pm UTC](https://www.ruby-forum.com/t/cms-on-rails-2-and-easy-to-integrate-with/148036 "2008-09-09T21:51:38Z")

</div>

Hi, im looking for a CMS in Rails and all posts of that kind that i have seen seem outdated… For an application i need to have app-specific parts + content management. I thought of integrating with an existing CMS pr…

---

## [A simple way to generate a comma separated list of codes?](https://www.ruby-forum.com/t/a-simple-way-to-generate-a-comma-separated-list-of-codes/148135)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 5\
**Last updated:** [September 9, 2008, 8:21pm UTC](https://www.ruby-forum.com/t/a-simple-way-to-generate-a-comma-separated-list-of-codes/148135 "2008-09-09T20:21:48Z")

</div>

I have a model, Account, with many Courses. I want to display the course codes for those courses as comma delimited text in an attribute of the account. So I would have Account \<\< ActiveRecord::Base has\_many :courses …

---

## [If on certain page display, else display](https://www.ruby-forum.com/t/if-on-certain-page-display-else-display/148144)

<div class="topic-metadata">

**Author:** [@perezda](https://www.ruby-forum.com/u/perezda)\
**Replies:** 3\
**Last updated:** [September 9, 2008, 7:48pm UTC](https://www.ruby-forum.com/t/if-on-certain-page-display-else-display/148144 "2008-09-09T19:48:51Z")

</div>

Hello, first off sorry i am new and a dumbass but I need help with this. In my view/application file i have some css and I want a certain bit of css displayed if a user is in one controller but another type of css to…

---

## [Accessing eagerly loaded children](https://www.ruby-forum.com/t/accessing-eagerly-loaded-children/148141)

<div class="topic-metadata">

**Author:** [@dreamwave](https://www.ruby-forum.com/u/dreamwave)\
**Replies:** 2\
**Last updated:** [September 9, 2008, 7:34pm UTC](https://www.ruby-forum.com/t/accessing-eagerly-loaded-children/148141 "2008-09-09T19:34:18Z")

</div>

Hello! In my controller, I have a model that preloads (or eager loads?) its respective child members. class Parent \< ApplicationController def show @parent = Parent.find(:all, :include =\> :children) end end In my…

---

## [ÐœÐ¸Ð¾ÑÑ‚Ð¸Ð¼ÑƒÐ»ÑÑ‚Ð¾Ñ€Ñ‹](https://www.ruby-forum.com/t/doed-d-n-n-d-d-n-d-n-n-d-n-n/148138)

<div class="topic-metadata">

**Author:** [@ShopBody.ru](https://www.ruby-forum.com/u/ShopBody.ru)\
**Replies:** 0\
**Last updated:** [September 9, 2008, 7:02pm UTC](https://www.ruby-forum.com/t/doed-d-n-n-d-d-n-d-n-n-d-n-n/148138 "2008-09-09T19:02:24Z")

</div>

íÉÏÓÔÉÍÕÌÑÔÏÒÙ ÓÔÉÍÕÌÉÒÕÀÔ ÓÏËÒÁÝÅÎÉÅ ÍÙÛÃ ÜÌÅËÔÒÏÎÎÙÍÉ ÉÍÐÕÌØÓÁÍÉ ÒÁÚÌÉÞÎÏÊ (×ÙÂÒÁÎÎÏÊ ÷áíé) ÓÉÌÙ ×ÏÚÄÅÊÓÔ×ÉÑ. ðÒÉ ÓÏËÒÁÝÅÎÉÉ ÍÙÛÃ ÕÓÉÌÉ×ÁÅÔÓÑ ÏÂÍÅÎ ×ÅÝÅÓÔ× × ÍÙÛÃÁÈ, ÏËÒÕÖÁÀÝÉÈ ÔËÁÎÑÈ É ËÏÖÅ. òÅÚÕÌØÔÁÔ: “ÓÇÏÒÁÀÔ” ÖÉ…

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

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