# Rails

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

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

---

## [What does "||=" mean?](https://www.ruby-forum.com/t/what-does-mean/134734)

<div class="topic-metadata">

**Author:** [@tharrisx](https://www.ruby-forum.com/u/tharrisx)\
**Replies:** 4\
**Last updated:** [April 14, 2008, 4:00pm UTC](https://www.ruby-forum.com/t/what-does-mean/134734 "2008-04-14T16:00:53Z")

</div>

Hi there ! I don’t quite understand the following method (taken from RESTful authentication) and can’t google the problem since the Goog won’t accept the search term in question ("||="). The method: def current\_user …

---

## [Quick question with restful\_authentication and validations](https://www.ruby-forum.com/t/quick-question-with-restful-authentication-and-validations/134662)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [April 14, 2008, 4:00pm UTC](https://www.ruby-forum.com/t/quick-question-with-restful-authentication-and-validations/134662 "2008-04-14T16:00:16Z")

</div>

Hi everyone, I’m using restful\_authentication for my app - using Rails 2.0.2. I have things configured properly, and I’m using the “shortcut” named route of signup in my routes.rb like so: map.signup “/signup”, :con…

---

## [How to handle uploaded files in HA cluster?](https://www.ruby-forum.com/t/how-to-handle-uploaded-files-in-ha-cluster/134643)

<div class="topic-metadata">

**Author:** [@durchanek](https://www.ruby-forum.com/u/durchanek)\
**Replies:** 4\
**Last updated:** [April 14, 2008, 3:05pm UTC](https://www.ruby-forum.com/t/how-to-handle-uploaded-files-in-ha-cluster/134643 "2008-04-14T15:05:22Z")

</div>

Hi, i am planning to build HA cluster for rails applications, using guideline from Tim Loosen. Database replication should be easy with MySQL, I am currently using master-slave replication for backups, so configuri…

---

## [AR and Oracle table names](https://www.ruby-forum.com/t/ar-and-oracle-table-names/134723)

<div class="topic-metadata">

**Author:** [@segabor](https://www.ruby-forum.com/u/segabor)\
**Replies:** 1\
**Last updated:** [April 14, 2008, 2:11pm UTC](https://www.ruby-forum.com/t/ar-and-oracle-table-names/134723 "2008-04-14T14:11:41Z")

</div>

Hi, I wanted to create an AR class for an Oracle table “CUST.CUSTOMER” where CUST keyword means the appropriate user space in which the table exists. It turned out that ActiveRecord does not tolerate names like that. …

---

## [User script/runner](https://www.ruby-forum.com/t/user-script-runner/134719)

<div class="topic-metadata">

**Author:** [@koli](https://www.ruby-forum.com/u/koli)\
**Replies:** 0\
**Last updated:** [April 14, 2008, 1:27pm UTC](https://www.ruby-forum.com/t/user-script-runner/134719 "2008-04-14T13:27:04Z")

</div>

Hi, Iwant to know how to use script/runner in the app to upload data to the database. i have a CSV file which i need to import to database .i want to know how to do it useing script/runner.

---

## [Ruby on Rails application scope](https://www.ruby-forum.com/t/ruby-on-rails-application-scope/134708)

<div class="topic-metadata">

**Author:** [@juan](https://www.ruby-forum.com/u/juan)\
**Replies:** 3\
**Last updated:** [April 14, 2008, 1:21pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-application-scope/134708 "2008-04-14T13:21:35Z")

</div>

Dear all, I am developing a ruby on rails application where I must get some information from a third party application using HTTP request. This information is seamlessly static (more less 30 minutes) so I would like …

---

## [Job - Open source architect / Ruby on Rails developer - France, Paris Area](https://www.ruby-forum.com/t/job-open-source-architect-ruby-on-rails-developer-france-paris-area/134715)

<div class="topic-metadata">

**Author:** [@Lionel\_B](https://www.ruby-forum.com/u/Lionel_B)\
**Replies:** 0\
**Last updated:** [April 14, 2008, 1:00pm UTC](https://www.ruby-forum.com/t/job-open-source-architect-ruby-on-rails-developer-france-paris-area/134715 "2008-04-14T13:00:27Z")

</div>

Hi, I’ve posted a job proposition for a position involving Ruby on Rails work (around two thirds of the projects) but with a more general open-source environment. This in in France, near Paris. French-speaking people…

---

## [Job Opportunity - Ruby on Rails Developer - London](https://www.ruby-forum.com/t/job-opportunity-ruby-on-rails-developer-london/134712)

<div class="topic-metadata">

**Author:** [@mhinton](https://www.ruby-forum.com/u/mhinton)\
**Replies:** 0\
**Last updated:** [April 14, 2008, 12:40pm UTC](https://www.ruby-forum.com/t/job-opportunity-ruby-on-rails-developer-london/134712 "2008-04-14T12:40:44Z")

</div>

Good morning, I am currently recruiting for a number of Ruby on Rails Developers to work for a fresh, dynamic online organisation with a very exciting product. Required skills In order to apply, you will be a passio…

---

## [Problem displaying joined table search results](https://www.ruby-forum.com/t/problem-displaying-joined-table-search-results/134710)

<div class="topic-metadata">

**Author:** [@brentsoderberg](https://www.ruby-forum.com/u/brentsoderberg)\
**Replies:** 0\
**Last updated:** [April 14, 2008, 12:16pm UTC](https://www.ruby-forum.com/t/problem-displaying-joined-table-search-results/134710 "2008-04-14T12:16:04Z")

</div>

Hi, sorry I’m having two problems when trying to display search results of joining 2 tables. I have “Customers” who make “Purchases.” Each Purchase is for a particular “Product.” My model definitions are thus class …

---

## [Acts\_as\_taggable\_on\_steroids and cached\_tag\_list](https://www.ruby-forum.com/t/acts-as-taggable-on-steroids-and-cached-tag-list/134711)

<div class="topic-metadata">

**Author:** [@codeofficer](https://www.ruby-forum.com/u/codeofficer)\
**Replies:** 0\
**Last updated:** [April 14, 2008, 12:02pm UTC](https://www.ruby-forum.com/t/acts-as-taggable-on-steroids-and-cached-tag-list/134711 "2008-04-14T12:02:54Z")

</div>

Just posting a solution (which started a problem I was going to post about) I’m using acts\_as\_taggable\_on\_steroids with rails 2.0.1 When I would add tags (via a form) to my model they would go straight to that models…

---

## [How to add a dynamic value for a tag's id attribute](https://www.ruby-forum.com/t/how-to-add-a-dynamic-value-for-a-tags-id-attribute/134686)

<div class="topic-metadata">

**Author:** [@daociyiyou](https://www.ruby-forum.com/u/daociyiyou)\
**Replies:** 2\
**Last updated:** [April 14, 2008, 12:01pm UTC](https://www.ruby-forum.com/t/how-to-add-a-dynamic-value-for-a-tags-id-attribute/134686 "2008-04-14T12:01:08Z")

</div>

how to add a dynamic value for a tag’s id attribute in the ajax call.For example:several “ ” and “\<%=link\_to\_remote(“MoreInfo”,:update=\>”#{product.id}",:url=\>{:action=\>“more\_info”,:id=\>product},:method=\>:get)-%\>"in a …

---

## [Plugin: include vs. base.send :include](https://www.ruby-forum.com/t/plugin-include-vs-base-send-include/134705)

<div class="topic-metadata">

**Author:** [@bazzel](https://www.ruby-forum.com/u/bazzel)\
**Replies:** 2\
**Last updated:** [April 14, 2008, 11:42am UTC](https://www.ruby-forum.com/t/plugin-include-vs-base-send-include/134705 "2008-04-14T11:42:39Z")

</div>

Hello all, I’ve created a simple plugin to extend the functionality of my controllers. So in my plugins//lib directory I created the following module: module MyPlugin def self.included(base) include InstanceMethods …

---

## [The best way to send generated numbers to an email address](https://www.ruby-forum.com/t/the-best-way-to-send-generated-numbers-to-an-email-address/134649)

<div class="topic-metadata">

**Author:** [@ANSS](https://www.ruby-forum.com/u/ANSS)\
**Replies:** 3\
**Last updated:** [April 14, 2008, 9:58am UTC](https://www.ruby-forum.com/t/the-best-way-to-send-generated-numbers-to-an-email-address/134649 "2008-04-14T09:58:35Z")

</div>

Hi, I’m writing an application that generate some sort of prepaid cards, each card with a PIN and a serial number. All serials and PINs are being hashed when saved to the database. For more security, I need the gene…

---

## [Routes.rb: regular expression /i (case insensitive) doesn't work?](https://www.ruby-forum.com/t/routes-rb-regular-expression-i-case-insensitive-doesnt-work/134693)

<div class="topic-metadata">

**Author:** [@akira](https://www.ruby-forum.com/u/akira)\
**Replies:** 1\
**Last updated:** [April 14, 2008, 9:57am UTC](https://www.ruby-forum.com/t/routes-rb-regular-expression-i-case-insensitive-doesnt-work/134693 "2008-04-14T09:57:24Z")

</div>

Dear all, I have something like this in routes.rb: map.connect ‘:test’, :controller =\> ‘help’, :requirements =\> { :test =\> /apple/i } But then, the routing for URL “/apple” works but “/APPLE” does not! Why doesn’t t…

---

## [Destroy\_all returns](https://www.ruby-forum.com/t/destroy-all-returns/134703)

<div class="topic-metadata">

**Author:** [@Rory\_McKinley](https://www.ruby-forum.com/u/Rory_McKinley)\
**Replies:** 0\
**Last updated:** [April 14, 2008, 9:39am UTC](https://www.ruby-forum.com/t/destroy-all-returns/134703 "2008-04-14T09:39:13Z")

</div>

Hello list I need to delete an object together with all its associated objects. Looking at the source code for the destroy\_all method, I cannot see what the destroy\_all method would return? Is there anyway to determi…

---

## [Synchronizing updates when reusing rails apps](https://www.ruby-forum.com/t/synchronizing-updates-when-reusing-rails-apps/134702)

<div class="topic-metadata">

**Author:** [@jh100000](https://www.ruby-forum.com/u/jh100000)\
**Replies:** 0\
**Last updated:** [April 14, 2008, 8:53am UTC](https://www.ruby-forum.com/t/synchronizing-updates-when-reusing-rails-apps/134702 "2008-04-14T08:53:41Z")

</div>

I am looking to reuse elements of a rails app in other rails apps but am concerned about how to keep them up to date as I add new functionalities. Essentially, I have a template of functionalities and features that I …

---

## [Backgroundrb - Connection refused](https://www.ruby-forum.com/t/backgroundrb-connection-refused/134626)

<div class="topic-metadata">

**Author:** [@ghoti143](https://www.ruby-forum.com/u/ghoti143)\
**Replies:** 1\
**Last updated:** [April 14, 2008, 8:36am UTC](https://www.ruby-forum.com/t/backgroundrb-connection-refused/134626 "2008-04-14T08:36:35Z")

</div>

Problem: getting the connection refused to backgroundrb after switching from lighttpd to mongrel with mongrel\_cluster + ngnix. Error ERROR:connection closed ERROR:Connection refused - connect(2) \*running lighttpd on …

---

## [Is Ruby better?](https://www.ruby-forum.com/t/is-ruby-better/134266)

<div class="topic-metadata">

**Author:** [@dilraj](https://www.ruby-forum.com/u/dilraj)\
**Replies:** 3\
**Last updated:** [April 14, 2008, 7:55am UTC](https://www.ruby-forum.com/t/is-ruby-better/134266 "2008-04-14T07:55:13Z")

</div>

Hi I am very new to Ruby and recently i started learning Ruby on rails also. I keep searching and reading articles to know about Ruby on Rails. I found many articles, where mostly Ruby is compared with Python, and in …

---

## [Will\_paginate](https://www.ruby-forum.com/t/will-paginate/134685)

<div class="topic-metadata">

**Author:** [@lwlwlw](https://www.ruby-forum.com/u/lwlwlw)\
**Replies:** 3\
**Last updated:** [April 14, 2008, 7:16am UTC](https://www.ruby-forum.com/t/will-paginate/134685 "2008-04-14T07:16:31Z")

</div>

I’m trying to get some pagination to work (I’m just starting with rails). I’m using Rails 2.0.2 (Mac OS 10.5.2). I installed the will\_paginate gem, and it shows up as installed if I run ‘gem list’ … (will\_paginate (…

---

## [Error trying to import Ã©](https://www.ruby-forum.com/t/error-trying-to-import-a/134697)

<div class="topic-metadata">

**Author:** [@boowebb](https://www.ruby-forum.com/u/boowebb)\
**Replies:** 0\
**Last updated:** [April 14, 2008, 6:30am UTC](https://www.ruby-forum.com/t/error-trying-to-import-a/134697 "2008-04-14T06:30:55Z")

</div>

I am trying to import data from text files and several of the files contain accented e’s. I am reading the files through the File object. My MySQL db is setup as UTF8. On Rails 2.0.2. The error I get is "incorrect st…

---

## [Blog (Typo) integration with other websites](https://www.ruby-forum.com/t/blog-typo-integration-with-other-websites/134691)

<div class="topic-metadata">

**Author:** [@Sazima](https://www.ruby-forum.com/u/Sazima)\
**Replies:** 0\
**Last updated:** [April 14, 2008, 5:09am UTC](https://www.ruby-forum.com/t/blog-typo-integration-with-other-websites/134691 "2008-04-14T05:09:07Z")

</div>

Dear all, After some thought regarding the common problem of developing my own blog engine or use one the the existing alternatives, I decided in favor of Typo. Then, instead of integrating it into my Rails app, I de…

---

## [How to manage multiple databases?](https://www.ruby-forum.com/t/how-to-manage-multiple-databases/134594)

<div class="topic-metadata">

**Author:** [@explainer](https://www.ruby-forum.com/u/explainer)\
**Replies:** 1\
**Last updated:** [April 14, 2008, 4:25am UTC](https://www.ruby-forum.com/t/how-to-manage-multiple-databases/134594 "2008-04-14T04:25:16Z")

</div>

I am working with a customer who wants a web application built that must access a remote MS SQL-Server database, while also accessing a local MySQL db. Is there any best practice about how to construct this? The pla…

---

## [Brand new to rails: can't get databases to work](https://www.ruby-forum.com/t/brand-new-to-rails-cant-get-databases-to-work/134635)

<div class="topic-metadata">

**Author:** [@ronrsr](https://www.ruby-forum.com/u/ronrsr)\
**Replies:** 8\
**Last updated:** [April 14, 2008, 4:10am UTC](https://www.ruby-forum.com/t/brand-new-to-rails-cant-get-databases-to-work/134635 "2008-04-14T04:10:03Z")

</div>

Just starting to learn rails. All is going well, until I tried to hook up a database. “undefined method \`model’ for ZingerController:Class” is the message I get from the server. I imagine I’ve left something out that…

---

## [Issues on Net:HTTP](https://www.ruby-forum.com/t/issues-on-net-http/134498)

<div class="topic-metadata">

**Author:** [@lily](https://www.ruby-forum.com/u/lily)\
**Replies:** 2\
**Last updated:** [April 14, 2008, 3:51am UTC](https://www.ruby-forum.com/t/issues-on-net-http/134498 "2008-04-14T03:51:56Z")

</div>

in cotroller: @url=URI.parse(‘Google’) @res = Net::HTTP.get\_response(@clarifyurl) in view: %=@res.body this page displayed as 301 Moved The document has moved here what’s wrong with my code, I want to get the corr…

---

## [Problems with copying and deleting with table relations](https://www.ruby-forum.com/t/problems-with-copying-and-deleting-with-table-relations/133842)

<div class="topic-metadata">

**Author:** [@fries88](https://www.ruby-forum.com/u/fries88)\
**Replies:** 10\
**Last updated:** [April 14, 2008, 3:24am UTC](https://www.ruby-forum.com/t/problems-with-copying-and-deleting-with-table-relations/133842 "2008-04-14T03:24:45Z")

</div>

Hi, I have problems copying and deleting rows in tables with relations. In the category’s index page, when copy link is clicked, it should copy and create a new data record with the data of category, books, titles an…

---

## [Rails and Dojo](https://www.ruby-forum.com/t/rails-and-dojo/134677)

<div class="topic-metadata">

**Author:** [@Schalk\_N](https://www.ruby-forum.com/u/Schalk_N)\
**Replies:** 7\
**Last updated:** [April 14, 2008, 2:08am UTC](https://www.ruby-forum.com/t/rails-and-dojo/134677 "2008-04-14T02:08:23Z")

</div>

Hi there everyone, How would I go about adding the dojoType to a rails text\_area form helper i.e. \<%= f.text\_area :content %\> Regards, Schalk

---

## [How Toggle Show/Hide Button Image and Action?](https://www.ruby-forum.com/t/how-toggle-show-hide-button-image-and-action/134674)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 1\
**Last updated:** [April 13, 2008, 10:47pm UTC](https://www.ruby-forum.com/t/how-toggle-show-hide-button-image-and-action/134674 "2008-04-13T22:47:17Z")

</div>

Rails 1.2.6 I have a link\_to\_remote which uses graphic button for the display. \<%= link\_to\_remote ‘’, :url =\> {:controller =\> ‘narrative’, :action =\> ‘show’} %\> When that button is clicked, an RJS file adds content…

---

## [Extending a model outside of its file](https://www.ruby-forum.com/t/extending-a-model-outside-of-its-file/134669)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [April 13, 2008, 8:43pm UTC](https://www.ruby-forum.com/t/extending-a-model-outside-of-its-file/134669 "2008-04-13T20:43:18Z")

</div>

Hello. I’m wondering how to add methods to a model (stored in /app/models) from a ruby file located in /lib/my-extension for instance. How is it possible? Are the models of an app stored in a specific ruby module? Th…

---

## [Looking for a Rails programmer](https://www.ruby-forum.com/t/looking-for-a-rails-programmer/134671)

<div class="topic-metadata">

**Author:** [@John\_Earl](https://www.ruby-forum.com/u/John_Earl)\
**Replies:** 0\
**Last updated:** [April 13, 2008, 8:26pm UTC](https://www.ruby-forum.com/t/looking-for-a-rails-programmer/134671 "2008-04-13T20:26:54Z")

</div>

I have a website, www.ourgolfscores.com that is hosted on textdrive. The entire system is built but the programmer I did have is in South Africa and is busy with a new full time job so I need to find a programmer, (p…

---

## [Javascript requests not being routed properly](https://www.ruby-forum.com/t/javascript-requests-not-being-routed-properly/132057)

<div class="topic-metadata">

**Author:** [@sumwutdum](https://www.ruby-forum.com/u/sumwutdum)\
**Replies:** 2\
**Last updated:** [April 13, 2008, 8:22pm UTC](https://www.ruby-forum.com/t/javascript-requests-not-being-routed-properly/132057 "2008-04-13T20:22:49Z")

</div>

I have a file in views/admin/contents/new.js that I would like to be returned on a request from a script tag ex: If I test out the js request manually, ie entering the js url in the browser, I get the error shown …

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

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