# Rails

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

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

---

## [Profile views counter](https://www.ruby-forum.com/t/profile-views-counter/105568)

<div class="topic-metadata">

**Author:** [@vanquisher](https://www.ruby-forum.com/u/vanquisher)\
**Replies:** 0\
**Last updated:** [May 31, 2007, 7:26am UTC](https://www.ruby-forum.com/t/profile-views-counter/105568 "2007-05-31T07:26:16Z")

</div>

Hi All, I am putting up a rails site, which will have user profiles. And I want to have a counter (or any other mechanism) to give the number of times any profile is viewed. Is there any easy and efficient way to ach…

---

## [How to use many fixtures for one table?](https://www.ruby-forum.com/t/how-to-use-many-fixtures-for-one-table/105346)

<div class="topic-metadata">

**Author:** [@yananay](https://www.ruby-forum.com/u/yananay)\
**Replies:** 3\
**Last updated:** [May 31, 2007, 6:55am UTC](https://www.ruby-forum.com/t/how-to-use-many-fixtures-for-one-table/105346 "2007-05-31T06:55:11Z")

</div>

hi all, now i have a problem when do the functinal testing. assume i have a table named “customers”. when i run the first test case, i need 20 records in the “customers” table. when i run the second test case, i nee…

---

## [How to auto-start a server for a Rails application with IR](https://www.ruby-forum.com/t/how-to-auto-start-a-server-for-a-rails-application-with-ir/104390)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [May 31, 2007, 5:23am UTC](https://www.ruby-forum.com/t/how-to-auto-start-a-server-for-a-rails-application-with-ir/104390 "2007-05-31T05:23:10Z")

</div>

dear all, I configured instant rails to start up when windows reboot. but I want to let a rails application to start up automatically with instant rails. How to do ? thanks. -Feng

---

## [Connect to db table without needing blank models?](https://www.ruby-forum.com/t/connect-to-db-table-without-needing-blank-models/105550)

<div class="topic-metadata">

**Author:** [@luke](https://www.ruby-forum.com/u/luke)\
**Replies:** 2\
**Last updated:** [May 31, 2007, 3:35am UTC](https://www.ruby-forum.com/t/connect-to-db-table-without-needing-blank-models/105550 "2007-05-31T03:35:59Z")

</div>

Hi, I’m wanting to get data from a table called ea\_service\_provider, and have managed to do so by creating a blank file called ea\_service\_provider.rb and with the following contents: class EaServiceProvider \< ActiveR…

---

## [Naming controllers in modules?](https://www.ruby-forum.com/t/naming-controllers-in-modules/105482)

<div class="topic-metadata">

**Author:** [@kristersaurus](https://www.ruby-forum.com/u/kristersaurus)\
**Replies:** 3\
**Last updated:** [May 31, 2007, 3:14am UTC](https://www.ruby-forum.com/t/naming-controllers-in-modules/105482 "2007-05-31T03:14:56Z")

</div>

Hey guys. I noticed in an example from the active scaffold documentation that it seems to be possible to put rails controllers in modules, a la “class Admin::CompaniesController \< ApplicationController”. Does anyone k…

---

## [In Search of Search!](https://www.ruby-forum.com/t/in-search-of-search/105491)

<div class="topic-metadata">

**Author:** [@vanquisher](https://www.ruby-forum.com/u/vanquisher)\
**Replies:** 9\
**Last updated:** [May 31, 2007, 3:04am UTC](https://www.ruby-forum.com/t/in-search-of-search/105491 "2007-05-31T03:04:55Z")

</div>

I am implementing a search on my site and was wondering which will be the best way to go about it. We want a full text search and an advance search. We will have huge amounts of data that we would want to search. - on …

---

## [Clarifications for online wiki TutorialHelperMethods page?](https://www.ruby-forum.com/t/clarifications-for-online-wiki-tutorialhelpermethods-page/105554)

<div class="topic-metadata">

**Author:** [@scootiepuff](https://www.ruby-forum.com/u/scootiepuff)\
**Replies:** 0\
**Last updated:** [May 31, 2007, 2:33am UTC](https://www.ruby-forum.com/t/clarifications-for-online-wiki-tutorialhelpermethods-page/105554 "2007-05-31T02:33:53Z")

</div>

hello, i’m confused with the instructions on this page: http://wiki.rubyonrails.org/rails/pages/TutorialHelperMethods at the top of this page in red, it reads: 'Error in previous page: The show.rhtml does not exist. …

---

## [Problematic column on oracle](https://www.ruby-forum.com/t/problematic-column-on-oracle/105548)

<div class="topic-metadata">

**Author:** [@Derrick](https://www.ruby-forum.com/u/Derrick)\
**Replies:** 1\
**Last updated:** [May 31, 2007, 1:49am UTC](https://www.ruby-forum.com/t/problematic-column-on-oracle/105548 "2007-05-31T01:49:51Z")

</div>

Relatively new to RoR (but not programming) - I’ve got a basic rails app against a legacy oracle database. One of the columns in a table is called ‘suppress’. Whenever I use the scaffold listing action it bombs tryi…

---

## [Migrating from login\_engine to AAA](https://www.ruby-forum.com/t/migrating-from-login-engine-to-aaa/103534)

<div class="topic-metadata">

**Author:** [@bartz](https://www.ruby-forum.com/u/bartz)\
**Replies:** 4\
**Last updated:** [May 31, 2007, 12:15am UTC](https://www.ruby-forum.com/t/migrating-from-login-engine-to-aaa/103534 "2007-05-31T00:15:45Z")

</div>

Hello all, I’m currently upgrading my app to Rails 1.2, and the login\_engine has been deprecated for that version. Is there an easy way to upgrade my existing user table (especially passwords) for use with acts\_as\_au…

---

## [Getting started with Ruby on Rails and Relationships](https://www.ruby-forum.com/t/getting-started-with-ruby-on-rails-and-relationships/105506)

<div class="topic-metadata">

**Author:** [@revanche](https://www.ruby-forum.com/u/revanche)\
**Replies:** 4\
**Last updated:** [May 31, 2007, 12:11am UTC](https://www.ruby-forum.com/t/getting-started-with-ruby-on-rails-and-relationships/105506 "2007-05-31T00:11:28Z")

</div>

Hello! I’m relatively new to Ruby on Rails, but decided to start experimenting with it after looking at how it can simply some rather repetitive tasks that I find myself writing with PHP. For the most part, I’ve been …

---

## [Self managed recurring billing](https://www.ruby-forum.com/t/self-managed-recurring-billing/88231)

<div class="topic-metadata">

**Author:** [@jonlog](https://www.ruby-forum.com/u/jonlog)\
**Replies:** 5\
**Last updated:** [May 30, 2007, 11:56pm UTC](https://www.ruby-forum.com/t/self-managed-recurring-billing/88231 "2007-05-30T23:56:31Z")

</div>

I’m working on setting up the credit card processing part of a rails app for my company and running into some issues. I’m currently working with the ActiveMerchant plugin and connecting to our account at Authorize.n…

---

## [Newb trying to figure out ActiveRecord relationships](https://www.ruby-forum.com/t/newb-trying-to-figure-out-activerecord-relationships/105539)

<div class="topic-metadata">

**Author:** [@tayknight](https://www.ruby-forum.com/u/tayknight)\
**Replies:** 2\
**Last updated:** [May 30, 2007, 11:39pm UTC](https://www.ruby-forum.com/t/newb-trying-to-figure-out-activerecord-relationships/105539 "2007-05-30T23:39:41Z")

</div>

3 tables. item, brand, commercial item id name brand\_id name brand id name commercial id item\_id The idea is that a commercial will have one item. each item will have brand. and a brand may have zero to many i…

---

## [\[ANN\] Vendor everything, with C!](https://www.ruby-forum.com/t/ann-vendor-everything-with-c/105547)

<div class="topic-metadata">

**Author:** [@kylemathews](https://www.ruby-forum.com/u/kylemathews)\
**Replies:** 0\
**Last updated:** [May 30, 2007, 11:37pm UTC](https://www.ruby-forum.com/t/ann-vendor-everything-with-c/105547 "2007-05-30T23:37:41Z")

</div>

I wrote a simple Rails plugin to build your C extensions in the vendor everything approach. You’ll prolly want include it into your Capistrano workflow, although that is left as an exercise for the user ;). http://sv…

---

## [Direct database access](https://www.ruby-forum.com/t/direct-database-access/105535)

<div class="topic-metadata">

**Author:** [@addywaddy](https://www.ruby-forum.com/u/addywaddy)\
**Replies:** 1\
**Last updated:** [May 30, 2007, 11:11pm UTC](https://www.ruby-forum.com/t/direct-database-access/105535 "2007-05-30T23:11:38Z")

</div>

Hi I would like to write an app that makes some use of ActiveRecord for persisting a few domain objects but also extensive direct database access for doing things like creating new tables, adding columns / indexes. E…

---

## [Compile error question on a login.rhtml file (text included)](https://www.ruby-forum.com/t/compile-error-question-on-a-login-rhtml-file-text-included/105543)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [May 30, 2007, 10:55pm UTC](https://www.ruby-forum.com/t/compile-error-question-on-a-login-rhtml-file-text-included/105543 "2007-05-30T22:55:35Z")

</div>

I am working my way through the January 2007 edition of “Build Your Own Ruby on Rails Web Applications” by Patrick Lenz. The application in the book is a clone of digg.com and I am halfway through the book with no pr…

---

## [Depot - empty\_cart with ajax](https://www.ruby-forum.com/t/depot-empty-cart-with-ajax/105459)

<div class="topic-metadata">

**Author:** [@Leandro\_Marcucci](https://www.ruby-forum.com/u/Leandro_Marcucci)\
**Replies:** 2\
**Last updated:** [May 30, 2007, 10:51pm UTC](https://www.ruby-forum.com/t/depot-empty-cart-with-ajax/105459 "2007-05-30T22:51:34Z")

</div>

First of all id like to say hi to everyone from Argentina, im yet another Depot first-timer. Going through the example, i got to the point where my cart finally runs Ajax-based. And there is a line where Dave says, af…

---

## [Attachment\_fu won't display content-type validation errors](https://www.ruby-forum.com/t/attachment-fu-wont-display-content-type-validation-errors/105542)

<div class="topic-metadata">

**Author:** [@Sebastien](https://www.ruby-forum.com/u/Sebastien)\
**Replies:** 0\
**Last updated:** [May 30, 2007, 10:34pm UTC](https://www.ruby-forum.com/t/attachment-fu-wont-display-content-type-validation-errors/105542 "2007-05-30T22:34:57Z")

</div>

I’m getting this weird behavior from attachment\_fu… the error messages displayed with \<%= error\_messages\_for ‘picture’ %\> won’t work for the “content\_type” field. It works for the filename and the size. And when I try…

---

## [Ip location database](https://www.ruby-forum.com/t/ip-location-database/105524)

<div class="topic-metadata">

**Author:** [@gabordemeter](https://www.ruby-forum.com/u/gabordemeter)\
**Replies:** 3\
**Last updated:** [May 30, 2007, 10:34pm UTC](https://www.ruby-forum.com/t/ip-location-database/105524 "2007-05-30T22:34:31Z")

</div>

Hi, We just got a new client who wants to personalize the content of his site’s pages based on user’s geographical location (using the user’s IP for determining the location). I came across http://geokit.rubyforge.or…

---

## [Linking controllers](https://www.ruby-forum.com/t/linking-controllers/105532)

<div class="topic-metadata">

**Author:** [@fernando](https://www.ruby-forum.com/u/fernando)\
**Replies:** 2\
**Last updated:** [May 30, 2007, 10:24pm UTC](https://www.ruby-forum.com/t/linking-controllers/105532 "2007-05-30T22:24:29Z")

</div>

Newbie question. How do I link from a view in one controller to a view in another controller? Cheers

---

## [Exception Notification Plugin Question](https://www.ruby-forum.com/t/exception-notification-plugin-question/105014)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 3\
**Last updated:** [May 30, 2007, 9:14pm UTC](https://www.ruby-forum.com/t/exception-notification-plugin-question/105014 "2007-05-30T21:14:14Z")

</div>

Hi, I have two questions re the Exception Notifier plugin (i.e. which you install via “ruby script/plugin install exception\_notification”) Q1 - In it’s current setup (where it uses /public/500.html) is it possible …

---

## [Creating PDF files from your Rails templates](https://www.ruby-forum.com/t/creating-pdf-files-from-your-rails-templates/105443)

<div class="topic-metadata">

**Author:** [@subimage](https://www.ruby-forum.com/u/subimage)\
**Replies:** 6\
**Last updated:** [May 30, 2007, 8:16pm UTC](https://www.ruby-forum.com/t/creating-pdf-files-from-your-rails-templates/105443 "2007-05-30T20:16:09Z")

</div>

Just posted a little how-to about creating PDF files directly from Rails templates. Thought you all would enjoy it. http://sublog.subimage.com/articles/2007/05/29/html-css-to-pdf-using-ruby-on-rails Cheers. seth at…

---

## [Working with database from rake tasks](https://www.ruby-forum.com/t/working-with-database-from-rake-tasks/105088)

<div class="topic-metadata">

**Author:** [@dan](https://www.ruby-forum.com/u/dan)\
**Replies:** 6\
**Last updated:** [May 30, 2007, 7:24pm UTC](https://www.ruby-forum.com/t/working-with-database-from-rake-tasks/105088 "2007-05-30T19:24:03Z")

</div>

Hello, I would like to perform several database queries and updates from a rake task. All of the example code I have found on the web use ActiveRecord to create a connection and generally perform ad-hoc sql or use v…

---

## [Lighttpd and rails?](https://www.ruby-forum.com/t/lighttpd-and-rails/105521)

<div class="topic-metadata">

**Author:** [@lalala](https://www.ruby-forum.com/u/lalala)\
**Replies:** 0\
**Last updated:** [May 30, 2007, 6:33pm UTC](https://www.ruby-forum.com/t/lighttpd-and-rails/105521 "2007-05-30T18:33:01Z")

</div>

Hi everyone, I’m trying to run my rails app on a web hosting. I’m having problem with lighttpd as it’s giving me this error Errno::ENOENT in LoginController#finishnew No such file or directory - chat/chat.495 This f…

---

## [How to create a simple DHTML dialog](https://www.ruby-forum.com/t/how-to-create-a-simple-dhtml-dialog/105513)

<div class="topic-metadata">

**Author:** [@sbeam](https://www.ruby-forum.com/u/sbeam)\
**Replies:** 3\
**Last updated:** [May 30, 2007, 6:17pm UTC](https://www.ruby-forum.com/t/how-to-create-a-simple-dhtml-dialog/105513 "2007-05-30T18:17:55Z")

</div>

I am looking to create a simple dialog window like this on a page: http://developer.yahoo.com/yui/examples/container/simpledialog/2.html I know scriptaculous comes with Rails, not YUI, but I can’t find anything simila…

---

## [Combining results from multiple database servers](https://www.ruby-forum.com/t/combining-results-from-multiple-database-servers/105519)

<div class="topic-metadata">

**Author:** [@bradrover](https://www.ruby-forum.com/u/bradrover)\
**Replies:** 0\
**Last updated:** [May 30, 2007, 6:15pm UTC](https://www.ruby-forum.com/t/combining-results-from-multiple-database-servers/105519 "2007-05-30T18:15:55Z")

</div>

If I have a table called “customers” that is distributed across several database servers, is there a way I can build a model that will query all of the databases and return a combined result ? For example, I’d like to…

---

## [Using will paginate](https://www.ruby-forum.com/t/using-will-paginate/105173)

<div class="topic-metadata">

**Author:** [@jmcervera](https://www.ruby-forum.com/u/jmcervera)\
**Replies:** 5\
**Last updated:** [May 30, 2007, 6:09pm UTC](https://www.ruby-forum.com/t/using-will-paginate/105173 "2007-05-30T18:09:53Z")

</div>

Hello. I am trying to use the will\_paginate plugin and I like it very much. I have read an entry in this forum http://www.ruby-forum.com/topic/109036, about making will\_paginate an acts\_as taggable playing together a…

---

## [Queuing mails for a mailing list](https://www.ruby-forum.com/t/queuing-mails-for-a-mailing-list/105465)

<div class="topic-metadata">

**Author:** [@mr\_robot](https://www.ruby-forum.com/u/mr_robot)\
**Replies:** 2\
**Last updated:** [May 30, 2007, 6:01pm UTC](https://www.ruby-forum.com/t/queuing-mails-for-a-mailing-list/105465 "2007-05-30T18:01:53Z")

</div>

hi i am wanting to send out a mailing listto subscribers. myserver has an hourly mail limit. i am using the mail-queue plugin to queue up my mails. so how would i send out batches? or should i just setup a cron job t…

---

## [Call for Ruby Champion!](https://www.ruby-forum.com/t/call-for-ruby-champion/105514)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [May 30, 2007, 5:28pm UTC](https://www.ruby-forum.com/t/call-for-ruby-champion/105514 "2007-05-30T17:28:26Z")

</div>

Hello friends! I am looking for a Ruby Champion to lead the race in Website development within Java environment… Who loves programming, with new techniques as well as old… Who also enjoys hand coding open source tech…

---

## [Print name of partial](https://www.ruby-forum.com/t/print-name-of-partial/105498)

<div class="topic-metadata">

**Author:** [@khmckgrp](https://www.ruby-forum.com/u/khmckgrp)\
**Replies:** 3\
**Last updated:** [May 30, 2007, 4:45pm UTC](https://www.ruby-forum.com/t/print-name-of-partial/105498 "2007-05-30T16:45:09Z")

</div>

DRY works, but when applied to partials it does make debugging someone else code more difficult! Is there a way to add a debug line (in each \_file.rhtml) that would print out the name of the partials that comprise a p…

---

## [Find(:all) - lazy/eager](https://www.ruby-forum.com/t/find-all-lazy-eager/105356)

<div class="topic-metadata">

**Author:** [@railskater](https://www.ruby-forum.com/u/railskater)\
**Replies:** 5\
**Last updated:** [May 30, 2007, 4:38pm UTC](https://www.ruby-forum.com/t/find-all-lazy-eager/105356 "2007-05-30T16:38:16Z")

</div>

Hello experts, Given some simple model and controller and simple views, what happens if I have an Employee table with 100,000+ rows? If my controller calls .find(:all), then when do all the objects get loaded? I kno…

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

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