# Rails

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

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

---

## [Ruby on Rails : Origin of the name?](https://www.ruby-forum.com/t/ruby-on-rails-origin-of-the-name/123074)

<div class="topic-metadata">

**Author:** [@stephanwehner](https://www.ruby-forum.com/u/stephanwehner)\
**Replies:** 11\
**Last updated:** [December 14, 2007, 1:42am UTC](https://www.ruby-forum.com/t/ruby-on-rails-origin-of-the-name/123074 "2007-12-14T01:42:42Z")

</div>

Where did the name “Ruby on Rails” come from? Thanks, Stephan

---

## [Focus\_fu problems](https://www.ruby-forum.com/t/focus-fu-problems/123099)

<div class="topic-metadata">

**Author:** [@nuby2ruby](https://www.ruby-forum.com/u/nuby2ruby)\
**Replies:** 1\
**Last updated:** [December 14, 2007, 1:34am UTC](https://www.ruby-forum.com/t/focus-fu-problems/123099 "2007-12-14T01:34:32Z")

</div>

I installed focus\_fu, and when I use \<%= f.text\_field(:description, :focus =\> true) %\> it doesn’t do anything. I have never used plugins before, so I don’t know if I need to include something or what I need to do. ~J…

---

## [\[ANN\] Third edition of "Programming Ruby" now in beta](https://www.ruby-forum.com/t/ann-third-edition-of-programming-ruby-now-in-beta/123106)

<div class="topic-metadata">

**Author:** [@pragdave](https://www.ruby-forum.com/u/pragdave)\
**Replies:** 0\
**Last updated:** [December 14, 2007, 1:24am UTC](https://www.ruby-forum.com/t/ann-third-edition-of-programming-ruby-now-in-beta/123106 "2007-12-14T01:24:34Z")

</div>

Ruby 1.9 is just around the corner, so it looks like a good time to create a new edition of Programming Ruby. So, I’m pleased to announce that the Third Edition of the PickAxe has just entered beta. The book’s home pa…

---

## [Can't seem to load css and images after first deployment](https://www.ruby-forum.com/t/cant-seem-to-load-css-and-images-after-first-deployment/123070)

<div class="topic-metadata">

**Author:** [@mememe](https://www.ruby-forum.com/u/mememe)\
**Replies:** 7\
**Last updated:** [December 14, 2007, 12:54am UTC](https://www.ruby-forum.com/t/cant-seem-to-load-css-and-images-after-first-deployment/123070 "2007-12-14T00:54:02Z")

</div>

I’ve deployed a rails app (using Capistrano) to an a server running apache and mongrel\_cluster. I am able to get to my page, but what I see is basically my page without stylesheet referred and all the images missing. …

---

## [Passing a variable to a partial](https://www.ruby-forum.com/t/passing-a-variable-to-a-partial/123042)

<div class="topic-metadata">

**Author:** [@rubynuby](https://www.ruby-forum.com/u/rubynuby)\
**Replies:** 7\
**Last updated:** [December 14, 2007, 12:17am UTC](https://www.ruby-forum.com/t/passing-a-variable-to-a-partial/123042 "2007-12-14T00:17:44Z")

</div>

I have a chunk of rhtml that gets reused by several views in several controllers. I make partial out of it \_foo and call it with \<%= render :partial =\>‘bar/foo’ %\> RAILS\_ROOT/app/views/bar/\_foo.rhtml (note I’m not ca…

---

## [Capture variable arguments](https://www.ruby-forum.com/t/capture-variable-arguments/123082)

<div class="topic-metadata">

**Author:** [@kelleysislander](https://www.ruby-forum.com/u/kelleysislander)\
**Replies:** 5\
**Last updated:** [December 13, 2007, 11:41pm UTC](https://www.ruby-forum.com/t/capture-variable-arguments/123082 "2007-12-13T23:41:18Z")

</div>

Without spending several pages trying to explain myself, I have a need to do something like this: def method\_missing(method\_name, \*parameters) @method\_name = method\_name @parameters = parameters end . . . many life…

---

## [Am I trying to do something silly here, as I can't figure out the best way to do it](https://www.ruby-forum.com/t/am-i-trying-to-do-something-silly-here-as-i-cant-figure-out-the-best-way-to-do-it/123069)

<div class="topic-metadata">

**Author:** [@DEfusion](https://www.ruby-forum.com/u/DEfusion)\
**Replies:** 2\
**Last updated:** [December 13, 2007, 10:13pm UTC](https://www.ruby-forum.com/t/am-i-trying-to-do-something-silly-here-as-i-cant-figure-out-the-best-way-to-do-it/123069 "2007-12-13T22:13:43Z")

</div>

I have the following models: Account \> has\_many Companies Company \> has\_and\_belongs\_to\_many Accounts Project \> has\_and\_belongs\_to\_many Companies I want to get all the companies that are assigned to a given account b…

---

## [Instant Rails lives again!](https://www.ruby-forum.com/t/instant-rails-lives-again/122762)

<div class="topic-metadata">

**Author:** [@Curt\_SWorkS\_Hibbs](https://www.ruby-forum.com/u/Curt_SWorkS_Hibbs)\
**Replies:** 15\
**Last updated:** [December 13, 2007, 10:09pm UTC](https://www.ruby-forum.com/t/instant-rails-lives-again/122762 "2007-12-13T22:09:37Z")

</div>

The Instant Rails project didn’t stay dead for very long… Rob Bazinet has offered to take over and will soon be releasing a new version featuring Rails 2.0. Please give Rob your thanks and support! Curt

---

## [Errors building RMagick on Linux](https://www.ruby-forum.com/t/errors-building-rmagick-on-linux/123079)

<div class="topic-metadata">

**Author:** [@chirag](https://www.ruby-forum.com/u/chirag)\
**Replies:** 0\
**Last updated:** [December 13, 2007, 10:06pm UTC](https://www.ruby-forum.com/t/errors-building-rmagick-on-linux/123079 "2007-12-13T22:06:05Z")

</div>

Here are the sequence of commands that I’ve done running CentOS 4.3. When I do the very last command ‘make’, I get the errors below. Any ideas? thanks! chirag cd /usr/local/src wget http://image\_magick.veidrodis.com/…

---

## [Mock Kernel method](https://www.ruby-forum.com/t/mock-kernel-method/123060)

<div class="topic-metadata">

**Author:** [@rinda](https://www.ruby-forum.com/u/rinda)\
**Replies:** 4\
**Last updated:** [December 13, 2007, 9:31pm UTC](https://www.ruby-forum.com/t/mock-kernel-method/123060 "2007-12-13T21:31:23Z")

</div>

I use rspec on rails. I want to test model. My model has this method: class My def self.blabla(url) open(url) {|f| #processing } end end open is Kernel method. How do I mock it? Kernel.expects and Kernel.should…

---

## [Job System user authentications problems](https://www.ruby-forum.com/t/job-system-user-authentications-problems/123048)

<div class="topic-metadata">

**Author:** [@Waleed\_H](https://www.ruby-forum.com/u/Waleed_H)\
**Replies:** 7\
**Last updated:** [December 13, 2007, 9:15pm UTC](https://www.ruby-forum.com/t/job-system-user-authentications-problems/123048 "2007-12-13T21:15:31Z")

</div>

Hi All, I have created sample job application which contain employers area, admin area and I am using Mysql database. I have created job post area or form via scaffold then I created authenticated area for employers …

---

## [Trouble upgrading rails](https://www.ruby-forum.com/t/trouble-upgrading-rails/123075)

<div class="topic-metadata">

**Author:** [@BallS\_Donald\_A\_Jr\_S](https://www.ruby-forum.com/u/BallS_Donald_A_Jr_S)\
**Replies:** 0\
**Last updated:** [December 13, 2007, 9:10pm UTC](https://www.ruby-forum.com/t/trouble-upgrading-rails/123075 "2007-12-13T21:10:10Z")

</div>

Hi folks. I’m trying to upgrade a rails app from 1.2.4 to 2.0.1. I gem installed the latest rails, but when I try to run: rake rails:gems:freeze I get: C:\\webapps\\npl\>rake rails:gems:freeze (in C:/webapps/npl) Cann…

---

## [Run sql query?](https://www.ruby-forum.com/t/run-sql-query/123056)

<div class="topic-metadata">

**Author:** [@softf5ajivanet](https://www.ruby-forum.com/u/softf5ajivanet)\
**Replies:** 3\
**Last updated:** [December 13, 2007, 8:57pm UTC](https://www.ruby-forum.com/t/run-sql-query/123056 "2007-12-13T20:57:12Z")

</div>

hi i’ve got one action which i want it to perform a sql update query. how can i just run a sql query within my rails app? e.g. def @sql = “update … from mytable” execute @sql redirect\_to :action =\> ‘list’ end any…

---

## [Rails 2.0 and config.to\_prepare](https://www.ruby-forum.com/t/rails-2-0-and-config-to-prepare/123072)

<div class="topic-metadata">

**Author:** [@andrewkendall](https://www.ruby-forum.com/u/andrewkendall)\
**Replies:** 0\
**Last updated:** [December 13, 2007, 8:41pm UTC](https://www.ruby-forum.com/t/rails-2-0-and-config-to-prepare/123072 "2007-12-13T20:41:56Z")

</div>

Hello, I’ve recently started migrating a project to 2.0 and came across issues running tests. I narrowed the problem down to config.to\_prepare in my environment.rb. As a test, I created a new rails project and simpl…

---

## [Establish Connection to a xmpp server and keep it!](https://www.ruby-forum.com/t/establish-connection-to-a-xmpp-server-and-keep-it/122814)

<div class="topic-metadata">

**Author:** [@micktaiwan](https://www.ruby-forum.com/u/micktaiwan)\
**Replies:** 6\
**Last updated:** [December 13, 2007, 8:15pm UTC](https://www.ruby-forum.com/t/establish-connection-to-a-xmpp-server-and-keep-it/122814 "2007-12-13T20:15:54Z")

</div>

Hello, (shamelessly adapted to my needs from a old message from this list) I want to integrate status messages over xmpp in my Rails application. My problem is that I do not want to establish a connection to the jabb…

---

## [How to assign a non-auto ID?](https://www.ruby-forum.com/t/how-to-assign-a-non-auto-id/122707)

<div class="topic-metadata">

**Author:** [@ssk](https://www.ruby-forum.com/u/ssk)\
**Replies:** 20\
**Last updated:** [December 13, 2007, 7:14pm UTC](https://www.ruby-forum.com/t/how-to-assign-a-non-auto-id/122707 "2007-12-13T19:14:23Z")

</div>

Hi, I am converting data from an old PHP application to a new Rails application. Instead of directly throwing “insert…” statements to MySQL, I’m using ActiveRecord models. As you know, id field is automatically set. …

---

## [Upload Progress Bar not showing](https://www.ruby-forum.com/t/upload-progress-bar-not-showing/58702)

<div class="topic-metadata">

**Author:** [@jonlog](https://www.ruby-forum.com/u/jonlog)\
**Replies:** 2\
**Last updated:** [December 13, 2007, 6:57pm UTC](https://www.ruby-forum.com/t/upload-progress-bar-not-showing/58702 "2007-12-13T18:57:19Z")

</div>

Hi. I’m setting up an upload form for internal users of a Rails site, and I’m trying to use the Upload Progress Bar plugin from http://sean.treadway.info/demo/upload/. I followed the directions as set out in the Rails…

---

## [Swap problems with mongrel](https://www.ruby-forum.com/t/swap-problems-with-mongrel/122668)

<div class="topic-metadata">

**Author:** [@thabenksta](https://www.ruby-forum.com/u/thabenksta)\
**Replies:** 8\
**Last updated:** [December 13, 2007, 6:14pm UTC](https://www.ruby-forum.com/t/swap-problems-with-mongrel/122668 "2007-12-13T18:14:12Z")

</div>

I have a Ubuntu linux setup with 512MB of RAM. We haven’t launched our site yet, so we only have about 100 unique visitors per day. Our site is very dynamic in nature (i.e. database driven). We are running Rails be…

---

## [Valdiates\_date\_time gem install problem](https://www.ruby-forum.com/t/valdiates-date-time-gem-install-problem/123049)

<div class="topic-metadata">

**Author:** [@lpp-rob](https://www.ruby-forum.com/u/lpp-rob)\
**Replies:** 1\
**Last updated:** [December 13, 2007, 6:08pm UTC](https://www.ruby-forum.com/t/valdiates-date-time-gem-install-problem/123049 "2007-12-13T18:08:38Z")

</div>

Hello, i just installed the plugin validates\_date\_time: C:\\Programme\\InstantRails\\InstantRails\\rails\_apps\\LPP\>ruby script/plugin install http://svn.viney.ne t.nz/things/rails/plugins/validates\_date\_time/ ./validate…

---

## [Request timeout question](https://www.ruby-forum.com/t/request-timeout-question/122982)

<div class="topic-metadata">

**Author:** [@adrian](https://www.ruby-forum.com/u/adrian)\
**Replies:** 4\
**Last updated:** [December 13, 2007, 5:52pm UTC](https://www.ruby-forum.com/t/request-timeout-question/122982 "2007-12-13T17:52:47Z")

</div>

Hi All I am trying to generate pdf reports/documents based on time consuming database queries and associated calculations. When these are run in development mode they work fine (apart from taking a long time 5-10mins…

---

## [Instant Rails Update Plans](https://www.ruby-forum.com/t/instant-rails-update-plans/123041)

<div class="topic-metadata">

**Author:** [@rjberry](https://www.ruby-forum.com/u/rjberry)\
**Replies:** 0\
**Last updated:** [December 13, 2007, 4:38pm UTC](https://www.ruby-forum.com/t/instant-rails-update-plans/123041 "2007-12-13T16:38:25Z")

</div>

Hello all; I just wanted to give a link to some information I posted regarding what I plan to do with Instant Rails in the immediate future. Check it out here - Thank you, Rob B.

---

## [Automatically strip values of activerecord attributes](https://www.ruby-forum.com/t/automatically-strip-values-of-activerecord-attributes/123023)

<div class="topic-metadata">

**Author:** [@gabru](https://www.ruby-forum.com/u/gabru)\
**Replies:** 2\
**Last updated:** [December 13, 2007, 4:16pm UTC](https://www.ruby-forum.com/t/automatically-strip-values-of-activerecord-attributes/123023 "2007-12-13T16:16:21Z")

</div>

i am doing a couple of times the following in my models class User \< ActiveRecord::Base def name=(val) write\_attribute :name, val.to\_s.strip end end quite clear, it strips the name when setting it. now the questio…

---

## [Check the text within a div element from controller](https://www.ruby-forum.com/t/check-the-text-within-a-div-element-from-controller/123037)

<div class="topic-metadata">

**Author:** [@gorgeoussoul](https://www.ruby-forum.com/u/gorgeoussoul)\
**Replies:** 0\
**Last updated:** [December 13, 2007, 3:56pm UTC](https://www.ruby-forum.com/t/check-the-text-within-a-div-element-from-controller/123037 "2007-12-13T15:56:00Z")

</div>

Is there any way to check for a specific line of text within a div element from the controller? I’m changing a block of filtered results and the text in a div element (‘Show All’ vs. ‘Limit to Mine’). When another fi…

---

## [Routing problem: nested Controller interpreted as Action](https://www.ruby-forum.com/t/routing-problem-nested-controller-interpreted-as-action/123012)

<div class="topic-metadata">

**Author:** [@newman](https://www.ruby-forum.com/u/newman)\
**Replies:** 1\
**Last updated:** [December 13, 2007, 3:43pm UTC](https://www.ruby-forum.com/t/routing-problem-nested-controller-interpreted-as-action/123012 "2007-12-13T15:43:51Z")

</div>

Hi! I moved my application to server where is newest Rails version (1.2.6). On my local machine I tested my app under 1.2.3. On the server my nested controllers (“admin/user”) is interpreted as Parameters: {“action”=\>“…

---

## [How to convert string/text from DB to hash?](https://www.ruby-forum.com/t/how-to-convert-string-text-from-db-to-hash/123033)

<div class="topic-metadata">

**Author:** [@malioboro](https://www.ruby-forum.com/u/malioboro)\
**Replies:** 0\
**Last updated:** [December 13, 2007, 3:36pm UTC](https://www.ruby-forum.com/t/how-to-convert-string-text-from-db-to-hash/123033 "2007-12-13T15:36:22Z")

</div>

Hello All… I am newb in RoR, i have problem to convert data from database to hash. Example: before I save data to MySQL DB to column ‘budget\_list’, the hash is : @market\_budget = \[\[BMW5, 2007-12-26, 30000\], \[BMW3…

---

## [Where to get Rails 2.0 tutorial](https://www.ruby-forum.com/t/where-to-get-rails-2-0-tutorial/122997)

<div class="topic-metadata">

**Author:** [@huang\_zhimin](https://www.ruby-forum.com/u/huang_zhimin)\
**Replies:** 4\
**Last updated:** [December 13, 2007, 3:23pm UTC](https://www.ruby-forum.com/t/where-to-get-rails-2-0-tutorial/122997 "2007-12-13T15:23:54Z")

</div>

Where can I get the tutorial or example about Rails 2.0? –

---

## [Getting drop-down selection on a "new" view to controller](https://www.ruby-forum.com/t/getting-drop-down-selection-on-a-new-view-to-controller/123030)

<div class="topic-metadata">

**Author:** [@gorgeoussoul](https://www.ruby-forum.com/u/gorgeoussoul)\
**Replies:** 0\
**Last updated:** [December 13, 2007, 3:21pm UTC](https://www.ruby-forum.com/t/getting-drop-down-selection-on-a-new-view-to-controller/123030 "2007-12-13T15:21:15Z")

</div>

On a “new” view, there’s two drop-down lists - Company and Contact. They both display the name, but store the id. After changing the company drop-down list, I want to limit the Contact drop-down list to only Contacts…

---

## [A simple user login registration-authentication plug-in](https://www.ruby-forum.com/t/a-simple-user-login-registration-authentication-plug-in/123017)

<div class="topic-metadata">

**Author:** [@kublai](https://www.ruby-forum.com/u/kublai)\
**Replies:** 1\
**Last updated:** [December 13, 2007, 3:09pm UTC](https://www.ruby-forum.com/t/a-simple-user-login-registration-authentication-plug-in/123017 "2007-12-13T15:09:43Z")

</div>

Hello, Been away from Rails a bit, but wanting to come back now that 2.0 is out. I’m looking for a simple user login registration-authentication plug-in to work on to sort of refresh my memory. What’s everyone using …

---

## [What about components](https://www.ruby-forum.com/t/what-about-components/123025)

<div class="topic-metadata">

**Author:** [@laurent](https://www.ruby-forum.com/u/laurent)\
**Replies:** 2\
**Last updated:** [December 13, 2007, 3:07pm UTC](https://www.ruby-forum.com/t/what-about-components/123025 "2007-12-13T15:07:20Z")

</div>

What is now privileged when we should implement reusable components : Use components capabilities in Rails (but i understood it’s not so popular) or write plugins? Thanks laurent

---

## [Modeling 2 relationships between 2 entites](https://www.ruby-forum.com/t/modeling-2-relationships-between-2-entites/122686)

<div class="topic-metadata">

**Author:** [@ewan](https://www.ruby-forum.com/u/ewan)\
**Replies:** 3\
**Last updated:** [December 13, 2007, 2:35pm UTC](https://www.ruby-forum.com/t/modeling-2-relationships-between-2-entites/122686 "2007-12-13T14:35:32Z")

</div>

Hello, I’ve got the following quiet common domain model. http://55degrees.co.uk/ewan/peopleUserGroups.pdf As you can see a person can create 0 or many groups, a group being created by 1 person. A person belongs to 1 …

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

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