# Rails

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

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

---

## [Time.parse and some weird defassage with timezone](https://www.ruby-forum.com/t/time-parse-and-some-weird-defassage-with-timezone/161238)

<div class="topic-metadata">

**Author:** [@Andres\_Paglayan](https://www.ruby-forum.com/u/Andres_Paglayan)\
**Replies:** 2\
**Last updated:** [March 23, 2009, 2:54am UTC](https://www.ruby-forum.com/t/time-parse-and-some-weird-defassage-with-timezone/161238 "2009-03-23T02:54:59Z")

</div>

Hi, I have a strange case, my system clock is set to utc and eastern time (-5) rails is configured to use eastern time timestamps on the database work as expected, meaning they are stored in utc but by hand time en…

---

## [Checking my has\_many :through relationships](https://www.ruby-forum.com/t/checking-my-has-many-through-relationships/163588)

<div class="topic-metadata">

**Author:** [@snowbird122](https://www.ruby-forum.com/u/snowbird122)\
**Replies:** 2\
**Last updated:** [March 22, 2009, 11:54pm UTC](https://www.ruby-forum.com/t/checking-my-has-many-through-relationships/163588 "2009-03-22T23:54:54Z")

</div>

I have a Cubicle model that will have many Printers, Phones, whatever. In the past, HABTM has sufficied, but each of the joins will need the capability to store additional attributes inside of the respective table. …

---

## [DhtmlCalendarHelper](https://www.ruby-forum.com/t/dhtmlcalendarhelper/163596)

<div class="topic-metadata">

**Author:** [@pink-ink](https://www.ruby-forum.com/u/pink-ink)\
**Replies:** 0\
**Last updated:** [March 22, 2009, 9:06pm UTC](https://www.ruby-forum.com/t/dhtmlcalendarhelper/163596 "2009-03-22T21:06:53Z")

</div>

Hi RoR community, for my webapp I need the german date format. To display the german date format like 31.12.2009, I implemented in the environment.rb following: ActiveSupport::CoreExtensions::date::Conversions::DATE\_…

---

## [ApplicationHelper::WillPaginate (NameError)](https://www.ruby-forum.com/t/applicationhelper-willpaginate-nameerror/163557)

<div class="topic-metadata">

**Author:** [@giga](https://www.ruby-forum.com/u/giga)\
**Replies:** 2\
**Last updated:** [March 22, 2009, 8:45pm UTC](https://www.ruby-forum.com/t/applicationhelper-willpaginate-nameerror/163557 "2009-03-22T20:45:45Z")

</div>

What wrong? environment.rb require “will\_paginate” application\_helper.rb include WillPaginate::ViewHelpers def will\_paginate\_with\_i18n(collection, options = {}) will\_paginate\_without\_i18n(collection, options.merge(…

---

## [Before\_filter on Models](https://www.ruby-forum.com/t/before-filter-on-models/163592)

<div class="topic-metadata">

**Author:** [@tiburcio777](https://www.ruby-forum.com/u/tiburcio777)\
**Replies:** 1\
**Last updated:** [March 22, 2009, 8:43pm UTC](https://www.ruby-forum.com/t/before-filter-on-models/163592 "2009-03-22T20:43:59Z")

</div>

Hello everyone, is there a way to do something like after\_filter on models ? I would like to do something after one method in the model is executed, I don’t want to place that code in the model’s method, I would like…

---

## [Actionmailer issues...any experts?](https://www.ruby-forum.com/t/actionmailer-issues-any-experts/196922)

<div class="topic-metadata">

**Author:** [@tony](https://www.ruby-forum.com/u/tony)\
**Replies:** 3\
**Last updated:** [March 22, 2009, 8:42pm UTC](https://www.ruby-forum.com/t/actionmailer-issues-any-experts/196922 "2009-03-22T20:42:13Z")

</div>

I have a rails app that can send emails to gmail, yahoo accounts. But when it comes to more obscure accounts like removed\_email\_address@domain.invalid or removed\_email\_address@domain.invalid, the mail never arrives ev…

---

## [Logging time in minutes and seconds](https://www.ruby-forum.com/t/logging-time-in-minutes-and-seconds/163593)

<div class="topic-metadata">

**Author:** [@MartOn](https://www.ruby-forum.com/u/MartOn)\
**Replies:** 0\
**Last updated:** [March 22, 2009, 8:33pm UTC](https://www.ruby-forum.com/t/logging-time-in-minutes-and-seconds/163593 "2009-03-22T20:33:26Z")

</div>

Hello Anybody know a nice plug-in or function/helper to store time as double, but from user interface, show it as X min Y seconds and also in the input form, be able to write 12:03 to write 12 minutes and 3 seconds. …

---

## [How to redirect\_to the index.html page](https://www.ruby-forum.com/t/how-to-redirect-to-the-index-html-page/154438)

<div class="topic-metadata">

**Author:** [@jsn1](https://www.ruby-forum.com/u/jsn1)\
**Replies:** 7\
**Last updated:** [March 22, 2009, 5:11pm UTC](https://www.ruby-forum.com/t/how-to-redirect-to-the-index-html-page/154438 "2009-03-22T17:11:11Z")

</div>

hi all If I add in my code redirect\_to :action =\> ‘index’ it redicrects to the index method in the current controller. how can I redirect it to the index.html page ? thanks

---

## [Rails 2.3.2 + Lighttpd](https://www.ruby-forum.com/t/rails-2-3-2-lighttpd/163203)

<div class="topic-metadata">

**Author:** [@giga](https://www.ruby-forum.com/u/giga)\
**Replies:** 2\
**Last updated:** [March 22, 2009, 4:32pm UTC](https://www.ruby-forum.com/t/rails-2-3-2-lighttpd/163203 "2009-03-22T16:32:32Z")

</div>

Can’t start empty Rails 2.3.2 project from Lighttpd: 2009-03-18 08:52:13: (mod\_fastcgi.c.1047) the fastcgi-backend /var/www/rails/public/dispatch.fcgi failed to start: ./script/server works fine. Also Rails 2.2.2 wor…

---

## [Populating database outside of applicaiton](https://www.ruby-forum.com/t/populating-database-outside-of-applicaiton/163575)

<div class="topic-metadata">

**Author:** [@scudco](https://www.ruby-forum.com/u/scudco)\
**Replies:** 1\
**Last updated:** [March 22, 2009, 3:26pm UTC](https://www.ruby-forum.com/t/populating-database-outside-of-applicaiton/163575 "2009-03-22T15:26:39Z")

</div>

Im learning rails now and what id like to do is aggregate data from external sources on a daily basis into my database. Within my users can searhc and filter through that data to their hearts content. Assuming i can g…

---

## [Clean way to handle prices](https://www.ruby-forum.com/t/clean-way-to-handle-prices/163562)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 4\
**Last updated:** [March 22, 2009, 2:07pm UTC](https://www.ruby-forum.com/t/clean-way-to-handle-prices/163562 "2009-03-22T14:07:08Z")

</div>

Hi, Currently I am storing my prices as cents. I have one major issue, it is the way I convert this value into a decimal looking price. This is done easily with to\_f and \*100).to\_i, but it looks ugly and clutters my …

---

## [Sending & Recieving Mail](https://www.ruby-forum.com/t/sending-recieving-mail/163510)

<div class="topic-metadata">

**Author:** [@indigoi](https://www.ruby-forum.com/u/indigoi)\
**Replies:** 4\
**Last updated:** [March 22, 2009, 1:22pm UTC](https://www.ruby-forum.com/t/sending-recieving-mail/163510 "2009-03-22T13:22:28Z")

</div>

I have written a mailer, when i call: MyMailer.deliver\_welcome(“Name”, “removed\_email\_address@domain.invalid” ) I successfully send an email to the address that i specify. I have written a mail recieving client that l…

---

## [Upgrading 2.2 to 2.3: console broken, "uninitialized constant Module::ActiveSupport"](https://www.ruby-forum.com/t/upgrading-2-2-to-2-3-console-broken-uninitialized-constant-module-activesupport/163576)

<div class="topic-metadata">

**Author:** [@malesca](https://www.ruby-forum.com/u/malesca)\
**Replies:** 1\
**Last updated:** [March 22, 2009, 1:05pm UTC](https://www.ruby-forum.com/t/upgrading-2-2-to-2-3-console-broken-uninitialized-constant-module-activesupport/163576 "2009-03-22T13:05:30Z")

</div>

Upgrading a Rails app from 2.2 to 2.3.2 (via 2.3.0). Got things working in the browser, but script/console seems messed up in both 2.3.0 and 2.3.2: $ script/console Loading development environment (Rails 2.3.2) /Lib…

---

## [RESTful routing in 2.3 breaks](https://www.ruby-forum.com/t/restful-routing-in-2-3-breaks/163087)

<div class="topic-metadata">

**Author:** [@harm](https://www.ruby-forum.com/u/harm)\
**Replies:** 12\
**Last updated:** [March 22, 2009, 11:47am UTC](https://www.ruby-forum.com/t/restful-routing-in-2-3-breaks/163087 "2009-03-22T11:47:49Z")

</div>

Dear all, After the release of 2.3 I immediately updated my app. However routing does no longer seem to work for me. I have no idea how this can happen but as soon as I POST to, for example, the forums\_path, the reque…

---

## [\[Rails 2.3\] named routes bug?](https://www.ruby-forum.com/t/rails-2-3-named-routes-bug/163574)

<div class="topic-metadata">

**Author:** [@Kpitn](https://www.ruby-forum.com/u/Kpitn)\
**Replies:** 0\
**Last updated:** [March 22, 2009, 10:51am UTC](https://www.ruby-forum.com/t/rails-2-3-named-routes-bug/163574 "2009-03-22T10:51:36Z")

</div>

Hi, I’m using this path : admin\_gallery\_photos\_path(gallery,session\_key =\> cookies\[session\_key\], request\_forgery\_protection\_token =\> form\_authenticity\_token) log show : Parameters: {"\_my\_session"=\>“BAh7CToMdXNlcl9p…

---

## [Instance variables in helpers?](https://www.ruby-forum.com/t/instance-variables-in-helpers/163474)

<div class="topic-metadata">

**Author:** [@Lee\_DSoSSSSjgi](https://www.ruby-forum.com/u/Lee_DSoSSSSjgi)\
**Replies:** 3\
**Last updated:** [March 22, 2009, 9:33am UTC](https://www.ruby-forum.com/t/instance-variables-in-helpers/163474 "2009-03-22T09:33:47Z")

</div>

Hi, Can someone tell me why the following isn’t setting an instance variable? Perhaps they can’t be set/used in helpers? I have a revision\_info method in ApplicationHelper that returns the current SVN revision numbe…

---

## [Models distance in terms of associations](https://www.ruby-forum.com/t/models-distance-in-terms-of-associations/163542)

<div class="topic-metadata">

**Author:** [@gabriele](https://www.ruby-forum.com/u/gabriele)\
**Replies:** 2\
**Last updated:** [March 22, 2009, 8:05am UTC](https://www.ruby-forum.com/t/models-distance-in-terms-of-associations/163542 "2009-03-22T08:05:27Z")

</div>

Hi, I was wondering if there’s a way to know the associations needed to reach a model from another, i.e. I have a Customer, I know it has some Invoices, each of these has more InvoiceRows which belongs to an InvoiceR…

---

## [Make rails 2.3 as default?](https://www.ruby-forum.com/t/make-rails-2-3-as-default/163559)

<div class="topic-metadata">

**Author:** [@arghx1](https://www.ruby-forum.com/u/arghx1)\
**Replies:** 1\
**Last updated:** [March 22, 2009, 3:30am UTC](https://www.ruby-forum.com/t/make-rails-2-3-as-default/163559 "2009-03-22T03:30:11Z")

</div>

I’m trying to get rails 2.3 to work on ubuntu 8.10. As now in synaptic manager, I saw rails 2.1.0 is installed, but when I do sudo gem install rails, i saw rails 2.3 got installed. When I did a test by generating a b…

---

## [Getting Rails to send email](https://www.ruby-forum.com/t/getting-rails-to-send-email/163520)

<div class="topic-metadata">

**Author:** [@tekhne](https://www.ruby-forum.com/u/tekhne)\
**Replies:** 5\
**Last updated:** [March 22, 2009, 1:10am UTC](https://www.ruby-forum.com/t/getting-rails-to-send-email/163520 "2009-03-22T01:10:30Z")

</div>

I have a site that I want to send out emails for when people forget their password. I’ve read the various articles on how to get Rails to send emails but what I need is how to set up the software to allow emails to be…

---

## [Refreshing browser after form submit and redirect bug](https://www.ruby-forum.com/t/refreshing-browser-after-form-submit-and-redirect-bug/161151)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 2\
**Last updated:** [March 22, 2009, 12:04am UTC](https://www.ruby-forum.com/t/refreshing-browser-after-form-submit-and-redirect-bug/161151 "2009-03-22T00:04:28Z")

</div>

Hi, Let’s say I have a form I submit restfully to the update action of a controller. On successful update, the application redirects to the index action. Now in some of my forms if I hit the refresh button on my inde…

---

## [Authentication plugins](https://www.ruby-forum.com/t/authentication-plugins/163416)

<div class="topic-metadata">

**Author:** [@ricardonns](https://www.ruby-forum.com/u/ricardonns)\
**Replies:** 11\
**Last updated:** [March 21, 2009, 11:33pm UTC](https://www.ruby-forum.com/t/authentication-plugins/163416 "2009-03-21T23:33:55Z")

</div>

Hey there. I am starting a new development and am still a newbie in rails, so i’d like to ask witch authentication plugin do you sugest? Regards, Ricardo

---

## [Guides on ActiveRecord error I18n seem to be WRONG](https://www.ruby-forum.com/t/guides-on-activerecord-error-i18n-seem-to-be-wrong/160929)

<div class="topic-metadata">

**Author:** [@absolute-beginner](https://www.ruby-forum.com/u/absolute-beginner)\
**Replies:** 4\
**Last updated:** [March 21, 2009, 11:08pm UTC](https://www.ruby-forum.com/t/guides-on-activerecord-error-i18n-seem-to-be-wrong/160929 "2009-03-21T23:08:46Z")

</div>

Hi everyone. I was trying to customize AR validation error messages and came across this kind of message lookup order, which EVERY I18n guide in existence seems to be giving: activerecord.errors.messages.models.user.…

---

## [Using transaction the right way](https://www.ruby-forum.com/t/using-transaction-the-right-way/163522)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 2\
**Last updated:** [March 21, 2009, 10:28pm UTC](https://www.ruby-forum.com/t/using-transaction-the-right-way/163522 "2009-03-21T22:28:41Z")

</div>

I wonder if my transaction is well written ? I create the user record first , then the issue record (no validation) if the user record is valid and saved if anything happen when saving the issue, I want to rollback th…

---

## [Cannot migrate back](https://www.ruby-forum.com/t/cannot-migrate-back/163551)

<div class="topic-metadata">

**Author:** [@luma](https://www.ruby-forum.com/u/luma)\
**Replies:** 4\
**Last updated:** [March 21, 2009, 10:11pm UTC](https://www.ruby-forum.com/t/cannot-migrate-back/163551 "2009-03-21T22:11:56Z")

</div>

hi, I can’t run back my migrations on Ubuntu: rake db:migrate works as expected. I.e. after that, schema\_migrations includes some numbers. Then I run this in ubuntu’s terminal: user@ubuntu:~/project/src$ rake db:migr…

---

## [Action Mailer problem](https://www.ruby-forum.com/t/action-mailer-problem/163553)

<div class="topic-metadata">

**Author:** [@tkbeili](https://www.ruby-forum.com/u/tkbeili)\
**Replies:** 0\
**Last updated:** [March 21, 2009, 9:46pm UTC](https://www.ruby-forum.com/t/action-mailer-problem/163553 "2009-03-21T21:46:03Z")

</div>

Hello, I’m trying to make my rails app send mail. I’m using Postfix + Dovecot + SASL on Linux Debian VPS: http://www.debianadmin.com/debian-mail-server-setup-with-postfix-dovecot-sasl-squirrel-mail.html I’m using the…

---

## [Is the default mysql adapter gem 3 years old?](https://www.ruby-forum.com/t/is-the-default-mysql-adapter-gem-3-years-old/163536)

<div class="topic-metadata">

**Author:** [@arjackson](https://www.ruby-forum.com/u/arjackson)\
**Replies:** 1\
**Last updated:** [March 21, 2009, 9:19pm UTC](https://www.ruby-forum.com/t/is-the-default-mysql-adapter-gem-3-years-old/163536 "2009-03-21T21:19:15Z")

</div>

Hello, There must be some obvious explanation that I’m missing, but I can’t figure out why gem install mysql – as many guides messages instruct – wants to install v 2.7 of the adapter. I’ve tried it on a number of r…

---

## [Nginx help](https://www.ruby-forum.com/t/nginx-help/163545)

<div class="topic-metadata">

**Author:** [@giga](https://www.ruby-forum.com/u/giga)\
**Replies:** 0\
**Last updated:** [March 21, 2009, 9:18pm UTC](https://www.ruby-forum.com/t/nginx-help/163545 "2009-03-21T21:18:05Z")

</div>

Hi, can somebody help me install Nginx + Rails vhosts (2.2.2 + 2.3.2) + php support for phpmyadmin? Server is ubuntu.

---

## [Right\_http and attachment\_fu issues](https://www.ruby-forum.com/t/right-http-and-attachment-fu-issues/163519)

<div class="topic-metadata">

**Author:** [@Don\_F](https://www.ruby-forum.com/u/Don_F)\
**Replies:** 1\
**Last updated:** [March 21, 2009, 9:11pm UTC](https://www.ruby-forum.com/t/right-http-and-attachment-fu-issues/163519 "2009-03-21T21:11:39Z")

</div>

I was running attachment\_fu with aws::s3 and I added a backup plugin that uses the right gems including right\_http\_connection. Now I get the documented error of wrong number of arguments. There is a comment in the re…

---

## [Ruby/Rails projects "market" site - anyone?](https://www.ruby-forum.com/t/ruby-rails-projects-market-site-anyone/163460)

<div class="topic-metadata">

**Author:** [@hubertlepicki](https://www.ruby-forum.com/u/hubertlepicki)\
**Replies:** 1\
**Last updated:** [March 21, 2009, 9:06pm UTC](https://www.ruby-forum.com/t/ruby-rails-projects-market-site-anyone/163460 "2009-03-21T21:06:23Z")

</div>

Hi guys, I was wondering how do you look for clients for your Rails companies? I know there are places like project4hire.com but these are more suitable for individuals I think than companies. I was supprised to find…

---

## [Stop rendering a response in the default layout](https://www.ruby-forum.com/t/stop-rendering-a-response-in-the-default-layout/163134)

<div class="topic-metadata">

**Author:** [@tashfeen.ekram](https://www.ruby-forum.com/u/tashfeen.ekram)\
**Replies:** 6\
**Last updated:** [March 21, 2009, 7:58pm UTC](https://www.ruby-forum.com/t/stop-rendering-a-response-in-the-default-layout/163134 "2009-03-21T19:58:28Z")

</div>

I am trying to follow this tutorial here by Ryan : it is a AJAX tutorial on using jquery and expecting the response to be in the form of javascript that will be acted upon by the browser. however, i am getting the re…

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

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