# Rails

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

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

---

## [SocketError: getaddrinfo: Name or service not known --\> error while running test case](https://www.ruby-forum.com/t/socketerror-getaddrinfo-name-or-service-not-known-error-while-running-test-case/184168)

<div class="topic-metadata">

**Author:** [@Ricky](https://www.ruby-forum.com/u/Ricky)\
**Replies:** 0\
**Last updated:** [February 25, 2010, 11:11pm UTC](https://www.ruby-forum.com/t/socketerror-getaddrinfo-name-or-service-not-known-error-while-running-test-case/184168 "2010-02-25T23:11:46Z")

</div>

Hi all, I am getting the below error when I try to run my test case. I have already started selenium RC server (port:4444)… Also I have specified " 127.0.0.1 localhost " in /etc/hosts … :ruby test1.rb Loaded sui…

---

## [Command to Show Requests per second](https://www.ruby-forum.com/t/command-to-show-requests-per-second/184158)

<div class="topic-metadata">

**Author:** [@homerlex](https://www.ruby-forum.com/u/homerlex)\
**Replies:** 1\
**Last updated:** [February 25, 2010, 9:55pm UTC](https://www.ruby-forum.com/t/command-to-show-requests-per-second/184158 "2010-02-25T21:55:19Z")

</div>

A long time ago I used a command that showed the current requests/second that rails is serving. I don’t recall what the command was. Anyone? Thanks!

---

## [Rcov and i18n gem](https://www.ruby-forum.com/t/rcov-and-i18n-gem/183695)

<div class="topic-metadata">

**Author:** [@felipe](https://www.ruby-forum.com/u/felipe)\
**Replies:** 4\
**Last updated:** [February 25, 2010, 9:39pm UTC](https://www.ruby-forum.com/t/rcov-and-i18n-gem/183695 "2010-02-25T21:39:18Z")

</div>

Hi guys, I installed rails 3 beta, and the gem i18n (active\_support dependency). After this, when I migrated my app to rails 2.3.5, it was 2.3.2, it became to raise an error when I ran rcov reports. The error is: /…

---

## [Problem generating url helper](https://www.ruby-forum.com/t/problem-generating-url-helper/184147)

<div class="topic-metadata">

**Author:** [@aldoitalo](https://www.ruby-forum.com/u/aldoitalo)\
**Replies:** 1\
**Last updated:** [February 25, 2010, 9:10pm UTC](https://www.ruby-forum.com/t/problem-generating-url-helper/184147 "2010-02-25T21:10:02Z")

</div>

i have a problem with generating a url with the helper. in the routes.rb: cats map.cat ‘/category/:id/:page’, :namespace =\> ‘front’, :controller =\> ‘cats’, :action =\> ‘cat’, :requirements =\> { :page =\> /\\d+/ }, :page …

---

## [Rails problems running rake and other tasks - undefined method \`action\_controller'](https://www.ruby-forum.com/t/rails-problems-running-rake-and-other-tasks-undefined-method-action-controller/184161)

<div class="topic-metadata">

**Author:** [@Kristian](https://www.ruby-forum.com/u/Kristian)\
**Replies:** 0\
**Last updated:** [February 25, 2010, 8:41pm UTC](https://www.ruby-forum.com/t/rails-problems-running-rake-and-other-tasks-undefined-method-action-controller/184161 "2010-02-25T20:41:22Z")

</div>

I suddenly have a major problem in all my Rails 3 apps: $ rake db:migrate --trace rake aborted! Don’t know how to build task ‘db:migrate’ /Users/kristianconsult/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/ rake.rb…

---

## [Website down?](https://www.ruby-forum.com/t/website-down/184159)

<div class="topic-metadata">

**Author:** [@alea](https://www.ruby-forum.com/u/alea)\
**Replies:** 1\
**Last updated:** [February 25, 2010, 8:08pm UTC](https://www.ruby-forum.com/t/website-down/184159 "2010-02-25T20:08:35Z")

</div>

Hi, I know it could be an annoying question for skilled developers but we have a major issue… this website ( http://www.swissdnabank.com ) worked fine til this afternoon, then suddenly appeared this error page… what …

---

## [NoMethodError ... nil.clear](https://www.ruby-forum.com/t/nomethoderror-nil-clear/184049)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [February 25, 2010, 7:04pm UTC](https://www.ruby-forum.com/t/nomethoderror-nil-clear/184049 "2010-02-25T19:04:12Z")

</div>

Hi, Rails 2.3.5 Any ideas on the following error when calling create on an ActiveRecord object? NoMethodError (You have a nil object when you didn’t expect it! You might have expected an instance of Array. The erro…

---

## [Conditions on Joined Tables](https://www.ruby-forum.com/t/conditions-on-joined-tables/184155)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 0\
**Last updated:** [February 25, 2010, 6:56pm UTC](https://www.ruby-forum.com/t/conditions-on-joined-tables/184155 "2010-02-25T18:56:35Z")

</div>

Hi I don’t see how to write correctly conditions for the following query : association: client has\_many :orders I would to get in one query : all clients with NO ORDER + clients with orders where Today IS NOT in …

---

## [Accepts\_nested\_attributes\_for vs. multiple controllers on one page](https://www.ruby-forum.com/t/accepts-nested-attributes-for-vs-multiple-controllers-on-one-page/197255)

<div class="topic-metadata">

**Author:** [@Grary](https://www.ruby-forum.com/u/Grary)\
**Replies:** 0\
**Last updated:** [February 25, 2010, 6:49pm UTC](https://www.ruby-forum.com/t/accepts-nested-attributes-for-vs-multiple-controllers-on-one-page/197255 "2010-02-25T18:49:33Z")

</div>

Hi, I’d like to render the results from show, create, edit and delete actions for several different models (one controller per model) on one page. While these several models are conceptually related, they do not need …

---

## [Adding Modules to ActiveRecord](https://www.ruby-forum.com/t/adding-modules-to-activerecord/184150)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [February 25, 2010, 6:42pm UTC](https://www.ruby-forum.com/t/adding-modules-to-activerecord/184150 "2010-02-25T18:42:29Z")

</div>

Hi, I need to add some methods to all my models. These methods are likely to be used in pretty much every Rails project I work on for the foreseeable future, so am guessing that it would be best to add them to Active…

---

## [Accepts\_nested\_attributes\_for vs. multiple controllers on one page](https://www.ruby-forum.com/t/accepts-nested-attributes-for-vs-multiple-controllers-on-one-page/184152)

<div class="topic-metadata">

**Author:** [@Grary](https://www.ruby-forum.com/u/Grary)\
**Replies:** 0\
**Last updated:** [February 25, 2010, 6:42pm UTC](https://www.ruby-forum.com/t/accepts-nested-attributes-for-vs-multiple-controllers-on-one-page/184152 "2010-02-25T18:42:29Z")

</div>

Hi, I’d like to render the results from show, create, edit and delete actions for several different models (one controller per model) on one page. While these several models are conceptually related, they do not need …

---

## [\`\<top (required)\>': undefined method \`default\_external=' for Encoding:Class (NoMethodError)](https://www.ruby-forum.com/t/top-required-undefined-method-default-external-for-encoding-class-nomethoderror/184088)

<div class="topic-metadata">

**Author:** [@ivoryivy](https://www.ruby-forum.com/u/ivoryivy)\
**Replies:** 2\
**Last updated:** [February 25, 2010, 6:00pm UTC](https://www.ruby-forum.com/t/top-required-undefined-method-default-external-for-encoding-class-nomethoderror/184088 "2010-02-25T18:00:22Z")

</div>

Why would I be getting these errors when running any of the commands in rails (rails console/rake/etc)? $ rails server /var/lib/gems/1.9.0/gems/railties-3.0.0.beta/lib/rails.rb:25:in \<top (required)\>': undefined metho…

---

## [Undefined method error appears in erb but not haml](https://www.ruby-forum.com/t/undefined-method-error-appears-in-erb-but-not-haml/184146)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 0\
**Last updated:** [February 25, 2010, 5:56pm UTC](https://www.ruby-forum.com/t/undefined-method-error-appears-in-erb-but-not-haml/184146 "2010-02-25T17:56:26Z")

</div>

Hey all, All I wanted to do was convert a haml file to erb. After doing so, i get an undefined method \`render\_sequence\_nav’ error message. Even though no such error happened when it was in haml format. I believe the c…

---

## [Seeking good examples for Data Warehousing / Dimensional Modeling](https://www.ruby-forum.com/t/seeking-good-examples-for-data-warehousing-dimensional-modeling/184139)

<div class="topic-metadata">

**Author:** [@fearless\_fool](https://www.ruby-forum.com/u/fearless_fool)\
**Replies:** 0\
**Last updated:** [February 25, 2010, 5:10pm UTC](https://www.ruby-forum.com/t/seeking-good-examples-for-data-warehousing-dimensional-modeling/184139 "2010-02-25T17:10:02Z")

</div>

Group: Are there any good fully-spelled-out examples for Data Warehousing / Dimensional modeling in Rails? (An implementation of one of the chapters from Ralph Kimball’s excellent "The Data Warehouse Toolkit would b…

---

## [Paperclip](https://www.ruby-forum.com/t/paperclip/184128)

<div class="topic-metadata">

**Author:** [@Rajinder\_Y](https://www.ruby-forum.com/u/Rajinder_Y)\
**Replies:** 4\
**Last updated:** [February 25, 2010, 4:58pm UTC](https://www.ruby-forum.com/t/paperclip/184128 "2010-02-25T16:58:54Z")

</div>

Hi being relatively new to rails I am trying to start a simple project on using paperclip to upload an image file and create a thumbnail. However I am not sure how to use the rails plug-in? What I did was install pape…

---

## [Re: Finding all records that don't have child](https://www.ruby-forum.com/t/re-finding-all-records-that-dont-have-child/184137)

<div class="topic-metadata">

**Author:** [@fmcorp](https://www.ruby-forum.com/u/fmcorp)\
**Replies:** 0\
**Last updated:** [February 25, 2010, 4:54pm UTC](https://www.ruby-forum.com/t/re-finding-all-records-that-dont-have-child/184137 "2010-02-25T16:54:13Z")

</div>

That is finding all B records that have no parent. I want to find all A records that have no child… I’m thinking that the best/fastest way to do this would to just use counters. You wrote: I would use a named\_scope …

---

## ["Sequence does not exist" for joined model](https://www.ruby-forum.com/t/sequence-does-not-exist-for-joined-model/184093)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 4\
**Last updated:** [February 25, 2010, 4:18pm UTC](https://www.ruby-forum.com/t/sequence-does-not-exist-for-joined-model/184093 "2010-02-25T16:18:31Z")

</div>

Hello all, I’m in my 5th month on Ruby on Rails and still learning. I have an application that works fine in sqlite3 and then the boss says he wants it migrated to Oracle. Now, I know very little about Oracle, enough…

---

## [Running Ruby on built in Apache server on Mac](https://www.ruby-forum.com/t/running-ruby-on-built-in-apache-server-on-mac/184092)

<div class="topic-metadata">

**Author:** [@david2](https://www.ruby-forum.com/u/david2)\
**Replies:** 7\
**Last updated:** [February 25, 2010, 4:06pm UTC](https://www.ruby-forum.com/t/running-ruby-on-built-in-apache-server-on-mac/184092 "2010-02-25T16:06:34Z")

</div>

I’m trying to ease into Ruby and Rails. Is it possible to simply load a Ruby template file similar to the way I load a PHP file? The Mac built in Apache web server is preconfigured to support PHP, but I can’t find ou…

---

## [Image tag problem](https://www.ruby-forum.com/t/image-tag-problem/184125)

<div class="topic-metadata">

**Author:** [@erwillie](https://www.ruby-forum.com/u/erwillie)\
**Replies:** 1\
**Last updated:** [February 25, 2010, 3:34pm UTC](https://www.ruby-forum.com/t/image-tag-problem/184125 "2010-02-25T15:34:21Z")

</div>

Hi everybody IÂ´m using image\_tag for show an image, saved in public/images folder, but when I tried to see it in the browser only appears the code that I wrote. If someone can help me, here is my view code HOLA MUND…

---

## [Yet another send\_data :image question](https://www.ruby-forum.com/t/yet-another-send-data-image-question/184101)

<div class="topic-metadata">

**Author:** [@parki](https://www.ruby-forum.com/u/parki)\
**Replies:** 6\
**Last updated:** [February 25, 2010, 3:29pm UTC](https://www.ruby-forum.com/t/yet-another-send-data-image-question/184101 "2010-02-25T15:29:55Z")

</div>

Guys & gals, I’m also learning RoR (using v2.3.4). I’ve got a basic scaffold working for image file creation, and - to a point - image file display. The send\_data function is working in my controller - no problem. Th…

---

## [Rails acts\_as\_\* plugins, with parameters](https://www.ruby-forum.com/t/rails-acts-as-plugins-with-parameters/184119)

<div class="topic-metadata">

**Author:** [@extempore](https://www.ruby-forum.com/u/extempore)\
**Replies:** 3\
**Last updated:** [February 25, 2010, 3:24pm UTC](https://www.ruby-forum.com/t/rails-acts-as-plugins-with-parameters/184119 "2010-02-25T15:24:25Z")

</div>

Hi all, I’m trying to write a plugin which will allow me to specify: acts\_as\_item :option=\>:value i need to be able to access the :options=\>:value hash from instances of the model also. I’ve tried with class\_eval in…

---

## [How to add openfire server in rails app](https://www.ruby-forum.com/t/how-to-add-openfire-server-in-rails-app/184122)

<div class="topic-metadata">

**Author:** [@karthikragu](https://www.ruby-forum.com/u/karthikragu)\
**Replies:** 0\
**Last updated:** [February 25, 2010, 3:09pm UTC](https://www.ruby-forum.com/t/how-to-add-openfire-server-in-rails-app/184122 "2010-02-25T15:09:49Z")

</div>

Hi All, I have installed xmpp4r and using it in my rails application. now i want to know how to add openfire server. If anyone know the solution please help me. thanks.

---

## [Finding all records that don't have child](https://www.ruby-forum.com/t/finding-all-records-that-dont-have-child/184124)

<div class="topic-metadata">

**Author:** [@RailsFun](https://www.ruby-forum.com/u/RailsFun)\
**Replies:** 1\
**Last updated:** [February 25, 2010, 2:52pm UTC](https://www.ruby-forum.com/t/finding-all-records-that-dont-have-child/184124 "2010-02-25T14:52:26Z")

</div>

I have two classes with a one-to-many relationship, and want to find all A records that don’t have any B records. I can’t seem to make a B.find(:all, :conditions =\> “blah”) work because the foreign key is in A. Any he…

---

## [QueryCache and AR objects](https://www.ruby-forum.com/t/querycache-and-ar-objects/184014)

<div class="topic-metadata">

**Author:** [@plambert](https://www.ruby-forum.com/u/plambert)\
**Replies:** 3\
**Last updated:** [February 25, 2010, 12:05pm UTC](https://www.ruby-forum.com/t/querycache-and-ar-objects/184014 "2010-02-25T12:05:01Z")

</div>

I was hoping that the Rails’ QueryCache might cache the ActiveRecord objects it creates and not just the SQL result set, but some experimentation shows that this is not the case. For example: ActiveRecord::Base.cac…

---

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

<div class="topic-metadata">

**Author:** [@overture](https://www.ruby-forum.com/u/overture)\
**Replies:** 10\
**Last updated:** [February 25, 2010, 10:54am UTC](https://www.ruby-forum.com/t/ujs-in-rails-3-beta/183111 "2010-02-25T10:54:26Z")

</div>

Hi All, Does anyone know if there are any good examples of how to use the unobtrusive javascript functionality in Rails 3. I’ve read the release notes but I can’t seem to get things working. I’ve just set up a simpl…

---

## [MSN chat in rails app](https://www.ruby-forum.com/t/msn-chat-in-rails-app/184114)

<div class="topic-metadata">

**Author:** [@karthikragu](https://www.ruby-forum.com/u/karthikragu)\
**Replies:** 0\
**Last updated:** [February 25, 2010, 10:43am UTC](https://www.ruby-forum.com/t/msn-chat-in-rails-app/184114 "2010-02-25T10:43:45Z")

</div>

Deal All, I want to know how to do or enable msn chat functionality in rails application. is there any gems or plugins available for that. any directions will be greatfull. thanks in advance.

---

## [\<script type="text/javascript\> inside partial not being rendered](https://www.ruby-forum.com/t/script-type-text-javascript-inside-partial-not-being-rendered/184113)

<div class="topic-metadata">

**Author:** [@ferblape](https://www.ruby-forum.com/u/ferblape)\
**Replies:** 1\
**Last updated:** [February 25, 2010, 10:33am UTC](https://www.ruby-forum.com/t/script-type-text-javascript-inside-partial-not-being-rendered/184113 "2010-02-25T10:33:44Z")

</div>

Hello I use a “link\_to\_remote” inside my view to call an action and update a div. In the action, inside my controller, I use a “render :partial =\> ‘partial\_name’” to fill the div with content. Inside that partial th…

---

## [Ruby on Rails application could not be started](https://www.ruby-forum.com/t/ruby-on-rails-application-could-not-be-started/184115)

<div class="topic-metadata">

**Author:** [@canner](https://www.ruby-forum.com/u/canner)\
**Replies:** 0\
**Last updated:** [February 25, 2010, 10:27am UTC](https://www.ruby-forum.com/t/ruby-on-rails-application-could-not-be-started/184115 "2010-02-25T10:27:44Z")

</div>

Hi, Hi, I’m upt o install retrospectiva on my centOS 5 machine. Therefore, i installed ruby 1.9.1 (ruby 1.9.1p376 (2009-12-07 revision 26041) \[x86\_64-linux\]) and following gems: \*\*\* LOCAL GEMS \*\*\* actionmailer (2.3…

---

## [One lookup table for two different joins](https://www.ruby-forum.com/t/one-lookup-table-for-two-different-joins/184086)

<div class="topic-metadata">

**Author:** [@face7hill](https://www.ruby-forum.com/u/face7hill)\
**Replies:** 1\
**Last updated:** [February 25, 2010, 9:01am UTC](https://www.ruby-forum.com/t/one-lookup-table-for-two-different-joins/184086 "2010-02-25T09:01:15Z")

</div>

Hello Folks, I’m trying to set up a Band model that uses one lookup table (Instruments) to describe two things: Instruments that the Band currently plays Instruments that the Band needs I only want to have one Instr…

---

## [Uninitialized constant UsersController::User](https://www.ruby-forum.com/t/uninitialized-constant-userscontroller-user/184105)

<div class="topic-metadata">

**Author:** [@murfhy](https://www.ruby-forum.com/u/murfhy)\
**Replies:** 9\
**Last updated:** [February 25, 2010, 7:34am UTC](https://www.ruby-forum.com/t/uninitialized-constant-userscontroller-user/184105 "2010-02-25T07:34:38Z")

</div>

i just created an application to list the primary details of userbut it is showing an error lik this “uninitialized constant UsersController::User” this is my controlller class UsersController \< ApplicationCo…

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

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