# Rails

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

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

---

## [Rendering partial chokes on :locals](https://www.ruby-forum.com/t/rendering-partial-chokes-on-locals/180520)

<div class="topic-metadata">

**Author:** [@iggybaseball](https://www.ruby-forum.com/u/iggybaseball)\
**Replies:** 13\
**Last updated:** [January 16, 2010, 9:44pm UTC](https://www.ruby-forum.com/t/rendering-partial-chokes-on-locals/180520 "2010-01-16T21:44:43Z")

</div>

I am trying to render a partial and am getting a 500 error when I try to pass variables in :locals. -I created a new table using scaffolding -I rake db:migrate my new table -I copied the new.html.erb file and renamed…

---

## [Ruby-cldr](https://www.ruby-forum.com/t/ruby-cldr/181714)

<div class="topic-metadata">

**Author:** [@Sven\_F](https://www.ruby-forum.com/u/Sven_F)\
**Replies:** 0\
**Last updated:** [January 16, 2010, 8:49pm UTC](https://www.ruby-forum.com/t/ruby-cldr/181714 "2010-01-16T20:49:07Z")

</div>

I’ve finally come around working on my cldr code a little bit. GitHub - ruby-i18n/ruby-cldr: Ruby library for exporting data from CLDR (Common Locale Data Repository) RubyGems.org | your community gem host The goals o…

---

## [Polymorphic associations and STI](https://www.ruby-forum.com/t/polymorphic-associations-and-sti/181681)

<div class="topic-metadata">

**Author:** [@xinu](https://www.ruby-forum.com/u/xinu)\
**Replies:** 3\
**Last updated:** [January 16, 2010, 8:38pm UTC](https://www.ruby-forum.com/t/polymorphic-associations-and-sti/181681 "2010-01-16T20:38:35Z")

</div>

If a Problem with a polymorphic association and STI. class Message \< ActiveRecord::Base belongs\_to :source, :polymorphic =\> true end class Letter \< Message end class Post \< ActiveRecord::Base has\_many :messages, :…

---

## [Chaining queries in ActiveRecord](https://www.ruby-forum.com/t/chaining-queries-in-activerecord/181679)

<div class="topic-metadata">

**Author:** [@parkurm](https://www.ruby-forum.com/u/parkurm)\
**Replies:** 1\
**Last updated:** [January 16, 2010, 8:36pm UTC](https://www.ruby-forum.com/t/chaining-queries-in-activerecord/181679 "2010-01-16T20:36:49Z")

</div>

Hi all, Stuck at this problem for several days. Tried to use named\_scope, scope\_out, and plugin such as searchlogic, but no result. The problem is as follows: I have a pic table and tag table, and a join table called…

---

## [Extending instance-methods of an Module for Plugin-Development](https://www.ruby-forum.com/t/extending-instance-methods-of-an-module-for-plugin-development/181715)

<div class="topic-metadata">

**Author:** [@k-b](https://www.ruby-forum.com/u/k-b)\
**Replies:** 0\
**Last updated:** [January 16, 2010, 8:21pm UTC](https://www.ruby-forum.com/t/extending-instance-methods-of-an-module-for-plugin-development/181715 "2010-01-16T20:21:01Z")

</div>

Don’t know if i should write this to rails or ruby mailinglist. But in the case i wan’t to extend the facebooker-plugin without touching it, i will here. Instance-Methods of modules? The methods in a module may be …

---

## [Training](https://www.ruby-forum.com/t/training/181671)

<div class="topic-metadata">

**Author:** [@gerbdla](https://www.ruby-forum.com/u/gerbdla)\
**Replies:** 3\
**Last updated:** [January 16, 2010, 6:56pm UTC](https://www.ruby-forum.com/t/training/181671 "2010-01-16T18:56:09Z")

</div>

Does anyone know of a place where I can get either online or classroom training in the US preferrably on the west coast? Thanks

---

## [Auto Sprite 1.0](https://www.ruby-forum.com/t/auto-sprite-1-0/181372)

<div class="topic-metadata">

**Author:** [@stephen](https://www.ruby-forum.com/u/stephen)\
**Replies:** 3\
**Last updated:** [January 16, 2010, 6:32pm UTC](https://www.ruby-forum.com/t/auto-sprite-1-0/181372 "2010-01-16T18:32:09Z")

</div>

Hi all, Just want to announce my auto\_sprite gem which some of you may find handy… It makes using CSS sprites painless. As a bonus - should you remove it some day, it doesn’t break you app, it just reverts to tags…

---

## [Rake aborted!](https://www.ruby-forum.com/t/rake-aborted/181708)

<div class="topic-metadata">

**Author:** [@aashishkiran](https://www.ruby-forum.com/u/aashishkiran)\
**Replies:** 4\
**Last updated:** [January 16, 2010, 6:05pm UTC](https://www.ruby-forum.com/t/rake-aborted/181708 "2010-01-16T18:05:49Z")

</div>

\---------rakefile------------- require ‘csv’ require ‘rake’ task :purchaseAlcohol do puts “Purchased Vodka” end task :mixDrink do puts “Mixed Fuzzy Navel” end task :getSmashed do puts “Dood, everthingâ€™s blurr…

---

## [Converting snmpset() and snmpget() functions of php in rails](https://www.ruby-forum.com/t/converting-snmpset-and-snmpget-functions-of-php-in-rails/181711)

<div class="topic-metadata">

**Author:** [@atheeq](https://www.ruby-forum.com/u/atheeq)\
**Replies:** 0\
**Last updated:** [January 16, 2010, 4:44pm UTC](https://www.ruby-forum.com/t/converting-snmpset-and-snmpget-functions-of-php-in-rails/181711 "2010-01-16T16:44:48Z")

</div>

hello, I am trying to convert a php script into a rails script. I came accross snmpset() and snmpget() functions and I am stuck here. Here is a part of the php script. Please help me in converting these two functions…

---

## [Postgresql error](https://www.ruby-forum.com/t/postgresql-error/181710)

<div class="topic-metadata">

**Author:** [@atheeq](https://www.ruby-forum.com/u/atheeq)\
**Replies:** 0\
**Last updated:** [January 16, 2010, 4:06pm UTC](https://www.ruby-forum.com/t/postgresql-error/181710 "2010-01-16T16:06:12Z")

</div>

Hello, I successfully dumped the database in postgresql. Now I want to connect my rails application to the postgresql database, able to start the server, but I am getting this error when I browse the application from …

---

## [\[deprecated\] warning](https://www.ruby-forum.com/t/deprecated-warning/181693)

<div class="topic-metadata">

**Author:** [@newb](https://www.ruby-forum.com/u/newb)\
**Replies:** 3\
**Last updated:** [January 16, 2010, 10:19am UTC](https://www.ruby-forum.com/t/deprecated-warning/181693 "2010-01-16T10:19:24Z")

</div>

Hi… require “spreadsheet/Excel” in my controller i have a method to generate reports for my logs. That functionality works fine. Why do i get the below errors in my server console. \[DEPRECATED\] By requiring ‘spreads…

---

## [Digital digest in Rails](https://www.ruby-forum.com/t/digital-digest-in-rails/181647)

<div class="topic-metadata">

**Author:** [@artchrst](https://www.ruby-forum.com/u/artchrst)\
**Replies:** 3\
**Last updated:** [January 16, 2010, 3:51am UTC](https://www.ruby-forum.com/t/digital-digest-in-rails/181647 "2010-01-16T03:51:59Z")

</div>

Hi guys, I need a secure data transfer mechanism between my server (APIs and normal HTMLs) and clients (normal users or other servers). Is digital digest using Hash + public and private keys mechanism a correct way? …

---

## [Parsing a string from a database and executing the result](https://www.ruby-forum.com/t/parsing-a-string-from-a-database-and-executing-the-result/181689)

<div class="topic-metadata">

**Author:** [@daz](https://www.ruby-forum.com/u/daz)\
**Replies:** 0\
**Last updated:** [January 16, 2010, 2:53am UTC](https://www.ruby-forum.com/t/parsing-a-string-from-a-database-and-executing-the-result/181689 "2010-01-16T02:53:39Z")

</div>

Hi, I originally posted this question in the ruby forum thinking that I had a design that would work and just needed help implementing it. However, I’ve been advised to try here for an alternative way to solve my pr…

---

## [Newly released Rails plugin for showing a calendar of reservations](https://www.ruby-forum.com/t/newly-released-rails-plugin-for-showing-a-calendar-of-reservations/181688)

<div class="topic-metadata">

**Author:** [@Mike\_Gehard](https://www.ruby-forum.com/u/Mike_Gehard)\
**Replies:** 0\
**Last updated:** [January 16, 2010, 2:30am UTC](https://www.ruby-forum.com/t/newly-released-rails-plugin-for-showing-a-calendar-of-reservations/181688 "2010-01-16T02:30:38Z")

</div>

Hello all, I just wanted to let you all know that there is a new Rails plugin out there that will allow you to easily render a calendar view of reservation objects. Check out this blog posting for more information: …

---

## [Ketchup: an app for meeting notes, simple, fast](https://www.ruby-forum.com/t/ketchup-an-app-for-meeting-notes-simple-fast/181685)

<div class="topic-metadata">

**Author:** [@paul](https://www.ruby-forum.com/u/paul)\
**Replies:** 0\
**Last updated:** [January 16, 2010, 12:56am UTC](https://www.ruby-forum.com/t/ketchup-an-app-for-meeting-notes-simple-fast/181685 "2010-01-16T00:56:24Z")

</div>

Hey all, I just thought I’d like to share an app I’ve been working on for a while. Ketchup is an app for storing agenda and meeting notes online. We designed it to be as simple as possible. The app is a standard Rai…

---

## [Pictures out from images folder](https://www.ruby-forum.com/t/pictures-out-from-images-folder/181659)

<div class="topic-metadata">

**Author:** [@erwillie](https://www.ruby-forum.com/u/erwillie)\
**Replies:** 3\
**Last updated:** [January 16, 2010, 12:18am UTC](https://www.ruby-forum.com/t/pictures-out-from-images-folder/181659 "2010-01-16T00:18:21Z")

</div>

Hi!!! I wanna to show in my web page a picture, but this picture I canÂ´t move it from the folder where it is. I know that in Rails you have to have the picture in the images folder, but I wanna to know if it is possi…

---

## [Need some help understanding file\_field and local\_path](https://www.ruby-forum.com/t/need-some-help-understanding-file-field-and-local-path/181584)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 11\
**Last updated:** [January 15, 2010, 11:48pm UTC](https://www.ruby-forum.com/t/need-some-help-understanding-file-field-and-local-path/181584 "2010-01-15T23:48:24Z")

</div>

Hi all, I’ve tried very hard to understand file\_field and how to determine local\_path. However, I’m running into some issues and I believe it’s probably due to the different behaviors of file\_field and local\_path to…

---

## [XML output generates dashes rather than underscore](https://www.ruby-forum.com/t/xml-output-generates-dashes-rather-than-underscore/181673)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 3\
**Last updated:** [January 15, 2010, 9:02pm UTC](https://www.ruby-forum.com/t/xml-output-generates-dashes-rather-than-underscore/181673 "2010-01-15T21:02:15Z")

</div>

Hey all, I’m trying to change the xml output from a dash to underscore: 2010-01-15T17:00:23Z to \<updated\_at type=“datetime”\>2010-01-15T17:00:23Z\</updated\_at\> Does anyone have any suggestions? Thanks.

---

## [How to add a route to the method 'options' for each controller?](https://www.ruby-forum.com/t/how-to-add-a-route-to-the-method-options-for-each-controller/181434)

<div class="topic-metadata">

**Author:** [@AJ\_ONeal](https://www.ruby-forum.com/u/AJ_ONeal)\
**Replies:** 1\
**Last updated:** [January 15, 2010, 8:48pm UTC](https://www.ruby-forum.com/t/how-to-add-a-route-to-the-method-options-for-each-controller/181434 "2010-01-15T20:48:46Z")

</div>

Currently I’m mapping all of my controllers to use the same set of http options in a controller called option map.connect ‘\*path’, :controller =\> ‘option’, :action =\> ‘options’, :conditions =\> {:method =\> :options} …

---

## [Change default method mappings?](https://www.ruby-forum.com/t/change-default-method-mappings/181436)

<div class="topic-metadata">

**Author:** [@AJ\_ONeal](https://www.ruby-forum.com/u/AJ_ONeal)\
**Replies:** 4\
**Last updated:** [January 15, 2010, 8:47pm UTC](https://www.ruby-forum.com/t/change-default-method-mappings/181436 "2010-01-15T20:47:00Z")

</div>

Currently these mappings are established somewhere, but I haven’t found it :get =\> ‘index’, ‘show’ :post =\> ‘create’ :delete =\> ‘destroy’ :put =\> ‘edit’ In particular I want to add :options =\> ‘options’ AJ ONeal

---

## [Ruby doesnt look at local gems](https://www.ruby-forum.com/t/ruby-doesnt-look-at-local-gems/181536)

<div class="topic-metadata">

**Author:** [@Larry\_K](https://www.ruby-forum.com/u/Larry_K)\
**Replies:** 2\
**Last updated:** [January 15, 2010, 8:30pm UTC](https://www.ruby-forum.com/t/ruby-doesnt-look-at-local-gems/181536 "2010-01-15T20:30:02Z")

</div>

How can I get ruby to look for gems in the local repository first, then in the site repository? The following bash env vars are set and exported: GEM\_HOME=/home5/allcarsm/ruby/gems GEM\_PATH=/home5/allcarsm/ruby/gems…

---

## [Thank you Rails and many developer. :)](https://www.ruby-forum.com/t/thank-you-rails-and-many-developer/181672)

<div class="topic-metadata">

**Author:** [@neocoin](https://www.ruby-forum.com/u/neocoin)\
**Replies:** 0\
**Last updated:** [January 15, 2010, 7:42pm UTC](https://www.ruby-forum.com/t/thank-you-rails-and-many-developer/181672 "2010-01-15T19:42:37Z")

</div>

Sorry, until now, I only read this mailing list for my job and fun. Thank you all But this time, ThatÂ´s the limit for only read. Recently, I has many changing request from many user activity. ( http://onioning.com …

---

## [Migrations with FrontBase adapter](https://www.ruby-forum.com/t/migrations-with-frontbase-adapter/181605)

<div class="topic-metadata">

**Author:** [@tony44](https://www.ruby-forum.com/u/tony44)\
**Replies:** 1\
**Last updated:** [January 15, 2010, 7:18pm UTC](https://www.ruby-forum.com/t/migrations-with-frontbase-adapter/181605 "2010-01-15T19:18:42Z")

</div>

I’m trying to use ActiveRecord::Migrate using the frontbase adapter. I get the following error, as previously reported for the Oracle adapter a while ago. Seems that the select\_rows method isn’t implemented in the ada…

---

## [SNMP in rails](https://www.ruby-forum.com/t/snmp-in-rails/181656)

<div class="topic-metadata">

**Author:** [@atheeq](https://www.ruby-forum.com/u/atheeq)\
**Replies:** 1\
**Last updated:** [January 15, 2010, 7:15pm UTC](https://www.ruby-forum.com/t/snmp-in-rails/181656 "2010-01-15T19:15:06Z")

</div>

Can anyone tell me the equivalent of snmpset() and snmpget() functions of php in rails?? thanks in advance.

---

## [Generating views in pdf, rtf, or doc format](https://www.ruby-forum.com/t/generating-views-in-pdf-rtf-or-doc-format/181661)

<div class="topic-metadata">

**Author:** [@parki](https://www.ruby-forum.com/u/parki)\
**Replies:** 2\
**Last updated:** [January 15, 2010, 6:44pm UTC](https://www.ruby-forum.com/t/generating-views-in-pdf-rtf-or-doc-format/181661 "2010-01-15T18:44:40Z")

</div>

I have a requirement to generate views (list and show views, including data and uploaded images) into a format that can be saved and/or emailed. I’m looking for opinions on the easiest way to achieve this. I’ve resea…

---

## [Design question and opinions](https://www.ruby-forum.com/t/design-question-and-opinions/181633)

<div class="topic-metadata">

**Author:** [@imnotquitejack](https://www.ruby-forum.com/u/imnotquitejack)\
**Replies:** 7\
**Last updated:** [January 15, 2010, 4:59pm UTC](https://www.ruby-forum.com/t/design-question-and-opinions/181633 "2010-01-15T16:59:30Z")

</div>

I’m just working through the Agile web dev book (which is great) and i’m at the point i’d like to put together something to test my understanding. Luckily I have a project that will help my gaming community organise g…

---

## [Send\_file errors out with nil.update](https://www.ruby-forum.com/t/send-file-errors-out-with-nil-update/181649)

<div class="topic-metadata">

**Author:** [@dreamwave](https://www.ruby-forum.com/u/dreamwave)\
**Replies:** 3\
**Last updated:** [January 15, 2010, 4:20pm UTC](https://www.ruby-forum.com/t/send-file-errors-out-with-nil-update/181649 "2010-01-15T16:20:04Z")

</div>

Hey everyone, I’ve got a basic setup via an apache2 server, virtualhost ect. At the moment I’m just trying to use the send\_file function of rails (actionpack I believe?) but it continues to error out. Here is the bre…

---

## [Attach an action to a partial?](https://www.ruby-forum.com/t/attach-an-action-to-a-partial/181660)

<div class="topic-metadata">

**Author:** [@trevoke](https://www.ruby-forum.com/u/trevoke)\
**Replies:** 13\
**Last updated:** [January 15, 2010, 3:56pm UTC](https://www.ruby-forum.com/t/attach-an-action-to-a-partial/181660 "2010-01-15T15:56:39Z")

</div>

Is it possible to render a partial with an action attached to it, just like the regular views? Or should I just call the action which renders the partial?

---

## [Difference between Mongrel and Webrick](https://www.ruby-forum.com/t/difference-between-mongrel-and-webrick/181546)

<div class="topic-metadata">

**Author:** [@Rails\_ROR](https://www.ruby-forum.com/u/Rails_ROR)\
**Replies:** 7\
**Last updated:** [January 15, 2010, 3:49pm UTC](https://www.ruby-forum.com/t/difference-between-mongrel-and-webrick/181546 "2010-01-15T15:49:02Z")

</div>

Hi Everybody, I would like to know the exact difference between Mongrel and Webrick. I have gone through few sites about Mongrel and Webrick differences. I came to know that Mongrel is fast, efficient than Webrick. A…

---

## [500 error in sending bulk mail](https://www.ruby-forum.com/t/500-error-in-sending-bulk-mail/181645)

<div class="topic-metadata">

**Author:** [@shyam\_mohan](https://www.ruby-forum.com/u/shyam_mohan)\
**Replies:** 2\
**Last updated:** [January 15, 2010, 3:27pm UTC](https://www.ruby-forum.com/t/500-error-in-sending-bulk-mail/181645 "2010-01-15T15:27:22Z")

</div>

Hi All i started a project one year before…form this notifications and mails used to be send… when the mail list was small every thing was working good now my email list increases …in thousands so this 500 error o…

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

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