# Rails

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

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

---

## [Development environment doesn't reload classes](https://www.ruby-forum.com/t/development-environment-doesnt-reload-classes/112702)

<div class="topic-metadata">

**Author:** [@ufux](https://www.ruby-forum.com/u/ufux)\
**Replies:** 1\
**Last updated:** [August 22, 2007, 5:12pm UTC](https://www.ruby-forum.com/t/development-environment-doesnt-reload-classes/112702 "2007-08-22T17:12:40Z")

</div>

I’ve upgraded my rails application from 1.1.6 to 1.2.3 recently. It works fine but whether I run it on development or production, I always have to restart mongrel to see changes I made in controllers & models. I also …

---

## [Fetch string matching with email](https://www.ruby-forum.com/t/fetch-string-matching-with-email/112623)

<div class="topic-metadata">

**Author:** [@dhaval\_parikh33](https://www.ruby-forum.com/u/dhaval_parikh33)\
**Replies:** 7\
**Last updated:** [August 22, 2007, 5:05pm UTC](https://www.ruby-forum.com/t/fetch-string-matching-with-email/112623 "2007-08-22T17:05:40Z")

</div>

hello frnds I want to match and fetch the string from the db contents so is there a method for it. The contents can be removed\_email\_address@domain.invalid or also \<a href mailto:removed\_email\_address@domain.invalid …

---

## [ANN: Iowa Ruby Brigade](https://www.ruby-forum.com/t/ann-iowa-ruby-brigade/112726)

<div class="topic-metadata">

**Author:** [@David\_WSBody](https://www.ruby-forum.com/u/David_WSBody)\
**Replies:** 0\
**Last updated:** [August 22, 2007, 4:59pm UTC](https://www.ruby-forum.com/t/ann-iowa-ruby-brigade/112726 "2007-08-22T16:59:36Z")

</div>

Iowa Ruby Brigade First Meeting Thursday, September 20, 2007 6:00 PM - 7:30 PM DMACC West Campus 5959 Grand Avenue West Des Moines, IA Topics: Organizational Meeting Getting Started With Ruby For more informati…

---

## [Thoughts on tracking down cause of huge spikes](https://www.ruby-forum.com/t/thoughts-on-tracking-down-cause-of-huge-spikes/112688)

<div class="topic-metadata">

**Author:** [@paul](https://www.ruby-forum.com/u/paul)\
**Replies:** 5\
**Last updated:** [August 22, 2007, 4:58pm UTC](https://www.ruby-forum.com/t/thoughts-on-tracking-down-cause-of-huge-spikes/112688 "2007-08-22T16:58:35Z")

</div>

For the past week I have been experiencing extremely high loads at seemingly random times. Load goes through the roof causing Mongrel’s to be restarted by Monit after load reaches \>10 for more than 5 minutes. The log…

---

## [Difference between two times](https://www.ruby-forum.com/t/difference-between-two-times/112718)

<div class="topic-metadata">

**Author:** [@Iain\_A](https://www.ruby-forum.com/u/Iain_A)\
**Replies:** 3\
**Last updated:** [August 22, 2007, 4:50pm UTC](https://www.ruby-forum.com/t/difference-between-two-times/112718 "2007-08-22T16:50:34Z")

</div>

Hi I have an object which has an expiration date. I want to calculate the amount of days, hrs and mins until the expiration time. Does rails come with functions to do this? Also if the time has passed i want it to sa…

---

## [Has\_many with :finder\_sql doesn't actually give out data?](https://www.ruby-forum.com/t/has-many-with-finder-sql-doesnt-actually-give-out-data/112703)

<div class="topic-metadata">

**Author:** [@Morgan\_G](https://www.ruby-forum.com/u/Morgan_G)\
**Replies:** 1\
**Last updated:** [August 22, 2007, 4:44pm UTC](https://www.ruby-forum.com/t/has-many-with-finder-sql-doesnt-actually-give-out-data/112703 "2007-08-22T16:44:34Z")

</div>

Hi, I have a model unrelated to a table, and I want to assign three has\_many child relationships. ie., has\_many :classifieds, :conditions =\> %q/ email = '#{email}' / #=\> SELECT \* FROM classifieds WHERE (classifieds.w…

---

## [Making a internal rails server reachable from the internet](https://www.ruby-forum.com/t/making-a-internal-rails-server-reachable-from-the-internet/112660)

<div class="topic-metadata">

**Author:** [@mhfs](https://www.ruby-forum.com/u/mhfs)\
**Replies:** 2\
**Last updated:** [August 22, 2007, 4:27pm UTC](https://www.ruby-forum.com/t/making-a-internal-rails-server-reachable-from-the-internet/112660 "2007-08-22T16:27:30Z")

</div>

Hello list, I do my rails development on a XP machine. In order to test the deployment scheme as well as capistrano deployment, I’ve set up a local Virtual Machine (VMWare 6) with Ubuntu 7.04. I’ve set it up to use …

---

## [HOWTO generate rails skeleton](https://www.ruby-forum.com/t/howto-generate-rails-skeleton/112705)

<div class="topic-metadata">

**Author:** [@hhifnawi](https://www.ruby-forum.com/u/hhifnawi)\
**Replies:** 1\
**Last updated:** [August 22, 2007, 3:57pm UTC](https://www.ruby-forum.com/t/howto-generate-rails-skeleton/112705 "2007-08-22T15:57:25Z")

</div>

I NEED help plz: My group are working on rails IDE and we’re in the wizard part now and we’re trying to generate the Rails skeleton and we looked in the rubygems and found in rubyinstaller “Ruby 1.8.5” ruby/lib//ruby…

---

## [ActionPack raw\_post\_data\_fix.rb#read\_body bug with AMF data](https://www.ruby-forum.com/t/actionpack-raw-post-data-fix-rb-read-body-bug-with-amf-data/112655)

<div class="topic-metadata">

**Author:** [@ktheory](https://www.ruby-forum.com/u/ktheory)\
**Replies:** 2\
**Last updated:** [August 22, 2007, 3:11pm UTC](https://www.ruby-forum.com/t/actionpack-raw-post-data-fix-rb-read-body-bug-with-amf-data/112655 "2007-08-22T15:11:53Z")

</div>

Hey Everyone, I just found a slight problem with the “read\_body” method in raw\_post\_data\_fix.rb. This line: Fix for Safari Ajax postings that always append \\000 content.chop! if content\[-1\] == 0 This causes problems…

---

## [Require pdf failing](https://www.ruby-forum.com/t/require-pdf-failing/112715)

<div class="topic-metadata">

**Author:** [@neha-rohan](https://www.ruby-forum.com/u/neha-rohan)\
**Replies:** 0\
**Last updated:** [August 22, 2007, 2:38pm UTC](https://www.ruby-forum.com/t/require-pdf-failing/112715 "2007-08-22T14:38:25Z")

</div>

Hi, We are using Rails 1.2.1 and Ruby 1.8.5 We have require ‘pdf/writer’ require ‘pdf/simpletable’ Earlier it was done in the controller class but now we have moved it to environment.rb. But still sometimes we get …

---

## [How to access controller's instance variables in integration](https://www.ruby-forum.com/t/how-to-access-controllers-instance-variables-in-integration/112654)

<div class="topic-metadata">

**Author:** [@Jesper\_RSSSSnn-Jens](https://www.ruby-forum.com/u/Jesper_RSSSSnn-Jens)\
**Replies:** 2\
**Last updated:** [August 22, 2007, 2:32pm UTC](https://www.ruby-forum.com/t/how-to-access-controllers-instance-variables-in-integration/112654 "2007-08-22T14:32:13Z")

</div>

In my controller’s action I set instance variables like: @last\_action = xxx @paid\_with\_card = xxx Now, how do I access them in my integration tests? I tried Mike Clark’s example(1): assert\_not\_nil assigns(:paid\_with\_…

---

## [Need difference between gem and plugin](https://www.ruby-forum.com/t/need-difference-between-gem-and-plugin/112696)

<div class="topic-metadata">

**Author:** [@shiva](https://www.ruby-forum.com/u/shiva)\
**Replies:** 1\
**Last updated:** [August 22, 2007, 11:54am UTC](https://www.ruby-forum.com/t/need-difference-between-gem-and-plugin/112696 "2007-08-22T11:54:30Z")

</div>

General question, I need what is the difference between gem and plugin.If anyone knows help me

---

## [HOWTO generate rails skeleton](https://www.ruby-forum.com/t/howto-generate-rails-skeleton/112685)

<div class="topic-metadata">

**Author:** [@hhifnawi](https://www.ruby-forum.com/u/hhifnawi)\
**Replies:** 1\
**Last updated:** [August 22, 2007, 11:29am UTC](https://www.ruby-forum.com/t/howto-generate-rails-skeleton/112685 "2007-08-22T11:29:27Z")

</div>

NEED help: My group are working on rails IDE and we’re in the wizard part now and we’re trying to generate the Rails skeleton and we looked in the rubygems and found in gems/1.8/gems/rails-1.2.2/lib/rails\_generator/g…

---

## [Directory form Select](https://www.ruby-forum.com/t/directory-form-select/112667)

<div class="topic-metadata">

**Author:** [@johnnybutler7](https://www.ruby-forum.com/u/johnnybutler7)\
**Replies:** 1\
**Last updated:** [August 22, 2007, 10:21am UTC](https://www.ruby-forum.com/t/directory-form-select/112667 "2007-08-22T10:21:12Z")

</div>

Hi, Is there a way to allow a user to select a directory. I know how to use the file\_field\_tag to allow users to select a file but i would like the ability to allow a user to select a directory and then use the path …

---

## [Has\_and\_belongs\_to\_many into XML transformation](https://www.ruby-forum.com/t/has-and-belongs-to-many-into-xml-transformation/112700)

<div class="topic-metadata">

**Author:** [@Sunshine](https://www.ruby-forum.com/u/Sunshine)\
**Replies:** 0\
**Last updated:** [August 22, 2007, 9:58am UTC](https://www.ruby-forum.com/t/has-and-belongs-to-many-into-xml-transformation/112700 "2007-08-22T09:58:17Z")

</div>

I have two models: articles and categories with has\_and\_belongs\_to\_many(habtm) relation between them. Now I need to return answer on the GET request to the url like /article/1.xml. I need to return the information abo…

---

## [HOWTO generate rails skeleton](https://www.ruby-forum.com/t/howto-generate-rails-skeleton/112693)

<div class="topic-metadata">

**Author:** [@hhifnawi](https://www.ruby-forum.com/u/hhifnawi)\
**Replies:** 1\
**Last updated:** [August 22, 2007, 9:48am UTC](https://www.ruby-forum.com/t/howto-generate-rails-skeleton/112693 "2007-08-22T09:48:14Z")

</div>

NEED help: My group are working on rails IDE and we’re in the wizard part now and we’re trying to generate the Rails skeleton and we looked in the rubygems and found in gems/1.8/gems/rails-1.2.2 /lib/rails\_generato…

---

## [NoMethodError with a twist](https://www.ruby-forum.com/t/nomethoderror-with-a-twist/112697)

<div class="topic-metadata">

**Author:** [@wbharding](https://www.ruby-forum.com/u/wbharding)\
**Replies:** 0\
**Last updated:** [August 22, 2007, 9:45am UTC](https://www.ruby-forum.com/t/nomethoderror-with-a-twist/112697 "2007-08-22T09:45:15Z")

</div>

Usual disclaimers are in order that I’m pretty new to RoR and don’t know exactly how to approach debugging this problem, but I’ve looked over about 20 Google pages+these forums and can’t figure this one out…so hoping …

---

## [\[AWDwR\] Confused about has\_one and has\_many](https://www.ruby-forum.com/t/awdwr-confused-about-has-one-and-has-many/112661)

<div class="topic-metadata">

**Author:** [@wet](https://www.ruby-forum.com/u/wet)\
**Replies:** 4\
**Last updated:** [August 22, 2007, 9:38am UTC](https://www.ruby-forum.com/t/awdwr-confused-about-has-one-and-has-many/112661 "2007-08-22T09:38:12Z")

</div>

Heya everyone! I am quite new to Rails and I am reading AWDwR. I am at Task E “Check Out!”. I understand it quite well, but I have a problem with the last playground exercise: Add a Table which contains the payment ty…

---

## [What are the types of projects people do with rails?](https://www.ruby-forum.com/t/what-are-the-types-of-projects-people-do-with-rails/112490)

<div class="topic-metadata">

**Author:** [@nemesis256](https://www.ruby-forum.com/u/nemesis256)\
**Replies:** 12\
**Last updated:** [August 22, 2007, 9:22am UTC](https://www.ruby-forum.com/t/what-are-the-types-of-projects-people-do-with-rails/112490 "2007-08-22T09:22:10Z")

</div>

So I’m still kinda new at this, and I was wondering about the types of projects people do with rails. It seems that in almost every book, the app that gets built is some kind of store. Nothing wrong with that but so…

---

## [Problem running Flex&Ruby on Fedora 7](https://www.ruby-forum.com/t/problem-running-flex-ruby-on-fedora-7/112694)

<div class="topic-metadata">

**Author:** [@Chuob.Sok](https://www.ruby-forum.com/u/Chuob.Sok)\
**Replies:** 0\
**Last updated:** [August 22, 2007, 7:10am UTC](https://www.ruby-forum.com/t/problem-running-flex-ruby-on-fedora-7/112694 "2007-08-22T07:10:34Z")

</div>

public class Users { private var service:HTTPService; \[Bindable\] public var xmllist\_user:XMLList; \[Bindable\] public var xmllist\_user\_right:XMLList; \[Bindable\] public var enabled\_remove\_user\_right:Boolean = false; //…

---

## [Eager Loading](https://www.ruby-forum.com/t/eager-loading/112658)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [August 22, 2007, 7:06am UTC](https://www.ruby-forum.com/t/eager-loading/112658 "2007-08-22T07:06:34Z")

</div>

is there a way to always eagerly load an associated object so that you don’t have to put :include into every finder? class Product \<ActiveRecord::Base belongs\_to :user #always load user when product is loaded end Pr…

---

## [Remove leading and trailing spaces](https://www.ruby-forum.com/t/remove-leading-and-trailing-spaces/112503)

<div class="topic-metadata">

**Author:** [@wings](https://www.ruby-forum.com/u/wings)\
**Replies:** 8\
**Last updated:** [August 22, 2007, 5:45am UTC](https://www.ruby-forum.com/t/remove-leading-and-trailing-spaces/112503 "2007-08-22T05:45:29Z")

</div>

Is there a way to remove ALL leading the trailing spaces in a string please? For example, ’ hello’ =\> ‘hello’ ’ hello ’ =\> ‘hello’ ’ hello ’ =\> ‘hello’ Thanks in advance Grace

---

## [Conditions on :include associations outer joins](https://www.ruby-forum.com/t/conditions-on-include-associations-outer-joins/112416)

<div class="topic-metadata">

**Author:** [@stephen\_OSD](https://www.ruby-forum.com/u/stephen_OSD)\
**Replies:** 3\
**Last updated:** [August 22, 2007, 4:48am UTC](https://www.ruby-forum.com/t/conditions-on-include-associations-outer-joins/112416 "2007-08-22T04:48:27Z")

</div>

I have three models User has\_many :reviews has\_many :review\_invites end Review has\_one :user end ReviewInvite has\_one\_user end For someone to access a particular review, they need to own it, or be invited. @…

---

## [HOWTO generate the skeleton of rails](https://www.ruby-forum.com/t/howto-generate-the-skeleton-of-rails/196442)

<div class="topic-metadata">

**Author:** [@hhifnawi](https://www.ruby-forum.com/u/hhifnawi)\
**Replies:** 0\
**Last updated:** [August 22, 2007, 4:02am UTC](https://www.ruby-forum.com/t/howto-generate-the-skeleton-of-rails/196442 "2007-08-22T04:02:12Z")

</div>

NEED help: My group are working on rails IDE and we’re in the wizard part now and we’re trying to generate the Rails skeleton and we looked in the rubygems and found in gems/1.8/gems/rails-1.2.2/lib/rails\_generator/g…

---

## [HOWTO generate rails skeleton](https://www.ruby-forum.com/t/howto-generate-rails-skeleton/112681)

<div class="topic-metadata">

**Author:** [@hhifnawi](https://www.ruby-forum.com/u/hhifnawi)\
**Replies:** 2\
**Last updated:** [August 22, 2007, 4:00am UTC](https://www.ruby-forum.com/t/howto-generate-rails-skeleton/112681 "2007-08-22T04:00:24Z")

</div>

NEED help: My group are working on rails IDE and we’re in the wizard part now and we’re trying to generate the Rails skeleton and we looked in the rubygems and found in gems/1.8/gems/rails-1.2.2/lib/rails\_generator/g…

---

## [Deployment doesn't work!](https://www.ruby-forum.com/t/deployment-doesnt-work/112662)

<div class="topic-metadata">

**Author:** [@yonkey](https://www.ruby-forum.com/u/yonkey)\
**Replies:** 11\
**Last updated:** [August 22, 2007, 3:09am UTC](https://www.ruby-forum.com/t/deployment-doesnt-work/112662 "2007-08-22T03:09:15Z")

</div>

Hello, I’ve installed Ruby on Rails and I’m able to run my application using Webrick, but obviously that’s not robust enough to use, since it’ll only last for a few minutes before the connection dies. I’ve tried inst…

---

## [In\_place\_edit\_field](https://www.ruby-forum.com/t/in-place-edit-field/112680)

<div class="topic-metadata">

**Author:** [@eagoweb](https://www.ruby-forum.com/u/eagoweb)\
**Replies:** 0\
**Last updated:** [August 22, 2007, 3:08am UTC](https://www.ruby-forum.com/t/in-place-edit-field/112680 "2007-08-22T03:08:46Z")

</div>

Hello, i got this: site\_controller Menu.content\_columns.each do |column| in\_place\_edit\_for :menu, column.name end :menu, is a model with the sections names and contents In my view i have: \<%= in\_place\_editor\_field…

---

## [Migrations](https://www.ruby-forum.com/t/migrations/112679)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [August 22, 2007, 3:05am UTC](https://www.ruby-forum.com/t/migrations/112679 "2007-08-22T03:05:15Z")

</div>

newbie here. I’m trying to understand/figure out migrations. In reading AWDR would you create migrations at the point in the book demo where they manually create the db? So instead of manually creating this the db wou…

---

## [Apache + RoR + subdomains](https://www.ruby-forum.com/t/apache-ror-subdomains/112675)

<div class="topic-metadata">

**Author:** [@nextpulse](https://www.ruby-forum.com/u/nextpulse)\
**Replies:** 1\
**Last updated:** [August 22, 2007, 2:07am UTC](https://www.ruby-forum.com/t/apache-ror-subdomains/112675 "2007-08-22T02:07:12Z")

</div>

I have apache configured for mongrel cluster - usual port 80 going to 8000+. Now I want to set up a subdomain that points to a non RoR app. any clues? thanks.

---

## [Book: beyond Java, Rails has little commercial backing?](https://www.ruby-forum.com/t/book-beyond-java-rails-has-little-commercial-backing/112418)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 15\
**Last updated:** [August 22, 2007, 12:09am UTC](https://www.ruby-forum.com/t/book-beyond-java-rails-has-little-commercial-backing/112418 "2007-08-22T00:09:05Z")

</div>

I have been reading the book “beyond java” by Bruce Tate. Are there any other good books or blogs of this nature ? I am really interested in trying to keep tabs on where Rails is headed. I know the book is a little ol…

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

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