# Rails

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

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

---

## [Ajax - adding to ul](https://www.ruby-forum.com/t/ajax-adding-to-ul/110748)

<div class="topic-metadata">

**Author:** [@yankees26](https://www.ruby-forum.com/u/yankees26)\
**Replies:** 2\
**Last updated:** [July 30, 2007, 5:29pm UTC](https://www.ruby-forum.com/t/ajax-adding-to-ul/110748 "2007-07-30T17:29:08Z")

</div>

I have a form and a ul and the form is submitting a new li for the unordered list. It puts the right info into the MySQL database, but it won’t insert properly into the list. Also, the link to show the form stops wo…

---

## [Adding "update all" functionality](https://www.ruby-forum.com/t/adding-update-all-functionality/110755)

<div class="topic-metadata">

**Author:** [@sclaerhout](https://www.ruby-forum.com/u/sclaerhout)\
**Replies:** 0\
**Last updated:** [July 30, 2007, 5:28pm UTC](https://www.ruby-forum.com/t/adding-update-all-functionality/110755 "2007-07-30T17:28:26Z")

</div>

I have a simple model called â€œfooâ€ and Iâ€™m using the scaffold generated code. When I edit â€œfooâ€ I want to be able to click a check box that says â€œupdate allâ€. When the param is passed I cycle through all …

---

## [How to design controllers and views for - STI - Multiple us](https://www.ruby-forum.com/t/how-to-design-controllers-and-views-for-sti-multiple-us/110754)

<div class="topic-metadata">

**Author:** [@ag367e](https://www.ruby-forum.com/u/ag367e)\
**Replies:** 0\
**Last updated:** [July 30, 2007, 5:20pm UTC](https://www.ruby-forum.com/t/how-to-design-controllers-and-views-for-sti-multiple-us/110754 "2007-07-30T17:20:37Z")

</div>

Hi, In the free time I am developing a rails based job portal and I am new to both web development and rails. In my application there are different types of users like employers, job seekers, moderators and administr…

---

## [Create unique process to handle transactions](https://www.ruby-forum.com/t/create-unique-process-to-handle-transactions/110470)

<div class="topic-metadata">

**Author:** [@helzer](https://www.ruby-forum.com/u/helzer)\
**Replies:** 16\
**Last updated:** [July 30, 2007, 4:53pm UTC](https://www.ruby-forum.com/t/create-unique-process-to-handle-transactions/110470 "2007-07-30T16:53:57Z")

</div>

Hi, I’m looking for a way to avoid race conditions on complicated transactions. Some transactions I do need to update multiple values in multiple tables, and create new objects. It looks like the safest way to do thi…

---

## [More that one db](https://www.ruby-forum.com/t/more-that-one-db/110682)

<div class="topic-metadata">

**Author:** [@xyzt](https://www.ruby-forum.com/u/xyzt)\
**Replies:** 10\
**Last updated:** [July 30, 2007, 4:46pm UTC](https://www.ruby-forum.com/t/more-that-one-db/110682 "2007-07-30T16:46:57Z")

</div>

Hello, Sometimes I need to work with more than one databases. When I look at database.yml file, I see that only one database is specified. Is it possible to work with more than one databases?

---

## [Is engines broken in Rails 1.2.3?](https://www.ruby-forum.com/t/is-engines-broken-in-rails-1-2-3/110594)

<div class="topic-metadata">

**Author:** [@hatless](https://www.ruby-forum.com/u/hatless)\
**Replies:** 1\
**Last updated:** [July 30, 2007, 4:11pm UTC](https://www.ruby-forum.com/t/is-engines-broken-in-rails-1-2-3/110594 "2007-07-30T16:11:12Z")

</div>

A few hours ago I factored out one of my AR models that I’d be reusing into a minimalist plugin. I copied the model into the plugin’s lib/, added a line to init.rb to load it, and the model was now present in the cons…

---

## [Pagination](https://www.ruby-forum.com/t/pagination/110743)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [July 30, 2007, 3:43pm UTC](https://www.ruby-forum.com/t/pagination/110743 "2007-07-30T15:43:49Z")

</div>

When using the pagination class, you can specify the :include parameter. Is it possible to specify two for a table that references two relations? For example a POST has both a USER and an ORGANIZATION. Would the co…

---

## [Rmagick error: TypeError](https://www.ruby-forum.com/t/rmagick-error-typeerror/110744)

<div class="topic-metadata">

**Author:** [@zephyr](https://www.ruby-forum.com/u/zephyr)\
**Replies:** 0\
**Last updated:** [July 30, 2007, 3:38pm UTC](https://www.ruby-forum.com/t/rmagick-error-typeerror/110744 "2007-07-30T15:38:48Z")

</div>

Hi! I just recently upgraded my gem from 0.9.2 to 0.9.4, now I am getting this error from rmagick TypeError in AccountController#index can’t convert String into Integer I have rmagick 1.13.0 installed and I get that…

---

## [Integrating Google checkout and google4r](https://www.ruby-forum.com/t/integrating-google-checkout-and-google4r/110558)

<div class="topic-metadata">

**Author:** [@dodgyboz](https://www.ruby-forum.com/u/dodgyboz)\
**Replies:** 1\
**Last updated:** [July 30, 2007, 3:28pm UTC](https://www.ruby-forum.com/t/integrating-google-checkout-and-google4r/110558 "2007-07-30T15:28:47Z")

</div>

Hi all, I am just about to start integrating google checkout into my e- commerce site and I have come across the google4r Wrapper. Obviously this looks like what i need to use rather than repeating the work already d…

---

## [How to limit file download size?](https://www.ruby-forum.com/t/how-to-limit-file-download-size/110701)

<div class="topic-metadata">

**Author:** [@andreim](https://www.ruby-forum.com/u/andreim)\
**Replies:** 1\
**Last updated:** [July 30, 2007, 3:16pm UTC](https://www.ruby-forum.com/t/how-to-limit-file-download-size/110701 "2007-07-30T15:16:45Z")

</div>

Hi, I’m writing a ruby on rails application that allows the user to submit a link of a file which my app will then download. Right now my app blindly downloads the file (which is 1-2mb on average) I’m worried about p…

---

## [Page-by-page iterator pattern](https://www.ruby-forum.com/t/page-by-page-iterator-pattern/110732)

<div class="topic-metadata">

**Author:** [@kabish](https://www.ruby-forum.com/u/kabish)\
**Replies:** 2\
**Last updated:** [July 30, 2007, 1:57pm UTC](https://www.ruby-forum.com/t/page-by-page-iterator-pattern/110732 "2007-07-30T13:57:03Z")

</div>

Hi all, anyone knows where to find examples or documentation on how to implement the page-by-page iterator pattern\* in RoR? Thanks, Alvaro \*Page-by-page iterator pattern: you have a large amount of data and want to…

---

## [Build a menu (li.selected)](https://www.ruby-forum.com/t/build-a-menu-li-selected/110733)

<div class="topic-metadata">

**Author:** [@pmatos](https://www.ruby-forum.com/u/pmatos)\
**Replies:** 2\
**Last updated:** [July 30, 2007, 1:37pm UTC](https://www.ruby-forum.com/t/build-a-menu-li-selected/110733 "2007-07-30T13:37:21Z")

</div>

Hello, when I try to create a menu I found the following limitation: the event li.selected does not work and, I am not being able to show an image when the menu option is selected in my CSS exists the following code…

---

## [Couldn't find Type without an ID](https://www.ruby-forum.com/t/couldnt-find-type-without-an-id/110706)

<div class="topic-metadata">

**Author:** [@fgdhar](https://www.ruby-forum.com/u/fgdhar)\
**Replies:** 7\
**Last updated:** [July 30, 2007, 11:48am UTC](https://www.ruby-forum.com/t/couldnt-find-type-without-an-id/110706 "2007-07-30T11:48:17Z")

</div>

Hi, I am trying to learn Ruby on Rails programming. I have installed “Instant Rails” and trying to build a small application. I created a table called “types” for the application. Below is the structure of the type…

---

## [How to connect to other server (Like cURL in php) in Ruby on](https://www.ruby-forum.com/t/how-to-connect-to-other-server-like-curl-in-php-in-ruby-on/110727)

<div class="topic-metadata">

**Author:** [@Amjith](https://www.ruby-forum.com/u/Amjith)\
**Replies:** 1\
**Last updated:** [July 30, 2007, 11:36am UTC](https://www.ruby-forum.com/t/how-to-connect-to-other-server-like-curl-in-php-in-ruby-on/110727 "2007-07-30T11:36:16Z")

</div>

hi Friends, i am a new programmer in Ruby On Rails, i need a help regarding connecting to other server as cURL in php in ROR. so i hope got my query. that is i need to connect my page to other server to reteive some …

---

## [How to restrict deletion of ActiveRecord objects if there de](https://www.ruby-forum.com/t/how-to-restrict-deletion-of-activerecord-objects-if-there-de/110684)

<div class="topic-metadata">

**Author:** [@gneeot](https://www.ruby-forum.com/u/gneeot)\
**Replies:** 4\
**Last updated:** [July 30, 2007, 10:43am UTC](https://www.ruby-forum.com/t/how-to-restrict-deletion-of-activerecord-objects-if-there-de/110684 "2007-07-30T10:43:11Z")

</div>

Hi guys, Trying to find some way to restrict deletion of ActiveRecord objects if there dependent records. I’m thinking of using before\_destroy for it, but don’t know how to “cancel” deletion in my code in before\_dest…

---

## [Installing mkmf on windows-xp](https://www.ruby-forum.com/t/installing-mkmf-on-windows-xp/110725)

<div class="topic-metadata">

**Author:** [@sumi](https://www.ruby-forum.com/u/sumi)\
**Replies:** 0\
**Last updated:** [July 30, 2007, 10:07am UTC](https://www.ruby-forum.com/t/installing-mkmf-on-windows-xp/110725 "2007-07-30T10:07:36Z")

</div>

Hi all, I want to know how to install this mkmf file which helps in installing the ruby plugins or extensions on my windows-xp machine. Thanks in Advance, Sumanth

---

## [Migrating Sans Migrations](https://www.ruby-forum.com/t/migrating-sans-migrations/110721)

<div class="topic-metadata">

**Author:** [@qikink](https://www.ruby-forum.com/u/qikink)\
**Replies:** 0\
**Last updated:** [July 30, 2007, 9:05am UTC](https://www.ruby-forum.com/t/migrating-sans-migrations/110721 "2007-07-30T09:05:41Z")

</div>

I’m trying to add a table to an already established ruby on rails system, but I don’t have access to a shell where I host my site, so I can’t use the automated migration. Luckily the new table is similar enough in fun…

---

## [ActiveRecord.find(\[id array\]) question](https://www.ruby-forum.com/t/activerecord-find-id-array-question/110609)

<div class="topic-metadata">

**Author:** [@rmac217](https://www.ruby-forum.com/u/rmac217)\
**Replies:** 4\
**Last updated:** [July 30, 2007, 8:56am UTC](https://www.ruby-forum.com/t/activerecord-find-id-array-question/110609 "2007-07-30T08:56:11Z")

</div>

If you have a collection of ids, what’s the best way to extract the records from the database while maintaining the original id order? Recently I noticed that a find statement like % User.find(\[1, 2, 3\]) will return …

---

## [Dynamic layout - title for google page rank](https://www.ruby-forum.com/t/dynamic-layout-title-for-google-page-rank/110719)

<div class="topic-metadata">

**Author:** [@minka](https://www.ruby-forum.com/u/minka)\
**Replies:** 2\
**Last updated:** [July 30, 2007, 8:32am UTC](https://www.ruby-forum.com/t/dynamic-layout-title-for-google-page-rank/110719 "2007-07-30T08:32:17Z")

</div>

Google likes titles to be distinct for every page and they use that for page rank. My old layout had the same title for every page. I looked up dynamic layout in this group and followed the suggestion for page specif…

---

## [Rails/MSSQL error](https://www.ruby-forum.com/t/rails-mssql-error/110718)

<div class="topic-metadata">

**Author:** [@russel](https://www.ruby-forum.com/u/russel)\
**Replies:** 0\
**Last updated:** [July 30, 2007, 8:04am UTC](https://www.ruby-forum.com/t/rails-mssql-error/110718 "2007-07-30T08:04:11Z")

</div>

Hi, I have been encountering this error when I try to save text with japanese characters: DBI::DatabaseError: Execute OLE error code:80040E14 in Microsoft OLE DB Provider for SQL Server Line 1: Incorrect syntax near…

---

## [Deleting the files that were created by a generator](https://www.ruby-forum.com/t/deleting-the-files-that-were-created-by-a-generator/110704)

<div class="topic-metadata">

**Author:** [@oren](https://www.ruby-forum.com/u/oren)\
**Replies:** 2\
**Last updated:** [July 30, 2007, 6:40am UTC](https://www.ruby-forum.com/t/deleting-the-files-that-were-created-by-a-generator/110704 "2007-07-30T06:40:37Z")

</div>

after running ruby script/generate many files are created automatically. Let’s say I have made a mistake, Is there an easy way to delete them or do I have to manually do it? Where can I find a good reference/tutoria…

---

## [Struggling with rjs templates](https://www.ruby-forum.com/t/struggling-with-rjs-templates/110643)

<div class="topic-metadata">

**Author:** [@paulodeon](https://www.ruby-forum.com/u/paulodeon)\
**Replies:** 9\
**Last updated:** [July 30, 2007, 5:19am UTC](https://www.ruby-forum.com/t/struggling-with-rjs-templates/110643 "2007-07-30T05:19:11Z")

</div>

Hi all, i’ve been reading the Agile Rails book (2nd ed), and I’m trying to write custom versions of the various exercises as i go along. In this particular example, i have 2 models: user and possession. The user cont…

---

## [Can I really add Databases a lot easier to my website?](https://www.ruby-forum.com/t/can-i-really-add-databases-a-lot-easier-to-my-website/110618)

<div class="topic-metadata">

**Author:** [@efilm66](https://www.ruby-forum.com/u/efilm66)\
**Replies:** 3\
**Last updated:** [July 30, 2007, 4:10am UTC](https://www.ruby-forum.com/t/can-i-really-add-databases-a-lot-easier-to-my-website/110618 "2007-07-30T04:10:55Z")

</div>

Since you’re the experts, maybe you guys can verify this fact for me~ Is it definitely easier and much faster (how fast) to add a database or major feature into an existing site than if i were programming in PHP? I am…

---

## [Block certain users from doing tasks](https://www.ruby-forum.com/t/block-certain-users-from-doing-tasks/110712)

<div class="topic-metadata">

**Author:** [@dark-omen](https://www.ruby-forum.com/u/dark-omen)\
**Replies:** 0\
**Last updated:** [July 30, 2007, 2:55am UTC](https://www.ruby-forum.com/t/block-certain-users-from-doing-tasks/110712 "2007-07-30T02:55:31Z")

</div>

So I have an account manager for users on my site and it has their profile which just displays their information, and a place where they can edit their info, the problem I am having is right now a person can edit anyo…

---

## [NoMethodError - previously defined method?](https://www.ruby-forum.com/t/nomethoderror-previously-defined-method/110661)

<div class="topic-metadata">

**Author:** [@Dave\_Evans](https://www.ruby-forum.com/u/Dave_Evans)\
**Replies:** 4\
**Last updated:** [July 30, 2007, 2:29am UTC](https://www.ruby-forum.com/t/nomethoderror-previously-defined-method/110661 "2007-07-30T02:29:39Z")

</div>

Hello, I have a simple controller named AssociationsController. Here is a snip: AssociationsController\< ApplicationController def detail @association = Association.find(params\[:id\]) render layout: =\> “frontend” end …

---

## [Nested resources and hierarchical trees](https://www.ruby-forum.com/t/nested-resources-and-hierarchical-trees/110708)

<div class="topic-metadata">

**Author:** [@phrosenkranz](https://www.ruby-forum.com/u/phrosenkranz)\
**Replies:** 0\
**Last updated:** [July 30, 2007, 1:29am UTC](https://www.ruby-forum.com/t/nested-resources-and-hierarchical-trees/110708 "2007-07-30T01:29:22Z")

</div>

Hi I’ve started a project recently and decided to use the rest capabilities of rails. I generated a few resources with scaffold\_resource and did some nesting: map.resources :roots do |roots| roots.resources :childr…

---

## [Ruby on Rails candy for petproject](https://www.ruby-forum.com/t/ruby-on-rails-candy-for-petproject/110650)

<div class="topic-metadata">

**Author:** [@leonb](https://www.ruby-forum.com/u/leonb)\
**Replies:** 4\
**Last updated:** [July 30, 2007, 12:41am UTC](https://www.ruby-forum.com/t/ruby-on-rails-candy-for-petproject/110650 "2007-07-30T00:41:28Z")

</div>

Hi all, I’m participating in a petproject contest. For this contest I’m using Ruby on Rails. So I could learn Ruby on Rails and to impress the jury with cool Rails features. It’s a system so that roommates can organi…

---

## [Losing a parameter when i submit a form](https://www.ruby-forum.com/t/losing-a-parameter-when-i-submit-a-form/110688)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 2\
**Last updated:** [July 30, 2007, 12:10am UTC](https://www.ruby-forum.com/t/losing-a-parameter-when-i-submit-a-form/110688 "2007-07-30T00:10:44Z")

</div>

I have an Article item that i’m linking another article to. When the user hits the ‘add link’ button, i pass through a parameter called “original\_article\_id”, which points to the current article: #on my article’s ‘sh…

---

## [What's the use of ActiveResource](https://www.ruby-forum.com/t/whats-the-use-of-activeresource/110694)

<div class="topic-metadata">

**Author:** [@patcito](https://www.ruby-forum.com/u/patcito)\
**Replies:** 1\
**Last updated:** [July 29, 2007, 10:35pm UTC](https://www.ruby-forum.com/t/whats-the-use-of-activeresource/110694 "2007-07-29T22:35:18Z")

</div>

Hey all, I read that ARes is mostly a tool to facilitate access to APIs but can it be used as an ActiveRecord replacement in some cases? if yes, what cases? thanx in advance Pat

---

## [Capistrano problems](https://www.ruby-forum.com/t/capistrano-problems/110660)

<div class="topic-metadata">

**Author:** [@dgm](https://www.ruby-forum.com/u/dgm)\
**Replies:** 3\
**Last updated:** [July 29, 2007, 9:03pm UTC](https://www.ruby-forum.com/t/capistrano-problems/110660 "2007-07-29T21:03:04Z")

</div>

I installed capistrano and have tried several things. Can’t seem to get it working. This is what i am getting. C:\\ruby\\radrails\\modernfossil\>cap deploy executing \`deploy’ executing \`deploy:update’ \*\* transacti…

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

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