# Rails

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

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

---

## [Ordering by a child model count](https://www.ruby-forum.com/t/ordering-by-a-child-model-count/121276)

<div class="topic-metadata">

**Author:** [@dougal](https://www.ruby-forum.com/u/dougal)\
**Replies:** 5\
**Last updated:** [November 27, 2007, 12:02am UTC](https://www.ruby-forum.com/t/ordering-by-a-child-model-count/121276 "2007-11-27T00:02:48Z")

</div>

Hi folks. I’m trying to order a find result by a count of the child models. Example: Farmer has many chickens. Chickens belong to farmer. I want farmers returned, ordered by how many chickens they have. How can I d…

---

## [Alternative Download With Amazon S3](https://www.ruby-forum.com/t/alternative-download-with-amazon-s3/121314)

<div class="topic-metadata">

**Author:** [@ciocan](https://www.ruby-forum.com/u/ciocan)\
**Replies:** 3\
**Last updated:** [November 26, 2007, 11:33pm UTC](https://www.ruby-forum.com/t/alternative-download-with-amazon-s3/121314 "2007-11-26T23:33:32Z")

</div>

Hello, I want to make an alternative download using amazon s3 I use http://amazon.rubyforge.org/ gem I tried object = AWS::S3::S3Object.find ‘myfile.zip’, ‘mybucket’ send\_data ob.value, :filename =\> ‘myfile.zip’ an…

---

## [Method added in plugin is not immediately avail.?](https://www.ruby-forum.com/t/method-added-in-plugin-is-not-immediately-avail/121291)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 4\
**Last updated:** [November 26, 2007, 11:20pm UTC](https://www.ruby-forum.com/t/method-added-in-plugin-is-not-immediately-avail/121291 "2007-11-26T23:20:04Z")

</div>

Hi all I have the following controller: class MemberController \< ApplicationController performs\_authentication :user\_model\_class =\> Member performs\_scaffolding :only =\> \[:show, :edit\], :model\_id =\> user.id … end T…

---

## [Small problem with developing a plugin](https://www.ruby-forum.com/t/small-problem-with-developing-a-plugin/121330)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 1\
**Last updated:** [November 26, 2007, 11:12pm UTC](https://www.ruby-forum.com/t/small-problem-with-developing-a-plugin/121330 "2007-11-26T23:12:28Z")

</div>

Hi all I’m developing a plugin that looks like this so far: module ActsAsAuthenticated def self.included(base) base.extend(ClassMethods) end module ClassMethods def acts\_as\_authenticated(options = {}) options…

---

## [How To: Build shell equivalent of a rails app](https://www.ruby-forum.com/t/how-to-build-shell-equivalent-of-a-rails-app/119271)

<div class="topic-metadata">

**Author:** [@aginghipster](https://www.ruby-forum.com/u/aginghipster)\
**Replies:** 5\
**Last updated:** [November 26, 2007, 11:04pm UTC](https://www.ruby-forum.com/t/how-to-build-shell-equivalent-of-a-rails-app/119271 "2007-11-26T23:04:17Z")

</div>

Hey folks, I have an application that I have written in Rails and I am wondering about the feasability of writing an equivalent as a shell app using rails concepts. The initial app was interactive and made sense beign…

---

## [Survey Forms with Ruby on Rails](https://www.ruby-forum.com/t/survey-forms-with-ruby-on-rails/121331)

<div class="topic-metadata">

**Author:** [@mark](https://www.ruby-forum.com/u/mark)\
**Replies:** 0\
**Last updated:** [November 26, 2007, 10:54pm UTC](https://www.ruby-forum.com/t/survey-forms-with-ruby-on-rails/121331 "2007-11-26T22:54:52Z")

</div>

I have a few forms i need to do. (IE: Sales Survey Form, Production Survey Form, Tech Support Survey Form Etc.) but i don’t know how to or where to get started or anything. Each form like the sales form is completely …

---

## [Show DIV from controller](https://www.ruby-forum.com/t/show-div-from-controller/121210)

<div class="topic-metadata">

**Author:** [@comopasta](https://www.ruby-forum.com/u/comopasta)\
**Replies:** 9\
**Last updated:** [November 26, 2007, 9:44pm UTC](https://www.ruby-forum.com/t/show-div-from-controller/121210 "2007-11-26T21:44:31Z")

</div>

Hi, I’ve got a basic question but I just can’t find a way or example to do it. I have a DIV in my rhtml: Some text about errors What I’d like to do is to make it visible from the controller. I’ve tried things like …

---

## [Autotest problem, can you possibly help me?](https://www.ruby-forum.com/t/autotest-problem-can-you-possibly-help-me/121315)

<div class="topic-metadata">

**Author:** [@Piotr\_N](https://www.ruby-forum.com/u/Piotr_N)\
**Replies:** 1\
**Last updated:** [November 26, 2007, 8:35pm UTC](https://www.ruby-forum.com/t/autotest-problem-can-you-possibly-help-me/121315 "2007-11-26T20:35:40Z")

</div>

Hi, Im running windows xp and configured autotest with: http://railsforum.com/viewtopic.php?pid=4796 when i do autotest --rails i get following error: D:/servers/InstantRails/ruby/lib/ruby/gems/1.8/gems/ZenTest-3.6…

---

## [Validations - When do they get called](https://www.ruby-forum.com/t/validations-when-do-they-get-called/121307)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 1\
**Last updated:** [November 26, 2007, 6:47pm UTC](https://www.ruby-forum.com/t/validations-when-do-they-get-called/121307 "2007-11-26T18:47:51Z")

</div>

Just a simple of question of when do validations get called? Do they get called on save or new or do they get called whenever an instance of that object gets called? Thanks, -S

---

## [Problem with menu functionality](https://www.ruby-forum.com/t/problem-with-menu-functionality/121308)

<div class="topic-metadata">

**Author:** [@weloki](https://www.ruby-forum.com/u/weloki)\
**Replies:** 0\
**Last updated:** [November 26, 2007, 6:35pm UTC](https://www.ruby-forum.com/t/problem-with-menu-functionality/121308 "2007-11-26T18:35:27Z")

</div>

Hi, I’m trying to display separate menus based on records in database tables. The menus are situated within a form which separates the menus based on their service type. The ‘service’ table references the costcenter\_i…

---

## [Acts\_as\_taggable\_on\_steroids](https://www.ruby-forum.com/t/acts-as-taggable-on-steroids/121093)

<div class="topic-metadata">

**Author:** [@barbie](https://www.ruby-forum.com/u/barbie)\
**Replies:** 4\
**Last updated:** [November 26, 2007, 6:33pm UTC](https://www.ruby-forum.com/t/acts-as-taggable-on-steroids/121093 "2007-11-26T18:33:13Z")

</div>

hello, after initial confusion which taggable plugin to use, i decided the steroids are the only option for my rails version. installed from http://svn.viney.net.nz/things/rails/pl â€¦ \_steroids. ran script/generate …

---

## [Western New York Ruby User's Group -- TONIGHT!](https://www.ruby-forum.com/t/western-new-york-ruby-users-group-tonight/121301)

<div class="topic-metadata">

**Author:** [@McPhage](https://www.ruby-forum.com/u/McPhage)\
**Replies:** 0\
**Last updated:** [November 26, 2007, 5:43pm UTC](https://www.ruby-forum.com/t/western-new-york-ruby-users-group-tonight/121301 "2007-11-26T17:43:22Z")

</div>

Hey all, sorry for the last-minute notification, but if you’re in Buffalo, the Western New York area (or Southern Ontario), we’re planning on having a Ruby user’s group meeting: Tonight (November 26th) 7pm Spot Coff…

---

## [\<meta name="generator" content="Rails1.2.3" /\>](https://www.ruby-forum.com/t/meta-name-generator-content-rails1-2-3/120928)

<div class="topic-metadata">

**Author:** [@ahab](https://www.ruby-forum.com/u/ahab)\
**Replies:** 3\
**Last updated:** [November 26, 2007, 5:10pm UTC](https://www.ruby-forum.com/t/meta-name-generator-content-rails1-2-3/120928 "2007-11-26T17:10:35Z")

</div>

Wordpress has Is there any equivalent standard for Rails that I don’t know about?

---

## [BOINC integration](https://www.ruby-forum.com/t/boinc-integration/121295)

<div class="topic-metadata">

**Author:** [@jonas\_s](https://www.ruby-forum.com/u/jonas_s)\
**Replies:** 0\
**Last updated:** [November 26, 2007, 5:03pm UTC](https://www.ruby-forum.com/t/boinc-integration/121295 "2007-11-26T17:03:33Z")

</div>

Hi folks, is it possible to integrate BOINC with RoR? (BOINC = Distributed Computing system) Are there any existing classes or Interfaces or do I have to write them myself? Any ideas? Greets, Jonas

---

## [Inserting multiple rows in the table at same time](https://www.ruby-forum.com/t/inserting-multiple-rows-in-the-table-at-same-time/121275)

<div class="topic-metadata">

**Author:** [@ror-user](https://www.ruby-forum.com/u/ror-user)\
**Replies:** 10\
**Last updated:** [November 26, 2007, 3:32pm UTC](https://www.ruby-forum.com/t/inserting-multiple-rows-in-the-table-at-same-time/121275 "2007-11-26T15:32:51Z")

</div>

Hi all, I have to implement the functionality where I have to insert multiple rows at the same time in the table. The functionality is implemented but it is taking only the first row multiple times. The view is: Qu…

---

## [Radiant CMS](https://www.ruby-forum.com/t/radiant-cms/196527)

<div class="topic-metadata">

**Author:** [@chaitubangari](https://www.ruby-forum.com/u/chaitubangari)\
**Replies:** 0\
**Last updated:** [November 26, 2007, 3:10pm UTC](https://www.ruby-forum.com/t/radiant-cms/196527 "2007-11-26T15:10:40Z")

</div>

how to integrate a rails application in ruby on rails

---

## [Desperately need an advanced zip code database](https://www.ruby-forum.com/t/desperately-need-an-advanced-zip-code-database/121253)

<div class="topic-metadata">

**Author:** [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Replies:** 3\
**Last updated:** [November 26, 2007, 3:05pm UTC](https://www.ruby-forum.com/t/desperately-need-an-advanced-zip-code-database/121253 "2007-11-26T15:05:00Z")

</div>

I found a million zip code databases on the internet. I was curious if there were other database that have more than just zip codes. I live in New York City and there are different areas here, soho, noho, etc. Is ther…

---

## [Has\_and\_belongs\_to\_many - Access to Linkingtable](https://www.ruby-forum.com/t/has-and-belongs-to-many-access-to-linkingtable/121282)

<div class="topic-metadata">

**Author:** [@lpp-rob](https://www.ruby-forum.com/u/lpp-rob)\
**Replies:** 1\
**Last updated:** [November 26, 2007, 1:49pm UTC](https://www.ruby-forum.com/t/has-and-belongs-to-many-access-to-linkingtable/121282 "2007-11-26T13:49:14Z")

</div>

Hello, i just don’t get how to refer and edit the automaticly generated table by has\_many\_belongs\_to\_many (n:m) relation. Here are my basics (shortend): class Country \< ActiveRecord::Base has\_and\_belongs\_to\_many :re…

---

## [How do I submit a text field and return to a new page?](https://www.ruby-forum.com/t/how-do-i-submit-a-text-field-and-return-to-a-new-page/121268)

<div class="topic-metadata">

**Author:** [@Vijay\_Rao](https://www.ruby-forum.com/u/Vijay_Rao)\
**Replies:** 1\
**Last updated:** [November 26, 2007, 1:25pm UTC](https://www.ruby-forum.com/t/how-do-i-submit-a-text-field-and-return-to-a-new-page/121268 "2007-11-26T13:25:10Z")

</div>

Hello, I know what I am trying to do is pretty basic but for a newbie like me everything is very daunting right now. Please help me. The scenario I am trying to program is this. The user enters a string in the searc…

---

## [Redirect\_to restful-ful resource create action](https://www.ruby-forum.com/t/redirect-to-restful-ful-resource-create-action/121273)

<div class="topic-metadata">

**Author:** [@dave](https://www.ruby-forum.com/u/dave)\
**Replies:** 0\
**Last updated:** [November 26, 2007, 11:46am UTC](https://www.ruby-forum.com/t/redirect-to-restful-ful-resource-create-action/121273 "2007-11-26T11:46:08Z")

</div>

Hello, What’s a neat way to redirect\_to the create action of a restful resource? Unless the request is POST, you fall through to the index action. For example: a logged out user submits the following a comment form. …

---

## [Use default CSS class within Custom FormBuilder](https://www.ruby-forum.com/t/use-default-css-class-within-custom-formbuilder/121159)

<div class="topic-metadata">

**Author:** [@gabru](https://www.ruby-forum.com/u/gabru)\
**Replies:** 1\
**Last updated:** [November 26, 2007, 11:34am UTC](https://www.ruby-forum.com/t/use-default-css-class-within-custom-formbuilder/121159 "2007-11-26T11:34:11Z")

</div>

i have created a custom formbuilder … class Std\_Form\_Builder \< ActionView::Helpers::FormBuilder def self.create\_field(method\_name) define\_method(method\_name) do |label, \*args| @template.content\_tag(‘div’, @template.…

---

## [Ruby-debug 0.9.3 and Rails 2rc1: falls directly to irb](https://www.ruby-forum.com/t/ruby-debug-0-9-3-and-rails-2rc1-falls-directly-to-irb/121267)

<div class="topic-metadata">

**Author:** [@enduro](https://www.ruby-forum.com/u/enduro)\
**Replies:** 2\
**Last updated:** [November 26, 2007, 10:37am UTC](https://www.ruby-forum.com/t/ruby-debug-0-9-3-and-rails-2rc1-falls-directly-to-irb/121267 "2007-11-26T10:37:56Z")

</div>

Hi When starting my Rails 2rc1 app with “script/server --debugger”, the console falls directly into irb once a “debugger” statement is encountered. Any idea what I have to do in order to be thrown into the debugger …

---

## [Very Important Web Sites on the .Net](https://www.ruby-forum.com/t/very-important-web-sites-on-the-net/121264)

<div class="topic-metadata">

**Author:** [@Tacticboard](https://www.ruby-forum.com/u/Tacticboard)\
**Replies:** 0\
**Last updated:** [November 26, 2007, 10:12am UTC](https://www.ruby-forum.com/t/very-important-web-sites-on-the-net/121264 "2007-11-26T10:12:26Z")

</div>

Hi all. Ýs your web site Very Important. Ýf your anwers is yes then You must see Viws.net Ýt is Very Important Web S.s on the .Net www.viws.net

---

## [Starting WEBrick from a ruby script](https://www.ruby-forum.com/t/starting-webrick-from-a-ruby-script/121259)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 2\
**Last updated:** [November 26, 2007, 9:33am UTC](https://www.ruby-forum.com/t/starting-webrick-from-a-ruby-script/121259 "2007-11-26T09:33:16Z")

</div>

Depending on how WEBrick in invoked I get different results. If I invoke it like “expenses/script/server” and point the browser to \<http:// localhost:3000/expenses\> I’ll get: Not Found \`/expenses’ not found. WEBri…

---

## [Action Controller: Exception caught](https://www.ruby-forum.com/t/action-controller-exception-caught/121209)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 2\
**Last updated:** [November 26, 2007, 9:23am UTC](https://www.ruby-forum.com/t/action-controller-exception-caught/121209 "2007-11-26T09:23:20Z")

</div>

I’m getting: Routing Error no route found to match “/expenses/” with {:method=\>:get} When pointing the browser to http://localhost:3000/expenses/ as per the tutorial at http://developer.apple.com/tools/rubyonrails.h…

---

## [iText, Rails, and OS X](https://www.ruby-forum.com/t/itext-rails-and-os-x/120923)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 1\
**Last updated:** [November 26, 2007, 9:12am UTC](https://www.ruby-forum.com/t/itext-rails-and-os-x/120923 "2007-11-26T09:12:48Z")

</div>

I have the need to take existing PDFs and populate them with data entered via HTML forms. Data saved to database, entered in to PDF file, PDF file with data archived, and then distributed va email and/ or download. T…

---

## [Collection\_select :onchange event](https://www.ruby-forum.com/t/collection-select-onchange-event/121170)

<div class="topic-metadata">

**Author:** [@flaubert](https://www.ruby-forum.com/u/flaubert)\
**Replies:** 1\
**Last updated:** [November 26, 2007, 8:11am UTC](https://www.ruby-forum.com/t/collection-select-onchange-event/121170 "2007-11-26T08:11:26Z")

</div>

Hello, it´s simple, i have an collection\_select that work well and im trying to fire some action in the controller passing the value that the user has selected. obs: without ajax request…

---

## [How to generate c1 and c2 reports for Rcov](https://www.ruby-forum.com/t/how-to-generate-c1-and-c2-reports-for-rcov/121079)

<div class="topic-metadata">

**Author:** [@chandrahasanreddy](https://www.ruby-forum.com/u/chandrahasanreddy)\
**Replies:** 3\
**Last updated:** [November 26, 2007, 5:48am UTC](https://www.ruby-forum.com/t/how-to-generate-c1-and-c2-reports-for-rcov/121079 "2007-11-26T05:48:12Z")

</div>

Hi all, I am implementing the Rcov stuff in my application and i was able to generate c0 Report but i am in confusion about how to generate c1 and c2 reports. Could some one please guide me for the same. Thanks a …

---

## [Rails 2.0 strangeness. Default layouts not working, methods in application controller not visible](https://www.ruby-forum.com/t/rails-2-0-strangeness-default-layouts-not-working-methods-in-application-controller-not-visible/121199)

<div class="topic-metadata">

**Author:** [@snacktime](https://www.ruby-forum.com/u/snacktime)\
**Replies:** 1\
**Last updated:** [November 26, 2007, 5:23am UTC](https://www.ruby-forum.com/t/rails-2-0-strangeness-default-layouts-not-working-methods-in-application-controller-not-visible/121199 "2007-11-26T05:23:51Z")

</div>

Either my app has some bad config files, or some basic behaviors have changed without any documentation. Default layouts are not being applied Helper methods in application\_helper.rb not visible unless helper :all is…

---

## [How do you display all entries of a user's children?](https://www.ruby-forum.com/t/how-do-you-display-all-entries-of-a-users-children/121251)

<div class="topic-metadata">

**Author:** [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Replies:** 1\
**Last updated:** [November 26, 2007, 4:05am UTC](https://www.ruby-forum.com/t/how-do-you-display-all-entries-of-a-users-children/121251 "2007-11-26T04:05:43Z")

</div>

I’m building a test application where admin users have sub-users. Now, I want to let the admin user see all entries of their sub-users. For instance, I tried: “current\_user.children.entries” (where current\_user is the…

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

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