# Rails

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

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

---

## [\[ANN\] Seed -- a seed data/fuzzing plugin](https://www.ruby-forum.com/t/ann-seed-a-seed-data-fuzzing-plugin/133582)

<div class="topic-metadata">

**Author:** [@Jeremy\_McAnally](https://www.ruby-forum.com/u/Jeremy_McAnally)\
**Replies:** 0\
**Last updated:** [April 1, 2008, 9:27pm UTC](https://www.ruby-forum.com/t/ann-seed-a-seed-data-fuzzing-plugin/133582 "2008-04-01T21:27:36Z")

</div>

Seed is a plugin to help with generating and/or inserting seed data into your database. Seed will generate data for you or load it from fixtures or arbitrary Yaml, CSV, or (eventually) XML files. The basic workflow…

---

## [Wierd Error for image\_tag](https://www.ruby-forum.com/t/wierd-error-for-image-tag/131259)

<div class="topic-metadata">

**Author:** [@nshb](https://www.ruby-forum.com/u/nshb)\
**Replies:** 4\
**Last updated:** [April 1, 2008, 8:46pm UTC](https://www.ruby-forum.com/t/wierd-error-for-image-tag/131259 "2008-04-01T20:46:06Z")

</div>

I am getting a strange error on image\_tag and not really sure where it came from, other than my upgrade to Rails 2.0. Here is the line: 45: \<%= image\_tag(‘buttons/remove.png’) %\> Here is the error: wrong number of a…

---

## [Email address in url generates "no route" error](https://www.ruby-forum.com/t/email-address-in-url-generates-no-route-error/133523)

<div class="topic-metadata">

**Author:** [@g0nzo](https://www.ruby-forum.com/u/g0nzo)\
**Replies:** 4\
**Last updated:** [April 1, 2008, 8:42pm UTC](https://www.ruby-forum.com/t/email-address-in-url-generates-no-route-error/133523 "2008-04-01T20:42:33Z")

</div>

Hi, I’m trying to make unsubscribe link and currently got a route like this: map.unsubscribe ‘/unsubscribe/:email’, :controller =\> ‘foo’, :action =\> ‘bar’ However when I put an email address in the url, it generates…

---

## [Rails Mail ISSUE](https://www.ruby-forum.com/t/rails-mail-issue/133574)

<div class="topic-metadata">

**Author:** [@ankit2584](https://www.ruby-forum.com/u/ankit2584)\
**Replies:** 2\
**Last updated:** [April 1, 2008, 8:29pm UTC](https://www.ruby-forum.com/t/rails-mail-issue/133574 "2008-04-01T20:29:49Z")

</div>

Hi, I have the following configuration in the development.rb defined for sending mail thorugh rails. The same works on a local machine but it does not work on the server. I get a timeout error : execution expired. C…

---

## [Is this safe?](https://www.ruby-forum.com/t/is-this-safe/133032)

<div class="topic-metadata">

**Author:** [@Paco\_Viramontes](https://www.ruby-forum.com/u/Paco_Viramontes)\
**Replies:** 5\
**Last updated:** [April 1, 2008, 7:50pm UTC](https://www.ruby-forum.com/t/is-this-safe/133032 "2008-04-01T19:50:05Z")

</div>

I am using an eval so I dont have to check avery case of a permission. def folder\_permission(folder\_id, per) permissions = self.user\_folder\_permissions.find\_by\_folder\_id(folder\_id) return true unless permissions.blan…

---

## [Write file with binary mode on linux](https://www.ruby-forum.com/t/write-file-with-binary-mode-on-linux/133572)

<div class="topic-metadata">

**Author:** [@shafi](https://www.ruby-forum.com/u/shafi)\
**Replies:** 1\
**Last updated:** [April 1, 2008, 7:40pm UTC](https://www.ruby-forum.com/t/write-file-with-binary-mode-on-linux/133572 "2008-04-01T19:40:36Z")

</div>

Hello, I wanna write files on Linux platform but with binary mode. On windows we use “wb” but on Linux what do we have to do? Thanks.

---

## [\[ANN\] model\_auto\_completer 1.5.0](https://www.ruby-forum.com/t/ann-model-auto-completer-1-5-0/133531)

<div class="topic-metadata">

**Author:** [@fxn](https://www.ruby-forum.com/u/fxn)\
**Replies:** 1\
**Last updated:** [April 1, 2008, 7:23pm UTC](https://www.ruby-forum.com/t/ann-model-auto-completer-1-5-0/133531 "2008-04-01T19:23:28Z")

</div>

model\_auto\_completer 1.5.0 is out: – 1.5.0 (31 March 2008) Wrote semi-automated test suite New option :append\_random\_suffix to be able to turn random suffixes off New option :submit\_on\_return, alias of :send\_on\_retur…

---

## [Undefined method 'find' error](https://www.ruby-forum.com/t/undefined-method-find-error/133563)

<div class="topic-metadata">

**Author:** [@parki](https://www.ruby-forum.com/u/parki)\
**Replies:** 2\
**Last updated:** [April 1, 2008, 7:20pm UTC](https://www.ruby-forum.com/t/undefined-method-find-error/133563 "2008-04-01T19:20:43Z")

</div>

I just moved my app from development to test, and now getting the following error on my form: undefined method ‘find’ for Status:Class The only difference between the two environments is that test is using Mongrel an…

---

## [Hosted SMTP Server Recommendation?](https://www.ruby-forum.com/t/hosted-smtp-server-recommendation/133461)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [April 1, 2008, 5:56pm UTC](https://www.ruby-forum.com/t/hosted-smtp-server-recommendation/133461 "2008-04-01T17:56:03Z")

</div>

Can anyone with a deployed Rails app recommend a reliable hosted SMTP server that they use? I know that Gmail will let me send up to 500 emails/day, but I have an app that will need to send thousands of (legitimate, …

---

## [Logical deletion by extending has\_many associations](https://www.ruby-forum.com/t/logical-deletion-by-extending-has-many-associations/133506)

<div class="topic-metadata">

**Author:** [@VMVMVM](https://www.ruby-forum.com/u/VMVMVM)\
**Replies:** 3\
**Last updated:** [April 1, 2008, 5:53pm UTC](https://www.ruby-forum.com/t/logical-deletion-by-extending-has-many-associations/133506 "2008-04-01T17:53:41Z")

</div>

Hi, I’m trying to implement logical deletion on my model by extending the has\_many association, in a code like this: class Post \< ActiveRecord::Base has\_many :comments do def self.comments find :all, :conditions =\> …

---

## [AJAX Issue](https://www.ruby-forum.com/t/ajax-issue/133560)

<div class="topic-metadata">

**Author:** [@bparanj](https://www.ruby-forum.com/u/bparanj)\
**Replies:** 0\
**Last updated:** [April 1, 2008, 5:41pm UTC](https://www.ruby-forum.com/t/ajax-issue/133560 "2008-04-01T17:41:45Z")

</div>

The AJAX call works fine in development mode but in production has issues. The handler.call line in the following method is throwing error in the JavaScript console: Error: handler has no properties Source File: htt…

---

## [Sr. Ruby on Rails Developer Needed, 100% Telecommute!](https://www.ruby-forum.com/t/sr-ruby-on-rails-developer-needed-100-telecommute/133561)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [April 1, 2008, 5:37pm UTC](https://www.ruby-forum.com/t/sr-ruby-on-rails-developer-needed-100-telecommute/133561 "2008-04-01T17:37:26Z")

</div>

Sr. Ruby on Rails Developer Type: Direct Hire (Permanent) Location: 100% telecommute Description · Produce internally and externally facing Ruby On Rails applications · Emphasis on large-scale pro…

---

## [\[ANN\] bj-1.0.0](https://www.ruby-forum.com/t/ann-bj-1-0-0/124489)

<div class="topic-metadata">

**Author:** [@ara.t.howard](https://www.ruby-forum.com/u/ara.t.howard)\
**Replies:** 5\
**Last updated:** [April 1, 2008, 5:36pm UTC](https://www.ruby-forum.com/t/ann-bj-1-0-0/124489 "2008-04-01T17:36:46Z")

</div>

(sorry for double post - subject got chopped on the last one) NAME bj SYNOPSIS bj (migration\_code|generate\_migration|migrate|setup|plugin|run| submit|list|set|config|pid) \[options\]+ HISTORY 1.0.0: - use full path…

---

## [Problems with acts\_as\_tree---urgent need help](https://www.ruby-forum.com/t/problems-with-acts-as-tree-urgent-need-help/133397)

<div class="topic-metadata">

**Author:** [@fries88](https://www.ruby-forum.com/u/fries88)\
**Replies:** 7\
**Last updated:** [April 1, 2008, 5:20pm UTC](https://www.ruby-forum.com/t/problems-with-acts-as-tree-urgent-need-help/133397 "2008-04-01T17:20:09Z")

</div>

Hi, Does anyone know if there is any tutorials about act\_as\_tree ? Or can anyone provide step-by-step method of using acts\_as\_tree? Have tried looking for answers but kept getting “NoMethodError: undefined method \`ac…

---

## [Navigation Problems](https://www.ruby-forum.com/t/navigation-problems/133502)

<div class="topic-metadata">

**Author:** [@fries88](https://www.ruby-forum.com/u/fries88)\
**Replies:** 1\
**Last updated:** [April 1, 2008, 5:13pm UTC](https://www.ruby-forum.com/t/navigation-problems/133502 "2008-04-01T17:13:01Z")

</div>

Hi, I am having problems with my page. I have a banner and navigation bar in controller\_name.rhtml in app/views/layout. Can someone please help? Thanks In the navigation bar, I have the following links: Category1 S…

---

## [News About Rails](https://www.ruby-forum.com/t/news-about-rails/133558)

<div class="topic-metadata">

**Author:** [@namealreadytaken](https://www.ruby-forum.com/u/namealreadytaken)\
**Replies:** 0\
**Last updated:** [April 1, 2008, 5:09pm UTC](https://www.ruby-forum.com/t/news-about-rails/133558 "2008-04-01T17:09:28Z")

</div>

I was working through some items with DHH and he let it drop that as of Rails 2.1, the date helpers will only be supporting 1 digit years, since 1-digit is all we need. In other news, he has also decided that he will …

---

## [Model - syntax error](https://www.ruby-forum.com/t/model-syntax-error/133550)

<div class="topic-metadata">

**Author:** [@shinkaku](https://www.ruby-forum.com/u/shinkaku)\
**Replies:** 0\
**Last updated:** [April 1, 2008, 4:44pm UTC](https://www.ruby-forum.com/t/model-syntax-error/133550 "2008-04-01T16:44:50Z")

</div>

I’ve been following the rails 2.0.2 tutorial at http://developer.apple.com/tools/developonrailsleopard.html I get the syntax error below after I put in the relation. I cut and pasted the relation for all three models…

---

## [Localized url, how?](https://www.ruby-forum.com/t/localized-url-how/133466)

<div class="topic-metadata">

**Author:** [@xdmx](https://www.ruby-forum.com/u/xdmx)\
**Replies:** 2\
**Last updated:** [April 1, 2008, 4:43pm UTC](https://www.ruby-forum.com/t/localized-url-how/133466 "2008-04-01T16:43:18Z")

</div>

Hi, i need a little help. I’ve to change all my url to a localized version, for example, now i’m using something like www.mysite.com/users/1/comments, this has to be changed to www.mysite.com/utenti/1/commenti, how ca…

---

## [\[ANN\] COBOL\_ON\_COGS (Yet Another Rails Knockoff)](https://www.ruby-forum.com/t/ann-cobol-on-cogs-yet-another-rails-knockoff/196629)

<div class="topic-metadata">

**Author:** [@tbobker](https://www.ruby-forum.com/u/tbobker)\
**Replies:** 1\
**Last updated:** [April 1, 2008, 3:57pm UTC](https://www.ruby-forum.com/t/ann-cobol-on-cogs-yet-another-rails-knockoff/196629 "2008-04-01T15:57:17Z")

</div>

Hi everyone, Sorry about the slightly offtopic posting, but this might be of interest to one or the other developer on this list, especially if you’ve ever had to deal with legacy integration. We’re announcing a new …

---

## [Using scaffolding/classic\_pagination error](https://www.ruby-forum.com/t/using-scaffolding-classic-pagination-error/133492)

<div class="topic-metadata">

**Author:** [@rohits](https://www.ruby-forum.com/u/rohits)\
**Replies:** 1\
**Last updated:** [April 1, 2008, 3:10pm UTC](https://www.ruby-forum.com/t/using-scaffolding-classic-pagination-error/133492 "2008-04-01T15:10:17Z")

</div>

So I’ll preface with: I am very new to Ruby and Rails. I’m using the 2006 Lynda guide to Rails, and I just setup a simple scaffold based on a simple database, and when I try to “create”, I get this: ActionController::…

---

## [HOWTO: Uploading files through REST API?](https://www.ruby-forum.com/t/howto-uploading-files-through-rest-api/133401)

<div class="topic-metadata">

**Author:** [@MohsinHijazee](https://www.ruby-forum.com/u/MohsinHijazee)\
**Replies:** 2\
**Last updated:** [April 1, 2008, 2:59pm UTC](https://www.ruby-forum.com/t/howto-uploading-files-through-rest-api/133401 "2008-04-01T14:59:06Z")

</div>

Hello! I am building a REST API on top of an application and I wonder how do I manage the file uploads through REST? In my API, JSON is used for communication. Consider the case of creating a user: I POST the follow…

---

## [Trouble converting string to int](https://www.ruby-forum.com/t/trouble-converting-string-to-int/133505)

<div class="topic-metadata">

**Author:** [@drsharp](https://www.ruby-forum.com/u/drsharp)\
**Replies:** 1\
**Last updated:** [April 1, 2008, 2:40pm UTC](https://www.ruby-forum.com/t/trouble-converting-string-to-int/133505 "2008-04-01T14:40:08Z")

</div>

Hi. I’m trying to perform the following comparison if (params\[:bid\]\[:points\] \<= session\[:user\]\[:points\]) But I get the following error “comparison of String with 0 failed” I have tried changing the code to this if …

---

## [ÐžÐ²Ð¾Ñ‰ÐµÑ€ÐµÐ·ÐºÐ° nicer dicer (Ð¾Ð²Ð¾ Ñ‰ÐµÑ€ÐµÐ·ÐºÐ° Ð½Ð°Ð¹ÑÐµÑ€ Ð´Ð°Ð¹ÑÐµÑ€)](https://www.ruby-forum.com/t/dzd-d-n-d-n-d-d-d-d-nicer-dicer-d-d-d-n-d-n-d-d-d-d-d-d-d-n-d-n-d-d-d-n-d-n/133546)

<div class="topic-metadata">

**Author:** [@ShopBody.ru](https://www.ruby-forum.com/u/ShopBody.ru)\
**Replies:** 0\
**Last updated:** [April 1, 2008, 2:19pm UTC](https://www.ruby-forum.com/t/dzd-d-n-d-n-d-d-d-d-nicer-dicer-d-d-d-n-d-n-d-d-d-d-d-d-d-n-d-n-d-d-d-n-d-n/133546 "2008-04-01T14:19:25Z")

</div>

ï×ÏÝÅÒÅÚËÁ Nicer Dicer ÏÔÌÉÞÎÏ ÐÏÄÈÏÄÉÔ ÄÌÑ ÒÅÚËÉ ÌÕËÁ, ÐÅÒÃÁ, ÓÅÌØÄÅÒÅÑ, ÔÏÍÁÔÏ×, ×ÁÒÅÎÙÈ ÑÉÃ, ÚÅÌÅÎÉ, ÓÙÒÁ, ÞÅÓÎÏËÁ, ÑÂÌÏË É ÇÒÕÛ. õÍÅÎØÛÁÅÔ ×ÒÅÍÑ ÐÒÉÇÏÔÏ×ÌÅÎÉÑ × ÐÏÌÏ×ÉÎÕ. òÅÖÅÔ É ÎÁÒÅÚÁÅÔ ÂÏÌØÛÅ ÏÄÎÉÍ ÂÙÓÔÒÙÍ Ä×ÉÖ…

---

## [A has\_many :through (B, C)](https://www.ruby-forum.com/t/a-has-many-through-b-c/133360)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [April 1, 2008, 12:15pm UTC](https://www.ruby-forum.com/t/a-has-many-through-b-c/133360 "2008-04-01T12:15:33Z")

</div>

Hi, I’m wondring if it is possible to have a “has\_many” through two things at the same time. For instance: If I do this, class A has\_many :blops # blobs have things has\_many :blups # blups has things too has\_man…

---

## [Get information from multiply tables](https://www.ruby-forum.com/t/get-information-from-multiply-tables/133521)

<div class="topic-metadata">

**Author:** [@remco123](https://www.ruby-forum.com/u/remco123)\
**Replies:** 3\
**Last updated:** [April 1, 2008, 11:59am UTC](https://www.ruby-forum.com/t/get-information-from-multiply-tables/133521 "2008-04-01T11:59:20Z")

</div>

Hi, These are my models: class Advisor \< ActiveRecord::Base set\_table\_name “advisors” set\_primary\_key “id” has\_many :advisee, :class\_name=\>“Student”, :foreign\_key=\> “advisor\_id” has\_many :second\_advisee, :…

---

## [Google api Marker images not showing](https://www.ruby-forum.com/t/google-api-marker-images-not-showing/133536)

<div class="topic-metadata">

**Author:** [@megax](https://www.ruby-forum.com/u/megax)\
**Replies:** 0\
**Last updated:** [April 1, 2008, 11:58am UTC](https://www.ruby-forum.com/t/google-api-marker-images-not-showing/133536 "2008-04-01T11:58:23Z")

</div>

Have used the HugeDomains.com as a starting point to add google maps to a project of mine however the marker images do not appear. All I get is a shadow of a marker where it should appear. I have saved the image wher…

---

## [Trouble with package structure](https://www.ruby-forum.com/t/trouble-with-package-structure/133529)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [April 1, 2008, 11:04am UTC](https://www.ruby-forum.com/t/trouble-with-package-structure/133529 "2008-04-01T11:04:07Z")

</div>

Hi, I’m writing a library class for my Rails application stored in RAILS\_ROOT/lib/wrap. My class looks like this: class Wrap::ModuleManager Code… end Test this class mmanager = Wrap::ModuleManager.new I’d like to t…

---

## [Builder.rb:48 - Cannot allocate memory](https://www.ruby-forum.com/t/builder-rb-48-cannot-allocate-memory/133527)

<div class="topic-metadata">

**Author:** [@johnny](https://www.ruby-forum.com/u/johnny)\
**Replies:** 0\
**Last updated:** [April 1, 2008, 10:54am UTC](https://www.ruby-forum.com/t/builder-rb-48-cannot-allocate-memory/133527 "2008-04-01T10:54:37Z")

</div>

Hi, I’m having a very strange error I’ve never seen before when I try: gem install mongrel Here is the output with --debug turned on: root@hebrardmedia:~/software/ruby.1.8.6/ruby-1.8.6# gem install mongrel --debug …

---

## [Help on New Breed Java/Rich Internet Technologies](https://www.ruby-forum.com/t/help-on-new-breed-java-rich-internet-technologies/133524)

<div class="topic-metadata">

**Author:** [@jevang](https://www.ruby-forum.com/u/jevang)\
**Replies:** 1\
**Last updated:** [April 1, 2008, 10:52am UTC](https://www.ruby-forum.com/t/help-on-new-breed-java-rich-internet-technologies/133524 "2008-04-01T10:52:51Z")

</div>

Hi all, I recently moved south to Bangalore and I am working for a large software integrator. My project team is working on a JEE application project that uses test driven development methodologies. We are planning t…

---

## [Creating an object and uploading a file in a single form](https://www.ruby-forum.com/t/creating-an-object-and-uploading-a-file-in-a-single-form/133526)

<div class="topic-metadata">

**Author:** [@g0nzo](https://www.ruby-forum.com/u/g0nzo)\
**Replies:** 0\
**Last updated:** [April 1, 2008, 10:49am UTC](https://www.ruby-forum.com/t/creating-an-object-and-uploading-a-file-in-a-single-form/133526 "2008-04-01T10:49:19Z")

</div>

Hi, I got a single form to create an object that can have file attached (I’m using attachment\_fu). The problem is with create/update actions. Here’s how stripped create action looks like: def create @news = News.new…

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

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