# Rails

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

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

---

## [Escape pipe symbol in textile table](https://www.ruby-forum.com/t/escape-pipe-symbol-in-textile-table/152028)

<div class="topic-metadata">

**Author:** [@pheew](https://www.ruby-forum.com/u/pheew)\
**Replies:** 1\
**Last updated:** [October 29, 2008, 9:33am UTC](https://www.ruby-forum.com/t/escape-pipe-symbol-in-textile-table/152028 "2008-10-29T09:33:56Z")

</div>

This is not really a RoR specific question but i figured some of you might know the answer. I’m trying to create a table in textile like this: bc… |@.@|Any character except new line (\\n)| |. @(a|b)@|a or b| bc. As…

---

## [Soap::mapping::object](https://www.ruby-forum.com/t/soap-object/152022)

<div class="topic-metadata">

**Author:** [@g\_pallavi1](https://www.ruby-forum.com/u/g_pallavi1)\
**Replies:** 0\
**Last updated:** [October 29, 2008, 6:50am UTC](https://www.ruby-forum.com/t/soap-object/152022 "2008-10-29T06:50:47Z")

</div>

Hi, I have written a SOAP4R client and have called a method on the Server. This method return me a SOAP::MAPPING::OBJECT. My problem is that I dont know how to access the contents of this SOAP::MAPPING::OBJECT. The m…

---

## [Code help for implementing online exam please](https://www.ruby-forum.com/t/code-help-for-implementing-online-exam-please/149641)

<div class="topic-metadata">

**Author:** [@rup](https://www.ruby-forum.com/u/rup)\
**Replies:** 5\
**Last updated:** [October 29, 2008, 6:15am UTC](https://www.ruby-forum.com/t/code-help-for-implementing-online-exam-please/149641 "2008-10-29T06:15:51Z")

</div>

Hi, I have been trying to write code for making an online exam management system. I could not think about a logic to implement the actual exam. Here is the problem: I have a questions table with fields like- id, ques…

---

## [Contact Page with ActionMailer](https://www.ruby-forum.com/t/contact-page-with-actionmailer/151580)

<div class="topic-metadata">

**Author:** [@bbnnt](https://www.ruby-forum.com/u/bbnnt)\
**Replies:** 7\
**Last updated:** [October 29, 2008, 6:15am UTC](https://www.ruby-forum.com/t/contact-page-with-actionmailer/151580 "2008-10-29T06:15:51Z")

</div>

Hello, I am trying to make a very basic “contact me” form on my website. I have tried the following tutorials: http://railsforum.com/viewtopic.php?id=15172 http://railsforum.com/viewtopic.php?id=404 http://forums.sit…

---

## [Problem starting WEBrick](https://www.ruby-forum.com/t/problem-starting-webrick/151954)

<div class="topic-metadata">

**Author:** [@amin1426](https://www.ruby-forum.com/u/amin1426)\
**Replies:** 3\
**Last updated:** [October 29, 2008, 4:58am UTC](https://www.ruby-forum.com/t/problem-starting-webrick/151954 "2008-10-29T04:58:42Z")

</div>

Ruby nuby here, but this seems like I overlooked something. I’m running Rails 2.1.1 on Mac OS Leopard. I go into terminal and create an app: rails whatever I move into my app and try to start WEBrick cd ./whatever …

---

## [Rmagick wouldn't load on server for windows](https://www.ruby-forum.com/t/rmagick-wouldnt-load-on-server-for-windows/151997)

<div class="topic-metadata">

**Author:** [@flychunjae](https://www.ruby-forum.com/u/flychunjae)\
**Replies:** 2\
**Last updated:** [October 29, 2008, 3:18am UTC](https://www.ruby-forum.com/t/rmagick-wouldnt-load-on-server-for-windows/151997 "2008-10-29T03:18:24Z")

</div>

In windows, i’m trying to load rmagick for my app so i put require ‘RMagick’ in environment.rb but the server wouldn’t start and it gives me this error: C:/ruby/lib/ruby/gems/1.8/gems/rmagick-2.6.0-x86-mswin32/ext/RM…

---

## [Backgroundrb misbehaving again](https://www.ruby-forum.com/t/backgroundrb-misbehaving-again/152008)

<div class="topic-metadata">

**Author:** [@bruparel](https://www.ruby-forum.com/u/bruparel)\
**Replies:** 1\
**Last updated:** [October 29, 2008, 2:26am UTC](https://www.ruby-forum.com/t/backgroundrb-misbehaving-again/152008 "2008-10-29T02:26:09Z")

</div>

I have a really strange problem with Backgroundrb. On one of my staging servers, it is not recognizing the RAILS\_ENV variable for some reason. I have tried everything I could, that is: a) stopping and starting from t…

---

## [TeachMate.org goes opensource](https://www.ruby-forum.com/t/teachmate-org-goes-opensource/151872)

<div class="topic-metadata">

**Author:** [@snitko](https://www.ruby-forum.com/u/snitko)\
**Replies:** 10\
**Last updated:** [October 29, 2008, 12:29am UTC](https://www.ruby-forum.com/t/teachmate-org-goes-opensource/151872 "2008-10-29T00:29:05Z")

</div>

Today I published TeachMate.org source code on github. You can download it, modify and contribute. I will review your code and, if it’s okay, there’s a high probability I’ll merge it with my repo and deploy to the ser…

---

## [How to override one method of AssetTagHelper](https://www.ruby-forum.com/t/how-to-override-one-method-of-assettaghelper/151985)

<div class="topic-metadata">

**Author:** [@rgagnon](https://www.ruby-forum.com/u/rgagnon)\
**Replies:** 7\
**Last updated:** [October 28, 2008, 11:26pm UTC](https://www.ruby-forum.com/t/how-to-override-one-method-of-assettaghelper/151985 "2008-10-28T23:26:14Z")

</div>

I created a file ./lib/action\_view/helpers/asset\_tag\_helper.rb and put in it only the method I want to override. like this module ActionView module Helpers #:nodoc: module AssetTagHelper def image\_path(source) comp…

---

## [Script/Runner](https://www.ruby-forum.com/t/script-runner/152010)

<div class="topic-metadata">

**Author:** [@hypnos](https://www.ruby-forum.com/u/hypnos)\
**Replies:** 1\
**Last updated:** [October 28, 2008, 11:24pm UTC](https://www.ruby-forum.com/t/script-runner/152010 "2008-10-28T23:24:43Z")

</div>

I have a production site that has a couple of batch jobs, I have used script/runner and cron to run these jobs. This works ok for jobs that only run once overnight during off peak. I am expiring sessions older than 3…

---

## [Iterating through all model records without pre-instantiating them](https://www.ruby-forum.com/t/iterating-through-all-model-records-without-pre-instantiating-them/151984)

<div class="topic-metadata">

**Author:** [@Pilaf](https://www.ruby-forum.com/u/Pilaf)\
**Replies:** 2\
**Last updated:** [October 28, 2008, 10:55pm UTC](https://www.ruby-forum.com/t/iterating-through-all-model-records-without-pre-instantiating-them/151984 "2008-10-28T22:55:26Z")

</div>

Hi, I’m writing a migration script which has to, well, actually migrate all data from table A to table B, but I need to access the application logic in model A for each row migrated. I could do this: MyModel.all.each…

---

## [File upload via non-browser REST call (using attachment\_fu)](https://www.ruby-forum.com/t/file-upload-via-non-browser-rest-call-using-attachment-fu/152007)

<div class="topic-metadata">

**Author:** [@namxam](https://www.ruby-forum.com/u/namxam)\
**Replies:** 0\
**Last updated:** [October 28, 2008, 10:31pm UTC](https://www.ruby-forum.com/t/file-upload-via-non-browser-rest-call-using-attachment-fu/152007 "2008-10-28T22:31:17Z")

</div>

Hi everyone, this might be a really stupid question but I have hit a wall here. I already tried various different strategies but I really cannot find a solution. The only thing which have not tried is to fake a browse…

---

## [Random SystemExit. ActiveRecord::StatementInvalid](https://www.ruby-forum.com/t/random-systemexit-activerecord-statementinvalid/151996)

<div class="topic-metadata">

**Author:** [@cgarada](https://www.ruby-forum.com/u/cgarada)\
**Replies:** 6\
**Last updated:** [October 28, 2008, 10:22pm UTC](https://www.ruby-forum.com/t/random-systemexit-activerecord-statementinvalid/151996 "2008-10-28T22:22:19Z")

</div>

I have this recurrent problem that I just can’t figure out. On several parts of the application when active record is executing some query it throws a ActiveRecord::StatementInvalid exit like this: A ActiveRecord::Sta…

---

## [Intranet applications](https://www.ruby-forum.com/t/intranet-applications/151998)

<div class="topic-metadata">

**Author:** [@soderic](https://www.ruby-forum.com/u/soderic)\
**Replies:** 5\
**Last updated:** [October 28, 2008, 9:14pm UTC](https://www.ruby-forum.com/t/intranet-applications/151998 "2008-10-28T21:14:19Z")

</div>

Hello, I am getting ready to start building an intranet for a small company i work for. I have a question about the general architecture of such a thing. the intranet itself will contain multiple applications for var…

---

## [Oracle\_enhanced adapter 'uninitialized constant' error](https://www.ruby-forum.com/t/oracle-enhanced-adapter-uninitialized-constant-error/151995)

<div class="topic-metadata">

**Author:** [@cetric\_blue](https://www.ruby-forum.com/u/cetric_blue)\
**Replies:** 0\
**Last updated:** [October 28, 2008, 8:07pm UTC](https://www.ruby-forum.com/t/oracle-enhanced-adapter-uninitialized-constant-error/151995 "2008-10-28T20:07:23Z")

</div>

Hi, Can any one help me? I’m using Ubuntu and trying to connect to an oracle database using oracle\_enhanced adapter connection, but keeps getting following error: /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/a…

---

## [Cookies and IE7. Circumvent 4KB limit?](https://www.ruby-forum.com/t/cookies-and-ie7-circumvent-4kb-limit/151917)

<div class="topic-metadata">

**Author:** [@chrisdwan](https://www.ruby-forum.com/u/chrisdwan)\
**Replies:** 3\
**Last updated:** [October 28, 2008, 7:57pm UTC](https://www.ruby-forum.com/t/cookies-and-ie7-circumvent-4kb-limit/151917 "2008-10-28T19:57:59Z")

</div>

I run a website with a Google Maps on there on which I draw custom tile images with the help of RMagick. To give a pleasant and responsive user experience I supply minimal position data through a cookie with the tiles…

---

## [Ruby application talking to Java application (IPC suggestions please)](https://www.ruby-forum.com/t/ruby-application-talking-to-java-application-ipc-suggestions-please/151945)

<div class="topic-metadata">

**Author:** [@Hubert\_SSSSSSSSSpic](https://www.ruby-forum.com/u/Hubert_SSSSSSSSSpic)\
**Replies:** 3\
**Last updated:** [October 28, 2008, 7:42pm UTC](https://www.ruby-forum.com/t/ruby-application-talking-to-java-application-ipc-suggestions-please/151945 "2008-10-28T19:42:44Z")

</div>

Hi all, I’m wondering how can I make RoR application talk to Java application running in background. Does anyone have any experience with this kind of stuff? Anny suggestions welcome. I am running Ruby on MRI, and Ja…

---

## [Sudden failure of redirect in ActionController +verify+](https://www.ruby-forum.com/t/sudden-failure-of-redirect-in-actioncontroller-verify/151979)

<div class="topic-metadata">

**Author:** [@fritza](https://www.ruby-forum.com/u/fritza)\
**Replies:** 1\
**Last updated:** [October 28, 2008, 7:11pm UTC](https://www.ruby-forum.com/t/sudden-failure-of-redirect-in-actioncontroller-verify/151979 "2008-10-28T19:11:44Z")

</div>

= SUMMARY An ActionController +verify+ directive redirects to an :action if certain actions are not done by POST. In one case, the redirect is to an empty hash instead; in another, nearly identical, it is to the corre…

---

## [Chat Client integrated into Rails](https://www.ruby-forum.com/t/chat-client-integrated-into-rails/151910)

<div class="topic-metadata">

**Author:** [@miked](https://www.ruby-forum.com/u/miked)\
**Replies:** 3\
**Last updated:** [October 28, 2008, 7:11pm UTC](https://www.ruby-forum.com/t/chat-client-integrated-into-rails/151910 "2008-10-28T19:11:33Z")

</div>

Does anyone have any experience, used any software to integrate a chat client into rails? I want incoming users to a public site to be able to chat with a set of represntatives on an intranet. Thanks to the communit…

---

## [Simple Routes Question](https://www.ruby-forum.com/t/simple-routes-question/151987)

<div class="topic-metadata">

**Author:** [@Nicktabs](https://www.ruby-forum.com/u/Nicktabs)\
**Replies:** 1\
**Last updated:** [October 28, 2008, 7:02pm UTC](https://www.ruby-forum.com/t/simple-routes-question/151987 "2008-10-28T19:02:04Z")

</div>

I currently have list of different articles (in this case health articles) at the moment their show URL format is: http://localhost:3000/conditions/1 but I would like a more descriptive URL than this, so I would like …

---

## [Old Rails app: can't find file\_column gem?](https://www.ruby-forum.com/t/old-rails-app-cant-find-file-column-gem/151972)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 1\
**Last updated:** [October 28, 2008, 7:01pm UTC](https://www.ruby-forum.com/t/old-rails-app-cant-find-file-column-gem/151972 "2008-10-28T19:01:04Z")

</div>

Hi all I’m trying to get some old Rails app to work. But when trying to start it, I get the following error: josh$ script/server =\> Booting WEBrick… ./script/…/config/…/config/environment.rb:5: warning: already ini…

---

## [Old Rails app: strange problem with getaddrinfo](https://www.ruby-forum.com/t/old-rails-app-strange-problem-with-getaddrinfo/151968)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 3\
**Last updated:** [October 28, 2008, 6:55pm UTC](https://www.ruby-forum.com/t/old-rails-app-strange-problem-with-getaddrinfo/151968 "2008-10-28T18:55:40Z")

</div>

Hi all I’m trying to get an old Rails App (RAILS\_GEM\_VERSION = ‘1.1.6’) to work again; Strangely I get the following error on most pages, and I don’t have any idea where it could come from: SocketError in Startseite…

---

## [Generating a random number](https://www.ruby-forum.com/t/generating-a-random-number/151116)

<div class="topic-metadata">

**Author:** [@command0](https://www.ruby-forum.com/u/command0)\
**Replies:** 5\
**Last updated:** [October 28, 2008, 6:19pm UTC](https://www.ruby-forum.com/t/generating-a-random-number/151116 "2008-10-28T18:19:45Z")

</div>

Hey guys, Ok, so right now I am working on generating a random number with ruby or rails? So far I have gathered that I somehow or another want to use the rand() helper to so, but not sure how to do it to achieve wha…

---

## [Paginator](https://www.ruby-forum.com/t/paginator/151975)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [October 28, 2008, 5:10pm UTC](https://www.ruby-forum.com/t/paginator/151975 "2008-10-28T17:10:35Z")

</div>

I want to use a paginator-1.1.0 for my list of books in radiant extension plugin. Can you help me, in which way I can create it. Write me soon regards Roberto

---

## [Writing Tests & Assertions?](https://www.ruby-forum.com/t/writing-tests-assertions/151974)

<div class="topic-metadata">

**Author:** [@softf5ajivanet](https://www.ruby-forum.com/u/softf5ajivanet)\
**Replies:** 1\
**Last updated:** [October 28, 2008, 4:56pm UTC](https://www.ruby-forum.com/t/writing-tests-assertions/151974 "2008-10-28T16:56:28Z")

</div>

Hi, anyone know of any really good & quick guides I can read to learn up on writing Test’s for my Rails apps? Something that i really really need to improve on. any ideas? appreciate it

---

## [\[JOBS\] - Ruby on Rails in Annapolis Junction, Maryland - need to be CLEARABLE](https://www.ruby-forum.com/t/jobs-ruby-on-rails-in-annapolis-junction-maryland-need-to-be-clearable/151970)

<div class="topic-metadata">

**Author:** [@jennifer](https://www.ruby-forum.com/u/jennifer)\
**Replies:** 0\
**Last updated:** [October 28, 2008, 4:11pm UTC](https://www.ruby-forum.com/t/jobs-ruby-on-rails-in-annapolis-junction-maryland-need-to-be-clearable/151970 "2008-10-28T16:11:49Z")

</div>

Job Title: Software Engineer (523-08) At Praxis Engineering, we value customer and mission success. That value is driven by our passion for technology. This marriage is just one of the reasons we are a leader in softw…

---

## [Can not install sqlite3-ruby](https://www.ruby-forum.com/t/can-not-install-sqlite3-ruby/151947)

<div class="topic-metadata">

**Author:** [@Khaled\_mahmud\_K](https://www.ruby-forum.com/u/Khaled_mahmud_K)\
**Replies:** 1\
**Last updated:** [October 28, 2008, 3:31pm UTC](https://www.ruby-forum.com/t/can-not-install-sqlite3-ruby/151947 "2008-10-28T15:31:16Z")

</div>

Hi Friends, I could not setup sqlite3. When I type “gem install sqlite3-ruby –version 1.2.4” in the command prompt. The following problem is arising. C:\>gem install sqlite3-ruby --version 1.2.4 Building native exten…

---

## [Has\_many :through, with condition](https://www.ruby-forum.com/t/has-many-through-with-condition/151693)

<div class="topic-metadata">

**Author:** [@larsch](https://www.ruby-forum.com/u/larsch)\
**Replies:** 5\
**Last updated:** [October 28, 2008, 2:58pm UTC](https://www.ruby-forum.com/t/has-many-through-with-condition/151693 "2008-10-28T14:58:58Z")

</div>

I have this simple model with orders and products. Orders looks like this: class Order \< ActiveRecord::Base has\_many :orders\_products, :foreign\_key =\> :order\_id has\_many :products, :through =\> :orders\_products has\_m…

---

## [Strange saving problem](https://www.ruby-forum.com/t/strange-saving-problem/151567)

<div class="topic-metadata">

**Author:** [@shagymoe](https://www.ruby-forum.com/u/shagymoe)\
**Replies:** 16\
**Last updated:** [October 28, 2008, 2:03pm UTC](https://www.ruby-forum.com/t/strange-saving-problem/151567 "2008-10-28T14:03:17Z")

</div>

I’ve got some code that more or less looks like this: class Project \< ActiveRecord::Base def create\_new\_document document = Document.new document.attributes = { "project\_id" =\> self.id, "attri…

---

## [So how does everybody else deal with changes in Rails?](https://www.ruby-forum.com/t/so-how-does-everybody-else-deal-with-changes-in-rails/151958)

<div class="topic-metadata">

**Author:** [@Morgan\_G](https://www.ruby-forum.com/u/Morgan_G)\
**Replies:** 1\
**Last updated:** [October 28, 2008, 1:47pm UTC](https://www.ruby-forum.com/t/so-how-does-everybody-else-deal-with-changes-in-rails/151958 "2008-10-28T13:47:50Z")

</div>

What process do you use to fix the various problems the come about when you update your Rails version? Ie., when going from Rails 1.2 to 2.0/2.1 I’ve had to monkeypatch Globalize to make it work. 2.2.0 RC1 breaks Gl…

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

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