# Rails

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

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

---

## [Names questions](https://www.ruby-forum.com/t/names-questions/164628)

<div class="topic-metadata">

**Author:** [@aldoitalo](https://www.ruby-forum.com/u/aldoitalo)\
**Replies:** 0\
**Last updated:** [April 3, 2009, 12:39pm UTC](https://www.ruby-forum.com/t/names-questions/164628 "2009-04-03T12:39:39Z")

</div>

i have nested resources to configurate, but i don’t know wich logical name using for models, examples: #################################### map.resources :categories do |categories| categories.resources :categoryphot…

---

## [Uploads with FCKEditor](https://www.ruby-forum.com/t/uploads-with-fckeditor/164609)

<div class="topic-metadata">

**Author:** [@gattone](https://www.ruby-forum.com/u/gattone)\
**Replies:** 4\
**Last updated:** [April 3, 2009, 10:09am UTC](https://www.ruby-forum.com/t/uploads-with-fckeditor/164609 "2009-04-03T10:09:26Z")

</div>

Hello everyone. Since I’ve found very poor documentation about the rails FCKEditor plug-in and Easy-FCKEditor (which is a fork of the very same plug-in), I decided to bother you with my noobish questions. I have this…

---

## [Undefined Method error when creating method for collection of objects](https://www.ruby-forum.com/t/undefined-method-error-when-creating-method-for-collection-of-objects/164543)

<div class="topic-metadata">

**Author:** [@rick](https://www.ruby-forum.com/u/rick)\
**Replies:** 7\
**Last updated:** [April 3, 2009, 9:57am UTC](https://www.ruby-forum.com/t/undefined-method-error-when-creating-method-for-collection-of-objects/164543 "2009-04-03T09:57:43Z")

</div>

Hi I am learning rails and have hit a bit of a wall. I have created methods previousley that work fine on a single object. However in my latest project I am trying to calculate the total cost of a group of phonecalls …

---

## [Auto increment primary key different from the default 'id'](https://www.ruby-forum.com/t/auto-increment-primary-key-different-from-the-default-id/164551)

<div class="topic-metadata">

**Author:** [@marc](https://www.ruby-forum.com/u/marc)\
**Replies:** 2\
**Last updated:** [April 3, 2009, 8:26am UTC](https://www.ruby-forum.com/t/auto-increment-primary-key-different-from-the-default-id/164551 "2009-04-03T08:26:17Z")

</div>

Hi! I working in an application (developed in access over a oracle DB) on production server with all tables and fields that can’t be changed. No table has an ‘id’ field for his primary key. I want to migrate this app…

---

## [Need help with image resizing and configuration in rails](https://www.ruby-forum.com/t/need-help-with-image-resizing-and-configuration-in-rails/164604)

<div class="topic-metadata">

**Author:** [@gomix](https://www.ruby-forum.com/u/gomix)\
**Replies:** 3\
**Last updated:** [April 3, 2009, 8:11am UTC](https://www.ruby-forum.com/t/need-help-with-image-resizing-and-configuration-in-rails/164604 "2009-04-03T08:11:03Z")

</div>

Hello, I’m trying to finish a Ruby on Rails proyect for a client and I just need someone to help me out with implementing a resizing function with RMagic. I’m offering to pay a modest price according to the time invl…

---

## [Preventing a submitted hash from ActiveRecord DB store](https://www.ruby-forum.com/t/preventing-a-submitted-hash-from-activerecord-db-store/163079)

<div class="topic-metadata">

**Author:** [@ram](https://www.ruby-forum.com/u/ram)\
**Replies:** 4\
**Last updated:** [April 3, 2009, 7:42am UTC](https://www.ruby-forum.com/t/preventing-a-submitted-hash-from-activerecord-db-store/163079 "2009-04-03T07:42:20Z")

</div>

Hi all, I have a multi model form (Project with many tasks) and I want to prevent a task from being saved to the DB if it is empty ie. if there is no i/p for that task from the user. I tried the following class Task \<…

---

## [REST: nested resources and rendering xml](https://www.ruby-forum.com/t/rest-nested-resources-and-rendering-xml/164526)

<div class="topic-metadata">

**Author:** [@neubyr](https://www.ruby-forum.com/u/neubyr)\
**Replies:** 2\
**Last updated:** [April 3, 2009, 6:03am UTC](https://www.ruby-forum.com/t/rest-nested-resources-and-rendering-xml/164526 "2009-04-03T06:03:34Z")

</div>

I am almost done with my RESTful application design. Following are the nested resources: map.resources :topics do |topics| topics.resources :items do |items| items.resources :attachments end end A topic has a list…

---

## [Problem with my show page](https://www.ruby-forum.com/t/problem-with-my-show-page/164612)

<div class="topic-metadata">

**Author:** [@rikki123s](https://www.ruby-forum.com/u/rikki123s)\
**Replies:** 4\
**Last updated:** [April 3, 2009, 5:41am UTC](https://www.ruby-forum.com/t/problem-with-my-show-page/164612 "2009-04-03T05:41:48Z")

</div>

Ok I have now got my papers to be able to have an author be selected for them from a drop down box generated in the new paper page ‘papers/new.html.erb’, which was fixed in an earlier post. Now I have a problem on the…

---

## [Recovering in Ruby-libxml parser from invalid UTF8 code](https://www.ruby-forum.com/t/recovering-in-ruby-libxml-parser-from-invalid-utf8-code/164614)

<div class="topic-metadata">

**Author:** [@Jeffrey\_LSTaylor](https://www.ruby-forum.com/u/Jeffrey_LSTaylor)\
**Replies:** 2\
**Last updated:** [April 3, 2009, 4:26am UTC](https://www.ruby-forum.com/t/recovering-in-ruby-libxml-parser-from-invalid-utf8-code/164614 "2009-04-03T04:26:11Z")

</div>

I am parsing XML streams with ruby-libxml using the XML::Reader class. Several have invalid UTF-8 characters. I need a tutorial or at least some hints on how to recover and continue the parsing. TIA, Jeffrey

---

## [Changes to ActiveMailer?](https://www.ruby-forum.com/t/changes-to-activemailer/164554)

<div class="topic-metadata">

**Author:** [@davidf](https://www.ruby-forum.com/u/davidf)\
**Replies:** 3\
**Last updated:** [April 3, 2009, 4:20am UTC](https://www.ruby-forum.com/t/changes-to-activemailer/164554 "2009-04-03T04:20:55Z")

</div>

I recently updated Rails on my development server. All went well. But I just noticed that my contact page now generates the following error when a contact is submitted. Net::SMTPAuthenticationError (530 5.7.0 Must is…

---

## [Site with drupal vs ruby](https://www.ruby-forum.com/t/site-with-drupal-vs-ruby/164425)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 8\
**Last updated:** [April 3, 2009, 4:13am UTC](https://www.ruby-forum.com/t/site-with-drupal-vs-ruby/164425 "2009-04-03T04:13:54Z")

</div>

Hi guys, I have gotten quotes with several drupal devs and wanted to compare this with ruby on rails. Between the range of $2500-5000 can I have a custom site created in ruby, similar fashion to those of other video …

---

## [Drop Down Menu Problem](https://www.ruby-forum.com/t/drop-down-menu-problem/164483)

<div class="topic-metadata">

**Author:** [@rikki123s](https://www.ruby-forum.com/u/rikki123s)\
**Replies:** 1\
**Last updated:** [April 3, 2009, 3:36am UTC](https://www.ruby-forum.com/t/drop-down-menu-problem/164483 "2009-04-03T03:36:33Z")

</div>

Here is my papers table: title:string duration:integer exam\_at:datetime paper\_id:integer author:string and here is my author table: name:string email:string telephone:string author\_id:string I have created vie…

---

## [Inheritance vs Polymorphism: Design Question for "IS A"](https://www.ruby-forum.com/t/inheritance-vs-polymorphism-design-question-for-is-a/164419)

<div class="topic-metadata">

**Author:** [@kinunt](https://www.ruby-forum.com/u/kinunt)\
**Replies:** 2\
**Last updated:** [April 3, 2009, 3:29am UTC](https://www.ruby-forum.com/t/inheritance-vs-polymorphism-design-question-for-is-a/164419 "2009-04-03T03:29:16Z")

</div>

Hi! I have the next abstract composition: Organization ConsultingFirm IS A Organization Client IS A Organization User ConsultingFirmUser IS A User ClientUser IS A User ConsultingFirmUser BELONGS TO ConsultingFirm …

---

## [Ruby 1.9, Rails 2.3.2, and MSSQL issue](https://www.ruby-forum.com/t/ruby-1-9-rails-2-3-2-and-mssql-issue/164610)

<div class="topic-metadata">

**Author:** [@btomlin](https://www.ruby-forum.com/u/btomlin)\
**Replies:** 2\
**Last updated:** [April 3, 2009, 3:25am UTC](https://www.ruby-forum.com/t/ruby-1-9-rails-2-3-2-and-mssql-issue/164610 "2009-04-03T03:25:50Z")

</div>

I am having a strange issue. I have upgraded to ruby 1.9.1 to do some testing on one of my machines. My app accesses a MSSQL database to pull in some information. Everything worked fine with ruby 1.8.6, but now if …

---

## [Can access mysql server via command line utility but not via rails](https://www.ruby-forum.com/t/can-access-mysql-server-via-command-line-utility-but-not-via-rails/164606)

<div class="topic-metadata">

**Author:** [@stasch](https://www.ruby-forum.com/u/stasch)\
**Replies:** 1\
**Last updated:** [April 3, 2009, 1:26am UTC](https://www.ruby-forum.com/t/can-access-mysql-server-via-command-line-utility-but-not-via-rails/164606 "2009-04-03T01:26:24Z")

</div>

I’ve been successfully read and writing to a MySQL database on one server from my RAILS application on another server for almost a year. For various reasons that I aren’t important I tried to switch to another databas…

---

## [Jquery and accepts\_nested\_attributes\_for model creation](https://www.ruby-forum.com/t/jquery-and-accepts-nested-attributes-for-model-creation/161001)

<div class="topic-metadata">

**Author:** [@yaphi](https://www.ruby-forum.com/u/yaphi)\
**Replies:** 1\
**Last updated:** [April 3, 2009, 1:16am UTC](https://www.ruby-forum.com/t/jquery-and-accepts-nested-attributes-for-model-creation/161001 "2009-04-03T01:16:35Z")

</div>

I am getting lost in dynamically creating Asset objects while creating a new Project. I am using the new accepts\_nested\_attributes\_for method in Rails 2.3 and have this close to working, I just can’t figure out what m…

---

## [Assert\_select\_email and rails 2.3.2](https://www.ruby-forum.com/t/assert-select-email-and-rails-2-3-2/163414)

<div class="topic-metadata">

**Author:** [@silent\_Se](https://www.ruby-forum.com/u/silent_Se)\
**Replies:** 1\
**Last updated:** [April 3, 2009, 12:40am UTC](https://www.ruby-forum.com/t/assert-select-email-and-rails-2-3-2/163414 "2009-04-03T00:40:48Z")

</div>

Is anyone else getting “undefined method ‘assert\_select\_email’” when testing in rails 2.3.2? I saw a comment on the Core list that it appeared to have regressed in a recent RC but no one followed up on it. (e)

---

## [Class versus instance method - how?](https://www.ruby-forum.com/t/class-versus-instance-method-how/164600)

<div class="topic-metadata">

**Author:** [@bruparel](https://www.ruby-forum.com/u/bruparel)\
**Replies:** 2\
**Last updated:** [April 2, 2009, 11:50pm UTC](https://www.ruby-forum.com/t/class-versus-instance-method-how/164600 "2009-04-02T23:50:38Z")

</div>

I have a file call authentication.rb in rails root/lib directory which has the following method defined amongst others: module Authentication … def authorize\_admin? logged\_in? && has\_role?(‘admin’) end … end Thi…

---

## [ID of adapter in migrations](https://www.ruby-forum.com/t/id-of-adapter-in-migrations/164565)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 3\
**Last updated:** [April 2, 2009, 9:55pm UTC](https://www.ruby-forum.com/t/id-of-adapter-in-migrations/164565 "2009-04-02T21:55:11Z")

</div>

Rails 2.3 How does one identify the adapter that a migration is using? I have some SQL code that only applies if the postgresql adapter is involved and I wish to put my execute method inside a suitable conditional. …

---

## [Database migration problem](https://www.ruby-forum.com/t/database-migration-problem/164587)

<div class="topic-metadata">

**Author:** [@tashfeen.ekram](https://www.ruby-forum.com/u/tashfeen.ekram)\
**Replies:** 1\
**Last updated:** [April 2, 2009, 9:06pm UTC](https://www.ruby-forum.com/t/database-migration-problem/164587 "2009-04-02T21:06:16Z")

</div>

I am moving my development from windows to ubuntu. i was rebuilding my db with rak db:schema:load and get the error of my table doesn’t exist. of course th table does not exist because i was trying to create through t…

---

## [File uploads from Flex application](https://www.ruby-forum.com/t/file-uploads-from-flex-application/164578)

<div class="topic-metadata">

**Author:** [@crayfellow](https://www.ruby-forum.com/u/crayfellow)\
**Replies:** 0\
**Last updated:** [April 2, 2009, 6:54pm UTC](https://www.ruby-forum.com/t/file-uploads-from-flex-application/164578 "2009-04-02T18:54:15Z")

</div>

Hi all, I’m looking for a recommendation for an application which needs to upload files. The deal is, these are files the application needs to upload to the RoR server app without prompting the user, so we don’t do a…

---

## [Validates\_uniqueness\_of does not work for non-latin characters](https://www.ruby-forum.com/t/validates-uniqueness-of-does-not-work-for-non-latin-characters/164574)

<div class="topic-metadata">

**Author:** [@shuaib85](https://www.ruby-forum.com/u/shuaib85)\
**Replies:** 0\
**Last updated:** [April 2, 2009, 6:33pm UTC](https://www.ruby-forum.com/t/validates-uniqueness-of-does-not-work-for-non-latin-characters/164574 "2009-04-02T18:33:08Z")

</div>

Hi there I am wondering about validates\_uniqueness\_of :name when I enter the name in English, it works fine when I enter the name in arabic, it does not validate it and it added the name though the name has been adde…

---

## [Act\_as\_ferret with datetime](https://www.ruby-forum.com/t/act-as-ferret-with-datetime/164573)

<div class="topic-metadata">

**Author:** [@EdTaupier](https://www.ruby-forum.com/u/EdTaupier)\
**Replies:** 0\
**Last updated:** [April 2, 2009, 6:25pm UTC](https://www.ruby-forum.com/t/act-as-ferret-with-datetime/164573 "2009-04-02T18:25:31Z")

</div>

For some reason, my find\_by\_contents searches do not find the matches that exists for my datetime data. Has this happened to anyone else? If I run a manual search with find using the same exact parameter of course it…

---

## [ActiveRecord inheritance mapping - Table per subclass?](https://www.ruby-forum.com/t/activerecord-inheritance-mapping-table-per-subclass/164566)

<div class="topic-metadata">

**Author:** [@Omar\_Javier\_RodrSSS](https://www.ruby-forum.com/u/Omar_Javier_RodrSSS)\
**Replies:** 1\
**Last updated:** [April 2, 2009, 5:15pm UTC](https://www.ruby-forum.com/t/activerecord-inheritance-mapping-table-per-subclass/164566 "2009-04-02T17:15:43Z")

</div>

Hi, Is there a way to implement table per subclass o per concrete class strategy in ActiveRecord? Thanks.

---

## [FTP Transfer in rails](https://www.ruby-forum.com/t/ftp-transfer-in-rails/164420)

<div class="topic-metadata">

**Author:** [@Shripad](https://www.ruby-forum.com/u/Shripad)\
**Replies:** 3\
**Last updated:** [April 2, 2009, 4:46pm UTC](https://www.ruby-forum.com/t/ftp-transfer-in-rails/164420 "2009-04-02T16:46:25Z")

</div>

Hi all, I want to transfer complete folder/s containing images from one machine to other using FTP. How can I transfer this. Please help me out. Thanks and regards, Shripad

---

## [Ar-extensions for multiple data importing](https://www.ruby-forum.com/t/ar-extensions-for-multiple-data-importing/164562)

<div class="topic-metadata">

**Author:** [@salil](https://www.ruby-forum.com/u/salil)\
**Replies:** 0\
**Last updated:** [April 2, 2009, 4:45pm UTC](https://www.ruby-forum.com/t/ar-extensions-for-multiple-data-importing/164562 "2009-04-02T16:45:01Z")

</div>

can we used ar-extensions with rails 1.0.2 actually it works fine with rails 2.0.2 and activerecord-2.3.2 and activesupport-2.3.2. But when i am using it with rails 1.0.2 it gives me following error undefined method …

---

## [Loop and parse each rss feed url](https://www.ruby-forum.com/t/loop-and-parse-each-rss-feed-url/164557)

<div class="topic-metadata">

**Author:** [@nickh](https://www.ruby-forum.com/u/nickh)\
**Replies:** 0\
**Last updated:** [April 2, 2009, 4:06pm UTC](https://www.ruby-forum.com/t/loop-and-parse-each-rss-feed-url/164557 "2009-04-02T16:06:50Z")

</div>

I am attempting to parse mutiple rss feed url’s which are pulled from a database, to parse the feeds im using simple rss. so eg an active record query such as rssfeed = Rssfeed.find(:all) This probalay needs to be mo…

---

## [Paperclip - how to display images that were not uploaded?](https://www.ruby-forum.com/t/paperclip-how-to-display-images-that-were-not-uploaded/164504)

<div class="topic-metadata">

**Author:** [@emmek](https://www.ruby-forum.com/u/emmek)\
**Replies:** 1\
**Last updated:** [April 2, 2009, 4:01pm UTC](https://www.ruby-forum.com/t/paperclip-how-to-display-images-that-were-not-uploaded/164504 "2009-04-02T16:01:51Z")

</div>

I’m using Paperclip plugin to store images in my application. In the database I have columns like: image\_file\_name, image\_content\_type, image\_file\_size. When I upload an image via form, everything works well. But when…

---

## [Nil being coerced to float](https://www.ruby-forum.com/t/nil-being-coerced-to-float/164453)

<div class="topic-metadata">

**Author:** [@tharrisx](https://www.ruby-forum.com/u/tharrisx)\
**Replies:** 3\
**Last updated:** [April 2, 2009, 2:43pm UTC](https://www.ruby-forum.com/t/nil-being-coerced-to-float/164453 "2009-04-02T14:43:51Z")

</div>

I was doing this: @line\_items = LineItems.find\_all\_by\_invoice\_id(params\[:id\]) @payments = Payments.find\_all\_by\_invoice\_id(params\[:id\]) @total = @line\_items.sum{ |item| item.cost } @payment\_total = @payments.sum{ |pay…

---

## [Migrating from homegrown auth. to RESTful Authentication](https://www.ruby-forum.com/t/migrating-from-homegrown-auth-to-restful-authentication/164499)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 2\
**Last updated:** [April 2, 2009, 2:34pm UTC](https://www.ruby-forum.com/t/migrating-from-homegrown-auth-to-restful-authentication/164499 "2009-04-02T14:34:18Z")

</div>

I’m trying to port an existing, home grown authentication system to use RESTful Authentication (and then RoleRequirement on top of that). I am concerned about how best to handle the existing user data in my users tabl…

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

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