# Rails

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

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

---

## [Postoffice@address.invalid emails](https://www.ruby-forum.com/t/postoffice-address-invalid-emails/122796)

<div class="topic-metadata">

**Author:** [@stimpy](https://www.ruby-forum.com/u/stimpy)\
**Replies:** 0\
**Last updated:** [December 12, 2007, 8:00am UTC](https://www.ruby-forum.com/t/postoffice-address-invalid-emails/122796 "2007-12-12T08:00:43Z")

</div>

I keep getting emails from this address stating that it can’t send emails to removed\_email\_address@domain.invalid. I’m assuming dez is an ex-user of pipex and the pipex mailserver is denying any and all requests sent …

---

## [Retrieving Images from Emails](https://www.ruby-forum.com/t/retrieving-images-from-emails/122795)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [December 12, 2007, 7:53am UTC](https://www.ruby-forum.com/t/retrieving-images-from-emails/122795 "2007-12-12T07:53:41Z")

</div>

Does anyone know of a way to retrieve images from emails and MMS messages? Ideally, I would like to send an MMS message to a designated email address/telephone number and populate a database entry with the image, tit…

---

## [Many-to-Many foreign key setup](https://www.ruby-forum.com/t/many-to-many-foreign-key-setup/122793)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 0\
**Last updated:** [December 12, 2007, 7:04am UTC](https://www.ruby-forum.com/t/many-to-many-foreign-key-setup/122793 "2007-12-12T07:04:34Z")

</div>

I’m setting up a many-to-many as per http://wiki.rubyonrails.org/rails/pages/ThroughAssociations and just wanted to run this by others before going too far down this path: C:\\code\\strawr\\db\\migrate\> C:\\code\\strawr\\d…

---

## [Find\_by\_sql help on site search](https://www.ruby-forum.com/t/find-by-sql-help-on-site-search/122792)

<div class="topic-metadata">

**Author:** [@mgiorno](https://www.ruby-forum.com/u/mgiorno)\
**Replies:** 0\
**Last updated:** [December 12, 2007, 7:04am UTC](https://www.ruby-forum.com/t/find-by-sql-help-on-site-search/122792 "2007-12-12T07:04:04Z")

</div>

Hello, Thanks for taking a look and offering up your help! I’m trying to set up a way my site visitor can search my site via band.name and videos.name simultaneously, for up to 10 results. The names should be search…

---

## [Custom validation methods](https://www.ruby-forum.com/t/custom-validation-methods/122790)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 0\
**Last updated:** [December 12, 2007, 6:32am UTC](https://www.ruby-forum.com/t/custom-validation-methods/122790 "2007-12-12T06:32:25Z")

</div>

I’ve been working on extending AR validations with some custom methods with the goals to: a) reduce the bulk the standard syntax can result in b) avoid having to write and read regex for common white-listed character…

---

## [Restful output different file format](https://www.ruby-forum.com/t/restful-output-different-file-format/122789)

<div class="topic-metadata">

**Author:** [@patrick](https://www.ruby-forum.com/u/patrick)\
**Replies:** 0\
**Last updated:** [December 12, 2007, 5:39am UTC](https://www.ruby-forum.com/t/restful-output-different-file-format/122789 "2007-12-12T05:39:14Z")

</div>

Hi, I see the in the Resful Rails, it default support the output format of the controller action is html, rjs, xml …etc. And xml can generate from defineing a xml format in the rxml file. But how to define the output…

---

## [Problems installing Rails](https://www.ruby-forum.com/t/problems-installing-rails/196537)

<div class="topic-metadata">

**Author:** [@Osiro](https://www.ruby-forum.com/u/Osiro)\
**Replies:** 1\
**Last updated:** [December 12, 2007, 4:38am UTC](https://www.ruby-forum.com/t/problems-installing-rails/196537 "2007-12-12T04:38:29Z")

</div>

Hi, I'm trying to install rails in my desktop and the command "gem install rails --include-dependencies" shows the following message: INFO: gem install -y is now default and will be removed INFO: use --ignore-depe…

---

## [Lost in translation - Rails 2.0 Nested Resources, Custom Actions](https://www.ruby-forum.com/t/lost-in-translation-rails-2-0-nested-resources-custom-actions/122778)

<div class="topic-metadata">

**Author:** [@ptontiger](https://www.ruby-forum.com/u/ptontiger)\
**Replies:** 4\
**Last updated:** [December 12, 2007, 4:30am UTC](https://www.ruby-forum.com/t/lost-in-translation-rails-2-0-nested-resources-custom-actions/122778 "2007-12-12T04:30:52Z")

</div>

The shift to the :has\_many and :has\_one options when defining nested resource routes has me perplexed. The block format allows me to define custom REST actions like publish in the example below: map.resources :users d…

---

## [Newbie Capistrano / Mongrel / debugging question](https://www.ruby-forum.com/t/newbie-capistrano-mongrel-debugging-question/122780)

<div class="topic-metadata">

**Author:** [@Pito](https://www.ruby-forum.com/u/Pito)\
**Replies:** 0\
**Last updated:** [December 12, 2007, 3:49am UTC](https://www.ruby-forum.com/t/newbie-capistrano-mongrel-debugging-question/122780 "2007-12-12T03:49:22Z")

</div>

This is a very particular case of a general need: I am coding on a Mac and deploying using capistrano onto a mongrel cluster on my server. What’s the best way for me to keep an eye on the ./shared/logs/ production.lo…

---

## [How to destroy objects associated with cookie-based sessions?](https://www.ruby-forum.com/t/how-to-destroy-objects-associated-with-cookie-based-sessions/122777)

<div class="topic-metadata">

**Author:** [@acampos](https://www.ruby-forum.com/u/acampos)\
**Replies:** 0\
**Last updated:** [December 12, 2007, 2:49am UTC](https://www.ruby-forum.com/t/how-to-destroy-objects-associated-with-cookie-based-sessions/122777 "2007-12-12T02:49:09Z")

</div>

If the id of an ActiveRecord object is stored in a cookie-based session, how can that object be destroyed when the session expires? I am aware of a technique for doing this with db-backed sessions, but I’m not clear …

---

## [Quick question about helpers](https://www.ruby-forum.com/t/quick-question-about-helpers/122724)

<div class="topic-metadata">

**Author:** [@smc7000](https://www.ruby-forum.com/u/smc7000)\
**Replies:** 3\
**Last updated:** [December 12, 2007, 2:10am UTC](https://www.ruby-forum.com/t/quick-question-about-helpers/122724 "2007-12-12T02:10:31Z")

</div>

Does anybody know where I can get a quick and dirty rundown on the rules for making helpers? I have some code that I want to extract from my view and turn into a helper method, but since it’s a mix of ruby and html, I…

---

## [501 Syntax: HELO hostname - Mail problem](https://www.ruby-forum.com/t/501-syntax-helo-hostname-mail-problem/122770)

<div class="topic-metadata">

**Author:** [@GPB](https://www.ruby-forum.com/u/GPB)\
**Replies:** 1\
**Last updated:** [December 12, 2007, 1:53am UTC](https://www.ruby-forum.com/t/501-syntax-helo-hostname-mail-problem/122770 "2007-12-12T01:53:02Z")

</div>

Hello… I am encountering a problem sending emails from Windows using an extermal smtp server. When attempting to send out the email, the following error is returned: 501 Syntax: HELO hostname I have checked the for…

---

## [Problems installing Rails](https://www.ruby-forum.com/t/problems-installing-rails/122775)

<div class="topic-metadata">

**Author:** [@Osiro](https://www.ruby-forum.com/u/Osiro)\
**Replies:** 0\
**Last updated:** [December 12, 2007, 1:40am UTC](https://www.ruby-forum.com/t/problems-installing-rails/122775 "2007-12-12T01:40:45Z")

</div>

Hi, I'm trying to install rails in my desktop and the command "gem install rails --include-dependencies" shows the following message: INFO: gem install -y is now default and will be removed INFO: use --ignore-depe…

---

## [Questions about rails 2.0](https://www.ruby-forum.com/t/questions-about-rails-2-0/122577)

<div class="topic-metadata">

**Author:** [@mix](https://www.ruby-forum.com/u/mix)\
**Replies:** 2\
**Last updated:** [December 12, 2007, 1:16am UTC](https://www.ruby-forum.com/t/questions-about-rails-2-0/122577 "2007-12-12T01:16:12Z")

</div>

Hi, i’ve found some questions on the rails blog which haven’t any answer. Because i’m interested too i paste them here: gonzo on 07 Dec 22:10: Does CSRF protection work with forms that are fully cached? rugal on 08 De…

---

## [Freshly starting with Rails.. Scaffold issue](https://www.ruby-forum.com/t/freshly-starting-with-rails-scaffold-issue/122771)

<div class="topic-metadata">

**Author:** [@geoffw](https://www.ruby-forum.com/u/geoffw)\
**Replies:** 7\
**Last updated:** [December 12, 2007, 1:03am UTC](https://www.ruby-forum.com/t/freshly-starting-with-rails-scaffold-issue/122771 "2007-12-12T01:03:21Z")

</div>

I understand that scaffolding has been removed in 2.x but is available as a generated script. I’ve generated the scaffold and inserted some data into the DB by hand (1 record). The scaffold pages ( http://ruby.geekla…

---

## [VM Ware tools install (RoR Dev box)](https://www.ruby-forum.com/t/vm-ware-tools-install-ror-dev-box/122764)

<div class="topic-metadata">

**Author:** [@jason\_white](https://www.ruby-forum.com/u/jason_white)\
**Replies:** 1\
**Last updated:** [December 12, 2007, 12:24am UTC](https://www.ruby-forum.com/t/vm-ware-tools-install-ror-dev-box/122764 "2007-12-12T00:24:46Z")

</div>

I created a VM using VMWare workstation 5.5.4. The VM was built using the latest release of Ubuntu 7.10, and i installed LAMP during the install process. The problem i’m running into is installing the VM Ware tools.…

---

## [Testing for the existence of templates](https://www.ruby-forum.com/t/testing-for-the-existence-of-templates/122767)

<div class="topic-metadata">

**Author:** [@Justin\_Wienckowski](https://www.ruby-forum.com/u/Justin_Wienckowski)\
**Replies:** 1\
**Last updated:** [December 12, 2007, 12:24am UTC](https://www.ruby-forum.com/t/testing-for-the-existence-of-templates/122767 "2007-12-12T00:24:11Z")

</div>

Hey folks, I’ve run into the need to test for the existence of template files in several Rails apps I’ve worked on. Particularly in circumstances where I’m rendering a partial, and use a different partial template f…

---

## [Gem install problem: fcgi](https://www.ruby-forum.com/t/gem-install-problem-fcgi/122752)

<div class="topic-metadata">

**Author:** [@nick](https://www.ruby-forum.com/u/nick)\
**Replies:** 4\
**Last updated:** [December 12, 2007, 12:01am UTC](https://www.ruby-forum.com/t/gem-install-problem-fcgi/122752 "2007-12-12T00:01:20Z")

</div>

hi, all I have encounter a problem to install ‘fcgi’, this is the error output ruby extconf.rb install fcgi ruby: No such file or directory – extconf.rb (LoadError) so I manually run extconf.rb but still not work: have…

---

## [Route for nested delete](https://www.ruby-forum.com/t/route-for-nested-delete/122753)

<div class="topic-metadata">

**Author:** [@rykkers](https://www.ruby-forum.com/u/rykkers)\
**Replies:** 2\
**Last updated:** [December 11, 2007, 11:22pm UTC](https://www.ruby-forum.com/t/route-for-nested-delete/122753 "2007-12-11T23:22:29Z")

</div>

I seem to be stuck on restful deletion. I’ve got a person model and a wish model, a person has many wishes. Here’s my routes.rb (simplified) map.resources :people do |people| people.resources :wishes end Now I wan…

---

## [How to retrieve unknow attributes and values](https://www.ruby-forum.com/t/how-to-retrieve-unknow-attributes-and-values/122766)

<div class="topic-metadata">

**Author:** [@raimon](https://www.ruby-forum.com/u/raimon)\
**Replies:** 0\
**Last updated:** [December 11, 2007, 10:53pm UTC](https://www.ruby-forum.com/t/how-to-retrieve-unknow-attributes-and-values/122766 "2007-12-11T22:53:55Z")

</div>

Hello again, I’m receiving, I think, a collection, and each element of the collection have some attributes and values, and all of them are the same. Here is the result in a debug(@result) 5: PERIOD 0: “1” period: …

---

## [Best practis; copy model with associated models](https://www.ruby-forum.com/t/best-practis-copy-model-with-associated-models/122759)

<div class="topic-metadata">

**Author:** [@harm](https://www.ruby-forum.com/u/harm)\
**Replies:** 1\
**Last updated:** [December 11, 2007, 10:46pm UTC](https://www.ruby-forum.com/t/best-practis-copy-model-with-associated-models/122759 "2007-12-11T22:46:10Z")

</div>

Dear list, For a customer I am building a collaboration environment, including a wiki/forum/file sharing etc. Now they want to ‘template’ a collaboration environment by adding some default files, prefilling the wiki,…

---

## [\[ANN\] Engines 2.0 (ish)](https://www.ruby-forum.com/t/ann-engines-2-0-ish/122596)

<div class="topic-metadata">

**Author:** [@nitr0z](https://www.ruby-forum.com/u/nitr0z)\
**Replies:** 8\
**Last updated:** [December 11, 2007, 10:33pm UTC](https://www.ruby-forum.com/t/ann-engines-2-0-ish/122596 "2007-12-11T22:33:29Z")

</div>

Hi all, Just a quick note to let you know, should it be relevant, that we’re readied a new release of the Engines plugin, revamped and ready for Rails 2.0, and would absolutely love for you to start using it and send…

---

## [Checking form values inside RJS](https://www.ruby-forum.com/t/checking-form-values-inside-rjs/122739)

<div class="topic-metadata">

**Author:** [@ian](https://www.ruby-forum.com/u/ian)\
**Replies:** 4\
**Last updated:** [December 11, 2007, 10:16pm UTC](https://www.ruby-forum.com/t/checking-form-values-inside-rjs/122739 "2007-12-11T22:16:47Z")

</div>

I’m testing a small bit of functionality using RJS. I have a form with a radio-button set – a Yes button and No button – and a text input. I’m using observe\_form to send the entire form to the server, instead of obser…

---

## [What does this mean?](https://www.ruby-forum.com/t/what-does-this-mean/122757)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 0\
**Last updated:** [December 11, 2007, 9:18pm UTC](https://www.ruby-forum.com/t/what-does-this-mean/122757 "2007-12-11T21:18:11Z")

</div>

undefined method \`table\_name’ for REXML::Comment:Class I have a project locally on my machine which is throwing this error. Then there is the project that is up on the server which is not throwing this error. The loc…

---

## [Ruby-gettext valitation?](https://www.ruby-forum.com/t/ruby-gettext-valitation/122750)

<div class="topic-metadata">

**Author:** [@kilo](https://www.ruby-forum.com/u/kilo)\
**Replies:** 1\
**Last updated:** [December 11, 2007, 9:02pm UTC](https://www.ruby-forum.com/t/ruby-gettext-valitation/122750 "2007-12-11T21:02:34Z")

</div>

How to enable a model validation error translation in ruby-gettext? Translated po files are in ruby/gems/1.8/gems/rake-0.7.3/… somewhere, should I copy a rails.po to my projekt po-folder or what?

---

## [Exist.com](https://www.ruby-forum.com/t/exist-com/122689)

<div class="topic-metadata">

**Author:** [@rocky](https://www.ruby-forum.com/u/rocky)\
**Replies:** 1\
**Last updated:** [December 11, 2007, 8:04pm UTC](https://www.ruby-forum.com/t/exist-com/122689 "2007-12-11T20:04:39Z")

</div>

anyone have any experience with a company called exist.com? thx.

---

## [Attachment\_fu and virtual hosts on S3](https://www.ruby-forum.com/t/attachment-fu-and-virtual-hosts-on-s3/122749)

<div class="topic-metadata">

**Author:** [@rohit](https://www.ruby-forum.com/u/rohit)\
**Replies:** 1\
**Last updated:** [December 11, 2007, 7:41pm UTC](https://www.ruby-forum.com/t/attachment-fu-and-virtual-hosts-on-s3/122749 "2007-12-11T19:41:11Z")

</div>

Hey, I’ve gotten attachment\_fu working well with Amazon S3. The only problem is that I don’t know how to generate public URLs that contain my much-cooler virtual S3 host names, e.g. ‘images.mydomain.com’ with the plu…

---

## [Forgot Password with RESTFul\_Authentication plugin?](https://www.ruby-forum.com/t/forgot-password-with-restful-authentication-plugin/122744)

<div class="topic-metadata">

**Author:** [@softf5ajivanet](https://www.ruby-forum.com/u/softf5ajivanet)\
**Replies:** 1\
**Last updated:** [December 11, 2007, 7:30pm UTC](https://www.ruby-forum.com/t/forgot-password-with-restful-authentication-plugin/122744 "2007-12-11T19:30:35Z")

</div>

Hi, migrating over to Rails 2.0.1 and stuck on this final bit. I’ve replaced the acts\_as\_authenticated plugin with the RestFul\_Authentication plugin, curing some session errors, added Will\_Paginate to allow me to pagi…

---

## [Resolve hostname from IP](https://www.ruby-forum.com/t/resolve-hostname-from-ip/122703)

<div class="topic-metadata">

**Author:** [@gustav](https://www.ruby-forum.com/u/gustav)\
**Replies:** 4\
**Last updated:** [December 11, 2007, 6:47pm UTC](https://www.ruby-forum.com/t/resolve-hostname-from-ip/122703 "2007-12-11T18:47:07Z")

</div>

Hi. I’ve read about using request.remote\_ip to resolve an IP from an incoming request. Is there a similar way to resolve the hostname from an incoming request or do I need to use the IP in combination with some other …

---

## [In\_place\_edit\_for into which plugin?](https://www.ruby-forum.com/t/in-place-edit-for-into-which-plugin/122723)

<div class="topic-metadata">

**Author:** [@chriscole](https://www.ruby-forum.com/u/chriscole)\
**Replies:** 2\
**Last updated:** [December 11, 2007, 6:38pm UTC](https://www.ruby-forum.com/t/in-place-edit-for-into-which-plugin/122723 "2007-12-11T18:38:55Z")

</div>

The docs state that in\_place\_edit\_for has been moved into a plugin for Rails 2.0: Module ActionController::Macros::InPlaceEditing::ClassMethods “DEPRECATION WARNING: This method will become a separate plugin when Rai…

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

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