# Rails

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

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

---

## [Neglect of family and friends](https://www.ruby-forum.com/t/neglect-of-family-and-friends/113552)

<div class="topic-metadata">

**Author:** [@Fredeline](https://www.ruby-forum.com/u/Fredeline)\
**Replies:** 0\
**Last updated:** [September 1, 2007, 6:02pm UTC](https://www.ruby-forum.com/t/neglect-of-family-and-friends/113552 "2007-09-01T18:02:25Z")

</div>

======================================== Do you know anyone who plays computer all the time? Perhaps their personal relationships, work and social life are suffering due to their desire to constantly play computer? I…

---

## [Is this dry? (models & migrations)](https://www.ruby-forum.com/t/is-this-dry-models-migrations/113486)

<div class="topic-metadata">

**Author:** [@student](https://www.ruby-forum.com/u/student)\
**Replies:** 5\
**Last updated:** [September 1, 2007, 5:39pm UTC](https://www.ruby-forum.com/t/is-this-dry-models-migrations/113486 "2007-09-01T17:39:24Z")

</div>

I’m creating a tool for a preexisting distributed SQL database. One of the things I’m doing is taking an SQL dump of the schema and transforming it into models. It strikes me that there appears to be a lot of duplic…

---

## [PDF Format](https://www.ruby-forum.com/t/pdf-format/113548)

<div class="topic-metadata">

**Author:** [@selva](https://www.ruby-forum.com/u/selva)\
**Replies:** 0\
**Last updated:** [September 1, 2007, 4:15pm UTC](https://www.ruby-forum.com/t/pdf-format/113548 "2007-09-01T16:15:40Z")

</div>

Hi I am Using the PDF:Writer to generate the pdf file. I getting trouble to format the pdf like making border and line for each heading… I saw the wiki site its giving basic information… Can I get any other example? …

---

## [Am i missing something or has the rails wiki been hacked lik](https://www.ruby-forum.com/t/am-i-missing-something-or-has-the-rails-wiki-been-hacked-lik/113547)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [September 1, 2007, 3:52pm UTC](https://www.ruby-forum.com/t/am-i-missing-something-or-has-the-rails-wiki-been-hacked-lik/113547 "2007-09-01T15:52:10Z")

</div>

am i missing something or has the rails wiki been hacked like for a week now???

---

## [Capistrano & Windows woes](https://www.ruby-forum.com/t/capistrano-windows-woes/113538)

<div class="topic-metadata">

**Author:** [@jnicholson](https://www.ruby-forum.com/u/jnicholson)\
**Replies:** 4\
**Last updated:** [September 1, 2007, 3:45pm UTC](https://www.ruby-forum.com/t/capistrano-windows-woes/113538 "2007-09-01T15:45:10Z")

</div>

I’ve managed to setup SVN on my windows XP box without too much hassle. I can commit and export without any problems. But when I try to run cap deploy I get the error below. Any ideas? —ERROR--------------------------…

---

## [Large POSTs through Apache mod\_proxy to mongrel failing](https://www.ruby-forum.com/t/large-posts-through-apache-mod-proxy-to-mongrel-failing/113428)

<div class="topic-metadata">

**Author:** [@Clifford\_H](https://www.ruby-forum.com/u/Clifford_H)\
**Replies:** 1\
**Last updated:** [September 1, 2007, 9:15am UTC](https://www.ruby-forum.com/t/large-posts-through-apache-mod-proxy-to-mongrel-failing/113428 "2007-09-01T09:15:19Z")

</div>

I have an Apache2 server working nicely with mod\_proxy pointing at mongrel that’s started using --prefix. One of my forms allows file upload, with the expectation of large files. When I upload a file of 370KB (from Fi…

---

## [Rails Wiki hacked?](https://www.ruby-forum.com/t/rails-wiki-hacked/113315)

<div class="topic-metadata">

**Author:** [@Slant](https://www.ruby-forum.com/u/Slant)\
**Replies:** 2\
**Last updated:** [September 1, 2007, 8:02am UTC](https://www.ruby-forum.com/t/rails-wiki-hacked/113315 "2007-09-01T08:02:15Z")

</div>

Either the Rails wiki has been hacked or someone internal wanted easier access to porn. http://wiki.rubyonrails.org/rails/ If you inspect the action of the search form on this page, you will see that it now sends any…

---

## [Embellishing String (or whatever) for AR attributes](https://www.ruby-forum.com/t/embellishing-string-or-whatever-for-ar-attributes/113525)

<div class="topic-metadata">

**Author:** [@noel](https://www.ruby-forum.com/u/noel)\
**Replies:** 2\
**Last updated:** [September 1, 2007, 7:56am UTC](https://www.ruby-forum.com/t/embellishing-string-or-whatever-for-ar-attributes/113525 "2007-09-01T07:56:15Z")

</div>

Forgive my extreme noobishness, but why doesn’t the following work? class Wombat \< ActiveRecord::Base validates\_presence\_of :name class String def normalize self.upcase end end def name=(name) write\_attribute(:n…

---

## [Problem with custom Mime::Type.register](https://www.ruby-forum.com/t/problem-with-custom-mime-type-register/113532)

<div class="topic-metadata">

**Author:** [@ktheory](https://www.ruby-forum.com/u/ktheory)\
**Replies:** 0\
**Last updated:** [September 1, 2007, 6:59am UTC](https://www.ruby-forum.com/t/problem-with-custom-mime-type-register/113532 "2007-09-01T06:59:45Z")

</div>

Hello all, I’m running into a slight problem with Rails and the respond\_to function in controllers. I’ve registered a custom Mime::Type of application/x-amf :amf (Mime::Type.register “application/x-amf”, :amf). The pr…

---

## [Run SQL](https://www.ruby-forum.com/t/run-sql/113509)

<div class="topic-metadata">

**Author:** [@demoversion](https://www.ruby-forum.com/u/demoversion)\
**Replies:** 1\
**Last updated:** [September 1, 2007, 5:01am UTC](https://www.ruby-forum.com/t/run-sql/113509 "2007-09-01T05:01:05Z")

</div>

Hello all, how i can execute SQL code without and create tables when I do rake db:migrate? Thank you

---

## [How to embed a route url inside of a helper, to return a pat](https://www.ruby-forum.com/t/how-to-embed-a-route-url-inside-of-a-helper-to-return-a-pat/113444)

<div class="topic-metadata">

**Author:** [@arachnd](https://www.ruby-forum.com/u/arachnd)\
**Replies:** 1\
**Last updated:** [September 1, 2007, 2:27am UTC](https://www.ruby-forum.com/t/how-to-embed-a-route-url-inside-of-a-helper-to-return-a-pat/113444 "2007-09-01T02:27:54Z")

</div>

I am creating custom link\_to’s and I’m trying to figure out how to embed a path inside of my method to return a custom link. for e.g Let’s say I need to do this =\> “SomeAPi.com is for sale | HugeDomains” path\_to\_obj…

---

## [Shared users](https://www.ruby-forum.com/t/shared-users/113511)

<div class="topic-metadata">

**Author:** [@marcbey](https://www.ruby-forum.com/u/marcbey)\
**Replies:** 2\
**Last updated:** [September 1, 2007, 2:17am UTC](https://www.ruby-forum.com/t/shared-users/113511 "2007-09-01T02:17:53Z")

</div>

Hi, I have three RoR apps with the same users. It would be nice if they didn’t have to create usernames and passwords for each… What’s the best practice? Create one users table, replicate it to the other apps Crea…

---

## [Convert XML elements to activerecord objects](https://www.ruby-forum.com/t/convert-xml-elements-to-activerecord-objects/113389)

<div class="topic-metadata">

**Author:** [@johnnybutler7](https://www.ruby-forum.com/u/johnnybutler7)\
**Replies:** 1\
**Last updated:** [August 31, 2007, 9:45pm UTC](https://www.ruby-forum.com/t/convert-xml-elements-to-activerecord-objects/113389 "2007-08-31T21:45:47Z")

</div>

hi, I wonder if this is possible as i find myself repeating code which is not a good sign, Kent Becks “3 strikes and your out” rule. I am reading in a bunch of xml objects using REXML. So for instance a couple are b…

---

## [2 or more parents, child](https://www.ruby-forum.com/t/2-or-more-parents-child/113487)

<div class="topic-metadata">

**Author:** [@marcbey](https://www.ruby-forum.com/u/marcbey)\
**Replies:** 2\
**Last updated:** [August 31, 2007, 9:16pm UTC](https://www.ruby-forum.com/t/2-or-more-parents-child/113487 "2007-08-31T21:16:33Z")

</div>

Hello, Here’s what I hope to accomplish: A task may have 0,1, or more parent tasks - for example, a task may be top-level, or a simple sub-task (1 parent), or a multi-purpose task (e.g. setting up automatic backup o…

---

## [Problem scaffolding using "namespace"](https://www.ruby-forum.com/t/problem-scaffolding-using-namespace/113503)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [August 31, 2007, 9:16pm UTC](https://www.ruby-forum.com/t/problem-scaffolding-using-namespace/113503 "2007-08-31T21:16:32Z")

</div>

Hello, When executing “ruby script/generate model Namespace::Person” the script create (as expected) “./models/namespace/person.rb”. Also a migration file is created. When executing “ruby script/generate controller N…

---

## [\[OT\] How do you fix quoting so that ruby-forum.com is happy?](https://www.ruby-forum.com/t/ot-how-do-you-fix-quoting-so-that-ruby-forum-com-is-happy/113471)

<div class="topic-metadata">

**Author:** [@dezrtdude](https://www.ruby-forum.com/u/dezrtdude)\
**Replies:** 1\
**Last updated:** [August 31, 2007, 8:41pm UTC](https://www.ruby-forum.com/t/ot-how-do-you-fix-quoting-so-that-ruby-forum-com-is-happy/113471 "2007-08-31T20:41:28Z")

</div>

I’m subscribed to this Google Group through email and reply to messages through Thunderbird but many of the messages I quote have the quoted part truncated or otherwise messed up when displayed in ruby-forum.com, whic…

---

## [Problem accessing mixin module methods from views](https://www.ruby-forum.com/t/problem-accessing-mixin-module-methods-from-views/113196)

<div class="topic-metadata">

**Author:** [@yardboy](https://www.ruby-forum.com/u/yardboy)\
**Replies:** 2\
**Last updated:** [August 31, 2007, 8:37pm UTC](https://www.ruby-forum.com/t/problem-accessing-mixin-module-methods-from-views/113196 "2007-08-31T20:37:29Z")

</div>

I’m trying to write a module to be used as a mix-in, my first attempt at such. This sample code outlines the basics of what I’ve done so far… /lib/foo.rb: require ‘foo/base’ module Foo include FooBase end /lib/foo…

---

## [Bug in caches\_action?](https://www.ruby-forum.com/t/bug-in-caches-action/113500)

<div class="topic-metadata">

**Author:** [@plambert](https://www.ruby-forum.com/u/plambert)\
**Replies:** 0\
**Last updated:** [August 31, 2007, 8:23pm UTC](https://www.ruby-forum.com/t/bug-in-caches-action/113500 "2007-08-31T20:23:26Z")

</div>

Has anyone actually seen a before filter being called once an action is cached with caches\_action? When I try to use caches action, the before filter is called only if the action hasn’t already been cached. In other…

---

## [ActionController without rails?](https://www.ruby-forum.com/t/actioncontroller-without-rails/113499)

<div class="topic-metadata">

**Author:** [@ktheory](https://www.ruby-forum.com/u/ktheory)\
**Replies:** 0\
**Last updated:** [August 31, 2007, 7:53pm UTC](https://www.ruby-forum.com/t/actioncontroller-without-rails/113499 "2007-08-31T19:53:52Z")

</div>

Hey all, does ActionController have capabilities to work without rails? How could get actioncontroller to process all the same things that it does in rails but without rails essentially… class TestController \< ActionC…

---

## [Attaching file to email editor](https://www.ruby-forum.com/t/attaching-file-to-email-editor/113496)

<div class="topic-metadata">

**Author:** [@dgm](https://www.ruby-forum.com/u/dgm)\
**Replies:** 0\
**Last updated:** [August 31, 2007, 7:24pm UTC](https://www.ruby-forum.com/t/attaching-file-to-email-editor/113496 "2007-08-31T19:24:00Z")

</div>

I’m trying to use the mailto link to attach a file to the email editor. Something like this: email file doesn’t seem to work. Any suggestions? Does rails have something that manages this?

---

## [And end?](https://www.ruby-forum.com/t/and-end/113489)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 3\
**Last updated:** [August 31, 2007, 6:59pm UTC](https://www.ruby-forum.com/t/and-end/113489 "2007-08-31T18:59:36Z")

</div>

Im trying to remember the way in which you can call a method but tell it not to return and I think it was ‘and end,’ or something like that? An example would be, render :partial =\> ‘test’, and end Is that correct or …

---

## [Proper rails mvc design: question about where to put certain](https://www.ruby-forum.com/t/proper-rails-mvc-design-question-about-where-to-put-certain/113495)

<div class="topic-metadata">

**Author:** [@Ladina\_Rothaus](https://www.ruby-forum.com/u/Ladina_Rothaus)\
**Replies:** 0\
**Last updated:** [August 31, 2007, 6:48pm UTC](https://www.ruby-forum.com/t/proper-rails-mvc-design-question-about-where-to-put-certain/113495 "2007-08-31T18:48:17Z")

</div>

hi there! ok heres my problem: i have a box where i want to display upcoming radio shows. the one which is currently running plus the n next ones. so there should be a call to render a (or 2) templates in my main la…

---

## [FeedTools and open timeout](https://www.ruby-forum.com/t/feedtools-and-open-timeout/113490)

<div class="topic-metadata">

**Author:** [@oldbug](https://www.ruby-forum.com/u/oldbug)\
**Replies:** 0\
**Last updated:** [August 31, 2007, 6:19pm UTC](https://www.ruby-forum.com/t/feedtools-and-open-timeout/113490 "2007-08-31T18:19:56Z")

</div>

Hello, Is there a way to define a timeout using the FeedTools::Feed.open command ? Can figure out how to do this, and i need it Thanks

---

## [Best rails bookcook?](https://www.ruby-forum.com/t/best-rails-bookcook/113012)

<div class="topic-metadata">

**Author:** [@fred](https://www.ruby-forum.com/u/fred)\
**Replies:** 4\
**Last updated:** [August 31, 2007, 6:01pm UTC](https://www.ruby-forum.com/t/best-rails-bookcook/113012 "2007-08-31T18:01:26Z")

</div>

Hi everyone, I was wondering which rails cookbook book people would recommend? The O’Reilly one,or the Pragmmatic one. Thanks for your time, Fred

---

## [Partial text search using ferret search](https://www.ruby-forum.com/t/partial-text-search-using-ferret-search/113450)

<div class="topic-metadata">

**Author:** [@santoshat20007](https://www.ruby-forum.com/u/santoshat20007)\
**Replies:** 1\
**Last updated:** [August 31, 2007, 5:13pm UTC](https://www.ruby-forum.com/t/partial-text-search-using-ferret-search/113450 "2007-08-31T17:13:03Z")

</div>

Hi, I have gone through the ferret search engine which is full-text search. Is there any way to make partial text search using ferret search engine or is there any other engine for partial text search

---

## [Firebird find method return nil](https://www.ruby-forum.com/t/firebird-find-method-return-nil/113464)

<div class="topic-metadata">

**Author:** [@gasta](https://www.ruby-forum.com/u/gasta)\
**Replies:** 1\
**Last updated:** [August 31, 2007, 5:08pm UTC](https://www.ruby-forum.com/t/firebird-find-method-return-nil/113464 "2007-08-31T17:08:12Z")

</div>

I use the firebird db. I have a Users table If in ruby user\_controller I use users = User.find(:all) print(users) I view nil Can you help me? Thank you Andrea

---

## [:select with select helper](https://www.ruby-forum.com/t/select-with-select-helper/113484)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 1\
**Last updated:** [August 31, 2007, 4:40pm UTC](https://www.ruby-forum.com/t/select-with-select-helper/113484 "2007-08-31T16:40:22Z")

</div>

Here is an interesting behavior that I have noticed is rather common with R0R. I have two select helpers being used in a form. Both are supposed to display a list of stuff, but if either should already have an item in…

---

## [Has\_and\_belongs\_to\_many question](https://www.ruby-forum.com/t/has-and-belongs-to-many-question/113479)

<div class="topic-metadata">

**Author:** [@mariko](https://www.ruby-forum.com/u/mariko)\
**Replies:** 2\
**Last updated:** [August 31, 2007, 4:21pm UTC](https://www.ruby-forum.com/t/has-and-belongs-to-many-question/113479 "2007-08-31T16:21:57Z")

</div>

So I’m playing around with models right now, and according to the Agile Web D. with Rails book, this should express a many to many relationship: class Request \< ActiveRecord::Base has\_and\_belongs\_to\_many :users end …

---

## [Wiki.rubyonrails.org on the fritz](https://www.ruby-forum.com/t/wiki-rubyonrails-org-on-the-fritz/113483)

<div class="topic-metadata">

**Author:** [@scottd72](https://www.ruby-forum.com/u/scottd72)\
**Replies:** 1\
**Last updated:** [August 31, 2007, 4:11pm UTC](https://www.ruby-forum.com/t/wiki-rubyonrails-org-on-the-fritz/113483 "2007-08-31T16:11:56Z")

</div>

Is there some reason the wiki is down so often? Can’t something be done to make this a useful resource, most of the time? Scott

---

## [My First Rail - script/server not working](https://www.ruby-forum.com/t/my-first-rail-script-server-not-working/113465)

<div class="topic-metadata">

**Author:** [@foolishbrat](https://www.ruby-forum.com/u/foolishbrat)\
**Replies:** 3\
**Last updated:** [August 31, 2007, 3:15pm UTC](https://www.ruby-forum.com/t/my-first-rail-script-server-not-working/113465 "2007-08-31T15:15:53Z")

</div>

Hi, I am trying my first Rail apps. I had successfully created directory with this command prompt \> rails library create create app/controllers create app/helpers … However when I tried to run the server, it gi…

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

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