# Rails

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

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

---

## [PDF showing which items each generator creates](https://www.ruby-forum.com/t/pdf-showing-which-items-each-generator-creates/162930)

<div class="topic-metadata">

**Author:** [@pedz](https://www.ruby-forum.com/u/pedz)\
**Replies:** 0\
**Last updated:** [March 15, 2009, 9:49pm UTC](https://www.ruby-forum.com/t/pdf-showing-which-items-each-generator-creates/162930 "2009-03-15T21:49:47Z")

</div>

Enjoy… pedz

---

## [Image\_tag resolution of path to image not working in html emails](https://www.ruby-forum.com/t/image-tag-resolution-of-path-to-image-not-working-in-html-emails/162925)

<div class="topic-metadata">

**Author:** [@lunaclaire](https://www.ruby-forum.com/u/lunaclaire)\
**Replies:** 0\
**Last updated:** [March 15, 2009, 8:59pm UTC](https://www.ruby-forum.com/t/image-tag-resolution-of-path-to-image-not-working-in-html-emails/162925 "2009-03-15T20:59:25Z")

</div>

I’m using the inline\_attachment gem at: http://github.com/betamatt/inline\_attachment/tree/master to include images in my html emails and almost have everything working well now, except that what works in development d…

---

## [Forms with date\_select: How to set/leave a date to NULL?](https://www.ruby-forum.com/t/forms-with-date-select-how-to-set-leave-a-date-to-null/162924)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [March 15, 2009, 8:46pm UTC](https://www.ruby-forum.com/t/forms-with-date-select-how-to-set-leave-a-date-to-null/162924 "2009-03-15T20:46:30Z")

</div>

Hi, minor question: If I create a form where some entries are of type date (i.e. use the form.date\_select to create the form field), it does not allow to enter a NULL date. Even if the user does not enter anything, i…

---

## [TZInfo included in Rails 2.2.2 vs. version on RubyForge](https://www.ruby-forum.com/t/tzinfo-included-in-rails-2-2-2-vs-version-on-rubyforge/162845)

<div class="topic-metadata">

**Author:** [@matto](https://www.ruby-forum.com/u/matto)\
**Replies:** 1\
**Last updated:** [March 15, 2009, 8:11pm UTC](https://www.ruby-forum.com/t/tzinfo-included-in-rails-2-2-2-vs-version-on-rubyforge/162845 "2009-03-15T20:11:14Z")

</div>

I downloaded version 0.3.12 of TZInfo from \[1\], and observed that it has a very robust set of timezones including, for example, ‘America/ Anchorage’: irb(main):001:0\> require ‘rubygems’ =\> false irb(main):002:0\> req…

---

## [CreditCard Processing in Europe](https://www.ruby-forum.com/t/creditcard-processing-in-europe/162918)

<div class="topic-metadata">

**Author:** [@jah4711](https://www.ruby-forum.com/u/jah4711)\
**Replies:** 0\
**Last updated:** [March 15, 2009, 7:07pm UTC](https://www.ruby-forum.com/t/creditcard-processing-in-europe/162918 "2009-03-15T19:07:33Z")

</div>

Hi, I spent the last days looking for a solution to accept/process credit cards. At the beginning I thought it is pretty easy to integrate a service like Paypal. However, the company is based in Austria and so many o…

---

## [Pobrem with REST routes](https://www.ruby-forum.com/t/pobrem-with-rest-routes/162848)

<div class="topic-metadata">

**Author:** [@chimorito](https://www.ruby-forum.com/u/chimorito)\
**Replies:** 2\
**Last updated:** [March 15, 2009, 6:32pm UTC](https://www.ruby-forum.com/t/pobrem-with-rest-routes/162848 "2009-03-15T18:32:55Z")

</div>

Hi first at all sorry if mu english is not the best. I have this models: Encuesta-\>titulo and description are string. Encuesta has\_many :preguntas Preguntas-\> texto is string, encuesta\_id and orden are integer. Pregu…

---

## [Rails, passenger, and images](https://www.ruby-forum.com/t/rails-passenger-and-images/162796)

<div class="topic-metadata">

**Author:** [@steveoco](https://www.ruby-forum.com/u/steveoco)\
**Replies:** 7\
**Last updated:** [March 15, 2009, 4:46pm UTC](https://www.ruby-forum.com/t/rails-passenger-and-images/162796 "2009-03-15T16:46:34Z")

</div>

Just switched over to passenger for development and production for my rails app. Liking it so far. My problem is my image\_links, stylesheet\_tag\_links, and javascript\_tag\_links are all adding "http://localhost:3000 to …

---

## [Null object pattern](https://www.ruby-forum.com/t/null-object-pattern/162862)

<div class="topic-metadata">

**Author:** [@neubyr](https://www.ruby-forum.com/u/neubyr)\
**Replies:** 9\
**Last updated:** [March 15, 2009, 4:43pm UTC](https://www.ruby-forum.com/t/null-object-pattern/162862 "2009-03-15T16:43:23Z")

</div>

I am trying to create a null object in my application. I would like to assigned a null user object for anonymous/ mot-logged-in user, i.e. if session variable has nil data. In my User model, I have created a subclass …

---

## [Rails, lighttpd and the Expires header](https://www.ruby-forum.com/t/rails-lighttpd-and-the-expires-header/162859)

<div class="topic-metadata">

**Author:** [@tekhne](https://www.ruby-forum.com/u/tekhne)\
**Replies:** 2\
**Last updated:** [March 15, 2009, 4:07pm UTC](https://www.ruby-forum.com/t/rails-lighttpd-and-the-expires-header/162859 "2009-03-15T16:07:17Z")

</div>

I have a controller that serves up images from a different location from /public/images/ by using send\_file or send\_data on /media/thumbs/ 38 for example In lighttpd I have: expire.url = ( “/media/” =\> “access 10 yea…

---

## [Issue with using Net::SMTP bcc-ing or cc-ing](https://www.ruby-forum.com/t/issue-with-using-net-smtp-bcc-ing-or-cc-ing/162905)

<div class="topic-metadata">

**Author:** [@railerbaby](https://www.ruby-forum.com/u/railerbaby)\
**Replies:** 0\
**Last updated:** [March 15, 2009, 2:49pm UTC](https://www.ruby-forum.com/t/issue-with-using-net-smtp-bcc-ing-or-cc-ing/162905 "2009-03-15T14:49:17Z")

</div>

Hi all, I’m a little bit confused with things … hope someone can help me out. I’m trying to do something very simple. Create an email using Tmail Then put cc, bcc Send out using Net::SMTP Problem is that it is not …

---

## [How to disable database setup / teardown in unit tests?](https://www.ruby-forum.com/t/how-to-disable-database-setup-teardown-in-unit-tests/162898)

<div class="topic-metadata">

**Author:** [@robb](https://www.ruby-forum.com/u/robb)\
**Replies:** 2\
**Last updated:** [March 15, 2009, 2:44pm UTC](https://www.ruby-forum.com/t/how-to-disable-database-setup-teardown-in-unit-tests/162898 "2009-03-15T14:44:35Z")

</div>

Hi, My app uses a read-only database — what I need to test is the parsing code. I’d like to be able to copy the development database to test, and run a series of unit tests based on it. But I can’t see how to stop t…

---

## [How to get controller output in functional test](https://www.ruby-forum.com/t/how-to-get-controller-output-in-functional-test/162839)

<div class="topic-metadata">

**Author:** [@Commander\_J](https://www.ruby-forum.com/u/Commander_J)\
**Replies:** 6\
**Last updated:** [March 15, 2009, 1:21pm UTC](https://www.ruby-forum.com/t/how-to-get-controller-output-in-functional-test/162839 "2009-03-15T13:21:02Z")

</div>

Hi, How do you get the rendered output (sent to the browser) in a controller functional test? I searched for this, and tried things like @content\_for\_layout @response.template.content\_for\_layout yield yield :layou…

---

## [ActiveRecord::Migrator, method get\_all\_versions & hard-coded SQL](https://www.ruby-forum.com/t/activerecord-migrator-method-get-all-versions-hard-coded-sql/162892)

<div class="topic-metadata">

**Author:** [@Mathias](https://www.ruby-forum.com/u/Mathias)\
**Replies:** 3\
**Last updated:** [March 15, 2009, 12:38pm UTC](https://www.ruby-forum.com/t/activerecord-migrator-method-get-all-versions-hard-coded-sql/162892 "2009-03-15T12:38:04Z")

</div>

Hello Folks! I only recently started to use Ruby on Rails coming from Delphi, which is why I am quite happy with using InterBase as my database. 3rdRail does come with an InterBase adapter but I could not run migratio…

---

## [Update textarea (tinyMCE) using Ajax/RJS](https://www.ruby-forum.com/t/update-textarea-tinymce-using-ajax-rjs/132869)

<div class="topic-metadata">

**Author:** [@northband](https://www.ruby-forum.com/u/northband)\
**Replies:** 3\
**Last updated:** [March 15, 2009, 2:10am UTC](https://www.ruby-forum.com/t/update-textarea-tinymce-using-ajax-rjs/132869 "2009-03-15T02:10:19Z")

</div>

Hi - I have a which I am allowing users to select text bodies which are automatically populating a textarea on the page - which they can then edit. This is working fine. However… once I add my tinyMCE editor to the …

---

## [Passenger - Internation Server Error](https://www.ruby-forum.com/t/passenger-internation-server-error/162870)

<div class="topic-metadata">

**Author:** [@tkbeili](https://www.ruby-forum.com/u/tkbeili)\
**Replies:** 2\
**Last updated:** [March 14, 2009, 9:15pm UTC](https://www.ruby-forum.com/t/passenger-internation-server-error/162870 "2009-03-14T21:15:06Z")

</div>

Hello, I was just trying to use Passenger to depoloy my rails application of my VPS: Apache:2.2.3 (Debian) PHP:5.2.0-8+etch13 Phusion\_Passenger/2.1.2 Server but I get the following error: Internal Server Error The s…

---

## [Problem saving nested attributes for has\_many associations (Rails 2.3 RC2 and Edge)](https://www.ruby-forum.com/t/problem-saving-nested-attributes-for-has-many-associations-rails-2-3-rc2-and-edge/162844)

<div class="topic-metadata">

**Author:** [@hakunin](https://www.ruby-forum.com/u/hakunin)\
**Replies:** 1\
**Last updated:** [March 14, 2009, 9:02pm UTC](https://www.ruby-forum.com/t/problem-saving-nested-attributes-for-has-many-associations-rails-2-3-rc2-and-edge/162844 "2009-03-14T21:02:17Z")

</div>

I’ve tested this on both 2.3 RC2 and Edge. This pastie contains model, helper and view: http://pastie.org/415742 When I save a vocabulary - its terms don’t save. I’m fairly sure it worked in RC1. Would appreciate …

---

## [Coding standards](https://www.ruby-forum.com/t/coding-standards/162754)

<div class="topic-metadata">

**Author:** [@johnf](https://www.ruby-forum.com/u/johnf)\
**Replies:** 10\
**Last updated:** [March 14, 2009, 6:36pm UTC](https://www.ruby-forum.com/t/coding-standards/162754 "2009-03-14T18:36:54Z")

</div>

One thing I really like about Java compared to PHP is that there’s an official coding standard. This is because I don’t really mind which standard I use, I just want to be told what to do and have the highest likeliho…

---

## [Installation of i18n](https://www.ruby-forum.com/t/installation-of-i18n/162847)

<div class="topic-metadata">

**Author:** [@Sacredceltic](https://www.ruby-forum.com/u/Sacredceltic)\
**Replies:** 4\
**Last updated:** [March 14, 2009, 3:42pm UTC](https://www.ruby-forum.com/t/installation-of-i18n/162847 "2009-03-14T15:42:07Z")

</div>

I desperately try to put in place i18n for my project, in order mainly to translate date/time formats, but the information I get from all the different sources is either incomplete or contradictory : Some say translat…

---

## [Does anybody have simple example of Tiny\_MCE working?](https://www.ruby-forum.com/t/does-anybody-have-simple-example-of-tiny-mce-working/162695)

<div class="topic-metadata">

**Author:** [@InventoryTrackers](https://www.ruby-forum.com/u/InventoryTrackers)\
**Replies:** 3\
**Last updated:** [March 14, 2009, 3:35pm UTC](https://www.ruby-forum.com/t/does-anybody-have-simple-example-of-tiny-mce-working/162695 "2009-03-14T15:35:05Z")

</div>

I’ve gotten my hopes up a few times and have gone through the many Rails Tiny\_MCE tutorials only to bomb out. All of these tutorials are significantly different which leads me to ask if anyone has a very simple Rails …

---

## [Translating next and previous in will paginate](https://www.ruby-forum.com/t/translating-next-and-previous-in-will-paginate/162799)

<div class="topic-metadata">

**Author:** [@shuaib85](https://www.ruby-forum.com/u/shuaib85)\
**Replies:** 2\
**Last updated:** [March 14, 2009, 3:21pm UTC](https://www.ruby-forum.com/t/translating-next-and-previous-in-will-paginate/162799 "2009-03-14T15:21:38Z")

</div>

Dear all I was wondering how can i use i18n to translate next and previous in the will paginate plugin any idea thank

---

## [Open source](https://www.ruby-forum.com/t/open-source/162852)

<div class="topic-metadata">

**Author:** [@milandobrota](https://www.ruby-forum.com/u/milandobrota)\
**Replies:** 0\
**Last updated:** [March 14, 2009, 3:16pm UTC](https://www.ruby-forum.com/t/open-source/162852 "2009-03-14T15:16:13Z")

</div>

If anybody needs help with his/her open source project I would be glad to help. :slight\_smile: Thank you.

---

## [Rails Magazine Issue #1 - Free Download](https://www.ruby-forum.com/t/rails-magazine-issue-1-free-download/162812)

<div class="topic-metadata">

**Author:** [@Olimpiu\_M](https://www.ruby-forum.com/u/Olimpiu_M)\
**Replies:** 2\
**Last updated:** [March 14, 2009, 3:04pm UTC](https://www.ruby-forum.com/t/rails-magazine-issue-1-free-download/162812 "2009-03-14T15:04:38Z")

</div>

The free, digital edition of Rails Magazine (Issue #1) is now available: Что такое SEO продвижение сайта If you’d like to support this effort, please take our survey: http://survey.railsmagazine.com, and consider cont…

---

## [Rails startup](https://www.ruby-forum.com/t/rails-startup/162821)

<div class="topic-metadata">

**Author:** [@difei](https://www.ruby-forum.com/u/difei)\
**Replies:** 1\
**Last updated:** [March 14, 2009, 2:12pm UTC](https://www.ruby-forum.com/t/rails-startup/162821 "2009-03-14T14:12:13Z")

</div>

Greetings, I am wondering if there is a way to initiate a pre-stored key/value pair from mysql to memcached during the boot procedure of rails? Thanks in advance. Cheers, Difei

---

## [Understanding how methods are made available within controller tests](https://www.ruby-forum.com/t/understanding-how-methods-are-made-available-within-controller-tests/162743)

<div class="topic-metadata">

**Author:** [@karl](https://www.ruby-forum.com/u/karl)\
**Replies:** 3\
**Last updated:** [March 14, 2009, 1:48pm UTC](https://www.ruby-forum.com/t/understanding-how-methods-are-made-available-within-controller-tests/162743 "2009-03-14T13:48:26Z")

</div>

Being new to rails and ruby, I am trying to figure out how things fit together. In particular i am trying to understand how attributes such as “session” and “cookies” are made available to Controller tests. Specifica…

---

## [Has\_many through polymorphic true](https://www.ruby-forum.com/t/has-many-through-polymorphic-true/162589)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 2\
**Last updated:** [March 14, 2009, 1:44pm UTC](https://www.ruby-forum.com/t/has-many-through-polymorphic-true/162589 "2009-03-14T13:44:54Z")

</div>

This would be cool to have in Rails. class User \< ActiveRecord::Base has\_many :roles end class Role \< ActiveRecord::Base belongs\_to :user belongs\_to :rolable, :polymorphic =\> true end class Student…

---

## [Help with sorting / ordering](https://www.ruby-forum.com/t/help-with-sorting-ordering/162806)

<div class="topic-metadata">

**Author:** [@rjsquire](https://www.ruby-forum.com/u/rjsquire)\
**Replies:** 4\
**Last updated:** [March 14, 2009, 1:44pm UTC](https://www.ruby-forum.com/t/help-with-sorting-ordering/162806 "2009-03-14T13:44:19Z")

</div>

Hi! I hope someone can offer some insight or direction into a problem I’m having. In my application, I have two tables: products and reviews. Products stores information on things that are sold Reviews store comments…

---

## [Bad model name](https://www.ruby-forum.com/t/bad-model-name/162784)

<div class="topic-metadata">

**Author:** [@tned](https://www.ruby-forum.com/u/tned)\
**Replies:** 4\
**Last updated:** [March 14, 2009, 10:37am UTC](https://www.ruby-forum.com/t/bad-model-name/162784 "2009-03-14T10:37:31Z")

</div>

I created model named “whats\_new”. $ script/generate model whats\_new exists app/models/ exists test/unit/ exists test/fixtures/ create app/models/whats\_new.rb create test/unit/whats\_new\_test.rb create test/f…

---

## [Change will paginate into ajax call](https://www.ruby-forum.com/t/change-will-paginate-into-ajax-call/162659)

<div class="topic-metadata">

**Author:** [@Geekyra](https://www.ruby-forum.com/u/Geekyra)\
**Replies:** 1\
**Last updated:** [March 14, 2009, 9:51am UTC](https://www.ruby-forum.com/t/change-will-paginate-into-ajax-call/162659 "2009-03-14T09:51:53Z")

</div>

Hi all, can i change will paginate system into ajax system ? do i need to change will paginate core functionality to make it ? thanks

---

## [Update\_attributes and validation](https://www.ruby-forum.com/t/update-attributes-and-validation/162756)

<div class="topic-metadata">

**Author:** [@nilez](https://www.ruby-forum.com/u/nilez)\
**Replies:** 2\
**Last updated:** [March 14, 2009, 6:04am UTC](https://www.ruby-forum.com/t/update-attributes-and-validation/162756 "2009-03-14T06:04:21Z")

</div>

hi all, I am updating 50 records on one page with update\_attributes method ,my validations are validates\_numericality\_of :year, :greater\_than\_or\_equal\_to =\> 1900, :less\_than\_or\_equal\_to =\> 2028, :message =\> “Year mu…

---

## [Creating/Updating Models from text/xml Requests](https://www.ruby-forum.com/t/creating-updating-models-from-text-xml-requests/162816)

<div class="topic-metadata">

**Author:** [@MaggotChild](https://www.ruby-forum.com/u/MaggotChild)\
**Replies:** 1\
**Last updated:** [March 14, 2009, 3:06am UTC](https://www.ruby-forum.com/t/creating-updating-models-from-text-xml-requests/162816 "2009-03-14T03:06:15Z")

</div>

I’m curious how others would deal with this situation. In my case, I have: class Package has\_many :deliveries end class Delivery belongs\_to :package belongs\_to :region end class Region has\_many :deliveries end …

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

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