# Rails

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

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

---

## [Creation of pdf using rpdf](https://www.ruby-forum.com/t/creation-of-pdf-using-rpdf/164926)

<div class="topic-metadata">

**Author:** [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Replies:** 5\
**Last updated:** [April 7, 2009, 3:58pm UTC](https://www.ruby-forum.com/t/creation-of-pdf-using-rpdf/164926 "2009-04-07T15:58:18Z")

</div>

Hi, I want to generate a pdf by using rpdf plugin. Can anyone tell me how to do that? What are the gems or plugins will be required for that? Is there any tutorial available for this? Is it possible to create table …

---

## [Creating Complex ActiveResource objects](https://www.ruby-forum.com/t/creating-complex-activeresource-objects/164881)

<div class="topic-metadata">

**Author:** [@cfranz](https://www.ruby-forum.com/u/cfranz)\
**Replies:** 2\
**Last updated:** [April 7, 2009, 3:07pm UTC](https://www.ruby-forum.com/t/creating-complex-activeresource-objects/164881 "2009-04-07T15:07:00Z")

</div>

Given the following models: class Uptime \< ActiveRecord::Base has\_many :pings end class Ping \< ActiveRecord::Base belongs\_to :uptime end I can create an ActiveResource that will get the uptimes and ping models: c…

---

## [Gem install ruby-debug](https://www.ruby-forum.com/t/gem-install-ruby-debug/164894)

<div class="topic-metadata">

**Author:** [@dang](https://www.ruby-forum.com/u/dang)\
**Replies:** 2\
**Last updated:** [April 7, 2009, 3:04pm UTC](https://www.ruby-forum.com/t/gem-install-ruby-debug/164894 "2009-04-07T15:04:57Z")

</div>

tinix@Creek:/home/tinix/test/grin# gem install ruby-debug Building native extensions. This could take a while… ERROR: Error installing ruby-debug: ERROR: Failed to build gem native extension. /usr/bin/ruby1.8 extco…

---

## [Rake aborted! undefined method \`empty?' for nil:NilClass](https://www.ruby-forum.com/t/rake-aborted-undefined-method-empty-for-nil-nilclass/164736)

<div class="topic-metadata">

**Author:** [@comopasta](https://www.ruby-forum.com/u/comopasta)\
**Replies:** 11\
**Last updated:** [April 7, 2009, 2:53pm UTC](https://www.ruby-forum.com/t/rake-aborted-undefined-method-empty-for-nil-nilclass/164736 "2009-04-07T14:53:26Z")

</div>

Hi, I’m getting the next errors, would anyone have any suggestions? Thanks. \[~/rails/hip\]# rake --trace db:migrate RAILS\_ENV=“production” (in /home/domain/rails/hip) \*\* Invoke db:migrate (first\_time) \*\* Invoke envi…

---

## [How Select just some columns?](https://www.ruby-forum.com/t/how-select-just-some-columns/164917)

<div class="topic-metadata">

**Author:** [@spitfire](https://www.ruby-forum.com/u/spitfire)\
**Replies:** 2\
**Last updated:** [April 7, 2009, 12:33pm UTC](https://www.ruby-forum.com/t/how-select-just-some-columns/164917 "2009-04-07T12:33:14Z")

</div>

Hi, if I do: user = User.find :all render :xml =\> user.to\_xml I obviously get the user records whith ALL the columns (name, surname, tel, email, …) How I can get just the column email (for example) ? ps. I wan’t …

---

## [How to implement checkbox-like selection with client-side state & controls?](https://www.ruby-forum.com/t/how-to-implement-checkbox-like-selection-with-client-side-state-controls/164918)

<div class="topic-metadata">

**Author:** [@jon-k](https://www.ruby-forum.com/u/jon-k)\
**Replies:** 0\
**Last updated:** [April 7, 2009, 12:16pm UTC](https://www.ruby-forum.com/t/how-to-implement-checkbox-like-selection-with-client-side-state-controls/164918 "2009-04-07T12:16:54Z")

</div>

Hi, This is my first Rails project, and I’ve just hit my first stumbling block… I’m looking for some general pointers on how to implement the following: Allow the user to toggle the selection of words in a given str…

---

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

<div class="topic-metadata">

**Author:** [@johny](https://www.ruby-forum.com/u/johny)\
**Replies:** 3\
**Last updated:** [April 7, 2009, 11:19am UTC](https://www.ruby-forum.com/t/ruby-on-rails-deployment/156568 "2009-04-07T11:19:01Z")

</div>

I have a very simple RoR application I’m confuse were to deploy.Any suggest…

---

## [Need Ruby on Rails Senior Developer](https://www.ruby-forum.com/t/need-ruby-on-rails-senior-developer/164875)

<div class="topic-metadata">

**Author:** [@eborhood.com](https://www.ruby-forum.com/u/eborhood.com)\
**Replies:** 1\
**Last updated:** [April 7, 2009, 10:26am UTC](https://www.ruby-forum.com/t/need-ruby-on-rails-senior-developer/164875 "2009-04-07T10:26:04Z")

</div>

Company: Eborhood Industry: Ecommerce/communication/Real Estate - map-based search, communication, and execution Location: Based in Texas Pay: over $50K-$250K - more if you’re worth it We are in need of a programmer…

---

## [NetBeansIDE -6.5](https://www.ruby-forum.com/t/netbeanside-6-5/196932)

<div class="topic-metadata">

**Author:** [@pradheep](https://www.ruby-forum.com/u/pradheep)\
**Replies:** 2\
**Last updated:** [April 7, 2009, 10:08am UTC](https://www.ruby-forum.com/t/netbeanside-6-5/196932 "2009-04-07T10:08:35Z")

</div>

I am using netbeansIde 6.5 for ROR developmaent in that “how to install Plugins and ruby gems?”

---

## [Need Help!](https://www.ruby-forum.com/t/need-help/164892)

<div class="topic-metadata">

**Author:** [@vgenjr](https://www.ruby-forum.com/u/vgenjr)\
**Replies:** 3\
**Last updated:** [April 7, 2009, 10:08am UTC](https://www.ruby-forum.com/t/need-help/164892 "2009-04-07T10:08:29Z")

</div>

hi… i’m new at ruby on rails… first i have a table with a column named status(this column use to store a status of an access point (“online” or “offline”) after my application have done pinging the access point) i u…

---

## [/lib daemon folder: how do i add a module into the daemon?](https://www.ruby-forum.com/t/lib-daemon-folder-how-do-i-add-a-module-into-the-daemon/164903)

<div class="topic-metadata">

**Author:** [@tyanlion](https://www.ruby-forum.com/u/tyanlion)\
**Replies:** 4\
**Last updated:** [April 7, 2009, 10:03am UTC](https://www.ruby-forum.com/t/lib-daemon-folder-how-do-i-add-a-module-into-the-daemon/164903 "2009-04-07T10:03:48Z")

</div>

I am using the daemons plugin. I have just one problem how do i add modules from the /lib folder to the /lib/daemons/daemon.rb file eg. /lib/basic\_functions.rb this is the file i want to load in daemon.rb contents d…

---

## [Rails + validations -- place them in application.rb?](https://www.ruby-forum.com/t/rails-validations-place-them-in-application-rb/164869)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 6\
**Last updated:** [April 7, 2009, 9:41am UTC](https://www.ruby-forum.com/t/rails-validations-place-them-in-application-rb/164869 "2009-04-07T09:41:29Z")

</div>

I need to put a set of validations in a place that can be accessed by multiple controllers… do I just place them in application.rb? Thanks, Josh

---

## [Rails 2.3.2 Ajax posting to XML](https://www.ruby-forum.com/t/rails-2-3-2-ajax-posting-to-xml/164853)

<div class="topic-metadata">

**Author:** [@sjames](https://www.ruby-forum.com/u/sjames)\
**Replies:** 3\
**Last updated:** [April 7, 2009, 9:33am UTC](https://www.ruby-forum.com/t/rails-2-3-2-ajax-posting-to-xml/164853 "2009-04-07T09:33:50Z")

</div>

I believe this might have already been discussed but i have recently been thrown an application that was written for rails 1.2.6, and i have been given the task to upgrade it (please note that im super to new to ruby …

---

## [Rspec error](https://www.ruby-forum.com/t/rspec-error/162893)

<div class="topic-metadata">

**Author:** [@grayson](https://www.ruby-forum.com/u/grayson)\
**Replies:** 2\
**Last updated:** [April 7, 2009, 9:16am UTC](https://www.ruby-forum.com/t/rspec-error/162893 "2009-04-07T09:16:51Z")

</div>

Hello, I’m getting the following error when I run rake spec --trace Seems a little too deep in the stack for me to figure it out. Thanks, GP \*\* Invoke spec (first\_time) \*\* Invoke db:test:prepare (first\_time) \*\* I…

---

## [After Rails 2.3.2 upgrade: superclass mismatch for class TestCase (TypeError)](https://www.ruby-forum.com/t/after-rails-2-3-2-upgrade-superclass-mismatch-for-class-testcase-typeerror/164877)

<div class="topic-metadata">

**Author:** [@costi](https://www.ruby-forum.com/u/costi)\
**Replies:** 3\
**Last updated:** [April 7, 2009, 8:45am UTC](https://www.ruby-forum.com/t/after-rails-2-3-2-upgrade-superclass-mismatch-for-class-testcase-typeerror/164877 "2009-04-07T08:45:49Z")

</div>

I upgraded a working app from rails 2.1 to 2.3.2. Now when I run rake test:units I get this error: /usr/lib/ruby/gems/1.8/gems/ activesupport-2.3.2/lib/active\_support/test\_case.rb:17: superclass mismatch for class Tes…

---

## [NetBeansIDE 6.5](https://www.ruby-forum.com/t/netbeanside-6-5/164899)

<div class="topic-metadata">

**Author:** [@pradheep](https://www.ruby-forum.com/u/pradheep)\
**Replies:** 0\
**Last updated:** [April 7, 2009, 8:24am UTC](https://www.ruby-forum.com/t/netbeanside-6-5/164899 "2009-04-07T08:24:15Z")

</div>

I am using netbeansIde 6.5 for ROR developmaent in that “how to install Plugins and ruby gems?”

---

## [Routing Issue](https://www.ruby-forum.com/t/routing-issue/86269)

<div class="topic-metadata">

**Author:** [@vagabond](https://www.ruby-forum.com/u/vagabond)\
**Replies:** 3\
**Last updated:** [April 7, 2009, 6:52am UTC](https://www.ruby-forum.com/t/routing-issue/86269 "2009-04-07T06:52:46Z")

</div>

Hi, I have these entries in my routes.rb file: map.connect ‘:id’, :controller =\> ‘wiki’, :action =\> ‘show’, :id =\> /^(\[A-Z\]\\w\*)+$/ map.connect ‘:controller/:action/:id’ map.connect ‘’, :controller =\> ‘wiki’, :ac…

---

## [Conditional count mysql query](https://www.ruby-forum.com/t/conditional-count-mysql-query/164786)

<div class="topic-metadata">

**Author:** [@morgan](https://www.ruby-forum.com/u/morgan)\
**Replies:** 4\
**Last updated:** [April 7, 2009, 6:24am UTC](https://www.ruby-forum.com/t/conditional-count-mysql-query/164786 "2009-04-07T06:24:05Z")

</div>

so i have a database filled with stats and i need to return a number from those stats for processing. how would i go about counting how many of a certian thing there are in a particular column… example: say i wanted …

---

## [Ruby Debug Not Working](https://www.ruby-forum.com/t/ruby-debug-not-working/158015)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 9\
**Last updated:** [April 7, 2009, 6:00am UTC](https://www.ruby-forum.com/t/ruby-debug-not-working/158015 "2009-04-07T06:00:17Z")

</div>

I installed ruby-debug using this command: sudo gem install ruby-debug -y and then added the line to config/environments/development.rb: require “ruby-debug” I restarted webrick and put ‘debugger’ in my code and trie…

---

## [Net:HTTP post (to rails) example?](https://www.ruby-forum.com/t/net-http-post-to-rails-example/164896)

<div class="topic-metadata">

**Author:** [@e\_deleflie](https://www.ruby-forum.com/u/e_deleflie)\
**Replies:** 0\
**Last updated:** [April 7, 2009, 5:12am UTC](https://www.ruby-forum.com/t/net-http-post-to-rails-example/164896 "2009-04-07T05:12:08Z")

</div>

Hi all, I’ve got a little remote uploader app (written in Ruby Shoes) that uses Mechanize to create a new object (I think mechanize works by submitting an http form). I’d like to take Mechanize out of the equation an…

---

## [Nested Object Forms](https://www.ruby-forum.com/t/nested-object-forms/164867)

<div class="topic-metadata">

**Author:** [@Neal\_L](https://www.ruby-forum.com/u/Neal_L)\
**Replies:** 1\
**Last updated:** [April 7, 2009, 4:59am UTC](https://www.ruby-forum.com/t/nested-object-forms/164867 "2009-04-07T04:59:52Z")

</div>

Hi all, I’m trying to use nested object forms for the signup page of an app to create the client record as well as the admin user. My problem is that everything in the fields\_for the associated record is not getting …

---

## [Easy way to convert URL back to route name?](https://www.ruby-forum.com/t/easy-way-to-convert-url-back-to-route-name/164696)

<div class="topic-metadata">

**Author:** [@pezdude](https://www.ruby-forum.com/u/pezdude)\
**Replies:** 7\
**Last updated:** [April 7, 2009, 4:18am UTC](https://www.ruby-forum.com/t/easy-way-to-convert-url-back-to-route-name/164696 "2009-04-07T04:18:54Z")

</div>

Hi all, I’m looking for a way to do the reverse of what the named route helpers do. Namely: Given routes: map.foo ‘/foo/:id’, :controller =\> ‘foo’, :action =\> ‘show’ map.bar ‘/bar/:id’, :controller =\> ‘bar’, :action…

---

## [Rails routes question](https://www.ruby-forum.com/t/rails-routes-question/164831)

<div class="topic-metadata">

**Author:** [@Skaurus](https://www.ruby-forum.com/u/Skaurus)\
**Replies:** 4\
**Last updated:** [April 7, 2009, 1:22am UTC](https://www.ruby-forum.com/t/rails-routes-question/164831 "2009-04-07T01:22:51Z")

</div>

Hello people :slight\_smile: I’m bad in English, so i’ll be short. It newbie question, I think) In my application I has users, which :has\_many =\> posts. In routes.rb I can with ease create routes for posts like /:user\_…

---

## [Routes.rb noob question](https://www.ruby-forum.com/t/routes-rb-noob-question/164870)

<div class="topic-metadata">

**Author:** [@internetchris](https://www.ruby-forum.com/u/internetchris)\
**Replies:** 3\
**Last updated:** [April 7, 2009, 1:02am UTC](https://www.ruby-forum.com/t/routes-rb-noob-question/164870 "2009-04-07T01:02:58Z")

</div>

Hey Everyone, I’m wondering if the statement below are redundant? Once you define the resources for a particular controller, that should be it right? I’m assuming all I need is the second statement below. map.resourc…

---

## [Find\_by\_sql returns Strings! How to I type cast?](https://www.ruby-forum.com/t/find-by-sql-returns-strings-how-to-i-type-cast/164878)

<div class="topic-metadata">

**Author:** [@crenner](https://www.ruby-forum.com/u/crenner)\
**Replies:** 0\
**Last updated:** [April 7, 2009, 12:35am UTC](https://www.ruby-forum.com/t/find-by-sql-returns-strings-how-to-i-type-cast/164878 "2009-04-07T00:35:43Z")

</div>

When i run find\_by\_sql the extra fields not in the Model are returned as Strings. What is the correct way to convert all the extra fields to their correct type? Is there a way to somehow define these extra fields in…

---

## [Ridiculously Slow View Rendering](https://www.ruby-forum.com/t/ridiculously-slow-view-rendering/164852)

<div class="topic-metadata">

**Author:** [@Avishai](https://www.ruby-forum.com/u/Avishai)\
**Replies:** 9\
**Last updated:** [April 6, 2009, 11:19pm UTC](https://www.ruby-forum.com/t/ridiculously-slow-view-rendering/164852 "2009-04-06T23:19:25Z")

</div>

Hi, I’ve been experiencing some severe slowness in rendering the views in my users/index action. It’s really not doing anything fancy at all, and has been driving me nuts the last few days. I’m running Rails 2.2… doe…

---

## [Rails 2.3.2 & MySQL and/or PostgreSQL](https://www.ruby-forum.com/t/rails-2-3-2-mysql-and-or-postgresql/164577)

<div class="topic-metadata">

**Author:** [@bryan](https://www.ruby-forum.com/u/bryan)\
**Replies:** 9\
**Last updated:** [April 6, 2009, 11:00pm UTC](https://www.ruby-forum.com/t/rails-2-3-2-mysql-and-or-postgresql/164577 "2009-04-06T23:00:23Z")

</div>

very noob like question here. I’m getting back into learning rails development. I fired my ruby text editor and made the appropriate gem updates. I tried making a connection to MySQL which is my typical development…

---

## [Which Oracle connector for AR?](https://www.ruby-forum.com/t/which-oracle-connector-for-ar/164784)

<div class="topic-metadata">

**Author:** [@robredford](https://www.ruby-forum.com/u/robredford)\
**Replies:** 2\
**Last updated:** [April 6, 2009, 10:16pm UTC](https://www.ruby-forum.com/t/which-oracle-connector-for-ar/164784 "2009-04-06T22:16:07Z")

</div>

What DB connector do I need to talk to a network accessible Oracle server: 1) with ActiveRecord?, 2) to perform basic SQL. I’m more familiar with what it takes to get MySQL working with AR. Currently I have AR 2.1.1…

---

## [Url (view \> controller) error "Need controller and action!"](https://www.ruby-forum.com/t/url-view-controller-error-need-controller-and-action/164621)

<div class="topic-metadata">

**Author:** [@zambezi](https://www.ruby-forum.com/u/zambezi)\
**Replies:** 4\
**Last updated:** [April 6, 2009, 9:40pm UTC](https://www.ruby-forum.com/t/url-view-controller-error-need-controller-and-action/164621 "2009-04-06T21:40:59Z")

</div>

I thought I would set up a simple form for email noification to tinker with and see how it worked However the simplicity part has so far eluded me. Currently this particular page generates an error “Need controller a…

---

## [The find methods for a model class](https://www.ruby-forum.com/t/the-find-methods-for-a-model-class/164787)

<div class="topic-metadata">

**Author:** [@leon](https://www.ruby-forum.com/u/leon)\
**Replies:** 3\
**Last updated:** [April 6, 2009, 9:11pm UTC](https://www.ruby-forum.com/t/the-find-methods-for-a-model-class/164787 "2009-04-06T21:11:58Z")

</div>

Hi, I am doing some examples in a book on Roby on Rails. When a model class is create with generate model command, it will create some find\_xxx methods on the fields. When the model have the relationships with other …

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

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