# Rails

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

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

---

## [Is there a better way to use migrations?](https://www.ruby-forum.com/t/is-there-a-better-way-to-use-migrations/91151)

<div class="topic-metadata">

**Author:** [@David\_Baldwin](https://www.ruby-forum.com/u/David_Baldwin)\
**Replies:** 2\
**Last updated:** [April 5, 2007, 5:41pm UTC](https://www.ruby-forum.com/t/is-there-a-better-way-to-use-migrations/91151 "2007-04-05T17:41:07Z")

</div>

I really like the migrations that Rails offers. However, I am wondering if I am missing an easier way to manage them. I have tried both of the methods suggested in AWDWR… I have employed the method of keeping all ch…

---

## [Storing a request for later execution](https://www.ruby-forum.com/t/storing-a-request-for-later-execution/91002)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [April 5, 2007, 5:39pm UTC](https://www.ruby-forum.com/t/storing-a-request-for-later-execution/91002 "2007-04-05T17:39:25Z")

</div>

Hi all, I’m looking for ideas. I want to implement a simple, but generic moderation system for RESTful rails controllers. Under certain circumstances, when a user submits a request (beit a GET/POST/PUT/DELETE), the re…

---

## [Form Observers](https://www.ruby-forum.com/t/form-observers/91034)

<div class="topic-metadata">

**Author:** [@fred](https://www.ruby-forum.com/u/fred)\
**Replies:** 3\
**Last updated:** [April 5, 2007, 5:26pm UTC](https://www.ruby-forum.com/t/form-observers/91034 "2007-04-05T17:26:05Z")

</div>

Can anyone help me with this form observer? I have a form in my page \<%= " ..... " %\> Followed by the observer \<%= observe\_form “notes\_#{id}”, :frequency =\> 2.5, :url =\> {:controller=\> ‘ajax\_test’, :acti…

---

## [Ez\_where problems](https://www.ruby-forum.com/t/ez-where-problems/91100)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [April 5, 2007, 5:24pm UTC](https://www.ruby-forum.com/t/ez-where-problems/91100 "2007-04-05T17:24:05Z")

</div>

Hi! I’m having a small problem with ez\_where. I’m sure it’s a simple fix…but if anybody can help, that would be excellent. I’m trying to run one query, and then run another one, sticking the results from the first i…

---

## [Ruby server restart](https://www.ruby-forum.com/t/ruby-server-restart/90983)

<div class="topic-metadata">

**Author:** [@james](https://www.ruby-forum.com/u/james)\
**Replies:** 2\
**Last updated:** [April 5, 2007, 5:21pm UTC](https://www.ruby-forum.com/t/ruby-server-restart/90983 "2007-04-05T17:21:50Z")

</div>

I am using Rails 1.1.6, with Oracle 10g db. I’m having a problem where multiple Oracle sessions are starting up in Oracle when I connect to my Rails site. The user will connect through the browser and a session is sta…

---

## [Defining a global scope on a model](https://www.ruby-forum.com/t/defining-a-global-scope-on-a-model/91200)

<div class="topic-metadata">

**Author:** [@chrisfarms](https://www.ruby-forum.com/u/chrisfarms)\
**Replies:** 0\
**Last updated:** [April 5, 2007, 4:59pm UTC](https://www.ruby-forum.com/t/defining-a-global-scope-on-a-model/91200 "2007-04-05T16:59:00Z")

</div>

Help! I’ve got a table sharing situation where Single Table Inheritance is not viable. I would like to be able to define a “scope” that is applied whenever I am using that model to allow me to construct my relationsh…

---

## [REST with :name as unique identifier, rather than :id](https://www.ruby-forum.com/t/rest-with-name-as-unique-identifier-rather-than-id/91193)

<div class="topic-metadata">

**Author:** [@tomtt](https://www.ruby-forum.com/u/tomtt)\
**Replies:** 2\
**Last updated:** [April 5, 2007, 4:28pm UTC](https://www.ruby-forum.com/t/rest-with-name-as-unique-identifier-rather-than-id/91193 "2007-04-05T16:28:55Z")

</div>

Hi all, Is it possible to implement REST with :name as a unique identifier of a model, instead of the :id? Having readable (literally) URLs is important to my application as many URLs are announced at conferences or …

---

## [REST route not working](https://www.ruby-forum.com/t/rest-route-not-working/91149)

<div class="topic-metadata">

**Author:** [@pezdude](https://www.ruby-forum.com/u/pezdude)\
**Replies:** 3\
**Last updated:** [April 5, 2007, 4:13pm UTC](https://www.ruby-forum.com/t/rest-route-not-working/91149 "2007-04-05T16:13:37Z")

</div>

I have a nested route that doesn’t want to work for me. In my routes.rb I have: ///////////// map.resources :orders, :collection =\> { :archived =\> :get, :search =\> :post } do |orders| orders.resources :shipments, :c…

---

## [Recommended application as example](https://www.ruby-forum.com/t/recommended-application-as-example/91183)

<div class="topic-metadata">

**Author:** [@gazoduc](https://www.ruby-forum.com/u/gazoduc)\
**Replies:** 3\
**Last updated:** [April 5, 2007, 4:08pm UTC](https://www.ruby-forum.com/t/recommended-application-as-example/91183 "2007-04-05T16:08:17Z")

</div>

Hi ! I am refactoring a big project (rails 1.1) and would like to see some inspiration from a well designed rails application using REST (rails 1.2). Many thanks for any recommendations. Gaspard

---

## [Conditions when using include](https://www.ruby-forum.com/t/conditions-when-using-include/91198)

<div class="topic-metadata">

**Author:** [@jason](https://www.ruby-forum.com/u/jason)\
**Replies:** 0\
**Last updated:** [April 5, 2007, 3:56pm UTC](https://www.ruby-forum.com/t/conditions-when-using-include/91198 "2007-04-05T15:56:00Z")

</div>

Ok, I have a sales\_order table that I need to list. I need to be able to filter this list of orders by their current route ( or status). Each sales\_order can have many histories associated with it. The most recent …

---

## [URL generation](https://www.ruby-forum.com/t/url-generation/91197)

<div class="topic-metadata">

**Author:** [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Replies:** 0\
**Last updated:** [April 5, 2007, 3:35pm UTC](https://www.ruby-forum.com/t/url-generation/91197 "2007-04-05T15:35:52Z")

</div>

How do I prepend all url’s in my application with a specific string so instead of generating URL’s of the form /:controller/:action/:id I would get /myString/:controller/:action/:id? I know I can use routes.rb and url…

---

## [Unexpected behavior of before\_validation](https://www.ruby-forum.com/t/unexpected-behavior-of-before-validation/91196)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [April 5, 2007, 3:21pm UTC](https://www.ruby-forum.com/t/unexpected-behavior-of-before-validation/91196 "2007-04-05T15:21:43Z")

</div>

Today I found these comments in active record’s callbacks.rb file: If the returning value of a before\_validation callback can be evaluated to false, the process will be aborted and Base#save will return false. If Ba…

---

## [URL check URL validity](https://www.ruby-forum.com/t/url-check-url-validity/91146)

<div class="topic-metadata">

**Author:** [@jimache](https://www.ruby-forum.com/u/jimache)\
**Replies:** 2\
**Last updated:** [April 5, 2007, 3:01pm UTC](https://www.ruby-forum.com/t/url-check-url-validity/91146 "2007-04-05T15:01:40Z")

</div>

Hi everyone, I have a web app that at some point asks for a URL … and i need to check that url’s validity … is there a way to do that in RoR… in C# i would to something along the lines of HttpWebRequest hReq = (Htt…

---

## [Newbie :: Create document from database](https://www.ruby-forum.com/t/newbie-create-document-from-database/102739)

<div class="topic-metadata">

**Author:** [@aveo](https://www.ruby-forum.com/u/aveo)\
**Replies:** 4\
**Last updated:** [April 5, 2007, 2:57pm UTC](https://www.ruby-forum.com/t/newbie-create-document-from-database/102739 "2007-04-05T14:57:29Z")

</div>

Hi all, I am newbie to ruby. I am creating web based data management tool using ruby on rails. I’ve done with interface and data management. Now I want to create a document from database. I want my database values s…

---

## [Ruby Roundup Podcast Episode 3 available](https://www.ruby-forum.com/t/ruby-roundup-podcast-episode-3-available/91192)

<div class="topic-metadata">

**Author:** [@sporb](https://www.ruby-forum.com/u/sporb)\
**Replies:** 0\
**Last updated:** [April 5, 2007, 2:44pm UTC](https://www.ruby-forum.com/t/ruby-roundup-podcast-episode-3-available/91192 "2007-04-05T14:44:35Z")

</div>

I am happy to announce the release of Episode 3 of the Ruby Roundup podcast. You can find it at http://rubyroundup.com or you can subscribe through iTunes. This is a weekly podcast covering the latest news and events …

---

## [No stacktrace on errors (edge rails)](https://www.ruby-forum.com/t/no-stacktrace-on-errors-edge-rails/90769)

<div class="topic-metadata">

**Author:** [@bluetrust](https://www.ruby-forum.com/u/bluetrust)\
**Replies:** 8\
**Last updated:** [April 5, 2007, 2:40pm UTC](https://www.ruby-forum.com/t/no-stacktrace-on-errors-edge-rails/90769 "2007-04-05T14:40:35Z")

</div>

Hi, I must be missing something or have something misconfigured, but I get no stack-trace when there is an error in the code behind a view. If the view doesn’t compile, then I see an error & stacktrace, but all other…

---

## [Saving memory in with fork() and copy on write](https://www.ruby-forum.com/t/saving-memory-in-with-fork-and-copy-on-write/91190)

<div class="topic-metadata">

**Author:** [@foobarwidget](https://www.ruby-forum.com/u/foobarwidget)\
**Replies:** 0\
**Last updated:** [April 5, 2007, 2:35pm UTC](https://www.ruby-forum.com/t/saving-memory-in-with-fork-and-copy-on-write/91190 "2007-04-05T14:35:16Z")

</div>

I wrote a blog entry, as well as a tool, on saving memory in Ruby on Rails using fork() and copy-on-write in modern Unix systems. I think this may be useful to some people. This is the URL: http://izumi.plan99.net/blo…

---

## [Date](https://www.ruby-forum.com/t/date/91188)

<div class="topic-metadata">

**Author:** [@fafa](https://www.ruby-forum.com/u/fafa)\
**Replies:** 0\
**Last updated:** [April 5, 2007, 2:04pm UTC](https://www.ruby-forum.com/t/date/91188 "2007-04-05T14:04:49Z")

</div>

Please, how to transform data from date\_select (a set of select boxes) to one Time? Is there a built-in function? I need something like create\_date(params\[:date\]) - this would collect all values from select boxes like…

---

## [Non-ruby-conform association question](https://www.ruby-forum.com/t/non-ruby-conform-association-question/91186)

<div class="topic-metadata">

**Author:** [@caefer](https://www.ruby-forum.com/u/caefer)\
**Replies:** 1\
**Last updated:** [April 5, 2007, 1:48pm UTC](https://www.ruby-forum.com/t/non-ruby-conform-association-question/91186 "2007-04-05T13:48:08Z")

</div>

Hi Folks, I have three tables: history hist\_id =\> Primary Key job\_id status\_id status\_time result\_id status status\_id =\> Primary Key status\_name params job\_id param\_name param\_value History contain somethi…

---

## [Routing to the main www subdomain for specific controllers](https://www.ruby-forum.com/t/routing-to-the-main-www-subdomain-for-specific-controllers/91132)

<div class="topic-metadata">

**Author:** [@ehudros](https://www.ruby-forum.com/u/ehudros)\
**Replies:** 3\
**Last updated:** [April 5, 2007, 1:23pm UTC](https://www.ruby-forum.com/t/routing-to-the-main-www-subdomain-for-specific-controllers/91132 "2007-04-05T13:23:14Z")

</div>

Hi everyone! I’m using subdomains as user identifiers (username.localhost.com maps to the profile of that user). However, that complicates things as I do not want all controllers to work with those subdomains. Let’s …

---

## [You have a nil object when you didn't expect it!](https://www.ruby-forum.com/t/you-have-a-nil-object-when-you-didnt-expect-it/91181)

<div class="topic-metadata">

**Author:** [@jonas](https://www.ruby-forum.com/u/jonas)\
**Replies:** 1\
**Last updated:** [April 5, 2007, 1:07pm UTC](https://www.ruby-forum.com/t/you-have-a-nil-object-when-you-didnt-expect-it/91181 "2007-04-05T13:07:35Z")

</div>

I get the following error when I try to create a new item (create action for a controller). You have a nil object when you didn’t expect it! The error occurred while evaluating nil.\<=

---

## [Updating multiple fields](https://www.ruby-forum.com/t/updating-multiple-fields/91059)

<div class="topic-metadata">

**Author:** [@Edgar\_O](https://www.ruby-forum.com/u/Edgar_O)\
**Replies:** 4\
**Last updated:** [April 5, 2007, 1:05pm UTC](https://www.ruby-forum.com/t/updating-multiple-fields/91059 "2007-04-05T13:05:41Z")

</div>

Hello i have 5 fields from an invoice system (code,name,price,qty,total) i want when the user insert a code, the system automatically fill all the info from the DB into these columns. any ideas pleased?

---

## [Observing textfields in a form (AJAX)](https://www.ruby-forum.com/t/observing-textfields-in-a-form-ajax/91178)

<div class="topic-metadata">

**Author:** [@Javier\_CH](https://www.ruby-forum.com/u/Javier_CH)\
**Replies:** 0\
**Last updated:** [April 5, 2007, 11:55am UTC](https://www.ruby-forum.com/t/observing-textfields-in-a-form-ajax/91178 "2007-04-05T11:55:00Z")

</div>

I have a problem and I don’t know where to begin with (yes, I’m a newbie ;-)): I have an application that holds a graph (with nodes and edges). In the view the user enters data that is then converted to nodes and edg…

---

## [Fork process from controller fails](https://www.ruby-forum.com/t/fork-process-from-controller-fails/91175)

<div class="topic-metadata">

**Author:** [@caefer](https://www.ruby-forum.com/u/caefer)\
**Replies:** 0\
**Last updated:** [April 5, 2007, 11:16am UTC](https://www.ruby-forum.com/t/fork-process-from-controller-fails/91175 "2007-04-05T11:16:13Z")

</div>

Hi Folks, in my controller I need to start a process that controls a task that could take quite a long time (duration: from seconds up to several hours). Because the task is monolithic (execution of a sybase stored p…

---

## [Newbie question about host configuration](https://www.ruby-forum.com/t/newbie-question-about-host-configuration/91166)

<div class="topic-metadata">

**Author:** [@fred](https://www.ruby-forum.com/u/fred)\
**Replies:** 1\
**Last updated:** [April 5, 2007, 11:12am UTC](https://www.ruby-forum.com/t/newbie-question-about-host-configuration/91166 "2007-04-05T11:12:55Z")

</div>

I put my webapp on a vitual host ,it has originally installed rails with the version of 1.1.4, however recently it has upgraded rails to the latest 1.2.3 and my webapp has used rails-engine and can not be restarted, c…

---

## [Create document from database](https://www.ruby-forum.com/t/create-document-from-database/91173)

<div class="topic-metadata">

**Author:** [@aveo](https://www.ruby-forum.com/u/aveo)\
**Replies:** 0\
**Last updated:** [April 5, 2007, 11:01am UTC](https://www.ruby-forum.com/t/create-document-from-database/91173 "2007-04-05T11:01:25Z")

</div>

Hi all, I am newbie to ruby. I am creating web based data management tool using ruby on rails. I’ve done with interface and data management. Now I want to create a document from database. I want my database values s…

---

## [(Newbie) Help adding own actions to restful controllers to c](https://www.ruby-forum.com/t/newbie-help-adding-own-actions-to-restful-controllers-to-c/91083)

<div class="topic-metadata">

**Author:** [@martinlooker](https://www.ruby-forum.com/u/martinlooker)\
**Replies:** 1\
**Last updated:** [April 5, 2007, 10:36am UTC](https://www.ruby-forum.com/t/newbie-help-adding-own-actions-to-restful-controllers-to-c/91083 "2007-04-05T10:36:22Z")

</div>

Firstly I’m just getting started with rails and am looking to work the RESTful way, While the info in Agile Web D. with Rails is helpful it is not fully describing what I am trying to achieve which is… I want to set …

---

## [Routing errors in production, RoR 1.2+](https://www.ruby-forum.com/t/routing-errors-in-production-ror-1-2/91075)

<div class="topic-metadata">

**Author:** [@Roland\_Bali](https://www.ruby-forum.com/u/Roland_Bali)\
**Replies:** 4\
**Last updated:** [April 5, 2007, 9:07am UTC](https://www.ruby-forum.com/t/routing-errors-in-production-ror-1-2/91075 "2007-04-05T09:07:10Z")

</div>

The application I’m working on has two user controllers. One is the main page a user reaches when after login /user/index.html and the other is a user administration page located at /admin/user/index.html. When deploy…

---

## [Ferret error](https://www.ruby-forum.com/t/ferret-error/91143)

<div class="topic-metadata">

**Author:** [@raj](https://www.ruby-forum.com/u/raj)\
**Replies:** 1\
**Last updated:** [April 5, 2007, 6:54am UTC](https://www.ruby-forum.com/t/ferret-error/91143 "2007-04-05T06:54:59Z")

</div>

When i run gem install ferret on my xp I get the follwing error and one of the application require ferret C:\\Documents and Settings.…\>gem install ferret Need to update 6 gems from http://gems.rubyforge.org … complet…

---

## [Problem with script/plugin install](https://www.ruby-forum.com/t/problem-with-script-plugin-install/91157)

<div class="topic-metadata">

**Author:** [@giorgio](https://www.ruby-forum.com/u/giorgio)\
**Replies:** 0\
**Last updated:** [April 5, 2007, 6:34am UTC](https://www.ruby-forum.com/t/problem-with-script-plugin-install/91157 "2007-04-05T06:34:51Z")

</div>

Whenever I try to install a plugin I get the following error: e:/apps/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/ active\_support/dependencies.rb:422:in remove\_const': cannot remove Object::OPT\_TABLE (NameError…

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

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