# Rails

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

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

---

## [Radio buttons for arrays](https://www.ruby-forum.com/t/radio-buttons-for-arrays/172586)

<div class="topic-metadata">

**Author:** [@Ritvvij](https://www.ruby-forum.com/u/Ritvvij)\
**Replies:** 2\
**Last updated:** [July 24, 2009, 5:00am UTC](https://www.ruby-forum.com/t/radio-buttons-for-arrays/172586 "2009-07-24T05:00:08Z")

</div>

Hi, Presently I am using drop down with following function \<%= task\_form.collection\_select :task\_type, @task\_types, :id, :display\_value %\> It basically gives me ability to have drop down based on an array of objects …

---

## [Attachment\_fu - watermark tmp file before saved to S3](https://www.ruby-forum.com/t/attachment-fu-watermark-tmp-file-before-saved-to-s3/172612)

<div class="topic-metadata">

**Author:** [@will](https://www.ruby-forum.com/u/will)\
**Replies:** 1\
**Last updated:** [July 24, 2009, 4:54am UTC](https://www.ruby-forum.com/t/attachment-fu-watermark-tmp-file-before-saved-to-s3/172612 "2009-07-24T04:54:18Z")

</div>

Hi there, I’d like to use RMagick to watermark an image in the tmp directory before Attachment\_fu saves it to Amazon S3. I took a look at the callbacks available in attachment\_fu. There’s an ‘after\_attachment\_saved’ …

---

## [Make setter private](https://www.ruby-forum.com/t/make-setter-private/172346)

<div class="topic-metadata">

**Author:** [@Learn\_by\_D](https://www.ruby-forum.com/u/Learn_by_D)\
**Replies:** 14\
**Last updated:** [July 24, 2009, 3:12am UTC](https://www.ruby-forum.com/t/make-setter-private/172346 "2009-07-24T03:12:37Z")

</div>

Hi, I would like to rename the setter of “attribute\_A” with the following: def set\_attribute\_A(val) self.attribute\_A = val end private def attribute\_A=(val) super end But then I get “NoMethodError: Attempt to ca…

---

## [Accepts\_nested\_attributes\_for and ActiveResources](https://www.ruby-forum.com/t/accepts-nested-attributes-for-and-activeresources/172609)

<div class="topic-metadata">

**Author:** [@dldldl](https://www.ruby-forum.com/u/dldldl)\
**Replies:** 0\
**Last updated:** [July 24, 2009, 2:24am UTC](https://www.ruby-forum.com/t/accepts-nested-attributes-for-and-activeresources/172609 "2009-07-24T02:24:42Z")

</div>

Does accepts\_nested\_attributes\_for work with ActiveResources?

---

## [Ajax, javascript\_tag and JS Var trouble, help nedded](https://www.ruby-forum.com/t/ajax-javascript-tag-and-js-var-trouble-help-nedded/172538)

<div class="topic-metadata">

**Author:** [@davidstokar](https://www.ruby-forum.com/u/davidstokar)\
**Replies:** 2\
**Last updated:** [July 24, 2009, 2:00am UTC](https://www.ruby-forum.com/t/ajax-javascript-tag-and-js-var-trouble-help-nedded/172538 "2009-07-24T02:00:25Z")

</div>

Hello there, I have a clients controller, and I want it to respond both ajax and html to the new action. If the user uses the html action, the new partial is going to be rendered and all works with no problem. In od…

---

## [Rails Elements for comparison selects](https://www.ruby-forum.com/t/rails-elements-for-comparison-selects/172601)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 3\
**Last updated:** [July 24, 2009, 12:35am UTC](https://www.ruby-forum.com/t/rails-elements-for-comparison-selects/172601 "2009-07-24T00:35:25Z")

</div>

I’m trying to find out what select elements would be best to use for comparison statements between two objects. Overall, the objects belong to the same table using the same id structure. A person would have to visibl…

---

## [Nested ARes models](https://www.ruby-forum.com/t/nested-ares-models/172607)

<div class="topic-metadata">

**Author:** [@dldldl](https://www.ruby-forum.com/u/dldldl)\
**Replies:** 0\
**Last updated:** [July 24, 2009, 12:13am UTC](https://www.ruby-forum.com/t/nested-ares-models/172607 "2009-07-24T00:13:42Z")

</div>

I have two ARecord models, Company and Employee, that are both serviced by RESTful controllers. I want to create a nested ActiveResource-based front end that makes calls on this RESTful interface. In my front-end cl…

---

## [Experiences with RAM and CPU Demand of Rails Applications?](https://www.ruby-forum.com/t/experiences-with-ram-and-cpu-demand-of-rails-applications/172600)

<div class="topic-metadata">

**Author:** [@enduro](https://www.ruby-forum.com/u/enduro)\
**Replies:** 1\
**Last updated:** [July 23, 2009, 10:13pm UTC](https://www.ruby-forum.com/t/experiences-with-ram-and-cpu-demand-of-rails-applications/172600 "2009-07-23T22:13:56Z")

</div>

Hello. given the fact that there are numerous different hosting offers with different parameters and technologies, I would like to ask if there are some heuristics or rules of thumb existing to determine the demand of…

---

## [Ruby 1.8.6 + Rails 2.3.2 + ActionMailer + Gmail SMTP](https://www.ruby-forum.com/t/ruby-1-8-6-rails-2-3-2-actionmailer-gmail-smtp/172527)

<div class="topic-metadata">

**Author:** [@Ritvvij](https://www.ruby-forum.com/u/Ritvvij)\
**Replies:** 2\
**Last updated:** [July 23, 2009, 9:37pm UTC](https://www.ruby-forum.com/t/ruby-1-8-6-rails-2-3-2-actionmailer-gmail-smtp/172527 "2009-07-23T21:37:06Z")

</div>

Hi, Can someone please help me setup ActionMailer via Gmail SMTP. I tried many tutorials online and some gems too but either they are not downloadable or links not working or the suggestions are very vague. Presently…

---

## [Singleton Object nil](https://www.ruby-forum.com/t/singleton-object-nil/172528)

<div class="topic-metadata">

**Author:** [@knappe](https://www.ruby-forum.com/u/knappe)\
**Replies:** 3\
**Last updated:** [July 23, 2009, 8:57pm UTC](https://www.ruby-forum.com/t/singleton-object-nil/172528 "2009-07-23T20:57:49Z")

</div>

Hey all, I have the following in my Controller: class \<\< self attr\_accessor :all\_devices, :test #def initialize(devices) # @all\_devices = devices #end end d…

---

## [Post data help](https://www.ruby-forum.com/t/post-data-help/172475)

<div class="topic-metadata">

**Author:** [@mpaxton](https://www.ruby-forum.com/u/mpaxton)\
**Replies:** 13\
**Last updated:** [July 23, 2009, 8:49pm UTC](https://www.ruby-forum.com/t/post-data-help/172475 "2009-07-23T20:49:10Z")

</div>

I have a controller called mystuff\_controller.rb, a db called mpstuff and a table inside that db called data and a column called m1. I was hoping that some could give a quick step by step on how to create a post actio…

---

## [Has\_many :through with join table as a has\_many FK issue](https://www.ruby-forum.com/t/has-many-through-with-join-table-as-a-has-many-fk-issue/172544)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 3\
**Last updated:** [July 23, 2009, 7:59pm UTC](https://www.ruby-forum.com/t/has-many-through-with-join-table-as-a-has-many-fk-issue/172544 "2009-07-23T19:59:28Z")

</div>

I have a join table: sitedata belongs\_to :tb1 belongs\_to tb2 has\_many :tb3 When I add a relationship in the join table I then add data to the tb3 table and that populates the FK in tb3 with the id of the join table…

---

## [Undefined method when redering form (rails 2.3)](https://www.ruby-forum.com/t/undefined-method-when-redering-form-rails-2-3/172594)

<div class="topic-metadata">

**Author:** [@flaubert](https://www.ruby-forum.com/u/flaubert)\
**Replies:** 0\
**Last updated:** [July 23, 2009, 6:18pm UTC](https://www.ruby-forum.com/t/undefined-method-when-redering-form-rails-2-3/172594 "2009-07-23T18:18:16Z")

</div>

I have in routes.rb map.resources :user, :has\_one :profile in my \_form.html.erb \<% form\_for (@user,@profile) do |f| … %\> Profile has “fisrt\_name” attribute but it fires an error : undefined method “first\_name” why …

---

## [Waiting for 1 connection to finish](https://www.ruby-forum.com/t/waiting-for-1-connection-to-finish/172440)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 6\
**Last updated:** [July 23, 2009, 5:17pm UTC](https://www.ruby-forum.com/t/waiting-for-1-connection-to-finish/172440 "2009-07-23T17:17:22Z")

</div>

For a few days now since a major update on my rails app on the production server, I am getting the following error message when restarting the application: Waiting for 1 connection(s) to finish, can take up to 30 se…

---

## [Auth / Search / Paging](https://www.ruby-forum.com/t/auth-search-paging/172525)

<div class="topic-metadata">

**Author:** [@Sergio\_ASGmail](https://www.ruby-forum.com/u/Sergio_ASGmail)\
**Replies:** 2\
**Last updated:** [July 23, 2009, 5:13pm UTC](https://www.ruby-forum.com/t/auth-search-paging/172525 "2009-07-23T17:13:22Z")

</div>

Thanks for everyone authlogic is the best solution for autorisation problems I suggest the screencast \[1\] now can you suggest me a solution for add an siple search on the scalfolds and a paging? Sergio Links: \[…

---

## [Problems with accepts\_nested\_attributes\_for](https://www.ruby-forum.com/t/problems-with-accepts-nested-attributes-for/172433)

<div class="topic-metadata">

**Author:** [@acgreen](https://www.ruby-forum.com/u/acgreen)\
**Replies:** 2\
**Last updated:** [July 23, 2009, 4:35pm UTC](https://www.ruby-forum.com/t/problems-with-accepts-nested-attributes-for/172433 "2009-07-23T16:35:56Z")

</div>

Hopefully someone can help. I have the following models class Parent \< ActiveRecord::Base schema id int, name string has\_many :children accepts\_nested\_attributes\_for :children end class Child \< ActiveRecord::Base s…

---

## [String as method call?](https://www.ruby-forum.com/t/string-as-method-call/172537)

<div class="topic-metadata">

**Author:** [@elliottg](https://www.ruby-forum.com/u/elliottg)\
**Replies:** 2\
**Last updated:** [July 23, 2009, 4:04pm UTC](https://www.ruby-forum.com/t/string-as-method-call/172537 "2009-07-23T16:04:21Z")

</div>

Should be simple but I can’t eval a string as a method call. I have poked around online a fair amount to get to the bottom of this mundane task, with no results. I have a hash “fields” that contains a series of AR fi…

---

## [ERROR: Failed to build gem native extension](https://www.ruby-forum.com/t/error-failed-to-build-gem-native-extension/172511)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 8\
**Last updated:** [July 23, 2009, 3:59pm UTC](https://www.ruby-forum.com/t/error-failed-to-build-gem-native-extension/172511 "2009-07-23T15:59:35Z")

</div>

Hello all, I tried to install the ‘amatch’ gem and received the following error: =============================================================================== C:\\Ruby\\bin\>gem install amatch-0.2.3.gem Building nativ…

---

## [Rails Logger::Shifting Problem](https://www.ruby-forum.com/t/rails-logger-shifting-problem/172580)

<div class="topic-metadata">

**Author:** [@wfspoet](https://www.ruby-forum.com/u/wfspoet)\
**Replies:** 0\
**Last updated:** [July 23, 2009, 3:23pm UTC](https://www.ruby-forum.com/t/rails-logger-shifting-problem/172580 "2009-07-23T15:23:59Z")

</div>

I ve run my rails project by creating 3 instance using mongrel cluster mongrel\_rails cluster::configure -p 8000 -n 3 now my project running three consequent ports like 8000,8001,8002 ports i am using rails version —\>2…

---

## [Logger shifting exception from logger gem](https://www.ruby-forum.com/t/logger-shifting-exception-from-logger-gem/172577)

<div class="topic-metadata">

**Author:** [@wfspoet](https://www.ruby-forum.com/u/wfspoet)\
**Replies:** 0\
**Last updated:** [July 23, 2009, 3:15pm UTC](https://www.ruby-forum.com/t/logger-shifting-exception-from-logger-gem/172577 "2009-07-23T15:15:19Z")

</div>

I ve run my rails project by creating 3 instance using mongrel cluster mongrel\_rails cluster::configure -p 8000 -n 3 now my project running three consequent ports like 8000,8001,8002 ports i am using rails version —\>2…

---

## [Testing with before\_filter](https://www.ruby-forum.com/t/testing-with-before-filter/172555)

<div class="topic-metadata">

**Author:** [@axyd80](https://www.ruby-forum.com/u/axyd80)\
**Replies:** 1\
**Last updated:** [July 23, 2009, 3:05pm UTC](https://www.ruby-forum.com/t/testing-with-before-filter/172555 "2009-07-23T15:05:40Z")

</div>

Hi all i’ve developed before\_filter - locale filter · GitHub and in tests like test “should get index” do get :index assert\_response :success assert\_not\_nil assigns(:articles) end i see test\_should\_get\_index(Art…

---

## [Production deployment on Dreamhost?](https://www.ruby-forum.com/t/production-deployment-on-dreamhost/52323)

<div class="topic-metadata">

**Author:** [@tomtt](https://www.ruby-forum.com/u/tomtt)\
**Replies:** 2\
**Last updated:** [July 23, 2009, 2:26pm UTC](https://www.ruby-forum.com/t/production-deployment-on-dreamhost/52323 "2009-07-23T14:26:41Z")

</div>

Does anyone have any experience with production deployment of RoR on Dreamhost? Is it now stable enough? Any tips and tricks? Thanks a lot, Tom

---

## [How can I paginate records find by using find\_by\_sql](https://www.ruby-forum.com/t/how-can-i-paginate-records-find-by-using-find-by-sql/172568)

<div class="topic-metadata">

**Author:** [@indu](https://www.ruby-forum.com/u/indu)\
**Replies:** 1\
**Last updated:** [July 23, 2009, 1:59pm UTC](https://www.ruby-forum.com/t/how-can-i-paginate-records-find-by-using-find-by-sql/172568 "2009-07-23T13:59:47Z")

</div>

Hello everyone, I forced to use @user = User.find\_by\_sql sql\_query in a particular situation in my project. Now I want to paginate the records. How can I paginate the records? Please help me. Thanks in advance

---

## [Swfobject rails 2.3.2 - get session vars](https://www.ruby-forum.com/t/swfobject-rails-2-3-2-get-session-vars/172458)

<div class="topic-metadata">

**Author:** [@arcoder](https://www.ruby-forum.com/u/arcoder)\
**Replies:** 3\
**Last updated:** [July 23, 2009, 1:19pm UTC](https://www.ruby-forum.com/t/swfobject-rails-2-3-2-get-session-vars/172458 "2009-07-23T13:19:10Z")

</div>

Hello, i set up Swfobject and it works well, but there is a problem: i’m not able to get sessions vars through Swfobject upload requests. Swfobject seems to create another session\_id record in the table, so i lose my…

---

## [\[JOBS\] Senior Ruby Developer Needed in Columbus, Ohio](https://www.ruby-forum.com/t/jobs-senior-ruby-developer-needed-in-columbus-ohio/172507)

<div class="topic-metadata">

**Author:** [@G\_Consulting\_LLC](https://www.ruby-forum.com/u/G_Consulting_LLC)\
**Replies:** 1\
**Last updated:** [July 23, 2009, 12:24pm UTC](https://www.ruby-forum.com/t/jobs-senior-ruby-developer-needed-in-columbus-ohio/172507 "2009-07-23T12:24:30Z")

</div>

Good morning, If you’re looking for something new, I’m in need of senior Ruby developer for an upcoming project in Columbus, Ohio. Please email removed\_email\_address@domain.invalid for more details. Regards, Greg F…

---

## [How to build scope for count() & has many polymorphic?](https://www.ruby-forum.com/t/how-to-build-scope-for-count-has-many-polymorphic/172500)

<div class="topic-metadata">

**Author:** [@yankees26](https://www.ruby-forum.com/u/yankees26)\
**Replies:** 2\
**Last updated:** [July 23, 2009, 12:22pm UTC](https://www.ruby-forum.com/t/how-to-build-scope-for-count-has-many-polymorphic/172500 "2009-07-23T12:22:09Z")

</div>

Hello, i have the following models in my application: class Message \< ActiveRecord::Base has\_many :comments, :as =\> :commentable, :dependent =\> :destroy, :order =\> ‘created\_at ASC’ end class Comment \< ActiveRecord::…

---

## [Ruby on rails programmer](https://www.ruby-forum.com/t/ruby-on-rails-programmer/172557)

<div class="topic-metadata">

**Author:** [@Revolution\_M](https://www.ruby-forum.com/u/Revolution_M)\
**Replies:** 5\
**Last updated:** [July 23, 2009, 12:08pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-programmer/172557 "2009-07-23T12:08:43Z")

</div>

I have acquired a new online web company that was programmed in Ruby on Rails and I am having a very difficult time finding anyone who writes or works with this language to fix some minor issues and add some major fea…

---

## [How do I mimic Finder/Explorer views with contextual menus, etc?](https://www.ruby-forum.com/t/how-do-i-mimic-finder-explorer-views-with-contextual-menus-etc/172518)

<div class="topic-metadata">

**Author:** [@dezrtdude](https://www.ruby-forum.com/u/dezrtdude)\
**Replies:** 1\
**Last updated:** [July 23, 2009, 12:03pm UTC](https://www.ruby-forum.com/t/how-do-i-mimic-finder-explorer-views-with-contextual-menus-etc/172518 "2009-07-23T12:03:57Z")

</div>

Hi All, I’m looking for some quality techniques for mimicking a Finder (or “Explorer View”). Eventually I want to have treeviews, contextual menus, etc. I’m guessing there is going to be a good deal of Javascript, wh…

---

## [ROR combo box](https://www.ruby-forum.com/t/ror-combo-box/172558)

<div class="topic-metadata">

**Author:** [@genie007](https://www.ruby-forum.com/u/genie007)\
**Replies:** 1\
**Last updated:** [July 23, 2009, 11:56am UTC](https://www.ruby-forum.com/t/ror-combo-box/172558 "2009-07-23T11:56:25Z")

</div>

I am looking for a combo box for rails . I need to display a list of existing items along with an option for the user to enter input like text field. Has anyone used one for RoR?

---

## [Integrating one app into another](https://www.ruby-forum.com/t/integrating-one-app-into-another/172546)

<div class="topic-metadata">

**Author:** [@stimpy](https://www.ruby-forum.com/u/stimpy)\
**Replies:** 2\
**Last updated:** [July 23, 2009, 11:37am UTC](https://www.ruby-forum.com/t/integrating-one-app-into-another/172546 "2009-07-23T11:37:43Z")

</div>

Hi, my name’s Ryan B., you may know me as Radar or “that guy who created rBoard”. Today I wish to ask: how do you integrate one app into another? Lots of people have come to me and asked the question of rBoard but I c…

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

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