# Rails

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

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

---

## [Regular expression help needed](https://www.ruby-forum.com/t/regular-expression-help-needed/175325)

<div class="topic-metadata">

**Author:** [@san2821](https://www.ruby-forum.com/u/san2821)\
**Replies:** 7\
**Last updated:** [September 11, 2009, 2:09pm UTC](https://www.ruby-forum.com/t/regular-expression-help-needed/175325 "2009-09-11T14:09:42Z")

</div>

Hello I am very week with regular expressions. It may be too easy for someone. I have following regular expression loc\_content\_re = /(?:(\[A-Za-z\\s:\]?):)?(\[\\s\\S\])/ content = “HYDERABAD/NEW DELHI: Andhra Pradesh chief…

---

## [Organizing Helpers](https://www.ruby-forum.com/t/organizing-helpers/175319)

<div class="topic-metadata">

**Author:** [@diabolist](https://www.ruby-forum.com/u/diabolist)\
**Replies:** 1\
**Last updated:** [September 11, 2009, 1:32pm UTC](https://www.ruby-forum.com/t/organizing-helpers/175319 "2009-09-11T13:32:14Z")

</div>

I am trying to keep my code organized as a project grows larger. I am having trouble organizing helpers into a way that I like. Right now, I have helpers named after the controllers and one application helper. I am…

---

## [Oracle\_enhanced problem connection](https://www.ruby-forum.com/t/oracle-enhanced-problem-connection/175336)

<div class="topic-metadata">

**Author:** [@xela](https://www.ruby-forum.com/u/xela)\
**Replies:** 0\
**Last updated:** [September 11, 2009, 12:55pm UTC](https://www.ruby-forum.com/t/oracle-enhanced-problem-connection/175336 "2009-09-11T12:55:55Z")

</div>

Hello, I have a problem connecting to the development Oracle database but not to production, despite using the same credentials and connecting to the same database. The database is a legacy app that needs a new enhan…

---

## [Last Poblem in remove](https://www.ruby-forum.com/t/last-poblem-in-remove/175331)

<div class="topic-metadata">

**Author:** [@prashanth\_hiremath](https://www.ruby-forum.com/u/prashanth_hiremath)\
**Replies:** 0\
**Last updated:** [September 11, 2009, 11:53am UTC](https://www.ruby-forum.com/t/last-poblem-in-remove/175331 "2009-09-11T11:53:18Z")

</div>

Hi, I have in html as i earlier told u from scrape so i want to remove \<span so that i want to remove from doc after i wanna remove consecutive span tags except last span tag Is it possible can anybody…

---

## [Preview a post in a new window without saving it](https://www.ruby-forum.com/t/preview-a-post-in-a-new-window-without-saving-it/175250)

<div class="topic-metadata">

**Author:** [@ram](https://www.ruby-forum.com/u/ram)\
**Replies:** 9\
**Last updated:** [September 11, 2009, 11:08am UTC](https://www.ruby-forum.com/t/preview-a-post-in-a-new-window-without-saving-it/175250 "2009-09-11T11:08:49Z")

</div>

Hi, Ive got a form for a blog post and there are 3 buttons - Publish, Preview and Save as Draft. Clicking on Preview should open a new window with the preview of the post without saving it while the current window st…

---

## [Need help with extending a plugin](https://www.ruby-forum.com/t/need-help-with-extending-a-plugin/175328)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 0\
**Last updated:** [September 11, 2009, 10:59am UTC](https://www.ruby-forum.com/t/need-help-with-extending-a-plugin/175328 "2009-09-11T10:59:34Z")

</div>

hey folks I’ve installed the plugin acts\_as\_taggable\_on\_steroids (henceforth aatos), and i already have some tagging functionality set up, using the same approach (ie a Tag and a Tagging class with associated tables) …

---

## [Dynamic method delegation through polymorphic association](https://www.ruby-forum.com/t/dynamic-method-delegation-through-polymorphic-association/175323)

<div class="topic-metadata">

**Author:** [@disturb](https://www.ruby-forum.com/u/disturb)\
**Replies:** 0\
**Last updated:** [September 11, 2009, 9:55am UTC](https://www.ruby-forum.com/t/dynamic-method-delegation-through-polymorphic-association/175323 "2009-09-11T09:55:38Z")

</div>

This is too much for my ruby skills level… Since i can’t use multiple tables inheritance, i’ve been trying to implement some shared behaviour and state in an AR ‘wrapper’ model that delegates method calls to an associ…

---

## [Installing Rails problem](https://www.ruby-forum.com/t/installing-rails-problem/175317)

<div class="topic-metadata">

**Author:** [@kosecek](https://www.ruby-forum.com/u/kosecek)\
**Replies:** 2\
**Last updated:** [September 11, 2009, 9:46am UTC](https://www.ruby-forum.com/t/installing-rails-problem/175317 "2009-09-11T09:46:02Z")

</div>

I have installed Ruby and Apache, but when tried to install Rails (sudo gem install rails --include-dependencies) I have got an error: INFO: gem install -y is now default and will be removed INFO: use --ignore-depen…

---

## [\[ANN\] "gold": a script to ease git based team work](https://www.ruby-forum.com/t/ann-gold-a-script-to-ease-git-based-team-work/175266)

<div class="topic-metadata">

**Author:** [@gazoduc](https://www.ruby-forum.com/u/gazoduc)\
**Replies:** 2\
**Last updated:** [September 11, 2009, 9:01am UTC](https://www.ruby-forum.com/t/ann-gold-a-script-to-ease-git-based-team-work/175266 "2009-09-11T09:01:03Z")

</div>

Hi list ! I created a script to ease workflow on zena, a rails CMS (http://zenadmin.org). The workflow involves developers and reviewers (can be the same people): each developer has his own fork (on github or anothe…

---

## [Problem with dynamic selects using rjs](https://www.ruby-forum.com/t/problem-with-dynamic-selects-using-rjs/175261)

<div class="topic-metadata">

**Author:** [@Marcos\_MSSS\_ller](https://www.ruby-forum.com/u/Marcos_MSSS_ller)\
**Replies:** 2\
**Last updated:** [September 11, 2009, 8:49am UTC](https://www.ruby-forum.com/t/problem-with-dynamic-selects-using-rjs/175261 "2009-09-11T08:49:29Z")

</div>

Hello everybody, This is a simple problem and i found a lot of resources on the internet but i try for different ways and none of them worked yet. I have the normal problem with the “states and cities” selects. But …

---

## [Singleton class setup in initializer, but seemingly reloaded later](https://www.ruby-forum.com/t/singleton-class-setup-in-initializer-but-seemingly-reloaded-later/175224)

<div class="topic-metadata">

**Author:** [@ate50eggs](https://www.ruby-forum.com/u/ate50eggs)\
**Replies:** 9\
**Last updated:** [September 11, 2009, 7:50am UTC](https://www.ruby-forum.com/t/singleton-class-setup-in-initializer-but-seemingly-reloaded-later/175224 "2009-09-11T07:50:23Z")

</div>

I have a trivial Singleton class in my ‘lib’ folder, which has some instance variables that I setup by calling a configure method from an initializer. The initializer seems to execute just fine and sets up the singlet…

---

## [Setting Session Options in Rails 2.3](https://www.ruby-forum.com/t/setting-session-options-in-rails-2-3/163602)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 6\
**Last updated:** [September 11, 2009, 4:01am UTC](https://www.ruby-forum.com/t/setting-session-options-in-rails-2-3/163602 "2009-09-11T04:01:02Z")

</div>

I’m trying to figure out how I should set my session options for Rails 2.3. In Rails 2.2: session :cookie\_only =\> false, :only =\> :swf\_upload In Rails 2.3, it looks like I need to use: request.session\_options\[‘cooki…

---

## [CPU usage with 2-2-CVE-2009-3009.patch and 2.2.2](https://www.ruby-forum.com/t/cpu-usage-with-2-2-cve-2009-3009-patch-and-2-2-2/175303)

<div class="topic-metadata">

**Author:** [@Grant\_H](https://www.ruby-forum.com/u/Grant_H)\
**Replies:** 2\
**Last updated:** [September 11, 2009, 3:17am UTC](https://www.ruby-forum.com/t/cpu-usage-with-2-2-cve-2009-3009-patch-and-2-2-2/175303 "2009-09-11T03:17:34Z")

</div>

We have applied the XSS vulnerability patch to the Rails 2.2.2 codebase and built our own version of the 2.2.2 gems. When we run with this patched 2.2.2, we are seeing high CPU usage which seems to be a direct result …

---

## [Perhaps not the correct group](https://www.ruby-forum.com/t/perhaps-not-the-correct-group/175306)

<div class="topic-metadata">

**Author:** [@rickm](https://www.ruby-forum.com/u/rickm)\
**Replies:** 1\
**Last updated:** [September 11, 2009, 1:23am UTC](https://www.ruby-forum.com/t/perhaps-not-the-correct-group/175306 "2009-09-11T01:23:25Z")

</div>

But I was not sure where to go with this. I am trying to add rspec testing to a “working” application and get the following error. /Library/Ruby/Gems/1.8/gems/color-1.4.0/lib/color.rb:19: Color is not a module (TypeEr…

---

## [Cannot start mongrel after Snow Leopard upgrade : Wrong Architecture!](https://www.ruby-forum.com/t/cannot-start-mongrel-after-snow-leopard-upgrade-wrong-architecture/175277)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 2\
**Last updated:** [September 11, 2009, 1:11am UTC](https://www.ruby-forum.com/t/cannot-start-mongrel-after-snow-leopard-upgrade-wrong-architecture/175277 "2009-09-11T01:11:42Z")

</div>

(MacBook Core 2 Duo… but 32-bits kernel… upgraded to SL) Rails 2.3.4 / Ruby 1.8.7 fine with Webrick Booting WEBrick =\> Rails 2.3.4 application starting on http://0.0.0.0:3000 but trying to start Mongrel ( btw shoul…

---

## [Construction of multiple model forms and controllers](https://www.ruby-forum.com/t/construction-of-multiple-model-forms-and-controllers/175311)

<div class="topic-metadata">

**Author:** [@explainer](https://www.ruby-forum.com/u/explainer)\
**Replies:** 0\
**Last updated:** [September 11, 2009, 12:50am UTC](https://www.ruby-forum.com/t/construction-of-multiple-model-forms-and-controllers/175311 "2009-09-11T00:50:02Z")

</div>

I have a problem with the construction of a sequence of input forms. The model being created and edited is called a Portfolio. The portfolio contains multiple subordinate objects, such as Stock, AssetClasses, Sectors…

---

## [RJS and Rails 3.0](https://www.ruby-forum.com/t/rjs-and-rails-3-0/175302)

<div class="topic-metadata">

**Author:** [@liberte](https://www.ruby-forum.com/u/liberte)\
**Replies:** 0\
**Last updated:** [September 10, 2009, 10:07pm UTC](https://www.ruby-forum.com/t/rjs-and-rails-3-0/175302 "2009-09-10T22:07:18Z")

</div>

I would like to know what we should expect for RJS in Rails 3.0. I love RJS and use it a lot, and see many other developers using. I know it is a controversial choice because actually RJS is not unobtrusive but for my…

---

## [Setting up Rails with MS SQL](https://www.ruby-forum.com/t/setting-up-rails-with-ms-sql/169586)

<div class="topic-metadata">

**Author:** [@nnexican](https://www.ruby-forum.com/u/nnexican)\
**Replies:** 1\
**Last updated:** [September 10, 2009, 8:57pm UTC](https://www.ruby-forum.com/t/setting-up-rails-with-ms-sql/169586 "2009-09-10T20:57:16Z")

</div>

Hello everyone. I am trying to get Rails working with MS SQL. I have updated database.yml in my application, intalled the activerecord-sqlserver-adapter gem as well as the deprecated gem. I have also downloaded ADO.rb…

---

## [Problems with habtm](https://www.ruby-forum.com/t/problems-with-habtm/175218)

<div class="topic-metadata">

**Author:** [@PaSSS\_lo\_Geyer](https://www.ruby-forum.com/u/PaSSS_lo_Geyer)\
**Replies:** 3\
**Last updated:** [September 10, 2009, 8:39pm UTC](https://www.ruby-forum.com/t/problems-with-habtm/175218 "2009-09-10T20:39:27Z")

</div>

hi, i’m having some problems with habtm association, when i try to list Empresas form a Category, i get the association ID instead of the Empresa ID, i’m using sqlite3 paulo-geyers-macbook:100empresas paulo$ ./scrip…

---

## [Undefined method \`protect\_against\_forgery?'](https://www.ruby-forum.com/t/undefined-method-protect-against-forgery/175283)

<div class="topic-metadata">

**Author:** [@sunnet](https://www.ruby-forum.com/u/sunnet)\
**Replies:** 1\
**Last updated:** [September 10, 2009, 8:26pm UTC](https://www.ruby-forum.com/t/undefined-method-protect-against-forgery/175283 "2009-09-10T20:26:01Z")

</div>

When I use plugin ‘railstree’ (http://www.hashcode.eti.br/?p=91) as following code: node = Node.new :label =\> menu\_item.name, :link\_to\_remote =\> { :base =\> self, :update =\> “container”, :url =\> { :controller =\> …

---

## [Url with some%Fvalue treated differently than some\_value](https://www.ruby-forum.com/t/url-with-some-fvalue-treated-differently-than-some-value/175299)

<div class="topic-metadata">

**Author:** [@davetron5000](https://www.ruby-forum.com/u/davetron5000)\
**Replies:** 0\
**Last updated:** [September 10, 2009, 7:40pm UTC](https://www.ruby-forum.com/t/url-with-some-fvalue-treated-differently-than-some-value/175299 "2009-09-10T19:40:57Z")

</div>

My setup: passenger via Apache rails 2.3.2 RailsBaseURI /scala\_tour going to http://www.naildrivin5.com/scala\_tour works great Someone posted a link to http://www.naildrivin5.com/scala\_tour and I get this in my log…

---

## [Sql "in" query using active record](https://www.ruby-forum.com/t/sql-in-query-using-active-record/175268)

<div class="topic-metadata">

**Author:** [@AppleII717](https://www.ruby-forum.com/u/AppleII717)\
**Replies:** 3\
**Last updated:** [September 10, 2009, 6:55pm UTC](https://www.ruby-forum.com/t/sql-in-query-using-active-record/175268 "2009-09-10T18:55:44Z")

</div>

I’m trying to convert a non-sql application (4D or 4th Dimension) to rails. Got all the CRUD stuff down, but I’m running into problem in generating reports. 4D makes heavy use of Sets and Selections, which are really …

---

## [Chart in rails](https://www.ruby-forum.com/t/chart-in-rails/175264)

<div class="topic-metadata">

**Author:** [@soutom](https://www.ruby-forum.com/u/soutom)\
**Replies:** 2\
**Last updated:** [September 10, 2009, 6:48pm UTC](https://www.ruby-forum.com/t/chart-in-rails/175264 "2009-09-10T18:48:50Z")

</div>

Hi All i am trying to use Open Flash Chart i tried this as instracted in this link bat at finally i got the following error undefined method \`open\_flash\_chart\_object’ for #\<TestItController: 0x398df5c\> At presnet …

---

## [Route not generated, what have I missed?](https://www.ruby-forum.com/t/route-not-generated-what-have-i-missed/175253)

<div class="topic-metadata">

**Author:** [@brianp](https://www.ruby-forum.com/u/brianp)\
**Replies:** 4\
**Last updated:** [September 10, 2009, 6:33pm UTC](https://www.ruby-forum.com/t/route-not-generated-what-have-i-missed/175253 "2009-09-10T18:33:37Z")

</div>

Hey Guys, I’m basing this off of the book Simply Rails 2 by Patrick Lenz. I’ve got my word model: word.rb has\_many :votes my vote mode; vote.rb belongs\_to :word, :counter\_cache =\> true my routes routes.rb map.reso…

---

## [Replace html tag](https://www.ruby-forum.com/t/replace-html-tag/175191)

<div class="topic-metadata">

**Author:** [@prashanth\_hiremath](https://www.ruby-forum.com/u/prashanth_hiremath)\
**Replies:** 9\
**Last updated:** [September 10, 2009, 5:01pm UTC](https://www.ruby-forum.com/t/replace-html-tag/175191 "2009-09-10T17:01:05Z")

</div>

Hi Please help me i want to replace the tag to at time can anybody in world give me an solution Regards Prashant

---

## [Ruby for google database: Big Table](https://www.ruby-forum.com/t/ruby-for-google-database-big-table/175259)

<div class="topic-metadata">

**Author:** [@Pankesh](https://www.ruby-forum.com/u/Pankesh)\
**Replies:** 1\
**Last updated:** [September 10, 2009, 4:14pm UTC](https://www.ruby-forum.com/t/ruby-for-google-database-big-table/175259 "2009-09-10T16:14:33Z")

</div>

Hi , I just want to Know that Ruby on Rails support non -relational Database ? I want to use “Big Table” as backend for my web application. kindly help me . Thanks in advance. -Pankesh

---

## [Attach tar.gz file on rails email](https://www.ruby-forum.com/t/attach-tar-gz-file-on-rails-email/175278)

<div class="topic-metadata">

**Author:** [@vellingiri](https://www.ruby-forum.com/u/vellingiri)\
**Replies:** 0\
**Last updated:** [September 10, 2009, 2:24pm UTC](https://www.ruby-forum.com/t/attach-tar-gz-file-on-rails-email/175278 "2009-09-10T14:24:45Z")

</div>

How to send attached tar.gz file on ruby mail sending. If anyone aware already, please let me know. Regards, S.Vellingiri.

---

## [Tagging recommendation - acts\_as\_taggable\_on\_steroids best?](https://www.ruby-forum.com/t/tagging-recommendation-acts-as-taggable-on-steroids-best/175206)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 5\
**Last updated:** [September 10, 2009, 11:43am UTC](https://www.ruby-forum.com/t/tagging-recommendation-acts-as-taggable-on-steroids-best/175206 "2009-09-10T11:43:31Z")

</div>

hey all What’s the most popular tagging plugin/gem these days? Is it acts\_as\_taggable\_on\_steroids? Or is something else better? I’d like to basically replicate flickr’s tagging as much as possible, eg allowing mult…

---

## [Hpricot search condition](https://www.ruby-forum.com/t/hpricot-search-condition/175127)

<div class="topic-metadata">

**Author:** [@prashanth\_hiremath](https://www.ruby-forum.com/u/prashanth_hiremath)\
**Replies:** 8\
**Last updated:** [September 10, 2009, 11:26am UTC](https://www.ruby-forum.com/t/hpricot-search-condition/175127 "2009-09-10T11:26:14Z")

</div>

I have an html Central Kolkata Eden Gardens (one of the most famous cricket stadiums in the world), Akashwani Bhavan, All India Radio building Indoor Stadium Fort William, the massive and impregnable British Cita…

---

## [Paperclip attachment to AWS - ActiveRecord::AssociationTypeMismatch Going Nuts!](https://www.ruby-forum.com/t/paperclip-attachment-to-aws-activerecord-associationtypemismatch-going-nuts/175262)

<div class="topic-metadata">

**Author:** [@jasongarber](https://www.ruby-forum.com/u/jasongarber)\
**Replies:** 0\
**Last updated:** [September 10, 2009, 9:56am UTC](https://www.ruby-forum.com/t/paperclip-attachment-to-aws-activerecord-associationtypemismatch-going-nuts/175262 "2009-09-10T09:56:03Z")

</div>

Hi, I have been trying to do this for a few days now and cannot figure it out. I would be very grateful is anyone can help me I am trying to upload an attachment to AWS, S3 using paperclip, however every time I keep …

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

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