# Rails

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

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

---

## [Deployment?](https://www.ruby-forum.com/t/deployment/147146)

<div class="topic-metadata">

**Author:** [@Lance\_May](https://www.ruby-forum.com/u/Lance_May)\
**Replies:** 1\
**Last updated:** [August 28, 2008, 8:45pm UTC](https://www.ruby-forum.com/t/deployment/147146 "2008-08-28T20:45:42Z")

</div>

I’m new to Rails (and Ruby), and come from a heavy Microsoft background. I’m having very little issue with the syntactical side of things, and much more with the culture shock of standard operating procedures for “rea…

---

## [Line item confusion](https://www.ruby-forum.com/t/line-item-confusion/147144)

<div class="topic-metadata">

**Author:** [@tyliong](https://www.ruby-forum.com/u/tyliong)\
**Replies:** 0\
**Last updated:** [August 28, 2008, 8:31pm UTC](https://www.ruby-forum.com/t/line-item-confusion/147144 "2008-08-28T20:31:36Z")

</div>

I am trying to create a search engine that will save an item of a user into a line item. When the user searches inside his home page(localhost/user/3) each item displayed in the search has a button link to add to the …

---

## [Has\_one with :source\_type](https://www.ruby-forum.com/t/has-one-with-source-type/147142)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 0\
**Last updated:** [August 28, 2008, 7:19pm UTC](https://www.ruby-forum.com/t/has-one-with-source-type/147142 "2008-08-28T19:19:29Z")

</div>

I am trying to extend the classic example class Magazine \< ActiveRecord::Base has\_many :subscriptions has\_many :rental\_events , :through =\> : subscriptions, :source =\> :redaer, :source\_type…

---

## [Rails Migrations and database views](https://www.ruby-forum.com/t/rails-migrations-and-database-views/147136)

<div class="topic-metadata">

**Author:** [@sinoda](https://www.ruby-forum.com/u/sinoda)\
**Replies:** 2\
**Last updated:** [August 28, 2008, 7:06pm UTC](https://www.ruby-forum.com/t/rails-migrations-and-database-views/147136 "2008-08-28T19:06:33Z")

</div>

I have a DB2 schema with many ‘views’ and table partitions defined in it. As per our new project requirement we have to support multiple databases (DB2,Oracle and MYSQL to be specific). The frontend application is imp…

---

## [Generating links iin mails : Action Mailer](https://www.ruby-forum.com/t/generating-links-iin-mails-action-mailer/145491)

<div class="topic-metadata">

**Author:** [@sgudibanda](https://www.ruby-forum.com/u/sgudibanda)\
**Replies:** 2\
**Last updated:** [August 28, 2008, 6:37pm UTC](https://www.ruby-forum.com/t/generating-links-iin-mails-action-mailer/145491 "2008-08-28T18:37:13Z")

</div>

Hi, I am using action mailer. I want to use embedded links such as : Instead of using http://www.mycompany.com , i want it as My Company which can be clicked with href to http://www.mycompany.com. But in the mails th…

---

## [Rails 2.x Configuration Cheat Sheet](https://www.ruby-forum.com/t/rails-2-x-configuration-cheat-sheet/147132)

<div class="topic-metadata">

**Author:** [@chovy](https://www.ruby-forum.com/u/chovy)\
**Replies:** 0\
**Last updated:** [August 28, 2008, 6:05pm UTC](https://www.ruby-forum.com/t/rails-2-x-configuration-cheat-sheet/147132 "2008-08-28T18:05:05Z")

</div>

In case anyone is interested, I’ve created a 2.x configuration cheat sheet and put it up on github. The blog post on it is here: http://blog.anthonyeden.com/2008/08/28/rails-2x-configuration-cheat-sheet/ and the file …

---

## [Progress OpenEdge and rails](https://www.ruby-forum.com/t/progress-openedge-and-rails/128043)

<div class="topic-metadata">

**Author:** [@jimache](https://www.ruby-forum.com/u/jimache)\
**Replies:** 5\
**Last updated:** [August 28, 2008, 5:59pm UTC](https://www.ruby-forum.com/t/progress-openedge-and-rails/128043 "2008-08-28T17:59:10Z")

</div>

Hi everyone, I am starting a new project and the back-end database is a Progress OpenEdge db. Has anyone used ruby/rails with such a database. Are there any drivers that i can use to connect to OpenEdge? Any input i…

---

## [Anonymous scopes hitting database](https://www.ruby-forum.com/t/anonymous-scopes-hitting-database/147059)

<div class="topic-metadata">

**Author:** [@jdevine](https://www.ruby-forum.com/u/jdevine)\
**Replies:** 2\
**Last updated:** [August 28, 2008, 5:58pm UTC](https://www.ruby-forum.com/t/anonymous-scopes-hitting-database/147059 "2008-08-28T17:58:38Z")

</div>

From what I can understand, I should be able to treat an anonymous scope as an intermediary object with which to build queries on the fly. Following the procedure in Railscast episode 112 (http:// #112 Anonymous Scop…

---

## [Array mangled from view to controller](https://www.ruby-forum.com/t/array-mangled-from-view-to-controller/147126)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 0\
**Last updated:** [August 28, 2008, 5:26pm UTC](https://www.ruby-forum.com/t/array-mangled-from-view-to-controller/147126 "2008-08-28T17:26:24Z")

</div>

Hi, Ruby 1.8.6 Rails 1.2.6 I have a simple @conditions variable setup in a controller’s “list” method. It looks something like: \[“abbr = ? and (start\_date between ? and ?)”, “AZ”, ‘2008-08-01’, ‘2008-08-31’\] From …

---

## [Forcing the Loading of Named Routes](https://www.ruby-forum.com/t/forcing-the-loading-of-named-routes/147078)

<div class="topic-metadata">

**Author:** [@mwalsh](https://www.ruby-forum.com/u/mwalsh)\
**Replies:** 2\
**Last updated:** [August 28, 2008, 4:15pm UTC](https://www.ruby-forum.com/t/forcing-the-loading-of-named-routes/147078 "2008-08-28T16:15:44Z")

</div>

Hi all, I have a spec for my controller (and its routing) that looks like this: describe "named routes" do before do # mini-hack: need a GET before the named routes are loaded get :index end …

---

## [Generate sequential numbers from database](https://www.ruby-forum.com/t/generate-sequential-numbers-from-database/147112)

<div class="topic-metadata">

**Author:** [@reynar](https://www.ruby-forum.com/u/reynar)\
**Replies:** 2\
**Last updated:** [August 28, 2008, 3:54pm UTC](https://www.ruby-forum.com/t/generate-sequential-numbers-from-database/147112 "2008-08-28T15:54:53Z")

</div>

Hi, I’m using single table inheritance to handle customer baskets, sales orders, sales invoices etc… Due to this I don’t really want to use the table id as the order reference, invoice number etc as the baskets would…

---

## [Strange error when starting webrick/mongrel server](https://www.ruby-forum.com/t/strange-error-when-starting-webrick-mongrel-server/147069)

<div class="topic-metadata">

**Author:** [@dhaval\_parikh33](https://www.ruby-forum.com/u/dhaval_parikh33)\
**Replies:** 5\
**Last updated:** [August 28, 2008, 3:32pm UTC](https://www.ruby-forum.com/t/strange-error-when-starting-webrick-mongrel-server/147069 "2008-08-28T15:32:48Z")

</div>

hi all, my application crashed so tried starting the server for it again but i’m getting a strange error when i start server with ruby script/server -v 4000 or ruby script/server webrick -v 4000 as - “=\> Booting Mo…

---

## [Error in Migration](https://www.ruby-forum.com/t/error-in-migration/147075)

<div class="topic-metadata">

**Author:** [@Naga\_harish\_K](https://www.ruby-forum.com/u/Naga_harish_K)\
**Replies:** 3\
**Last updated:** [August 28, 2008, 3:04pm UTC](https://www.ruby-forum.com/t/error-in-migration/147075 "2008-08-28T15:04:19Z")

</div>

Hi all, I have an error while running the migration. The following is the problem. I have a table called sequences. Am adding a column called ‘seq\_type’ in migration Version 79. and after adding am also inserting a r…

---

## [Problems while updating gem](https://www.ruby-forum.com/t/problems-while-updating-gem/147108)

<div class="topic-metadata">

**Author:** [@spross](https://www.ruby-forum.com/u/spross)\
**Replies:** 0\
**Last updated:** [August 28, 2008, 2:37pm UTC](https://www.ruby-forum.com/t/problems-while-updating-gem/147108 "2008-08-28T14:37:25Z")

</div>

gem update --system Updating RubyGems… Attempting remote update of rubygems-update Successfully installed rubygems-update-1.0.0 Updating version of RubyGems to 1.2.0 ERROR: While executing gem … (Errno::ENOENT) No …

---

## [Join sql query in rubyonrails](https://www.ruby-forum.com/t/join-sql-query-in-rubyonrails/146996)

<div class="topic-metadata">

**Author:** [@jicksta](https://www.ruby-forum.com/u/jicksta)\
**Replies:** 13\
**Last updated:** [August 28, 2008, 2:32pm UTC](https://www.ruby-forum.com/t/join-sql-query-in-rubyonrails/146996 "2008-08-28T14:32:43Z")

</div>

hi, I have two tables: businesses and locations. The relationship is the same location can have many businesses. For e.g: Telstra is in sydney and optus can be in sydney as well. Here’s how I have defined relation: ==…

---

## [Trying to insert a date](https://www.ruby-forum.com/t/trying-to-insert-a-date/147064)

<div class="topic-metadata">

**Author:** [@dacbo](https://www.ruby-forum.com/u/dacbo)\
**Replies:** 3\
**Last updated:** [August 28, 2008, 2:10pm UTC](https://www.ruby-forum.com/t/trying-to-insert-a-date/147064 "2008-08-28T14:10:46Z")

</div>

I’m a Ruby on Rails and MySQL newbie, trying to get started with the lynda.com training, so excuse my ignorance. Using Ruby 1.8.6, Rails 1.1.6, and mysql 14.12 Distrib 5.051b for Win32 on a Vista machine (not using t…

---

## ["Unable to instantiate observers" !?](https://www.ruby-forum.com/t/unable-to-instantiate-observers/147104)

<div class="topic-metadata">

**Author:** [@ANSS](https://www.ruby-forum.com/u/ANSS)\
**Replies:** 0\
**Last updated:** [August 28, 2008, 2:07pm UTC](https://www.ruby-forum.com/t/unable-to-instantiate-observers/147104 "2008-08-28T14:07:29Z")

</div>

Hi, When I run ‘rake db:migrate’, I get this error message: “Unable to instantiate observers, some gems that this application depends on are missing. Run ‘rake gems:install’”\> When I run ‘rake gems:install’ as the …

---

## [How to pass uri?](https://www.ruby-forum.com/t/how-to-pass-uri/147087)

<div class="topic-metadata">

**Author:** [@dharmdip](https://www.ruby-forum.com/u/dharmdip)\
**Replies:** 3\
**Last updated:** [August 28, 2008, 1:59pm UTC](https://www.ruby-forum.com/t/how-to-pass-uri/147087 "2008-08-28T13:59:50Z")

</div>

Hi , i want to pass uri and when URI is successful pass i want data of passed URI in my database ? ? ? ? ? help me !

---

## [POST Requests are mapped to my index action](https://www.ruby-forum.com/t/post-requests-are-mapped-to-my-index-action/146698)

<div class="topic-metadata">

**Author:** [@christoph](https://www.ruby-forum.com/u/christoph)\
**Replies:** 8\
**Last updated:** [August 28, 2008, 1:42pm UTC](https://www.ruby-forum.com/t/post-requests-are-mapped-to-my-index-action/146698 "2008-08-28T13:42:13Z")

</div>

Hi all ! I’ve got a problem in my application. I’ve written a bug\_reports controller. It is pretty RESTful, there are index, new and create actions. Everytime I submit a new bug\_report, the index action is called, no…

---

## [How to frame the regular expression for special characters](https://www.ruby-forum.com/t/how-to-frame-the-regular-expression-for-special-characters/147099)

<div class="topic-metadata">

**Author:** [@palani](https://www.ruby-forum.com/u/palani)\
**Replies:** 0\
**Last updated:** [August 28, 2008, 1:35pm UTC](https://www.ruby-forum.com/t/how-to-frame-the-regular-expression-for-special-characters/147099 "2008-08-28T13:35:31Z")

</div>

Hi, I am newbie to ruby … how to frame the regular expression for special character like ~,@,#,%,\*,& etc… If user enter any one of these character i should validate these type of character by manaually.please any one…

---

## [Catch forgery errors](https://www.ruby-forum.com/t/catch-forgery-errors/146789)

<div class="topic-metadata">

**Author:** [@mrdamien](https://www.ruby-forum.com/u/mrdamien)\
**Replies:** 1\
**Last updated:** [August 28, 2008, 1:31pm UTC](https://www.ruby-forum.com/t/catch-forgery-errors/146789 "2008-08-28T13:31:51Z")

</div>

Hi all, I am using ajax for some request but when the user session expire, I get a ActionController::InvalidAuthenticityToke error. Do you know how I could trap this error and redirect to the login panel ?

---

## [Tree structure in rails?](https://www.ruby-forum.com/t/tree-structure-in-rails/147093)

<div class="topic-metadata">

**Author:** [@sunfish](https://www.ruby-forum.com/u/sunfish)\
**Replies:** 2\
**Last updated:** [August 28, 2008, 1:18pm UTC](https://www.ruby-forum.com/t/tree-structure-in-rails/147093 "2008-08-28T13:18:04Z")

</div>

Hi, Is there is any way in ruby on rails where we show all my groups there subgroups with check boxes in tree structure way? e.g group A | ----Group A.1 | ----Group A.2 …

---

## [\[ANN\] Mysqlplus a new thread aware MySQL driver](https://www.ruby-forum.com/t/ann-mysqlplus-a-new-thread-aware-mysql-driver/147096)

<div class="topic-metadata">

**Author:** [@oldmoe](https://www.ruby-forum.com/u/oldmoe)\
**Replies:** 0\
**Last updated:** [August 28, 2008, 1:09pm UTC](https://www.ruby-forum.com/t/ann-mysqlplus-a-new-thread-aware-mysql-driver/147096 "2008-08-28T13:09:07Z")

</div>

I am pleased to announce the availability of a new MySQL driver. Mysqlplus. The driver builds on the original MySQL C extension but adds two important features 1 - Asynchronous command processing support 2 - Threaded…

---

## [Auto copy](https://www.ruby-forum.com/t/auto-copy/147094)

<div class="topic-metadata">

**Author:** [@anasmd](https://www.ruby-forum.com/u/anasmd)\
**Replies:** 0\
**Last updated:** [August 28, 2008, 1:08pm UTC](https://www.ruby-forum.com/t/auto-copy/147094 "2008-08-28T13:08:35Z")

</div>

im trying for auto copy option. If i click on perticular link it must be autometically copied to “clip board”. please any one help me regarding this.

---

## [Unique db ID](https://www.ruby-forum.com/t/unique-db-id/146886)

<div class="topic-metadata">

**Author:** [@mikael](https://www.ruby-forum.com/u/mikael)\
**Replies:** 2\
**Last updated:** [August 28, 2008, 11:03am UTC](https://www.ruby-forum.com/t/unique-db-id/146886 "2008-08-28T11:03:58Z")

</div>

Hi! In my db i store things like articles… and they are given an id like 17 or somthing. When i then delete article 17 and create a new one that one will have id 17, my question is: Is there a way to give that articel …

---

## [How to handle nested and not nested resource in an action's controller?](https://www.ruby-forum.com/t/how-to-handle-nested-and-not-nested-resource-in-an-actions-controller/147084)

<div class="topic-metadata">

**Author:** [@adinda\_p](https://www.ruby-forum.com/u/adinda_p)\
**Replies:** 0\
**Last updated:** [August 28, 2008, 11:01am UTC](https://www.ruby-forum.com/t/how-to-handle-nested-and-not-nested-resource-in-an-actions-controller/147084 "2008-08-28T11:01:49Z")

</div>

Hi list, I don’t know whether the subject is understandable / what i really mean. I have a model which resources are nested and non-nested (CMIIW). Anyway, my routes.rb should explain: map.resources :speeches, :col…

---

## [\[JOB\] Rails Developer](https://www.ruby-forum.com/t/job-rails-developer/147082)

<div class="topic-metadata">

**Author:** [@Kinfo](https://www.ruby-forum.com/u/Kinfo)\
**Replies:** 0\
**Last updated:** [August 28, 2008, 10:54am UTC](https://www.ruby-forum.com/t/job-rails-developer/147082 "2008-08-28T10:54:11Z")

</div>

Kinfo is a well-funded start-up located in South Park, San Francisco. We’re building a great consumer service that people will love. We’ve got a great team, and a collaborative environment filled with smart, passionat…

---

## [How to pass a Ruby Array to a javascript function?](https://www.ruby-forum.com/t/how-to-pass-a-ruby-array-to-a-javascript-function/147016)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 2\
**Last updated:** [August 28, 2008, 10:50am UTC](https://www.ruby-forum.com/t/how-to-pass-a-ruby-array-to-a-javascript-function/147016 "2008-08-28T10:50:39Z")

</div>

I am passing a ruby array @myArray to a javascript function via rjs page \<\< “{ $ (‘my\_calendar’).calendar\_date\_select.classForMatrix(’#{@calendar\_matrix}’);}” the js function is the following : classForMatrix: funct…

---

## [Validations on update](https://www.ruby-forum.com/t/validations-on-update/147062)

<div class="topic-metadata">

**Author:** [@martin\_mercy2001](https://www.ruby-forum.com/u/martin_mercy2001)\
**Replies:** 1\
**Last updated:** [August 28, 2008, 10:42am UTC](https://www.ruby-forum.com/t/validations-on-update/147062 "2008-08-28T10:42:58Z")

</div>

Dear all, I have created a model Admin and validated for the presence, format\_of in alphabets, reg expression for email formats. When i was adding a new admin the data’s are validated properly but while updating the…

---

## [Render :update returning null](https://www.ruby-forum.com/t/render-update-returning-null/146949)

<div class="topic-metadata">

**Author:** [@rob](https://www.ruby-forum.com/u/rob)\
**Replies:** 4\
**Last updated:** [August 28, 2008, 10:05am UTC](https://www.ruby-forum.com/t/render-update-returning-null/146949 "2008-08-28T10:05:42Z")

</div>

I wondered if anyone can help me, I am trying to add some basic ajax to my new project but I’ve run into a problem. I have a RESTful ProductsController which uses pagination, I would like to basically re-render the in…

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

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