# Rails

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

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

---

## [Concept: using 2 databases in one project or how to separate migrations](https://www.ruby-forum.com/t/concept-using-2-databases-in-one-project-or-how-to-separate-migrations/149408)

<div class="topic-metadata">

**Author:** [@Fritzek](https://www.ruby-forum.com/u/Fritzek)\
**Replies:** 0\
**Last updated:** [September 24, 2008, 3:29pm UTC](https://www.ruby-forum.com/t/concept-using-2-databases-in-one-project-or-how-to-separate-migrations/149408 "2008-09-24T15:29:20Z")

</div>

Hi folks just a question of concept about using 2 databases for the same project. Situation: running a project which uses a plugin with its own database structure, migrations and initial data loads, now I want to ext…

---

## [Concept: using 2 databases in one project or how to sepaarate migrations](https://www.ruby-forum.com/t/concept-using-2-databases-in-one-project-or-how-to-sepaarate-migrations/149409)

<div class="topic-metadata">

**Author:** [@Fritzek](https://www.ruby-forum.com/u/Fritzek)\
**Replies:** 0\
**Last updated:** [September 24, 2008, 3:27pm UTC](https://www.ruby-forum.com/t/concept-using-2-databases-in-one-project-or-how-to-sepaarate-migrations/149409 "2008-09-24T15:27:00Z")

</div>

Hi folks just a question of concept about using 2 databases for the same project. Situation: running a project which uses a plugin with its own database structure, migrations and initial data loads, now I want to ext…

---

## [Trying to make gem dependencies work with rake gems:unpack](https://www.ruby-forum.com/t/trying-to-make-gem-dependencies-work-with-rake-gems-unpack/149345)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 2\
**Last updated:** [September 24, 2008, 3:24pm UTC](https://www.ruby-forum.com/t/trying-to-make-gem-dependencies-work-with-rake-gems-unpack/149345 "2008-09-24T15:24:39Z")

</div>

Hi, Ruby 1.8.6 Rails 2.1.1 Rake 0.8.2 I’m trying to install a local copy of the ‘will\_paginate’ gem using “rake gems:unpack GEM=will\_paginate”, but I’m not having much luck. I’ve added “config.gem ‘will\_paginate’” …

---

## [Add custom parameters to map.resources](https://www.ruby-forum.com/t/add-custom-parameters-to-map-resources/149404)

<div class="topic-metadata">

**Author:** [@berlin\_2.0](https://www.ruby-forum.com/u/berlin_2.0)\
**Replies:** 0\
**Last updated:** [September 24, 2008, 2:14pm UTC](https://www.ruby-forum.com/t/add-custom-parameters-to-map-resources/149404 "2008-09-24T14:14:37Z")

</div>

Hi, lets say I defined the following resources: map.resources :profiles Is it possible to add a custom parameter just to one action via a block in the map.resources statement? I found the following solutions: map.re…

---

## [Has\_many, has\_one and calling a self.method](https://www.ruby-forum.com/t/has-many-has-one-and-calling-a-self-method/149390)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 4\
**Last updated:** [September 24, 2008, 12:27pm UTC](https://www.ruby-forum.com/t/has-many-has-one-and-calling-a-self-method/149390 "2008-09-24T12:27:07Z")

</div>

Hi I have the following classes and relations ServiceDeskTicket has\_many :service\_desk\_status\_histories has\_one :service\_desk\_resolution ServiceDeskResolution belongs\_to :service\_desk\_ticket def self.add\_resolut…

---

## [Generating pdf documents with PDF, missing FPDI](https://www.ruby-forum.com/t/generating-pdf-documents-with-pdf-missing-fpdi/149393)

<div class="topic-metadata">

**Author:** [@liberte](https://www.ruby-forum.com/u/liberte)\
**Replies:** 0\
**Last updated:** [September 24, 2008, 12:25pm UTC](https://www.ruby-forum.com/t/generating-pdf-documents-with-pdf-missing-fpdi/149393 "2008-09-24T12:25:50Z")

</div>

Hello, with PHP I often generating PDF documents with the FPDF library. This library is ported to Rails and work fine for my tasks until now. Now I have to edit and extends some PDF master drafts with some text. Unde…

---

## [Modular applications](https://www.ruby-forum.com/t/modular-applications/149391)

<div class="topic-metadata">

**Author:** [@fatu](https://www.ruby-forum.com/u/fatu)\
**Replies:** 0\
**Last updated:** [September 24, 2008, 12:08pm UTC](https://www.ruby-forum.com/t/modular-applications/149391 "2008-09-24T12:08:52Z")

</div>

Hello everybody, I’ve just started studying Rails and I love it already for its simple, pragmatic spirit and the effectiveness and productivity that its approach brings. I’m thinking about building new applications o…

---

## [Disable link\_to\_remote tag](https://www.ruby-forum.com/t/disable-link-to-remote-tag/149392)

<div class="topic-metadata">

**Author:** [@subhadip](https://www.ruby-forum.com/u/subhadip)\
**Replies:** 0\
**Last updated:** [September 24, 2008, 12:04pm UTC](https://www.ruby-forum.com/t/disable-link-to-remote-tag/149392 "2008-09-24T12:04:06Z")

</div>

Hi, i have two link\_to\_remote tag,suppose when i click any one, the corresponding link is disable,and other link is clickable and vice versa also…is it possible ??please help with certain code or link.its urgent.

---

## [Model association help](https://www.ruby-forum.com/t/model-association-help/149343)

<div class="topic-metadata">

**Author:** [@ressister](https://www.ruby-forum.com/u/ressister)\
**Replies:** 7\
**Last updated:** [September 24, 2008, 11:59am UTC](https://www.ruby-forum.com/t/model-association-help/149343 "2008-09-24T11:59:29Z")

</div>

I’m having trouble with three models that need to play nice together: entry \<- stores diary entries entry\_category \<- links a diary entry to a category (entry\_id, category\_id) category \<- list of category names and at…

---

## [General question on design](https://www.ruby-forum.com/t/general-question-on-design/149382)

<div class="topic-metadata">

**Author:** [@bskaggs](https://www.ruby-forum.com/u/bskaggs)\
**Replies:** 1\
**Last updated:** [September 24, 2008, 11:34am UTC](https://www.ruby-forum.com/t/general-question-on-design/149382 "2008-09-24T11:34:13Z")

</div>

Hi I am thinking about the design of my application, I understand its crucial to limit the amount of core code from the view. I seemed to have designed my app in a way found in an online tutorial, and am now encounte…

---

## [No css formatting](https://www.ruby-forum.com/t/no-css-formatting/149328)

<div class="topic-metadata">

**Author:** [@himdel](https://www.ruby-forum.com/u/himdel)\
**Replies:** 6\
**Last updated:** [September 24, 2008, 10:39am UTC](https://www.ruby-forum.com/t/no-css-formatting/149328 "2008-09-24T10:39:39Z")

</div>

I’ve just moved a rails site across to a test server from my development PC. I’ve frozen rails and put all the relevant gems into the vendor/gems directory too. I’ve migrated the mysql database and configured Apache …

---

## [Attachment issue](https://www.ruby-forum.com/t/attachment-issue/148905)

<div class="topic-metadata">

**Author:** [@ayyanar](https://www.ruby-forum.com/u/ayyanar)\
**Replies:** 1\
**Last updated:** [September 24, 2008, 10:31am UTC](https://www.ruby-forum.com/t/attachment-issue/148905 "2008-09-24T10:31:15Z")

</div>

Hi, I generated the pdf file with image header (jpg log is displayed on top of the pdf file). I can see the logo and the datas in the pdf file generated. Fine. I tried to send the generated pdf in the email (using ac…

---

## [Pdf attachment to be in the same name](https://www.ruby-forum.com/t/pdf-attachment-to-be-in-the-same-name/147396)

<div class="topic-metadata">

**Author:** [@vidya1111](https://www.ruby-forum.com/u/vidya1111)\
**Replies:** 1\
**Last updated:** [September 24, 2008, 10:30am UTC](https://www.ruby-forum.com/t/pdf-attachment-to-be-in-the-same-name/147396 "2008-09-24T10:30:29Z")

</div>

Hi I am sending email with pdf attachment using ActionMailer. But when I am receiving it, it is received in a different file name like ATT00319.pdf I wanted to receive the attachment with original file name. Thanks i…

---

## [Script in rails](https://www.ruby-forum.com/t/script-in-rails/149377)

<div class="topic-metadata">

**Author:** [@vanight](https://www.ruby-forum.com/u/vanight)\
**Replies:** 1\
**Last updated:** [September 24, 2008, 10:19am UTC](https://www.ruby-forum.com/t/script-in-rails/149377 "2008-09-24T10:19:40Z")

</div>

Hi, Can someone tell me good web links about how to use a script in rails. Here the thing, I need to execute a script every day to generate reporting stuff, My script should access all data available in the database. …

---

## [AJAX help - proper use of remote\_function](https://www.ruby-forum.com/t/ajax-help-proper-use-of-remote-function/149369)

<div class="topic-metadata">

**Author:** [@michael\_teter](https://www.ruby-forum.com/u/michael_teter)\
**Replies:** 1\
**Last updated:** [September 24, 2008, 10:05am UTC](https://www.ruby-forum.com/t/ajax-help-proper-use-of-remote-function/149369 "2008-09-24T10:05:34Z")

</div>

Hi. I’m having a hard time understanding how to use remote\_function(). Here’s what I want to do: I have two divs. The one on the left lists criteria names. When the user clicks on one of the entries in the listbox …

---

## [Restful web service error on saving record](https://www.ruby-forum.com/t/restful-web-service-error-on-saving-record/149373)

<div class="topic-metadata">

**Author:** [@monica](https://www.ruby-forum.com/u/monica)\
**Replies:** 0\
**Last updated:** [September 24, 2008, 9:29am UTC](https://www.ruby-forum.com/t/restful-web-service-error-on-saving-record/149373 "2008-09-24T09:29:42Z")

</div>

Error is: NoMethodError: You have a nil object when you didn’t expect it! You might have expected an instance of ActiveRecord::Base. The error occurred while evaluating nil.\[\] from /www/gems/gems/activeresource-2.0.2…

---

## [Fleximage: hsowing image from db, need help](https://www.ruby-forum.com/t/fleximage-hsowing-image-from-db-need-help/149370)

<div class="topic-metadata">

**Author:** [@maep](https://www.ruby-forum.com/u/maep)\
**Replies:** 0\
**Last updated:** [September 24, 2008, 9:29am UTC](https://www.ruby-forum.com/t/fleximage-hsowing-image-from-db-need-help/149370 "2008-09-24T09:29:04Z")

</div>

Hi! For a few days I am struggling with Fleximage. Current problem is: I want to show image, loaded in database. I want, but I cant. In account model (acts\_as\_fleximage) there is a field image\_file\_data, images are…

---

## [Cannot start Mongrel](https://www.ruby-forum.com/t/cannot-start-mongrel/149362)

<div class="topic-metadata">

**Author:** [@crazybass](https://www.ruby-forum.com/u/crazybass)\
**Replies:** 7\
**Last updated:** [September 24, 2008, 9:09am UTC](https://www.ruby-forum.com/t/cannot-start-mongrel/149362 "2008-09-24T09:09:55Z")

</div>

Hi, I’m trying to start Mongrel, but the system cannot do it and show me this message: $ ruby script/server =\> Booting Mongrel (use ‘script/server webrick’ to force WEBrick) =\> Rails 2.1.1 application starting on h…

---

## [What is the \[phone\] representing?](https://www.ruby-forum.com/t/what-is-the-phone-representing/149349)

<div class="topic-metadata">

**Author:** [@paradise](https://www.ruby-forum.com/u/paradise)\
**Replies:** 5\
**Last updated:** [September 24, 2008, 1:30am UTC](https://www.ruby-forum.com/t/what-is-the-phone-representing/149349 "2008-09-24T01:30:19Z")

</div>

Hey all, trying to get a concept down. Or maybe the syntax. Here is the code: Phones \<% @person.phones.each { |phone| %\> \<%= tag("input", "type" =\> "text", "id" =\> "phones\[#{phone.id}\]\[phone\]", "name" =\> "phones\[#{…

---

## [Is it possible to have forms that are too DRY?](https://www.ruby-forum.com/t/is-it-possible-to-have-forms-that-are-too-dry/149260)

<div class="topic-metadata">

**Author:** [@newrubygirl](https://www.ruby-forum.com/u/newrubygirl)\
**Replies:** 3\
**Last updated:** [September 23, 2008, 11:07pm UTC](https://www.ruby-forum.com/t/is-it-possible-to-have-forms-that-are-too-dry/149260 "2008-09-23T23:07:17Z")

</div>

Hi. I’ve got a form that I’m using with polymorphic associations. It’s super basic. The form fields will be used in multiple places, but the hidden polymorphic fields will change with each model that needs them. Cu…

---

## [How can we condense these nested routes](https://www.ruby-forum.com/t/how-can-we-condense-these-nested-routes/149338)

<div class="topic-metadata">

**Author:** [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Replies:** 2\
**Last updated:** [September 23, 2008, 9:38pm UTC](https://www.ruby-forum.com/t/how-can-we-condense-these-nested-routes/149338 "2008-09-23T21:38:36Z")

</div>

I have the following: map.resources :pages, :has\_many =\> :categories map.resources :pages, :has\_many =\> :images Is there a proper way to condense the above?

---

## [Help with : auto complete, cross platform issues, directory access and database migration in Rails](https://www.ruby-forum.com/t/help-with-auto-complete-cross-platform-issues-directory-access-and-database-migration-in-rails/149346)

<div class="topic-metadata">

**Author:** [@kghose](https://www.ruby-forum.com/u/kghose)\
**Replies:** 0\
**Last updated:** [September 23, 2008, 9:36pm UTC](https://www.ruby-forum.com/t/help-with-auto-complete-cross-platform-issues-directory-access-and-database-migration-in-rails/149346 "2008-09-23T21:36:31Z")

</div>

Hi Everyone, I have four problems which I haven’t been able to solve for a while, and would appreciate any help: Autocomplete question: I moved an application I started in Rails 1.0 (rriki.sf.net) to Rails 2.0 by …

---

## [Association error using find since upgrading to Rails 2.1.1](https://www.ruby-forum.com/t/association-error-using-find-since-upgrading-to-rails-2-1-1/149325)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 3\
**Last updated:** [September 23, 2008, 9:19pm UTC](https://www.ruby-forum.com/t/association-error-using-find-since-upgrading-to-rails-2-1-1/149325 "2008-09-23T21:19:31Z")

</div>

Hi all, Ruby 1.8.6 Rails 2.1.1 I have a simple association that works fine under 1.2.6 but is failing under 2.1.1. require ‘active\_record’ ActiveRecord::Base.establish\_connection( :adapter =\> ‘postgresql’, :data…

---

## [Shopping cart with different secure url than application](https://www.ruby-forum.com/t/shopping-cart-with-different-secure-url-than-application/149339)

<div class="topic-metadata">

**Author:** [@heimdull](https://www.ruby-forum.com/u/heimdull)\
**Replies:** 2\
**Last updated:** [September 23, 2008, 9:19pm UTC](https://www.ruby-forum.com/t/shopping-cart-with-different-secure-url-than-application/149339 "2008-09-23T21:19:29Z")

</div>

Hi, I have an application that has the url www.app.com and everything works fine using ssl\_requirement plugin I redirect to https://www.app.com and my customer can checkout without issues. BUT now I need to setup th…

---

## [Problem with scaffold](https://www.ruby-forum.com/t/problem-with-scaffold/149336)

<div class="topic-metadata">

**Author:** [@adolf](https://www.ruby-forum.com/u/adolf)\
**Replies:** 2\
**Last updated:** [September 23, 2008, 9:07pm UTC](https://www.ruby-forum.com/t/problem-with-scaffold/149336 "2008-09-23T21:07:24Z")

</div>

am trying to follow the outlined steps in Agile web development with rails book(1st edition) to develop a shopping cart named depot. after this command, ruby script/generate scaffold Product Admin …

---

## [RJS: How to highlight multiple items](https://www.ruby-forum.com/t/rjs-how-to-highlight-multiple-items/149296)

<div class="topic-metadata">

**Author:** [@vapor](https://www.ruby-forum.com/u/vapor)\
**Replies:** 3\
**Last updated:** [September 23, 2008, 9:01pm UTC](https://www.ruby-forum.com/t/rjs-how-to-highlight-multiple-items/149296 "2008-09-23T21:01:49Z")

</div>

I have an array with many DIV ids. I want to highlight all at once. The current… page.visual\_effect :highlight, “div\_id” only takes one div id.

---

## [Any contractors available?](https://www.ruby-forum.com/t/any-contractors-available/149342)

<div class="topic-metadata">

**Author:** [@Sean\_CSHess](https://www.ruby-forum.com/u/Sean_CSHess)\
**Replies:** 0\
**Last updated:** [September 23, 2008, 8:42pm UTC](https://www.ruby-forum.com/t/any-contractors-available/149342 "2008-09-23T20:42:24Z")

</div>

Hi all, I am working with a client and we may need some extra help. I am an experienced developer, but this is my first complete rails project (I specialize in Flex, and have done a lot of PHP in the past). The clien…

---

## [How to see stop the #\<Outcome:0x371ace8\> or the #](https://www.ruby-forum.com/t/how-to-see-stop-the-outcome-0x371ace8-or-the/149320)

<div class="topic-metadata">

**Author:** [@bskaggs](https://www.ruby-forum.com/u/bskaggs)\
**Replies:** 7\
**Last updated:** [September 23, 2008, 8:34pm UTC](https://www.ruby-forum.com/t/how-to-see-stop-the-outcome-0x371ace8-or-the/149320 "2008-09-23T20:34:43Z")

</div>

i am using the following: \<%= h Outcome.find(:all, :conditions =\> \[‘outcomes.outcome\_date = (select max(o2.outcome\_date) from outcomes o2 where o2.testrun\_id = outcomes.testrun\_id and o2.testcase\_id = outcomes.testcas…

---

## [Database dump from application](https://www.ruby-forum.com/t/database-dump-from-application/147130)

<div class="topic-metadata">

**Author:** [@marco](https://www.ruby-forum.com/u/marco)\
**Replies:** 3\
**Last updated:** [September 23, 2008, 8:30pm UTC](https://www.ruby-forum.com/t/database-dump-from-application/147130 "2008-09-23T20:30:05Z")

</div>

hello, i am new to rails and would like to know if there is a simple way to dump my database (schema and data) from within my rails app. thanks marco

---

## [How remove blank leading spaces before validates\_uniqueness\_of](https://www.ruby-forum.com/t/how-remove-blank-leading-spaces-before-validates-uniqueness-of/149247)

<div class="topic-metadata">

**Author:** [@paco.onrails](https://www.ruby-forum.com/u/paco.onrails)\
**Replies:** 6\
**Last updated:** [September 23, 2008, 6:52pm UTC](https://www.ruby-forum.com/t/how-remove-blank-leading-spaces-before-validates-uniqueness-of/149247 "2008-09-23T18:52:49Z")

</div>

Hi again, I have a problem when I try to validate uniqueness of data entered through text fields in this particular circumstance. Let say that I have a text field which has a validates\_uniqueness\_of on its respective …

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

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