# Rails

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

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

---

## [Tztime (tz\_time\_attributes) problem with callbacks](https://www.ruby-forum.com/t/tztime-tz-time-attributes-problem-with-callbacks/109913)

<div class="topic-metadata">

**Author:** [@trevorturk](https://www.ruby-forum.com/u/trevorturk)\
**Replies:** 0\
**Last updated:** [July 20, 2007, 3:46am UTC](https://www.ruby-forum.com/t/tztime-tz-time-attributes-problem-with-callbacks/109913 "2007-07-20T03:46:45Z")

</div>

I’m having an odd problem with the tztime plugin, where the tz\_time\_attributes method seems to have trouble when used within a callback. I’m getting a nil object error: You have a nil object when you didn’t expect it…

---

## [Microsoft quotes issue](https://www.ruby-forum.com/t/microsoft-quotes-issue/109887)

<div class="topic-metadata">

**Author:** [@trilok2000](https://www.ruby-forum.com/u/trilok2000)\
**Replies:** 2\
**Last updated:** [July 20, 2007, 3:46am UTC](https://www.ruby-forum.com/t/microsoft-quotes-issue/109887 "2007-07-20T03:46:29Z")

</div>

hi group, I have an annoying issue. ? appears in place of ". This is caused due to pasting the info from the Microsoft word. Word uses curly quotes instead of simple quotes. Can you please help me to fix this issue.…

---

## [Error\_message\_for not working](https://www.ruby-forum.com/t/error-message-for-not-working/105298)

<div class="topic-metadata">

**Author:** [@Tarscher](https://www.ruby-forum.com/u/Tarscher)\
**Replies:** 2\
**Last updated:** [July 20, 2007, 3:26am UTC](https://www.ruby-forum.com/t/error-message-for-not-working/105298 "2007-07-20T03:26:25Z")

</div>

hi all, I try to get error\_message\_for to get to work on my dorm. No luck… For some reason the view doesn’t show me the error message when I for example leave out the first\_name Some has a clue what I’m doing wrong? …

---

## [Anyone using the iCalendar gem?](https://www.ruby-forum.com/t/anyone-using-the-icalendar-gem/109911)

<div class="topic-metadata">

**Author:** [@scott](https://www.ruby-forum.com/u/scott)\
**Replies:** 0\
**Last updated:** [July 20, 2007, 3:22am UTC](https://www.ruby-forum.com/t/anyone-using-the-icalendar-gem/109911 "2007-07-20T03:22:25Z")

</div>

After installing the iCalendar gem and referencing as such (test model): require ‘icalendar’ include Icalendar class ScheduleEntry \< ActiveRecord::Base def write\_to\_ics cal = Calendar.new cal.event do dtstart …

---

## [Rake, the Rails Logger and color coding](https://www.ruby-forum.com/t/rake-the-rails-logger-and-color-coding/109177)

<div class="topic-metadata">

**Author:** [@jeannibee](https://www.ruby-forum.com/u/jeannibee)\
**Replies:** 1\
**Last updated:** [July 20, 2007, 2:53am UTC](https://www.ruby-forum.com/t/rake-the-rails-logger-and-color-coding/109177 "2007-07-20T02:53:30Z")

</div>

Hi I’m using the RAILS\_DEFAULT\_LOGGER in my Rake task but anything that I log is NOT timestamped nor color coded. So my questions are: How do I get the color coding much the same as the default logging functionality…

---

## [RoR and Ajax](https://www.ruby-forum.com/t/ror-and-ajax/109809)

<div class="topic-metadata">

**Author:** [@oracleofmist](https://www.ruby-forum.com/u/oracleofmist)\
**Replies:** 3\
**Last updated:** [July 20, 2007, 1:53am UTC](https://www.ruby-forum.com/t/ror-and-ajax/109809 "2007-07-20T01:53:27Z")

</div>

I want to use RoR and its built-in Ajax functions to display a list of objects on a page like so: Item 1 Item 2 Item 3 each item, when clicked on will load a description of the item. I want to do this w/out loading…

---

## [STI questions](https://www.ruby-forum.com/t/sti-questions/109890)

<div class="topic-metadata">

**Author:** [@jjkiesch](https://www.ruby-forum.com/u/jjkiesch)\
**Replies:** 1\
**Last updated:** [July 20, 2007, 1:12am UTC](https://www.ruby-forum.com/t/sti-questions/109890 "2007-07-20T01:12:16Z")

</div>

i have an Order model and a table for addresses. i was trying to use single table inheritance so that i can store the addresses in the same table. here is my order model: class Order \< ActiveRecord::Base has\_one :bi…

---

## [CodeGear Developer Research in San Francisco, CA](https://www.ruby-forum.com/t/codegear-developer-research-in-san-francisco-ca/109904)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 0\
**Last updated:** [July 20, 2007, 1:03am UTC](https://www.ruby-forum.com/t/codegear-developer-research-in-san-francisco-ca/109904 "2007-07-20T01:03:15Z")

</div>

We need programmers who are using Ruby on Rails professionally to participate in a focus group on Tuesday, August 7, 2007 in downtown San Francisco, California. This is not a sales presentation. We are an independent …

---

## [Cache block skipped over](https://www.ruby-forum.com/t/cache-block-skipped-over/109903)

<div class="topic-metadata">

**Author:** [@tekhne](https://www.ruby-forum.com/u/tekhne)\
**Replies:** 0\
**Last updated:** [July 20, 2007, 12:59am UTC](https://www.ruby-forum.com/t/cache-block-skipped-over/109903 "2007-07-20T00:59:15Z")

</div>

I’m running my local server in production mode and a fragment cache on the front page fails to render at all. I route the front page to the about controller: map.index ‘’, :controller =\> “abo…

---

## [Caching a site wide partial](https://www.ruby-forum.com/t/caching-a-site-wide-partial/109902)

<div class="topic-metadata">

**Author:** [@plewizard](https://www.ruby-forum.com/u/plewizard)\
**Replies:** 0\
**Last updated:** [July 20, 2007, 12:56am UTC](https://www.ruby-forum.com/t/caching-a-site-wide-partial/109902 "2007-07-20T00:56:15Z")

</div>

hi, i’ve been having trouble trying to get my head around caching a partial that is included in more than one action. partial caching is based on action and so it must cache a new partial for each action in the site …

---

## [Tuning Mongrel w/ httperf](https://www.ruby-forum.com/t/tuning-mongrel-w-httperf/109787)

<div class="topic-metadata">

**Author:** [@ddancer](https://www.ruby-forum.com/u/ddancer)\
**Replies:** 1\
**Last updated:** [July 20, 2007, 12:17am UTC](https://www.ruby-forum.com/t/tuning-mongrel-w-httperf/109787 "2007-07-20T00:17:11Z")

</div>

Hello Friends, I’ve recently watched the peepcode on httperf and read various blog articles about performance testing web servers w/ httperf. My problem is that my mongrel apps all seem to be running just horribly sl…

---

## [Using a link to submit a form](https://www.ruby-forum.com/t/using-a-link-to-submit-a-form/109848)

<div class="topic-metadata">

**Author:** [@tdavis1198](https://www.ruby-forum.com/u/tdavis1198)\
**Replies:** 5\
**Last updated:** [July 20, 2007, 12:09am UTC](https://www.ruby-forum.com/t/using-a-link-to-submit-a-form/109848 "2007-07-20T00:09:29Z")

</div>

I have a list of items. each item will have a checkbox next to it. I have a series of commands (in a sidebar div) that should perform an operation on the selected items in the list. I know how to encapsulate that list…

---

## [TCLink Windows](https://www.ruby-forum.com/t/tclink-windows/109892)

<div class="topic-metadata">

**Author:** [@dcgrigsby](https://www.ruby-forum.com/u/dcgrigsby)\
**Replies:** 0\
**Last updated:** [July 19, 2007, 11:27pm UTC](https://www.ruby-forum.com/t/tclink-windows/109892 "2007-07-19T23:27:24Z")

</div>

Is there anyway to install the Trustcommerce TCLink plugin in a windows development environment? -Thanks

---

## [Attachment\_fu thumbnail quality with image science](https://www.ruby-forum.com/t/attachment-fu-thumbnail-quality-with-image-science/108658)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [July 19, 2007, 10:50pm UTC](https://www.ruby-forum.com/t/attachment-fu-thumbnail-quality-with-image-science/108658 "2007-07-19T22:50:56Z")

</div>

I’m having trouble with the image quality of the thumbnails attachment\_fu is creating in my app and I’m hoping someone can point me in the direction of a fix. In my search for answers I’ve found this page \[1\] which cl…

---

## [Locomotive and establish\_connection](https://www.ruby-forum.com/t/locomotive-and-establish-connection/109886)

<div class="topic-metadata">

**Author:** [@nextpulse](https://www.ruby-forum.com/u/nextpulse)\
**Replies:** 0\
**Last updated:** [July 19, 2007, 10:44pm UTC](https://www.ruby-forum.com/t/locomotive-and-establish-connection/109886 "2007-07-19T22:44:55Z")

</div>

I am using locomotive for development. My app uses dual databases and hence I have a model that uses a different establish\_connection to connect to the db. It seems that locomotive does not support this. Am I correct?…

---

## [Poll: Which Editor/IDE Do You Use For Ruby/Rails Development](https://www.ruby-forum.com/t/poll-which-editor-ide-do-you-use-for-ruby-rails-development/109885)

<div class="topic-metadata">

**Author:** [@biguniverse](https://www.ruby-forum.com/u/biguniverse)\
**Replies:** 0\
**Last updated:** [July 19, 2007, 10:36pm UTC](https://www.ruby-forum.com/t/poll-which-editor-ide-do-you-use-for-ruby-rails-development/109885 "2007-07-19T22:36:55Z")

</div>

Hello. Would you mind participating in the 1st poll listed here? http://visualpatterns.com/polls.jsp Thanks in advance.

---

## [How to know objects' methods?](https://www.ruby-forum.com/t/how-to-know-objects-methods/109879)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 2\
**Last updated:** [July 19, 2007, 10:19pm UTC](https://www.ruby-forum.com/t/how-to-know-objects-methods/109879 "2007-07-19T22:19:53Z")

</div>

Hi, I’m discovering Ruby on Rails and I’m limited with the fact that I don’t know which methods are available on the different objects provided by the framework. For example I use the following code to create my tabl…

---

## [Mongrel service/win32 problems](https://www.ruby-forum.com/t/mongrel-service-win32-problems/109882)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [July 19, 2007, 10:13pm UTC](https://www.ruby-forum.com/t/mongrel-service-win32-problems/109882 "2007-07-19T22:13:50Z")

</div>

hi, i am working on my first ruby on rails app and it’s basically ready for some serious testing. i’ve been using command-line mongrel as my webserver for awhile, but as we need a slightly more permanent version, i w…

---

## [Xml builder cache (with a slight problem on initial load)](https://www.ruby-forum.com/t/xml-builder-cache-with-a-slight-problem-on-initial-load/109878)

<div class="topic-metadata">

**Author:** [@jtarchie](https://www.ruby-forum.com/u/jtarchie)\
**Replies:** 0\
**Last updated:** [July 19, 2007, 9:20pm UTC](https://www.ruby-forum.com/t/xml-builder-cache-with-a-slight-problem-on-initial-load/109878 "2007-07-19T21:20:43Z")

</div>

Let me give you the background. I am using rxml for a lot of my views for a rails project. I also noticed that there is a lot of the XML being dynamically generated on data that doesn’t change that often. I worked on …

---

## [Simple noob question about rails data access](https://www.ruby-forum.com/t/simple-noob-question-about-rails-data-access/109871)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 4\
**Last updated:** [July 19, 2007, 8:01pm UTC](https://www.ruby-forum.com/t/simple-noob-question-about-rails-data-access/109871 "2007-07-19T20:01:51Z")

</div>

One of those things where i feel i should know how to do this, but just can’t work it out (maybe it’s time to stop working!) I have an ‘article’ object which has a foreign key to a ‘user’, linked by ‘user\_id’. My cur…

---

## [Css and Rails](https://www.ruby-forum.com/t/css-and-rails/109859)

<div class="topic-metadata">

**Author:** [@mxruby](https://www.ruby-forum.com/u/mxruby)\
**Replies:** 5\
**Last updated:** [July 19, 2007, 7:34pm UTC](https://www.ruby-forum.com/t/css-and-rails/109859 "2007-07-19T19:34:29Z")

</div>

It seems to not make any difference the folowing css code to the rails application any suggestion. ul#categories { width: 700px; text-align: center; padding: 5px; background-color: #ececec; border: 1px solid #ccc; …

---

## [Unsure how to Model this problem](https://www.ruby-forum.com/t/unsure-how-to-model-this-problem/109171)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [July 19, 2007, 7:24pm UTC](https://www.ruby-forum.com/t/unsure-how-to-model-this-problem/109171 "2007-07-19T19:24:28Z")

</div>

I’m working on a management interface for a Single Login authentication system. We have server web apps, each app can have different installs (same code base different database connection), and available user rights …

---

## [Custom scaffolding problem](https://www.ruby-forum.com/t/custom-scaffolding-problem/109766)

<div class="topic-metadata">

**Author:** [@turnkeytraders](https://www.ruby-forum.com/u/turnkeytraders)\
**Replies:** 3\
**Last updated:** [July 19, 2007, 7:22pm UTC](https://www.ruby-forum.com/t/custom-scaffolding-problem/109766 "2007-07-19T19:22:28Z")

</div>

I have been trying to do my own edit form and it keeps saying I have a missing template update.rhtml. Here is my controller code: def edit @client = Client.find(params\[:id\]) end def update @client = Client.find(pa…

---

## [Re: Poll: Which Editor/IDE Do You Use For Ruby/Rails Develop](https://www.ruby-forum.com/t/re-poll-which-editor-ide-do-you-use-for-ruby-rails-develop/109864)

<div class="topic-metadata">

**Author:** [@mslagell](https://www.ruby-forum.com/u/mslagell)\
**Replies:** 0\
**Last updated:** [July 19, 2007, 7:13pm UTC](https://www.ruby-forum.com/t/re-poll-which-editor-ide-do-you-use-for-ruby-rails-develop/109864 "2007-07-19T19:13:27Z")

</div>

I have been using RadRails and even though I like the new debugging features, the syntax highliting and ‘intellisense’ leave a lot to be desired. Hopefully Aptana will continue to but out releases. ----- Original Mes…

---

## [ProxyPass versus mod\_rewrite](https://www.ruby-forum.com/t/proxypass-versus-mod-rewrite/109863)

<div class="topic-metadata">

**Author:** [@fxn](https://www.ruby-forum.com/u/fxn)\
**Replies:** 0\
**Last updated:** [July 19, 2007, 7:10pm UTC](https://www.ruby-forum.com/t/proxypass-versus-mod-rewrite/109863 "2007-07-19T19:10:27Z")

</div>

In an Apache + Mongrel Cluster setup you can base the dispatch on ProxyPass or on “rewrite to the balancer unless the file exists”. In theory the ProxyPass approach has the pro of avoiding a stat call. But the number …

---

## [Association collection find vs ordinary array find](https://www.ruby-forum.com/t/association-collection-find-vs-ordinary-array-find/109770)

<div class="topic-metadata">

**Author:** [@jrochkind](https://www.ruby-forum.com/u/jrochkind)\
**Replies:** 6\
**Last updated:** [July 19, 2007, 6:41pm UTC](https://www.ruby-forum.com/t/association-collection-find-vs-ordinary-array-find/109770 "2007-07-19T18:41:14Z")

</div>

So on an ordinary Array, #find filters through the elements (in memory, naturally), for what you’re looking for. But ActiveRecord to-many associations redefine #find to behave like the ordinary ActiveRecord find, goin…

---

## [Sharing layouts between controllers](https://www.ruby-forum.com/t/sharing-layouts-between-controllers/109857)

<div class="topic-metadata">

**Author:** [@licinius](https://www.ruby-forum.com/u/licinius)\
**Replies:** 2\
**Last updated:** [July 19, 2007, 6:35pm UTC](https://www.ruby-forum.com/t/sharing-layouts-between-controllers/109857 "2007-07-19T18:35:27Z")

</div>

I have several controllers for doing simple editing of some lists in my application (like roles, responsibilities, etc), but I want to use the same layout from my main ‘member’ controller for everything. How do I link…

---

## [Sending email from rails, without an email server installed?](https://www.ruby-forum.com/t/sending-email-from-rails-without-an-email-server-installed/109856)

<div class="topic-metadata">

**Author:** [@Nathan\_Clark](https://www.ruby-forum.com/u/Nathan_Clark)\
**Replies:** 2\
**Last updated:** [July 19, 2007, 6:24pm UTC](https://www.ruby-forum.com/t/sending-email-from-rails-without-an-email-server-installed/109856 "2007-07-19T18:24:16Z")

</div>

Is there why to send email from a rails app which does not requires the installation of an email server such as postfix or sendmail?

---

## [Extending nil methods](https://www.ruby-forum.com/t/extending-nil-methods/109803)

<div class="topic-metadata">

**Author:** [@Reynard](https://www.ruby-forum.com/u/Reynard)\
**Replies:** 3\
**Last updated:** [July 19, 2007, 5:56pm UTC](https://www.ruby-forum.com/t/extending-nil-methods/109803 "2007-07-19T17:56:10Z")

</div>

has anyone done something like this? class NilClass def empty?; true; end def strip; nil; end def ; nil; end end which is nice so that you can do this without throwing exception: if !params\[:something\].empty? if …

---

## [Form invoking wrong action](https://www.ruby-forum.com/t/form-invoking-wrong-action/109854)

<div class="topic-metadata">

**Author:** [@dnstevenson](https://www.ruby-forum.com/u/dnstevenson)\
**Replies:** 2\
**Last updated:** [July 19, 2007, 5:49pm UTC](https://www.ruby-forum.com/t/form-invoking-wrong-action/109854 "2007-07-19T17:49:38Z")

</div>

I have a form that is supposed to call the ‘create\_asset\_type\_property’ action. For some reason, it always invokes the action ‘update’, and gives me the error message “Unknown action: No action responded to update”. …

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

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