# Rails

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

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

---

## [Optimizing ActiveSupport with native code](https://www.ruby-forum.com/t/optimizing-activesupport-with-native-code/183085)

<div class="topic-metadata">

**Author:** [@mat\_b](https://www.ruby-forum.com/u/mat_b)\
**Replies:** 4\
**Last updated:** [February 7, 2010, 10:49pm UTC](https://www.ruby-forum.com/t/optimizing-activesupport-with-native-code/183085 "2010-02-07T22:49:25Z")

</div>

I’ve had this idea kicking around in my head for a while, and had some time yesterday to start playing around with it: ActiveSupport is heavily used in both the Rails library code and in the application layer of a typ…

---

## [Problem in rendering :partial with auto\_complete\_field](https://www.ruby-forum.com/t/problem-in-rendering-partial-with-auto-complete-field/182147)

<div class="topic-metadata">

**Author:** [@mcieong](https://www.ruby-forum.com/u/mcieong)\
**Replies:** 5\
**Last updated:** [February 7, 2010, 10:41pm UTC](https://www.ruby-forum.com/t/problem-in-rendering-partial-with-auto-complete-field/182147 "2010-02-07T22:41:01Z")

</div>

I wrote some codes to generate a input field with auto complete functionality, these codes work well in a regular form, the codes are: ========================================================= \<%= auto\_complete\_fi…

---

## [Named\_scope and params](https://www.ruby-forum.com/t/named-scope-and-params/183078)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 2\
**Last updated:** [February 7, 2010, 9:25pm UTC](https://www.ruby-forum.com/t/named-scope-and-params/183078 "2010-02-07T21:25:09Z")

</div>

I almost suspect that I can’t do this because it hasn’t yet worked for me… My Salon model… this works… named\_scope :states, :group =\> ‘state’, :select =\> ‘state’ doesn’t seem to work (at least not in script/consol…

---

## [Using form\_for in a partial](https://www.ruby-forum.com/t/using-form-for-in-a-partial/183086)

<div class="topic-metadata">

**Author:** [@b1gtuna](https://www.ruby-forum.com/u/b1gtuna)\
**Replies:** 0\
**Last updated:** [February 7, 2010, 9:23pm UTC](https://www.ruby-forum.com/t/using-form-for-in-a-partial/183086 "2010-02-07T21:23:47Z")

</div>

Hello, I would like a user to fill out a form (a long contract) and then email it to them, including the new values. So I was leaning towards a partial or layout so I didn’t have to write the contract twice. But tha…

---

## [Help with 3.0 Beta](https://www.ruby-forum.com/t/help-with-3-0-beta/183047)

<div class="topic-metadata">

**Author:** [@kfmfe04](https://www.ruby-forum.com/u/kfmfe04)\
**Replies:** 8\
**Last updated:** [February 7, 2010, 9:19pm UTC](https://www.ruby-forum.com/t/help-with-3-0-beta/183047 "2010-02-07T21:19:18Z")

</div>

I am trying to install rails 3 beta It says it is installed but when I look in the rails-3.0.0.beta directory the only thing in there is .require\_paths Have I screwed up somewhere? I have also updated ruby 1.9.1 and…

---

## [How much "records" can development env stands?!](https://www.ruby-forum.com/t/how-much-records-can-development-env-stands/183060)

<div class="topic-metadata">

**Author:** [@adedip](https://www.ruby-forum.com/u/adedip)\
**Replies:** 2\
**Last updated:** [February 7, 2010, 8:47pm UTC](https://www.ruby-forum.com/t/how-much-records-can-development-env-stands/183060 "2010-02-07T20:47:23Z")

</div>

I didn’t know how to title this question sorry :stuck\_out\_tongue: I wrote this application using a MySQL DB and Solr Server (updated via acts\_as\_solr plugin) I need to load tons of documents to test it out, the app is…

---

## [RoR physical development environment advice](https://www.ruby-forum.com/t/ror-physical-development-environment-advice/183059)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 8\
**Last updated:** [February 7, 2010, 8:45pm UTC](https://www.ruby-forum.com/t/ror-physical-development-environment-advice/183059 "2010-02-07T20:45:39Z")

</div>

Hi Folks, I’m a RoR noob (and pretty much a progrmming noob) who has been working since 7am to get a development platform set up on win 7 so that I can follow the lynda.com “ruby on rails essential training” tutorial…

---

## [\#\<RangeError: 0x3770f58 is recycled object\>](https://www.ruby-forum.com/t/rangeerror-0x3770f58-is-recycled-object/183073)

<div class="topic-metadata">

**Author:** [@ralphshnelvar](https://www.ruby-forum.com/u/ralphshnelvar)\
**Replies:** 12\
**Last updated:** [February 7, 2010, 8:24pm UTC](https://www.ruby-forum.com/t/rangeerror-0x3770f58-is-recycled-object/183073 "2010-02-07T20:24:45Z")

</div>

I did a Google search on this and found a lot of stuff I don’t understand. Is this a serious error? How would one go tracking down the cause?

---

## [Observe\_field example of two related selects](https://www.ruby-forum.com/t/observe-field-example-of-two-related-selects/183043)

<div class="topic-metadata">

**Author:** [@InventoryTrackers](https://www.ruby-forum.com/u/InventoryTrackers)\
**Replies:** 2\
**Last updated:** [February 7, 2010, 6:33pm UTC](https://www.ruby-forum.com/t/observe-field-example-of-two-related-selects/183043 "2010-02-07T18:33:44Z")

</div>

I’ve done the ‘Googling’ for days now to find an example of using two dependent select statements on a form where the user selects the parent record value and the observe\_field ‘kicks in’ to create another select that…

---

## [Tip to compile a 32bit version of Ruby on Snow Leopard](https://www.ruby-forum.com/t/tip-to-compile-a-32bit-version-of-ruby-on-snow-leopard/183075)

<div class="topic-metadata">

**Author:** [@PierreW](https://www.ruby-forum.com/u/PierreW)\
**Replies:** 0\
**Last updated:** [February 7, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/tip-to-compile-a-32bit-version-of-ruby-on-snow-leopard/183075 "2010-02-07T16:22:33Z")

</div>

Hi guys, I hope it’s not too off topic on a Rails forum, but I spent so much time on this I thought I should share it here - hopefully it will help other people. I had to compile a 32bit (i386) version of Ruby 1.8.7 …

---

## [\[ANN\] Rails 3.0 Beta ALL PLEASE READ](https://www.ruby-forum.com/t/ann-rails-3-0-beta-all-please-read/183070)

<div class="topic-metadata">

**Author:** [@conz](https://www.ruby-forum.com/u/conz)\
**Replies:** 0\
**Last updated:** [February 7, 2010, 3:01pm UTC](https://www.ruby-forum.com/t/ann-rails-3-0-beta-all-please-read/183070 "2010-02-07T15:01:12Z")

</div>

Hi ALL, for all the early adopters of Rails 3.0 Beta, I’m sure that means most if not all of you. Anyway, I would highly recommend reading and following the below steps: Release Notes rails.info Note: This has …

---

## [Rails 3: bundle install vendor - ffi 0.5.4 gem crashes : ERROR: Failed to build gem native extensio](https://www.ruby-forum.com/t/rails-3-bundle-install-vendor-ffi-0-5-4-gem-crashes-error-failed-to-build-gem-native-extensio/183069)

<div class="topic-metadata">

**Author:** [@Kristian](https://www.ruby-forum.com/u/Kristian)\
**Replies:** 0\
**Last updated:** [February 7, 2010, 2:14pm UTC](https://www.ruby-forum.com/t/rails-3-bundle-install-vendor-ffi-0-5-4-gem-crashes-error-failed-to-build-gem-native-extensio/183069 "2010-02-07T14:14:59Z")

</div>

Installing ffi (0.5.4) from rubygems repository at http://gemcutter.org with native extensions /usr/local/Cellar/ruby/1.9.1-p378/lib/ruby/ site\_ruby/1.9.1/rubygems/installer.rb:504:in \`rescue in block in build\_extensi…

---

## [Authlogic Oauth problem with Remember Me](https://www.ruby-forum.com/t/authlogic-oauth-problem-with-remember-me/183062)

<div class="topic-metadata">

**Author:** [@acreadinglist](https://www.ruby-forum.com/u/acreadinglist)\
**Replies:** 0\
**Last updated:** [February 7, 2010, 11:56am UTC](https://www.ruby-forum.com/t/authlogic-oauth-problem-with-remember-me/183062 "2010-02-07T11:56:53Z")

</div>

My sole login type is Twitter OAuth; I’m using Authlogic with the Oauth addition for authentication. I’m trying to build my Rails app such that the user is automatically redirected to Twitter’s login/registration, ins…

---

## ["Getting Started" needs Rails 3.0, but "gem install rails" installs Rails 2.3.8](https://www.ruby-forum.com/t/getting-started-needs-rails-3-0-but-gem-install-rails-installs-rails-2-3-8/182699)

<div class="topic-metadata">

**Author:** [@fearless\_fool](https://www.ruby-forum.com/u/fearless_fool)\
**Replies:** 7\
**Last updated:** [February 7, 2010, 11:45am UTC](https://www.ruby-forum.com/t/getting-started-needs-rails-3-0-but-gem-install-rails-installs-rails-2-3-8/182699 "2010-02-07T11:45:10Z")

</div>

As of this writing: The Getting Started guide (http://guides.rails.info/ getting\_started.html) was recently re-written to reflect recent features in Rails 3.0. But the instructions it gives for downloading rails in …

---

## [\[Rails 3\] How do I use the new hook functionality to hook up multiple generators for scaffolding et](https://www.ruby-forum.com/t/rails-3-how-do-i-use-the-new-hook-functionality-to-hook-up-multiple-generators-for-scaffolding-et/183061)

<div class="topic-metadata">

**Author:** [@Kristian](https://www.ruby-forum.com/u/Kristian)\
**Replies:** 0\
**Last updated:** [February 7, 2010, 11:04am UTC](https://www.ruby-forum.com/t/rails-3-how-do-i-use-the-new-hook-functionality-to-hook-up-multiple-generators-for-scaffolding-et/183061 "2010-02-07T11:04:48Z")

</div>

I have ported a few Rails 2 generators in the past week and have learned a lot doing it, but I still don’t understand how to take advantage of the new ‘hook’ functionality, which should make it easy to hook up multipl…

---

## [Issue with mail notification](https://www.ruby-forum.com/t/issue-with-mail-notification/183036)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 4\
**Last updated:** [February 7, 2010, 9:07am UTC](https://www.ruby-forum.com/t/issue-with-mail-notification/183036 "2010-02-07T09:07:11Z")

</div>

Rails 2.3.5 / Ruby 1.8.7 Hi All I have a small issue when using mail notification my default locale is :en (but I have already 2 locales :en , :fr for testing purpose I have a Notifier model … class Notifier \< Ac…

---

## [Radio\_button\_tag for every value of constant array](https://www.ruby-forum.com/t/radio-button-tag-for-every-value-of-constant-array/183011)

<div class="topic-metadata">

**Author:** [@Learn\_by\_D](https://www.ruby-forum.com/u/Learn_by_D)\
**Replies:** 5\
**Last updated:** [February 7, 2010, 2:04am UTC](https://www.ruby-forum.com/t/radio-button-tag-for-every-value-of-constant-array/183011 "2010-02-07T02:04:43Z")

</div>

How do I create a radio\_button\_tag for every value of a constant array? E.g., I have this constant array: VALID\_ORIENTATIONS = \[“Straight”, “Gay”, “Bisexual”\] . A user is presented with a form to search for other …

---

## [ActiveRecord model design help](https://www.ruby-forum.com/t/activerecord-model-design-help/197024)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 1\
**Last updated:** [February 6, 2010, 11:47pm UTC](https://www.ruby-forum.com/t/activerecord-model-design-help/197024 "2010-02-06T23:47:32Z")

</div>

I need some help on the following model design : User model (user.rb) class User \< ActiveRecord::Base has\_many :analyses, :dependent =\> :destroy Analysis model (analysis.rb) class Analysis \< ActiveRecord::Base b…

---

## [Help on play a sound](https://www.ruby-forum.com/t/help-on-play-a-sound/183020)

<div class="topic-metadata">

**Author:** [@newb](https://www.ruby-forum.com/u/newb)\
**Replies:** 4\
**Last updated:** [February 6, 2010, 10:34pm UTC](https://www.ruby-forum.com/t/help-on-play-a-sound/183020 "2010-02-06T22:34:43Z")

</div>

Hi… i have a .wav file in my rails public folder. i would like to play that file when i click play link in my application. so i did like below \<% @file\_path = “#{RAILS\_ROOT}” + “/public/Server\_exe/#{voicemail.file\_p…

---

## [Get the object caller](https://www.ruby-forum.com/t/get-the-object-caller/182990)

<div class="topic-metadata">

**Author:** [@Augusto\_Ruibal\_SShi](https://www.ruby-forum.com/u/Augusto_Ruibal_SShi)\
**Replies:** 3\
**Last updated:** [February 6, 2010, 8:26pm UTC](https://www.ruby-forum.com/t/get-the-object-caller/182990 "2010-02-06T20:26:59Z")

</div>

Let me explain I have these models class User \< AR::Base has\_many :contact end class Contact \< AR::Base belongs\_to :user belongs\_to :user\_contact\_id, :class\_name =\> “User”, :foreign\_key =\> “user\_contact\_id” # I h…

---

## [jQuery & Rails installation](https://www.ruby-forum.com/t/jquery-rails-installation/182642)

<div class="topic-metadata">

**Author:** [@ralphshnelvar](https://www.ruby-forum.com/u/ralphshnelvar)\
**Replies:** 10\
**Last updated:** [February 6, 2010, 6:44pm UTC](https://www.ruby-forum.com/t/jquery-rails-installation/182642 "2010-02-06T18:44:32Z")

</div>

I’m missing something basic … How does one install jQuery in RoR?

---

## [Controller code and uninitialized constants](https://www.ruby-forum.com/t/controller-code-and-uninitialized-constants/182985)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 4\
**Last updated:** [February 6, 2010, 6:43pm UTC](https://www.ruby-forum.com/t/controller-code-and-uninitialized-constants/182985 "2010-02-06T18:43:21Z")

</div>

YM4R\_GM plugin… This controller code works but clearly has limitations… map\_1 = GMarker.new(\[@salons\[0\].lat, @salons\[0\].lng\]) @map.overlay\_init(map\_1) but I really need this in a loop… for salon in @salons do map\_…

---

## [Route not working](https://www.ruby-forum.com/t/route-not-working/183031)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 4\
**Last updated:** [February 6, 2010, 3:10pm UTC](https://www.ruby-forum.com/t/route-not-working/183031 "2010-02-06T15:10:10Z")

</div>

I’ve added a controller ‘blog/admin’. When I want to access ‘blog/admin/index’ it says that the page doesn’t exist. It works in my local environment. What am I missing?

---

## [Auto Post video to facebook](https://www.ruby-forum.com/t/auto-post-video-to-facebook/183033)

<div class="topic-metadata">

**Author:** [@krunal\_shah](https://www.ruby-forum.com/u/krunal_shah)\
**Replies:** 0\
**Last updated:** [February 6, 2010, 2:48pm UTC](https://www.ruby-forum.com/t/auto-post-video-to-facebook/183033 "2010-02-06T14:48:27Z")

</div>

Hi, I want to post video from my site to facebook with auto post. First time when user post video to the facebook and if he will set auto post on facebook. Than if user uploaded any video than automatically that vide…

---

## [Accepts\_nested\_attributes\_for with has\_many =\> :through](https://www.ruby-forum.com/t/accepts-nested-attributes-for-with-has-many-through/183023)

<div class="topic-metadata">

**Author:** [@acreadinglist](https://www.ruby-forum.com/u/acreadinglist)\
**Replies:** 1\
**Last updated:** [February 6, 2010, 1:08pm UTC](https://www.ruby-forum.com/t/accepts-nested-attributes-for-with-has-many-through/183023 "2010-02-06T13:08:35Z")

</div>

I have two models, links and tags, associated through a 3rd model, link\_tags. I added the following to my link model, has\_many :tags, :through =\> :link\_tags has\_many :link\_tags accepts\_nested\_attributes\_for :tags, :…

---

## [Dry model collections in other models](https://www.ruby-forum.com/t/dry-model-collections-in-other-models/183028)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 0\
**Last updated:** [February 6, 2010, 12:51pm UTC](https://www.ruby-forum.com/t/dry-model-collections-in-other-models/183028 "2010-02-06T12:51:36Z")

</div>

Say I have 2 models, Salons and Reviews I put into ApplicationHelper.rb… – This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.

---

## [RadRails console/instant rails](https://www.ruby-forum.com/t/radrails-console-instant-rails/183026)

<div class="topic-metadata">

**Author:** [@joya](https://www.ruby-forum.com/u/joya)\
**Replies:** 0\
**Last updated:** [February 6, 2010, 10:46am UTC](https://www.ruby-forum.com/t/radrails-console-instant-rails/183026 "2010-02-06T10:46:58Z")

</div>

Hello all, I try to configure the default path of my Radrails console. I had install instant Rails and I want to use the radrails console but for example when I do “rails myapplication” with the radrails console, the …

---

## [ActiveRecord model design help](https://www.ruby-forum.com/t/activerecord-model-design-help/183024)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 0\
**Last updated:** [February 6, 2010, 10:35am UTC](https://www.ruby-forum.com/t/activerecord-model-design-help/183024 "2010-02-06T10:35:16Z")

</div>

I need some help on the following model design : User model (user.rb) class User \< ActiveRecord::Base has\_many :analyses, :dependent =\> :destroy Analysis model (analysis.rb) class Analysis \< ActiveRecord::Base b…

---

## [I can only halfway connect to oracle](https://www.ruby-forum.com/t/i-can-only-halfway-connect-to-oracle/183018)

<div class="topic-metadata">

**Author:** [@cristie](https://www.ruby-forum.com/u/cristie)\
**Replies:** 0\
**Last updated:** [February 6, 2010, 6:48am UTC](https://www.ruby-forum.com/t/i-can-only-halfway-connect-to-oracle/183018 "2010-02-06T06:48:52Z")

</div>

Gurus… If I set up my project to use SQLite (so it can come up) and attempt to connect to oracle via: oracle\_connect = $application\_properties\[$connect\_string\] oracle\_conn = OCI8.new(oracle\_id, oracle\_password, oracl…

---

## [Rails 3 Beta](https://www.ruby-forum.com/t/rails-3-beta/183014)

<div class="topic-metadata">

**Author:** [@rgreen](https://www.ruby-forum.com/u/rgreen)\
**Replies:** 2\
**Last updated:** [February 6, 2010, 3:44am UTC](https://www.ruby-forum.com/t/rails-3-beta/183014 "2010-02-06T03:44:29Z")

</div>

Where can I post questions on Rails 3 Beta?

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

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