# Rails

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

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

---

## [Rails 2.3.3 error under Ruby 1.9](https://www.ruby-forum.com/t/rails-2-3-3-error-under-ruby-1-9/174346)

<div class="topic-metadata">

**Author:** [@threeeyedfish](https://www.ruby-forum.com/u/threeeyedfish)\
**Replies:** 4\
**Last updated:** [August 26, 2009, 7:53am UTC](https://www.ruby-forum.com/t/rails-2-3-3-error-under-ruby-1-9/174346 "2009-08-26T07:53:49Z")

</div>

Despite the claim that Rails now work under 1.9, I fail: testapp\\ $ script/console script/console:2:in require': no such file to load -- script/../config/boot (LoadError) from script/console:2:in’ Does that mean that …

---

## [Testing thinking\_sphinx](https://www.ruby-forum.com/t/testing-thinking-sphinx/174389)

<div class="topic-metadata">

**Author:** [@nilez](https://www.ruby-forum.com/u/nilez)\
**Replies:** 0\
**Last updated:** [August 26, 2009, 7:40am UTC](https://www.ruby-forum.com/t/testing-thinking-sphinx/174389 "2009-08-26T07:40:57Z")

</div>

hello All, I am using thinking\_sphinx for search method , i am writing testing for it, but when i try to run it in test environment it gives me following error D:\\sarasaves\>rake thinking\_sphinx:index RAILS\_ENV=test …

---

## [Implementing Paymo or Boku Payment Gateway](https://www.ruby-forum.com/t/implementing-paymo-or-boku-payment-gateway/174364)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 3\
**Last updated:** [August 26, 2009, 6:36am UTC](https://www.ruby-forum.com/t/implementing-paymo-or-boku-payment-gateway/174364 "2009-08-26T06:36:12Z")

</div>

Hi all, This is an intro thread to a project I’ll be working on in the next month or so. I spoke with Boku directly and they are finalizing new documentation now that all of their mobile payment systems will be under…

---

## [Functional Testing with Ajax](https://www.ruby-forum.com/t/functional-testing-with-ajax/174367)

<div class="topic-metadata">

**Author:** [@oldbug](https://www.ruby-forum.com/u/oldbug)\
**Replies:** 1\
**Last updated:** [August 26, 2009, 3:35am UTC](https://www.ruby-forum.com/t/functional-testing-with-ajax/174367 "2009-08-26T03:35:05Z")

</div>

Hello Can anybody recommend a good tutorial for writing functional tests for pages that are updated dynamically? Thanks. –wpd

---

## [Form\_tag validation](https://www.ruby-forum.com/t/form-tag-validation/174381)

<div class="topic-metadata">

**Author:** [@bashar](https://www.ruby-forum.com/u/bashar)\
**Replies:** 0\
**Last updated:** [August 26, 2009, 12:23am UTC](https://www.ruby-forum.com/t/form-tag-validation/174381 "2009-08-26T00:23:44Z")

</div>

Hi, I’m writing a Rails 2.3.2 app and am using form\_tag and trying to figure out the best way to perform validation, and on failure I want to display the errors back to the user just as with ActiveRecord, except this…

---

## [Gem twitter-0.6.15, I need twitter-0.6.11](https://www.ruby-forum.com/t/gem-twitter-0-6-15-i-need-twitter-0-6-11/174338)

<div class="topic-metadata">

**Author:** [@dmpeters63](https://www.ruby-forum.com/u/dmpeters63)\
**Replies:** 3\
**Last updated:** [August 26, 2009, 12:16am UTC](https://www.ruby-forum.com/t/gem-twitter-0-6-15-i-need-twitter-0-6-11/174338 "2009-08-26T00:16:08Z")

</div>

Hi, I did sudo gem install twitter and I installed twitter-0.6.15 but my app wont run with 0.6.15. I need twitter-0.6.11 to run my app. Does anyone know how to downgrade to 0.6.11? Thank in advance for any help.

---

## [WHy is rails so annoying to deploy?](https://www.ruby-forum.com/t/why-is-rails-so-annoying-to-deploy/174325)

<div class="topic-metadata">

**Author:** [@artrat](https://www.ruby-forum.com/u/artrat)\
**Replies:** 17\
**Last updated:** [August 26, 2009, 12:05am UTC](https://www.ruby-forum.com/t/why-is-rails-so-annoying-to-deploy/174325 "2009-08-26T00:05:48Z")

</div>

I’ve been having great fun trying to deploy a fresh install of rails on debian, specifically xlsuite to test it out, but my god how many more errors can I take before I give up. RAILS IS NOT NICE After battling with …

---

## [Upgrading to 2.3 from 2.1](https://www.ruby-forum.com/t/upgrading-to-2-3-from-2-1/174253)

<div class="topic-metadata">

**Author:** [@chrisolsen](https://www.ruby-forum.com/u/chrisolsen)\
**Replies:** 5\
**Last updated:** [August 26, 2009, 12:00am UTC](https://www.ruby-forum.com/t/upgrading-to-2-3-from-2-1/174253 "2009-08-26T00:00:19Z")

</div>

Can be done in a one step process or do I have to upgrade to 2.2 then 2.3? Thanks for the help.

---

## [Workling's spiraling memory usage](https://www.ruby-forum.com/t/worklings-spiraling-memory-usage/172816)

<div class="topic-metadata">

**Author:** [@zaczheng](https://www.ruby-forum.com/u/zaczheng)\
**Replies:** 3\
**Last updated:** [August 25, 2009, 11:58pm UTC](https://www.ruby-forum.com/t/worklings-spiraling-memory-usage/172816 "2009-08-25T23:58:34Z")

</div>

First of all, much thanks to Workling and Starling’s creators. They are great pieces of software. I have started to use Workling/Starling to process fairly big amounts of data, importing 2000+ records of 20+ fields ea…

---

## [Backwards compatibility](https://www.ruby-forum.com/t/backwards-compatibility/174324)

<div class="topic-metadata">

**Author:** [@artrat](https://www.ruby-forum.com/u/artrat)\
**Replies:** 6\
**Last updated:** [August 25, 2009, 11:56pm UTC](https://www.ruby-forum.com/t/backwards-compatibility/174324 "2009-08-25T23:56:49Z")

</div>

does any one know how revert between rails versions without rewriting lots of code, i.e. backwards compatibility, isnt there a framework that handles the changes so your applications will work\>?

---

## [XML Data Feeds - Some Questions](https://www.ruby-forum.com/t/xml-data-feeds-some-questions/174294)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 10\
**Last updated:** [August 25, 2009, 11:41pm UTC](https://www.ruby-forum.com/t/xml-data-feeds-some-questions/174294 "2009-08-25T23:41:22Z")

</div>

Hi All, Is there anything special I need to know about providing xml data feeds with rails as far as user agents, or browser specific information is concerned? Will one data feed differ from another in any way? Are …

---

## [OFX-parser](https://www.ruby-forum.com/t/ofx-parser/174368)

<div class="topic-metadata">

**Author:** [@prabesh](https://www.ruby-forum.com/u/prabesh)\
**Replies:** 1\
**Last updated:** [August 25, 2009, 11:22pm UTC](https://www.ruby-forum.com/t/ofx-parser/174368 "2009-08-25T23:22:09Z")

</div>

I am trying to parser a ofx file .I have installed ofx-parser gem. But I am getting error: no such file to load – hpricot\_scan I have checked my gem folder ,I have got hpricot-0.8.1 which is \> hpricot-0.6(requirement…

---

## [Active\_record has\_many, :through and active \_resource](https://www.ruby-forum.com/t/active-record-has-many-through-and-active-resource/174379)

<div class="topic-metadata">

**Author:** [@slavix](https://www.ruby-forum.com/u/slavix)\
**Replies:** 0\
**Last updated:** [August 25, 2009, 11:21pm UTC](https://www.ruby-forum.com/t/active-record-has-many-through-and-active-resource/174379 "2009-08-25T23:21:41Z")

</div>

Hello, I have many to many relationship between Venue and Catalog class Venue \< ActiveRecord::Base has\_many :venue\_catalogs has\_many :catalogs, :through =\> :venue\_catalogs end class VenueCatalog \< ActiveRecord::B…

---

## [Has\_and\_belongs\_to\_many refer to same Model](https://www.ruby-forum.com/t/has-and-belongs-to-many-refer-to-same-model/174318)

<div class="topic-metadata">

**Author:** [@hangingclowns](https://www.ruby-forum.com/u/hangingclowns)\
**Replies:** 2\
**Last updated:** [August 25, 2009, 10:26pm UTC](https://www.ruby-forum.com/t/has-and-belongs-to-many-refer-to-same-model/174318 "2009-08-25T22:26:19Z")

</div>

I have a User model and in I want to have a has\_and\_belongs\_to\_many :users Obviously that won’t work since the join table will have the same column names (user\_id). What approach should I take? thanks

---

## [Integrate python and Ruby Gem](https://www.ruby-forum.com/t/integrate-python-and-ruby-gem/174359)

<div class="topic-metadata">

**Author:** [@easwam](https://www.ruby-forum.com/u/easwam)\
**Replies:** 3\
**Last updated:** [August 25, 2009, 9:18pm UTC](https://www.ruby-forum.com/t/integrate-python-and-ruby-gem/174359 "2009-08-25T21:18:47Z")

</div>

I need to get this python framework and ruby gem working together: turbogears and ruby gem, but can’t find any solutions, even though I have both python and ruby installed. I have also tried substituting pylons, which…

---

## [Problem with Iconv](https://www.ruby-forum.com/t/problem-with-iconv/174371)

<div class="topic-metadata">

**Author:** [@yankees26](https://www.ruby-forum.com/u/yankees26)\
**Replies:** 0\
**Last updated:** [August 25, 2009, 9:17pm UTC](https://www.ruby-forum.com/t/problem-with-iconv/174371 "2009-08-25T21:17:58Z")

</div>

Hello! Here is my code: require ‘iconv’ result = Iconv.iconv(‘ascii//translit//IGNORE’, ‘utf-8’, “zaÅ¼Ã³Å‚Ä‡ gÄ™Å›lÄ… jaÅºÅ„”) puts result.to\_s.gsub(/\[^\\x00-\\x7F\]+/, ‘’).gsub(/\[^\\w\_ -\]+/i, ‘’) Result (Mac OS X Le…

---

## [Stubborn 403 trying to use gems with proxy on windows cygwin](https://www.ruby-forum.com/t/stubborn-403-trying-to-use-gems-with-proxy-on-windows-cygwin/173980)

<div class="topic-metadata">

**Author:** [@najati](https://www.ruby-forum.com/u/najati)\
**Replies:** 1\
**Last updated:** [August 25, 2009, 8:03pm UTC](https://www.ruby-forum.com/t/stubborn-403-trying-to-use-gems-with-proxy-on-windows-cygwin/173980 "2009-08-25T20:03:16Z")

</div>

Hey all, We’re on windows, using cygwin, behind a firewall with a proxy and having difficulty (understatement) installing rails. It seems that no combination of http proxy parameters and environment variables will get …

---

## [Migration erros when truning on config.threadsafe!](https://www.ruby-forum.com/t/migration-erros-when-truning-on-config-threadsafe/174336)

<div class="topic-metadata">

**Author:** [@khelll](https://www.ruby-forum.com/u/khelll)\
**Replies:** 2\
**Last updated:** [August 25, 2009, 7:27pm UTC](https://www.ruby-forum.com/t/migration-erros-when-truning-on-config-threadsafe/174336 "2009-08-25T19:27:33Z")

</div>

When turning on config.threadsafe! in production environment and trying to migrate production database I get odd errors like uninitialized constant AddAdminToUsers::User, here is the migration file data: class AddAdm…

---

## [Overriding .blank? method](https://www.ruby-forum.com/t/overriding-blank-method/174321)

<div class="topic-metadata">

**Author:** [@pakothawade](https://www.ruby-forum.com/u/pakothawade)\
**Replies:** 8\
**Last updated:** [August 25, 2009, 5:50pm UTC](https://www.ruby-forum.com/t/overriding-blank-method/174321 "2009-08-25T17:50:23Z")

</div>

Hi, Does anyone know a way to override .blank? method that rails provides. I want to add additional custom checks (specific to my application) to this method. Thanks, Pratik

---

## [\[Newb\] Adding database fields to get a total](https://www.ruby-forum.com/t/newb-adding-database-fields-to-get-a-total/174308)

<div class="topic-metadata">

**Author:** [@KRKRKR](https://www.ruby-forum.com/u/KRKRKR)\
**Replies:** 6\
**Last updated:** [August 25, 2009, 5:41pm UTC](https://www.ruby-forum.com/t/newb-adding-database-fields-to-get-a-total/174308 "2009-08-25T17:41:36Z")

</div>

Total newb here, as I’ve been working my way threw the tutorial, but doing my own thing. I’ve created a fairly simple app, that has a bunch of items. Each item has 6-9 fields that have a cost associated with them (db…

---

## [Best book to learn RoR?](https://www.ruby-forum.com/t/best-book-to-learn-ror/173198)

<div class="topic-metadata">

**Author:** [@Sood](https://www.ruby-forum.com/u/Sood)\
**Replies:** 15\
**Last updated:** [August 25, 2009, 5:21pm UTC](https://www.ruby-forum.com/t/best-book-to-learn-ror/173198 "2009-08-25T17:21:41Z")

</div>

I am a PHP developer and I am interested in learning some RoR. I tend to learn easier using a book, but there are so many out there it is hard to pick! Can anyone recommend a good book? I am thinking about getting “B…

---

## [Rails and Databases](https://www.ruby-forum.com/t/rails-and-databases/174266)

<div class="topic-metadata">

**Author:** [@GuruOne](https://www.ruby-forum.com/u/GuruOne)\
**Replies:** 6\
**Last updated:** [August 25, 2009, 5:02pm UTC](https://www.ruby-forum.com/t/rails-and-databases/174266 "2009-08-25T17:02:22Z")

</div>

Hi Everyone, I have a couple of questions A typical rails environment has 3 databases - development, test, production. Can I have more? Is there a limit? In most rails applications you usually have one database t…

---

## [Equipment\_URL Failed to Generate (new\_equipment\_path)](https://www.ruby-forum.com/t/equipment-url-failed-to-generate-new-equipment-path/172344)

<div class="topic-metadata">

**Author:** [@blacknight](https://www.ruby-forum.com/u/blacknight)\
**Replies:** 9\
**Last updated:** [August 25, 2009, 3:31pm UTC](https://www.ruby-forum.com/t/equipment-url-failed-to-generate-new-equipment-path/172344 "2009-08-25T15:31:37Z")

</div>

I’m trying to use new\_equipment\_path, which creates the appropriate link. But, when trying to evaluate “equipment/new” I get the error below. I’ve included my routes (rake route). Equipment is one of those words that …

---

## [Hijack](https://www.ruby-forum.com/t/hijack/174357)

<div class="topic-metadata">

**Author:** [@msojka](https://www.ruby-forum.com/u/msojka)\
**Replies:** 0\
**Last updated:** [August 25, 2009, 3:31pm UTC](https://www.ruby-forum.com/t/hijack/174357 "2009-08-25T15:31:02Z")

</div>

I am attempting to get the Hijack gem to work on Leopard. It installs and runs, but it does not seem to breakpoint the Ruby process I choose. I am pretty sure I am not using it correctly. Does anyone have it up and ru…

---

## [Capistrano and 2.3.2](https://www.ruby-forum.com/t/capistrano-and-2-3-2/174354)

<div class="topic-metadata">

**Author:** [@e\_deleflie](https://www.ruby-forum.com/u/e_deleflie)\
**Replies:** 1\
**Last updated:** [August 25, 2009, 3:28pm UTC](https://www.ruby-forum.com/t/capistrano-and-2-3-2/174354 "2009-08-25T15:28:06Z")

</div>

I’ve upgraded to the latest rails (from 2.1.2), … and locally its working. But when I try to cap deploy to production, I get: \*\*\* \[err :: 11.11.11.11\] can’t activate rails (= 2.1.2, runtime) for \[\], already activated …

---

## [Simple RJS question--toggling the text of a link\_to\_function link](https://www.ruby-forum.com/t/simple-rjs-question-toggling-the-text-of-a-link-to-function-link/174112)

<div class="topic-metadata">

**Author:** [@rpardee](https://www.ruby-forum.com/u/rpardee)\
**Replies:** 4\
**Last updated:** [August 25, 2009, 3:14pm UTC](https://www.ruby-forum.com/t/simple-rjs-question-toggling-the-text-of-a-link-to-function-link/174112 "2009-08-25T15:14:38Z")

</div>

Hey All, I’m dabbling in a little DHTML to show/hide a fieldset on a page, w/ the following: \<%= link\_to\_function(“Show People”, nil, :id =\> “more\_link”) do |page| page.visual\_effect(:toggle\_appear, “organization-pe…

---

## [More routing problems](https://www.ruby-forum.com/t/more-routing-problems/174328)

<div class="topic-metadata">

**Author:** [@Glen](https://www.ruby-forum.com/u/Glen)\
**Replies:** 4\
**Last updated:** [August 25, 2009, 3:03pm UTC](https://www.ruby-forum.com/t/more-routing-problems/174328 "2009-08-25T15:03:31Z")

</div>

I have the following route in my routes.rb: map.resources :start, :member =\> { :about =\> :get } The first problem is that Rails won’t let me add :only =\> \[:index, :about\] However the bigger problem is that when follo…

---

## [Efficient way to prune a table](https://www.ruby-forum.com/t/efficient-way-to-prune-a-table/173770)

<div class="topic-metadata">

**Author:** [@RVince](https://www.ruby-forum.com/u/RVince)\
**Replies:** 17\
**Last updated:** [August 25, 2009, 3:01pm UTC](https://www.ruby-forum.com/t/efficient-way-to-prune-a-table/173770 "2009-08-25T15:01:10Z")

</div>

I have a table that retains strings to display in a select box. The select box is supposed to display only the most recently added 10 Strings (there is a field, tstamp, which holds the timestamp of the most recent cha…

---

## [Autocomplete partial issue](https://www.ruby-forum.com/t/autocomplete-partial-issue/174323)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 1\
**Last updated:** [August 25, 2009, 2:57pm UTC](https://www.ruby-forum.com/t/autocomplete-partial-issue/174323 "2009-08-25T14:57:04Z")

</div>

I am getting a ton of \\t for some reason in front and behind the text. Anybody know why this is? If I comment out the image\_tag it does the same thing. \<% unless @items.nil? %\> \<% content\_tag :ul, :class =\> “auto\_c…

---

## [Get name from table has many , belong to relationship](https://www.ruby-forum.com/t/get-name-from-table-has-many-belong-to-relationship/174348)

<div class="topic-metadata">

**Author:** [@karthik](https://www.ruby-forum.com/u/karthik)\
**Replies:** 2\
**Last updated:** [August 25, 2009, 2:14pm UTC](https://www.ruby-forum.com/t/get-name-from-table-has-many-belong-to-relationship/174348 "2009-08-25T14:14:17Z")

</div>

Hi Guys I have a table with Relationship has many belong to Employee table employee id addressid 12 12 13 13 i need to access addressid data from address table please guide …

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

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