# Rails

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

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

---

## [On Close Application Event Action](https://www.ruby-forum.com/t/on-close-application-event-action/173701)

<div class="topic-metadata">

**Author:** [@simonsaid](https://www.ruby-forum.com/u/simonsaid)\
**Replies:** 1\
**Last updated:** [August 14, 2009, 1:42am UTC](https://www.ruby-forum.com/t/on-close-application-event-action/173701 "2009-08-14T01:42:17Z")

</div>

Ok I am editting google sketchups base and I have built a ruby plugin however I want an event to happen on close. So when you open sketchup it opens somthing called a components panel which I am doing with, status = …

---

## [A few quick newbie questions](https://www.ruby-forum.com/t/a-few-quick-newbie-questions/173735)

<div class="topic-metadata">

**Author:** [@peterbe](https://www.ruby-forum.com/u/peterbe)\
**Replies:** 1\
**Last updated:** [August 14, 2009, 1:18am UTC](https://www.ruby-forum.com/t/a-few-quick-newbie-questions/173735 "2009-08-14T01:18:46Z")

</div>

(posted this in Ruby mistakenly, reposting here) Hi A few things I’m wondering - if anyone can answer without too much trouble! (I know if I google enough I could learn what’s going on…) I’m trying to make a string …

---

## [Getting an average of a column per day](https://www.ruby-forum.com/t/getting-an-average-of-a-column-per-day/173709)

<div class="topic-metadata">

**Author:** [@ryank](https://www.ruby-forum.com/u/ryank)\
**Replies:** 4\
**Last updated:** [August 14, 2009, 12:14am UTC](https://www.ruby-forum.com/t/getting-an-average-of-a-column-per-day/173709 "2009-08-14T00:14:36Z")

</div>

I’m trying to generate a report for the average number of calls a person makes per-day. The following generates the correct list, but if a user didn’t make any calls a certain day it doesn’t show up. from\_date = Time.…

---

## [Ruby on Rails Opportunity in New York](https://www.ruby-forum.com/t/ruby-on-rails-opportunity-in-new-york/173736)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [August 14, 2009, 12:11am UTC](https://www.ruby-forum.com/t/ruby-on-rails-opportunity-in-new-york/173736 "2009-08-14T00:11:05Z")

</div>

Ruby Software Engineer- 6 month contract plus extensions, if an ideal candidate, may be taken perm Project Description: The Programmer/Analyst is a Ruby on Rails developer participating in high-profile technology pro…

---

## [Please help - configure: error: no acceptable C compiler found in $PATH](https://www.ruby-forum.com/t/please-help-configure-error-no-acceptable-c-compiler-found-in-path/173737)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 1\
**Last updated:** [August 14, 2009, 12:08am UTC](https://www.ruby-forum.com/t/please-help-configure-error-no-acceptable-c-compiler-found-in-path/173737 "2009-08-14T00:08:45Z")

</div>

Hello, I run macosx - leopard, which ships with ruby 1.8.6. I noticed there is now ruby 1.8.7 so I tried to install it. I downloaded the zip file and opened Terminal. once i had 'cd’d to the correct directory, i trie…

---

## [How to create when attr\_protected?](https://www.ruby-forum.com/t/how-to-create-when-attr-protected/173631)

<div class="topic-metadata">

**Author:** [@jamal](https://www.ruby-forum.com/u/jamal)\
**Replies:** 5\
**Last updated:** [August 14, 2009, 12:06am UTC](https://www.ruby-forum.com/t/how-to-create-when-attr-protected/173631 "2009-08-14T00:06:24Z")

</div>

Hello, I’m facing a small issue here with protected columns from being updated. (email, username) So I thought attr\_protected is the solution, but this destroy my creation of user? I cannot assign email when creatin…

---

## [Search form directly to results](https://www.ruby-forum.com/t/search-form-directly-to-results/173730)

<div class="topic-metadata">

**Author:** [@bgnm2000](https://www.ruby-forum.com/u/bgnm2000)\
**Replies:** 0\
**Last updated:** [August 13, 2009, 10:55pm UTC](https://www.ruby-forum.com/t/search-form-directly-to-results/173730 "2009-08-13T22:55:46Z")

</div>

Hi Guys, I’m really new to rails, so I apologize if this is a dumb question. I’m using the autocomplete plugin to search record titles. When a user selects the appropriate title, and clicks “go” I’d like them to be b…

---

## [Paperclip - gen'd thumbnails are fin in dev, but blurry in production](https://www.ruby-forum.com/t/paperclip-gend-thumbnails-are-fin-in-dev-but-blurry-in-production/173727)

<div class="topic-metadata">

**Author:** [@lunaclaire](https://www.ruby-forum.com/u/lunaclaire)\
**Replies:** 0\
**Last updated:** [August 13, 2009, 10:47pm UTC](https://www.ruby-forum.com/t/paperclip-gend-thumbnails-are-fin-in-dev-but-blurry-in-production/173727 "2009-08-13T22:47:57Z")

</div>

Seems I’ve seen some discussion in the past about something not right on the server side with ImageMagick when this is happening, but I cant find it now that I’m having the problem. Any advice?

---

## [Using attachment\_fu to store mp3](https://www.ruby-forum.com/t/using-attachment-fu-to-store-mp3/173654)

<div class="topic-metadata">

**Author:** [@siddharth](https://www.ruby-forum.com/u/siddharth)\
**Replies:** 4\
**Last updated:** [August 13, 2009, 10:06pm UTC](https://www.ruby-forum.com/t/using-attachment-fu-to-store-mp3/173654 "2009-08-13T22:06:37Z")

</div>

Hi, I am trying to store mp3 files using the attachment\_fu and I have managed to store it on the file system and the database as a blob. The problem is I dont know if saving it in the public folder of the file system…

---

## [Telnet from link\_to](https://www.ruby-forum.com/t/telnet-from-link-to/173621)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 5\
**Last updated:** [August 13, 2009, 9:19pm UTC](https://www.ruby-forum.com/t/telnet-from-link-to/173621 "2009-08-13T21:19:16Z")

</div>

Is there a way to launch a telnet session from a link\_to?

---

## [Restricting Multiple Logins](https://www.ruby-forum.com/t/restricting-multiple-logins/173673)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 9\
**Last updated:** [August 13, 2009, 8:48pm UTC](https://www.ruby-forum.com/t/restricting-multiple-logins/173673 "2009-08-13T20:48:39Z")

</div>

Can anyone provide me with a good article, screencast, or source on how to restrict multiple logins with rails? I’m using Restful Authentication with Acts As State Machine and have my login system configured with obs…

---

## [Problem with Leopard Ruby and OpenSSL version](https://www.ruby-forum.com/t/problem-with-leopard-ruby-and-openssl-version/173716)

<div class="topic-metadata">

**Author:** [@ctagg](https://www.ruby-forum.com/u/ctagg)\
**Replies:** 2\
**Last updated:** [August 13, 2009, 8:21pm UTC](https://www.ruby-forum.com/t/problem-with-leopard-ruby-and-openssl-version/173716 "2009-08-13T20:21:19Z")

</div>

I’m using Leopard version of Ruby 1.8.6 and Have OpenSSL installed via DarwinPorts (openssl @0.9.8g\_0) However this isn’t the version my Ruby installed is using: $ irb irb(main):001:0\> require ‘openssl’ =\> true irb…

---

## [Question about ruby script/generate controller](https://www.ruby-forum.com/t/question-about-ruby-script-generate-controller/173718)

<div class="topic-metadata">

**Author:** [@shusseina](https://www.ruby-forum.com/u/shusseina)\
**Replies:** 1\
**Last updated:** [August 13, 2009, 7:26pm UTC](https://www.ruby-forum.com/t/question-about-ruby-script-generate-controller/173718 "2009-08-13T19:26:16Z")

</div>

Imagine I have a model called blog and I then run the following command to create a controller for it. ruby script/generate controller Blogs index At some later point I want to create a ‘new’ page to submit blogs. Is …

---

## [Strange Routing](https://www.ruby-forum.com/t/strange-routing/173707)

<div class="topic-metadata">

**Author:** [@pmckinstry](https://www.ruby-forum.com/u/pmckinstry)\
**Replies:** 6\
**Last updated:** [August 13, 2009, 7:04pm UTC](https://www.ruby-forum.com/t/strange-routing/173707 "2009-08-13T19:04:01Z")

</div>

Hi Guys, I have some strangeness with routing, using standard route map.connect ‘:controller/:action/:id’ map.connect ‘:controller/:action/:id.:format’ Using console I did rts = ActionController::Routing::Routes …

---

## [Password + salt](https://www.ruby-forum.com/t/password-salt/173655)

<div class="topic-metadata">

**Author:** [@brianp](https://www.ruby-forum.com/u/brianp)\
**Replies:** 1\
**Last updated:** [August 13, 2009, 6:35pm UTC](https://www.ruby-forum.com/t/password-salt/173655 "2009-08-13T18:35:54Z")

</div>

Hey Again, So I’m still working through AWDwR and I’ve just completed the authentication section for users. I understand the idea behind salts and general authentication. The part I feel I’m missing is when the first…

---

## [Service can not start](https://www.ruby-forum.com/t/service-can-not-start/173714)

<div class="topic-metadata">

**Author:** [@jasonwold](https://www.ruby-forum.com/u/jasonwold)\
**Replies:** 0\
**Last updated:** [August 13, 2009, 6:18pm UTC](https://www.ruby-forum.com/t/service-can-not-start/173714 "2009-08-13T18:18:22Z")

</div>

I have tried WEBrick. \[root@localhost ltw\]# ruby script/server WEBrick =\> Booting WEBrick =\> Rails 2.3.3 application starting on http://0.0.0.0:3000 =\> Call with -d to detach =\> Ctrl-C to shutdown server \[2009-08-1…

---

## [Getting Started with Rails - post\_comment\_url](https://www.ruby-forum.com/t/getting-started-with-rails-post-comment-url/165639)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [August 13, 2009, 6:00pm UTC](https://www.ruby-forum.com/t/getting-started-with-rails-post-comment-url/165639 "2009-08-13T18:00:04Z")

</div>

Hi, Thanks for a wonderful Getting Started with Rails. I am up to the last section and just added the comments part. So while testing and looking over comments\_controller.rb; I see the reference to post\_comment\_url c…

---

## [Mysql ruby deployment gem ...bla bla](https://www.ruby-forum.com/t/mysql-ruby-deployment-gem-bla-bla/173693)

<div class="topic-metadata">

**Author:** [@jasonwold](https://www.ruby-forum.com/u/jasonwold)\
**Replies:** 3\
**Last updated:** [August 13, 2009, 5:54pm UTC](https://www.ruby-forum.com/t/mysql-ruby-deployment-gem-bla-bla/173693 "2009-08-13T17:54:36Z")

</div>

“gem install mysql” failed. This might be another stupid question, but really block me for couple of days. I tried gem: gem install mysql – --with-mysql-config=/usr/bin/mysql\_config and got: ERROR: Error installing…

---

## [Errors.each\_key throws undefined method error](https://www.ruby-forum.com/t/errors-each-key-throws-undefined-method-error/173667)

<div class="topic-metadata">

**Author:** [@caliwildman](https://www.ruby-forum.com/u/caliwildman)\
**Replies:** 2\
**Last updated:** [August 13, 2009, 5:52pm UTC](https://www.ruby-forum.com/t/errors-each-key-throws-undefined-method-error/173667 "2009-08-13T17:52:16Z")

</div>

I’m trying to create custom error messages and in doing so I thought I could access the validation errors each\_key method. I know each\_key isn’t listed as a method for errors object but errors object is a hash right? …

---

## [Rails Forms Not Working With Recursive Nested Models?](https://www.ruby-forum.com/t/rails-forms-not-working-with-recursive-nested-models/173713)

<div class="topic-metadata">

**Author:** [@scrasher](https://www.ruby-forum.com/u/scrasher)\
**Replies:** 0\
**Last updated:** [August 13, 2009, 5:50pm UTC](https://www.ruby-forum.com/t/rails-forms-not-working-with-recursive-nested-models/173713 "2009-08-13T17:50:38Z")

</div>

I have a recursive relationship between models (Question model appears on multiple levels of the hierarchy): Test –\> Questions -------\> (has\_one) Remediation ------------\> (has\_many) Remediation\_Questions ---------…

---

## [Db folder is empty. how to regenerate?](https://www.ruby-forum.com/t/db-folder-is-empty-how-to-regenerate/173683)

<div class="topic-metadata">

**Author:** [@railslist](https://www.ruby-forum.com/u/railslist)\
**Replies:** 6\
**Last updated:** [August 13, 2009, 5:06pm UTC](https://www.ruby-forum.com/t/db-folder-is-empty-how-to-regenerate/173683 "2009-08-13T17:06:22Z")

</div>

by mistake i have deleted the contents of the db folder in an rails app. how do i recreate those db migration files?

---

## [Assignment with \<\<?](https://www.ruby-forum.com/t/assignment-with/173608)

<div class="topic-metadata">

**Author:** [@brianp](https://www.ruby-forum.com/u/brianp)\
**Replies:** 15\
**Last updated:** [August 13, 2009, 3:53pm UTC](https://www.ruby-forum.com/t/assignment-with/173608 "2009-08-13T15:53:07Z")

</div>

Hey, I’m just going through Agile Web D. With Rails and we’re using what I’m assuming is an assignment operator. ex: @items \<\< current\_item But (unless i skipped it) they didn’t really explain what that was. So wha…

---

## [Logging Plugin](https://www.ruby-forum.com/t/logging-plugin/173670)

<div class="topic-metadata">

**Author:** [@tispratik](https://www.ruby-forum.com/u/tispratik)\
**Replies:** 1\
**Last updated:** [August 13, 2009, 3:20pm UTC](https://www.ruby-forum.com/t/logging-plugin/173670 "2009-08-13T15:20:38Z")

</div>

Hi, Does anyone know how to understand the logs printed in development.rb I can understand certain parts of it but not all. Is there any documentation on it? Or any pretty printing plugin available which tells exactl…

---

## [Why no multiple submit?](https://www.ruby-forum.com/t/why-no-multiple-submit/61014)

<div class="topic-metadata">

**Author:** [@jose](https://www.ruby-forum.com/u/jose)\
**Replies:** 4\
**Last updated:** [August 13, 2009, 3:07pm UTC](https://www.ruby-forum.com/t/why-no-multiple-submit/61014 "2009-08-13T15:07:23Z")

</div>

is it by design? is it standard? how do you give users multiple actions on a form?

---

## [Ajax with will\_paginate problem](https://www.ruby-forum.com/t/ajax-with-will-paginate-problem/173694)

<div class="topic-metadata">

**Author:** [@wap](https://www.ruby-forum.com/u/wap)\
**Replies:** 2\
**Last updated:** [August 13, 2009, 2:23pm UTC](https://www.ruby-forum.com/t/ajax-with-will-paginate-problem/173694 "2009-08-13T14:23:51Z")

</div>

i can use \<%= link\_to\_remote(“MEMBER LIST”,:update =\> “mcont”, :url =\> {:controller =\> :users, :action =\> :list }) %\> this for user listing and then it display record i want to do paging on this list file but it is di…

---

## [Schema Dump](https://www.ruby-forum.com/t/schema-dump/173679)

<div class="topic-metadata">

**Author:** [@leogodin217](https://www.ruby-forum.com/u/leogodin217)\
**Replies:** 1\
**Last updated:** [August 13, 2009, 12:49pm UTC](https://www.ruby-forum.com/t/schema-dump/173679 "2009-08-13T12:49:51Z")

</div>

We recently upgraded to Rails 2.1. When dumping the schema ( rake db:schema:database) from our database I expected to see the command to create the schema\_migration table. Why is this table not in the schema dump file…

---

## [Multiple selection with drag drop in rails](https://www.ruby-forum.com/t/multiple-selection-with-drag-drop-in-rails/173692)

<div class="topic-metadata">

**Author:** [@srinathbtech](https://www.ruby-forum.com/u/srinathbtech)\
**Replies:** 0\
**Last updated:** [August 13, 2009, 12:35pm UTC](https://www.ruby-forum.com/t/multiple-selection-with-drag-drop-in-rails/173692 "2009-08-13T12:35:32Z")

</div>

Hi, How can we achieve multipe selection of items with drag them from List A and drop in List B. Using the Ctrl key to select multiple items from a list. when click on any link in List B it will show images/items on …

---

## [Very Urgent + Javascript Include tag](https://www.ruby-forum.com/t/very-urgent-javascript-include-tag/173690)

<div class="topic-metadata">

**Author:** [@hemantborole](https://www.ruby-forum.com/u/hemantborole)\
**Replies:** 12\
**Last updated:** [August 13, 2009, 12:14pm UTC](https://www.ruby-forum.com/t/very-urgent-javascript-include-tag/173690 "2009-08-13T12:14:56Z")

</div>

Hello Champs, Actually i am facing a problem seems to be very simple … but not striking to my mind … :slight\_smile: The thing is:- In my layouts file, i am including \<%= javascript\_include\_tag :all, :recursive %\> by…

---

## [Proper way to extend an app engine model](https://www.ruby-forum.com/t/proper-way-to-extend-an-app-engine-model/166900)

<div class="topic-metadata">

**Author:** [@Brent\_D](https://www.ruby-forum.com/u/Brent_D)\
**Replies:** 4\
**Last updated:** [August 13, 2009, 12:06pm UTC](https://www.ruby-forum.com/t/proper-way-to-extend-an-app-engine-model/166900 "2009-08-13T12:06:32Z")

</div>

Can anyone tell me the “proper” way to extend a model provided by an app engine (or any plugin for that matter). I’m attempting to extend an app engine model by adding a has\_many :through. So I’ve got lib/myplugin\_ext…

---

## [Models more than Databases](https://www.ruby-forum.com/t/models-more-than-databases/173680)

<div class="topic-metadata">

**Author:** [@pmckinstry](https://www.ruby-forum.com/u/pmckinstry)\
**Replies:** 1\
**Last updated:** [August 13, 2009, 11:17am UTC](https://www.ruby-forum.com/t/models-more-than-databases/173680 "2009-08-13T11:17:40Z")

</div>

Hi Guys, I would like some advice - I am new to Rails although not new to development. I have read numerous rails tutorials - however they all seem to build around forms interacting with a database. My question is …

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

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