# Rails

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

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

---

## [Several newbyish questions about Rails](https://www.ruby-forum.com/t/several-newbyish-questions-about-rails/151363)

<div class="topic-metadata">

**Author:** [@lduperval](https://www.ruby-forum.com/u/lduperval)\
**Replies:** 0\
**Last updated:** [October 20, 2008, 6:11pm UTC](https://www.ruby-forum.com/t/several-newbyish-questions-about-rails/151363 "2008-10-20T18:11:36Z")

</div>

Hi, I am creating a Rails application and I’ve run into a couple of snags. Answers to the following questions would be appreciated. Couple of things to note: I am using a legacy database where all of the tables have …

---

## [Get total of values in array](https://www.ruby-forum.com/t/get-total-of-values-in-array/151361)

<div class="topic-metadata">

**Author:** [@cogrady2k](https://www.ruby-forum.com/u/cogrady2k)\
**Replies:** 1\
**Last updated:** [October 20, 2008, 6:09pm UTC](https://www.ruby-forum.com/t/get-total-of-values-in-array/151361 "2008-10-20T18:09:28Z")

</div>

is there an easy way to add all thevalues stored in an array together? i tried total = @array.total but i dont think thats right? thanks for any help

---

## [@collection.each{|item| ...} =\> item = nil?](https://www.ruby-forum.com/t/collection-each-item-item-nil/151357)

<div class="topic-metadata">

**Author:** [@joserwan](https://www.ruby-forum.com/u/joserwan)\
**Replies:** 2\
**Last updated:** [October 20, 2008, 6:04pm UTC](https://www.ruby-forum.com/t/collection-each-item-item-nil/151357 "2008-10-20T18:04:47Z")

</div>

Hi, I really don’t understand : In a partial, I have a collection “@users”, in wich I included “calls” : User.all(:include =\> :calls") in my controller. So, in the partial, I have something like : \<% @users.calls.ea…

---

## [Chrome and text\_field\_with\_auto\_complete](https://www.ruby-forum.com/t/chrome-and-text-field-with-auto-complete/151353)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 0\
**Last updated:** [October 20, 2008, 5:00pm UTC](https://www.ruby-forum.com/t/chrome-and-text-field-with-auto-complete/151353 "2008-10-20T17:00:06Z")

</div>

Having issues with an auto\_complete field on my rails app with users who use Chrome. The field does not allow you to choose anything when a selection is highligted and choosen. Was just wondering if anyone has fixed t…

---

## [ActionMailer template gets nil param from non-nil deliver\_](https://www.ruby-forum.com/t/actionmailer-template-gets-nil-param-from-non-nil-deliver/151192)

<div class="topic-metadata">

**Author:** [@fritza](https://www.ruby-forum.com/u/fritza)\
**Replies:** 1\
**Last updated:** [October 20, 2008, 4:59pm UTC](https://www.ruby-forum.com/t/actionmailer-template-gets-nil-param-from-non-nil-deliver/151192 "2008-10-20T16:59:14Z")

</div>

Rails 1.2.6 ruby 1.8.6 (2008-03-03 patchlevel 114) \[universal-darwin9.0\] =Summary: I pass a non-nil parameter to an ActionMailer class’s deliver\_\* method. The corresponding \* instance method for the ActionMailer gets…

---

## [\[JOBS\] Project: Site Search](https://www.ruby-forum.com/t/jobs-project-site-search/151354)

<div class="topic-metadata">

**Author:** [@scott](https://www.ruby-forum.com/u/scott)\
**Replies:** 0\
**Last updated:** [October 20, 2008, 4:57pm UTC](https://www.ruby-forum.com/t/jobs-project-site-search/151354 "2008-10-20T16:57:50Z")

</div>

Search Feature: Need a developer who can help with site’s Search Feature. Please reply at your convenience.

---

## [Page print for lightwindow](https://www.ruby-forum.com/t/page-print-for-lightwindow/151350)

<div class="topic-metadata">

**Author:** [@srinathbtech](https://www.ruby-forum.com/u/srinathbtech)\
**Replies:** 0\
**Last updated:** [October 20, 2008, 4:45pm UTC](https://www.ruby-forum.com/t/page-print-for-lightwindow/151350 "2008-10-20T16:45:39Z")

</div>

Hi, I was pondering how to print (printing on white paper with printer) the page opened in lightwindow . i was getting a list of foods on the page and provides a mouse over link for each food to open a lightwindow wit…

---

## [How to install community engine on windows?](https://www.ruby-forum.com/t/how-to-install-community-engine-on-windows/150418)

<div class="topic-metadata">

**Author:** [@sray](https://www.ruby-forum.com/u/sray)\
**Replies:** 1\
**Last updated:** [October 20, 2008, 4:15pm UTC](https://www.ruby-forum.com/t/how-to-install-community-engine-on-windows/150418 "2008-10-20T16:15:34Z")

</div>

Hi Can any body please tell me how can i install community engine on windows XP OS as i downloaded it from http://git.or.cz/.But the commands which is mention on Sign in - Google Accounts â€¦ ocial-site doesn’t work …

---

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

<div class="topic-metadata">

**Author:** [@tipsantos](https://www.ruby-forum.com/u/tipsantos)\
**Replies:** 2\
**Last updated:** [October 20, 2008, 3:33pm UTC](https://www.ruby-forum.com/t/pagination/151342 "2008-10-20T15:33:26Z")

</div>

Hello all… I’m new in Ruby on Rails. I’m doing an application which needs to use pagination. This is ok. I got to use it and I didn’t find any error. But I’ve got to put a city names “research” too. That’s the problem…

---

## [Migration from an existing database](https://www.ruby-forum.com/t/migration-from-an-existing-database/151337)

<div class="topic-metadata">

**Author:** [@flaubert](https://www.ruby-forum.com/u/flaubert)\
**Replies:** 2\
**Last updated:** [October 20, 2008, 3:15pm UTC](https://www.ruby-forum.com/t/migration-from-an-existing-database/151337 "2008-10-20T15:15:27Z")

</div>

hello all, Is there some way to generate migrations from an existing database structure? I have the schema.rb file, but it isn’t enough for me. I need the migration files… Please help!

---

## [Doubt in disk quota](https://www.ruby-forum.com/t/doubt-in-disk-quota/151340)

<div class="topic-metadata">

**Author:** [@rocknrollcar](https://www.ruby-forum.com/u/rocknrollcar)\
**Replies:** 0\
**Last updated:** [October 20, 2008, 3:13pm UTC](https://www.ruby-forum.com/t/doubt-in-disk-quota/151340 "2008-10-20T15:13:24Z")

</div>

Hi. I have a small doubt. 37signals, a company where the creator of Rails works has a project management application called basecamp. It is subscription based and its plans are based on the number of users and disk sp…

---

## [How do I only show items that belong to a certain user?](https://www.ruby-forum.com/t/how-do-i-only-show-items-that-belong-to-a-certain-user/151289)

<div class="topic-metadata">

**Author:** [@davidstokar](https://www.ruby-forum.com/u/davidstokar)\
**Replies:** 3\
**Last updated:** [October 20, 2008, 2:44pm UTC](https://www.ruby-forum.com/t/how-do-i-only-show-items-that-belong-to-a-certain-user/151289 "2008-10-20T14:44:48Z")

</div>

I have a web application with users and their documents. Each user can have many documents: user.rb: has\_many :documents document.rb: belongs\_to :user document\_controller.rb: def index @documents = Document.find(…

---

## [ApressDailyDeal - Practical Rails Plugins](https://www.ruby-forum.com/t/apressdailydeal-practical-rails-plugins/151338)

<div class="topic-metadata">

**Author:** [@sprsquish](https://www.ruby-forum.com/u/sprsquish)\
**Replies:** 0\
**Last updated:** [October 20, 2008, 2:42pm UTC](https://www.ruby-forum.com/t/apressdailydeal-practical-rails-plugins/151338 "2008-10-20T14:42:27Z")

</div>

Apress has a daily ebook deal where they discount a single ebook for 24 hours to $10. Recently they’ve been a bunch of older books, today’s is actually relevant and quite new: Practical Rails Plugins (http://rubyurl.…

---

## [Error\_messages\_for question](https://www.ruby-forum.com/t/error-messages-for-question/151274)

<div class="topic-metadata">

**Author:** [@jicksta](https://www.ruby-forum.com/u/jicksta)\
**Replies:** 3\
**Last updated:** [October 20, 2008, 2:04pm UTC](https://www.ruby-forum.com/t/error-messages-for-question/151274 "2008-10-20T14:04:46Z")

</div>

Hi I got a question about error\_messages\_for helper method in rails. I read that keeping it in the view helps report validation failure. I have used as follows in checkout.rhtml: checkout.rhtml: \<%=error\_messages\_fo…

---

## [How to add a dynamic data in erro pages](https://www.ruby-forum.com/t/how-to-add-a-dynamic-data-in-erro-pages/151324)

<div class="topic-metadata">

**Author:** [@sunfish](https://www.ruby-forum.com/u/sunfish)\
**Replies:** 4\
**Last updated:** [October 20, 2008, 1:33pm UTC](https://www.ruby-forum.com/t/how-to-add-a-dynamic-data-in-erro-pages/151324 "2008-10-20T13:33:37Z")

</div>

Hi, In my application i had two error pages for 500 and 404 error. 500.html and 404.html when someting went wrong this pages is called. but this pages are static pages if i want to add some dynamic data how i can add…

---

## [Site Search](https://www.ruby-forum.com/t/site-search/151317)

<div class="topic-metadata">

**Author:** [@scott](https://www.ruby-forum.com/u/scott)\
**Replies:** 2\
**Last updated:** [October 20, 2008, 1:30pm UTC](https://www.ruby-forum.com/t/site-search/151317 "2008-10-20T13:30:41Z")

</div>

Hello, if anyone can help implement/develop a site’s SEARCH feature please reply. Thanks.

---

## [Net::SSH::HostKeyMismatch Maybe cache](https://www.ruby-forum.com/t/net-hostkeymismatch-maybe-cache/151327)

<div class="topic-metadata">

**Author:** [@vanight](https://www.ruby-forum.com/u/vanight)\
**Replies:** 0\
**Last updated:** [October 20, 2008, 12:38pm UTC](https://www.ruby-forum.com/t/net-hostkeymismatch-maybe-cache/151327 "2008-10-20T12:38:17Z")

</div>

Hi, I have a function that call Net::SSH and I got a Net::SSH::HostKeyMismatch problem. However I’ve clean known\_hosts already and restart rails. I guess this is a caching problem. How can I clean cache so it won’t …

---

## [Need Feedback Please](https://www.ruby-forum.com/t/need-feedback-please/151299)

<div class="topic-metadata">

**Author:** [@yottameter](https://www.ruby-forum.com/u/yottameter)\
**Replies:** 1\
**Last updated:** [October 20, 2008, 11:49am UTC](https://www.ruby-forum.com/t/need-feedback-please/151299 "2008-10-20T11:49:38Z")

</div>

Is this recommended to use: http://agilewebdevelopment.com/plugins/restful\_authentication or is this sorta like login engine, and it’s going to be gone soon. or is there some ‘newer’ version out that I’m not aware of?…

---

## [Ensuring both objects in a one-to-many association are not saved without the presence of the other](https://www.ruby-forum.com/t/ensuring-both-objects-in-a-one-to-many-association-are-not-saved-without-the-presence-of-the-other/151306)

<div class="topic-metadata">

**Author:** [@evan](https://www.ruby-forum.com/u/evan)\
**Replies:** 5\
**Last updated:** [October 20, 2008, 11:45am UTC](https://www.ruby-forum.com/t/ensuring-both-objects-in-a-one-to-many-association-are-not-saved-without-the-presence-of-the-other/151306 "2008-10-20T11:45:32Z")

</div>

Hello. I have an object which is related to a second object through has\_many. The second object (obviously) is related to the first through belongs\_to. I want to ensure that neither object is saved to the database wi…

---

## [Server not starting](https://www.ruby-forum.com/t/server-not-starting/151318)

<div class="topic-metadata">

**Author:** [@Stewart](https://www.ruby-forum.com/u/Stewart)\
**Replies:** 1\
**Last updated:** [October 20, 2008, 11:29am UTC](https://www.ruby-forum.com/t/server-not-starting/151318 "2008-10-20T11:29:06Z")

</div>

Hey guys, I cant seem to start my rails server anymore. I have been working with no issue for about a week and then my project has stopped working. I suspect an issue with the ruby gems system. Here is the stack trac…

---

## [Make accessible object](https://www.ruby-forum.com/t/make-accessible-object/151313)

<div class="topic-metadata">

**Author:** [@jicksta](https://www.ruby-forum.com/u/jicksta)\
**Replies:** 1\
**Last updated:** [October 20, 2008, 11:26am UTC](https://www.ruby-forum.com/t/make-accessible-object/151313 "2008-10-20T11:26:09Z")

</div>

Hi, I’ve created a form and when I click “Place Order” button, I’m taken to the checkout details page with all the details about the customer and the bookings and then there is a “Confirm” button, on clicking which all …

---

## [Error with the DB?](https://www.ruby-forum.com/t/error-with-the-db/151316)

<div class="topic-metadata">

**Author:** [@lewicki](https://www.ruby-forum.com/u/lewicki)\
**Replies:** 0\
**Last updated:** [October 20, 2008, 11:07am UTC](https://www.ruby-forum.com/t/error-with-the-db/151316 "2008-10-20T11:07:52Z")

</div>

rake db:migrate (in C:/Documents and Settings/Administrador/My Documents/Aptana Studio/ batataonrails) rake aborted! undefined method \`each’ for #Mysql:0x3522530 (See full trace by running task with --trace) C:/R…

---

## [Cutting Edge Technologists wanted](https://www.ruby-forum.com/t/cutting-edge-technologists-wanted/151169)

<div class="topic-metadata">

**Author:** [@jstotz](https://www.ruby-forum.com/u/jstotz)\
**Replies:** 1\
**Last updated:** [October 20, 2008, 8:53am UTC](https://www.ruby-forum.com/t/cutting-edge-technologists-wanted/151169 "2008-10-20T08:53:37Z")

</div>

Hi All, If you have Ruby on Rails experience and fancy a change of scenery then feel free to call me on 020 8254 7487. I am excellent at finding great RoR Developers new opportunities. Get in touch

---

## [Using captcha](https://www.ruby-forum.com/t/using-captcha/151271)

<div class="topic-metadata">

**Author:** [@indu](https://www.ruby-forum.com/u/indu)\
**Replies:** 1\
**Last updated:** [October 20, 2008, 8:37am UTC](https://www.ruby-forum.com/t/using-captcha/151271 "2008-10-20T08:37:06Z")

</div>

Hello everyone, I’m trying to implement Captcha in my program.Anyone will please give me suggestion for using the best one,and the procedures for implementing it since I haven’t used it before for my program. for the …

---

## [Good caching books (esp. memcache)](https://www.ruby-forum.com/t/good-caching-books-esp-memcache/151301)

<div class="topic-metadata">

**Author:** [@galeal](https://www.ruby-forum.com/u/galeal)\
**Replies:** 1\
**Last updated:** [October 20, 2008, 6:47am UTC](https://www.ruby-forum.com/t/good-caching-books-esp-memcache/151301 "2008-10-20T06:47:44Z")

</div>

I’m currently working on a project that is under-going some major scaling, and we have a few people on board who are speeding up the site and using memcached for a lot of things. Can anyone recommend some good RoR Sit…

---

## [Requesting Newbie Guidence and Advice](https://www.ruby-forum.com/t/requesting-newbie-guidence-and-advice/81573)

<div class="topic-metadata">

**Author:** [@solutionmeister](https://www.ruby-forum.com/u/solutionmeister)\
**Replies:** 1\
**Last updated:** [October 20, 2008, 3:44am UTC](https://www.ruby-forum.com/t/requesting-newbie-guidence-and-advice/81573 "2008-10-20T03:44:46Z")

</div>

Hello all: As I am going through Ruby on Rails for the first time I would appreciate some clarifications from the gurus. I am new and I am bit confused by the following conceptions that I have gathered myself by read…

---

## [Fillable PDF](https://www.ruby-forum.com/t/fillable-pdf/151298)

<div class="topic-metadata">

**Author:** [@sijomo](https://www.ruby-forum.com/u/sijomo)\
**Replies:** 0\
**Last updated:** [October 20, 2008, 1:30am UTC](https://www.ruby-forum.com/t/fillable-pdf/151298 "2008-10-20T01:30:17Z")

</div>

Hi peoples, Does anyone have any knowledge of a ruby library for extracting fields from fillable PDFs? We have some that generate XFDF (which is just XML) that I can extract fine, but I don’t really want to have to wr…

---

## [Render file in a new browser tab](https://www.ruby-forum.com/t/render-file-in-a-new-browser-tab/151300)

<div class="topic-metadata">

**Author:** [@vicky](https://www.ruby-forum.com/u/vicky)\
**Replies:** 0\
**Last updated:** [October 20, 2008, 1:10am UTC](https://www.ruby-forum.com/t/render-file-in-a-new-browser-tab/151300 "2008-10-20T01:10:26Z")

</div>

Is there any way I can render or send\_file in a new browser tab or browser window? Vicky

---

## [Postgres adapter issues with Rails 2.1: ruby-pg is the answer!](https://www.ruby-forum.com/t/postgres-adapter-issues-with-rails-2-1-ruby-pg-is-the-answer/148554)

<div class="topic-metadata">

**Author:** [@skaufman](https://www.ruby-forum.com/u/skaufman)\
**Replies:** 3\
**Last updated:** [October 20, 2008, 1:09am UTC](https://www.ruby-forum.com/t/postgres-adapter-issues-with-rails-2-1-ruby-pg-is-the-answer/148554 "2008-10-20T01:09:12Z")

</div>

While upgrading Rails 2.0.2 sites to Rails 2.1.1, I encountered a weird postgres adapter problem. Although the old postgresql adapter (aka ruby-postgres) works fine with Rails 2.1.1 on my Mac dev box (running PG 8.2.6…

---

## [Use of validates\_uniqueness\_of for create but not for edit](https://www.ruby-forum.com/t/use-of-validates-uniqueness-of-for-create-but-not-for-edit/127441)

<div class="topic-metadata">

**Author:** [@yukti](https://www.ruby-forum.com/u/yukti)\
**Replies:** 5\
**Last updated:** [October 20, 2008, 12:47am UTC](https://www.ruby-forum.com/t/use-of-validates-uniqueness-of-for-create-but-not-for-edit/127441 "2008-10-20T00:47:51Z")

</div>

Hello People, I wanted to validate my form for duplicate entries while creating a new user . So I added validates\_uniqueness\_of in the users model. But it gets applied to the edit user code also. Since its an edit…

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

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