# Rails

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

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

---

## [Very strange - major leak, crashed mongrel](https://www.ruby-forum.com/t/very-strange-major-leak-crashed-mongrel/117562)

<div class="topic-metadata">

**Author:** [@marcbey](https://www.ruby-forum.com/u/marcbey)\
**Replies:** 0\
**Last updated:** [October 18, 2007, 3:11am UTC](https://www.ruby-forum.com/t/very-strange-major-leak-crashed-mongrel/117562 "2007-10-18T03:11:07Z")

</div>

I made what I think is a small change yet the change in my app was disastrous - cpu spun, memory went out of control, and mongrel crashed within seconds. I have a controller which takes a param for submission\_id . Su…

---

## [Habtm help with oracle?](https://www.ruby-forum.com/t/habtm-help-with-oracle/117559)

<div class="topic-metadata">

**Author:** [@John\_Adams](https://www.ruby-forum.com/u/John_Adams)\
**Replies:** 1\
**Last updated:** [October 18, 2007, 3:00am UTC](https://www.ruby-forum.com/t/habtm-help-with-oracle/117559 "2007-10-18T03:00:36Z")

</div>

I have two tables that I am trying to join with a habtm model through a join table, and I’m seeing invalid SQL being generated (at least, that’s what I see in the developer log!) Any help you can offer me would be app…

---

## [Localize Time Zone Automatically](https://www.ruby-forum.com/t/localize-time-zone-automatically/117554)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 1\
**Last updated:** [October 18, 2007, 1:14am UTC](https://www.ruby-forum.com/t/localize-time-zone-automatically/117554 "2007-10-18T01:14:50Z")

</div>

Hey all, I was wondering if there is a way to determine the user’s time zone with rails automatically. I have a date/time form section and I want to keep it as simple as possible (no time zone select). Is it possible …

---

## [How to install plugin](https://www.ruby-forum.com/t/how-to-install-plugin/117409)

<div class="topic-metadata">

**Author:** [@johnlester](https://www.ruby-forum.com/u/johnlester)\
**Replies:** 3\
**Last updated:** [October 18, 2007, 1:03am UTC](https://www.ruby-forum.com/t/how-to-install-plugin/117409 "2007-10-18T01:03:49Z")

</div>

Hi quick question, hopefully… If I have a plugin in a tar file I presume I can just extract this under vendor/plugins and re-start my server ? Or does ruby script/plugin install do more magic than that? Cheers, John …

---

## [Visual effect within partial](https://www.ruby-forum.com/t/visual-effect-within-partial/117553)

<div class="topic-metadata">

**Author:** [@macsig](https://www.ruby-forum.com/u/macsig)\
**Replies:** 0\
**Last updated:** [October 18, 2007, 12:17am UTC](https://www.ruby-forum.com/t/visual-effect-within-partial/117553 "2007-10-18T00:17:15Z")

</div>

Hello Folks, I have a partial that it’s displayed only when the user select “yes” on a select box (I do that thru observe\_field) The partial (\_text.rhtml) code is: \<p\>you have selected YES\</p\> And it is rendered with…

---

## [Simple form\_remote\_for issue](https://www.ruby-forum.com/t/simple-form-remote-for-issue/117237)

<div class="topic-metadata">

**Author:** [@macsig](https://www.ruby-forum.com/u/macsig)\
**Replies:** 1\
**Last updated:** [October 18, 2007, 12:08am UTC](https://www.ruby-forum.com/t/simple-form-remote-for-issue/117237 "2007-10-18T00:08:29Z")

</div>

Hello Folks, I’m a Rails newbie and I have a form to input new users. Below the form I have the list of the users and I would like when a new user is inputted, the list is updated. I thought to use form\_remote\_for. Th…

---

## [Variable not being populated?](https://www.ruby-forum.com/t/variable-not-being-populated/117552)

<div class="topic-metadata">

**Author:** [@hallikpapa](https://www.ruby-forum.com/u/hallikpapa)\
**Replies:** 0\
**Last updated:** [October 18, 2007, 12:07am UTC](https://www.ruby-forum.com/t/variable-not-being-populated/117552 "2007-10-18T00:07:51Z")

</div>

I have this order form that auto populates these fields as you step through provider: customer: location: device: Provider field works great, and then I move to Customer. I need to capture the providerId from the …

---

## [Ajax request from an external web site to a controller action](https://www.ruby-forum.com/t/ajax-request-from-an-external-web-site-to-a-controller-action/117498)

<div class="topic-metadata">

**Author:** [@cruentatio](https://www.ruby-forum.com/u/cruentatio)\
**Replies:** 5\
**Last updated:** [October 17, 2007, 11:57pm UTC](https://www.ruby-forum.com/t/ajax-request-from-an-external-web-site-to-a-controller-action/117498 "2007-10-17T23:57:18Z")

</div>

Hi, I need to write a little JS file (to place in not rails web site) in which I need to make an ajax call like this http\_request.open(‘GET’, url, true); where URL is a rails url of my web site (http://my-site.com:300…

---

## [Metamodels in rails app](https://www.ruby-forum.com/t/metamodels-in-rails-app/117379)

<div class="topic-metadata">

**Author:** [@rhubarb](https://www.ruby-forum.com/u/rhubarb)\
**Replies:** 2\
**Last updated:** [October 17, 2007, 11:46pm UTC](https://www.ruby-forum.com/t/metamodels-in-rails-app/117379 "2007-10-17T23:46:02Z")

</div>

I’m interested in building a web app in which the users build their own forms. Once built, the forms work like a normal web-app form in themselves. Basically I’m looking for a kind of meta-web-app in rails, where the …

---

## [OSX Leopard: Rails/Mongrel/Capistrano built in](https://www.ruby-forum.com/t/osx-leopard-rails-mongrel-capistrano-built-in/117412)

<div class="topic-metadata">

**Author:** [@Wagner\_N](https://www.ruby-forum.com/u/Wagner_N)\
**Replies:** 16\
**Last updated:** [October 17, 2007, 10:58pm UTC](https://www.ruby-forum.com/t/osx-leopard-rails-mongrel-capistrano-built-in/117412 "2007-10-17T22:58:39Z")

</div>

“Ruby on Rails Work in a developer’s dreamland. Leopard is the perfect platform for Ruby on Rails development, with Rails, Mongrel, and Capistrano built in.” –Wagner

---

## [Partial :object vs instance var](https://www.ruby-forum.com/t/partial-object-vs-instance-var/117479)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 8\
**Last updated:** [October 17, 2007, 10:58pm UTC](https://www.ruby-forum.com/t/partial-object-vs-instance-var/117479 "2007-10-17T22:58:39Z")

</div>

I’m questioning what appears to be a recommendation that makes no sense in AWDWR 2nd Ed. I get the point being made, but the actual convention/implementation seems to make the point ineffective. If I have a controller…

---

## [Can't get out of development mode](https://www.ruby-forum.com/t/cant-get-out-of-development-mode/117471)

<div class="topic-metadata">

**Author:** [@PeteSalty](https://www.ruby-forum.com/u/PeteSalty)\
**Replies:** 3\
**Last updated:** [October 17, 2007, 10:21pm UTC](https://www.ruby-forum.com/t/cant-get-out-of-development-mode/117471 "2007-10-17T22:21:42Z")

</div>

Up until a few days ago everything was fine, production was humming along in production mode without a problem, but then we did a push (using deprec) and now production won’t go back into production mode, but insists …

---

## [Validation Problems](https://www.ruby-forum.com/t/validation-problems/117538)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [October 17, 2007, 9:41pm UTC](https://www.ruby-forum.com/t/validation-problems/117538 "2007-10-17T21:41:51Z")

</div>

Is there a way to use validates\_presence\_of with a non-wrapping model form without creating a model at all? Also, is there a way to check between three values, and if one of them is empty do something without the if e…

---

## [Execute unittests with rake in RadRails](https://www.ruby-forum.com/t/execute-unittests-with-rake-in-radrails/117533)

<div class="topic-metadata">

**Author:** [@heyho](https://www.ruby-forum.com/u/heyho)\
**Replies:** 0\
**Last updated:** [October 17, 2007, 9:04pm UTC](https://www.ruby-forum.com/t/execute-unittests-with-rake-in-radrails/117533 "2007-10-17T21:04:41Z")

</div>

Hi, I’m absolutly new to Ruby on Rails and try to set up my development environment. I installed RadRails, created a project and generated my first model and controller. Now I want to execute my unittests with rake. …

---

## [Display collection stuff](https://www.ruby-forum.com/t/display-collection-stuff/196489)

<div class="topic-metadata">

**Author:** [@nuby2ruby](https://www.ruby-forum.com/u/nuby2ruby)\
**Replies:** 2\
**Last updated:** [October 17, 2007, 8:06pm UTC](https://www.ruby-forum.com/t/display-collection-stuff/196489 "2007-10-17T20:06:40Z")

</div>

Hi, I am a bit confused on exactly how this works out. I have ObjectA which has\_many :things and Thing belongs\_to :object\_a So, what I want to do is display all the things that ObjectA has in a text\_area. When I have …

---

## [Can't read image](https://www.ruby-forum.com/t/cant-read-image/117515)

<div class="topic-metadata">

**Author:** [@shafi](https://www.ruby-forum.com/u/shafi)\
**Replies:** 1\
**Last updated:** [October 17, 2007, 7:40pm UTC](https://www.ruby-forum.com/t/cant-read-image/117515 "2007-10-17T19:40:52Z")

</div>

hi all, i wanna generate thumbnail from image i found RMagick and found this code but i can’t run it, so please anyone help me in this issue. my code def index img = Magick::Image.read (’/images/img2.jpg’).first …

---

## [Advanced? ActiveRecord/SQL question](https://www.ruby-forum.com/t/advanced-activerecord-sql-question/117388)

<div class="topic-metadata">

**Author:** [@rykkers](https://www.ruby-forum.com/u/rykkers)\
**Replies:** 11\
**Last updated:** [October 17, 2007, 6:36pm UTC](https://www.ruby-forum.com/t/advanced-activerecord-sql-question/117388 "2007-10-17T18:36:36Z")

</div>

I asked this in a different form some weeks ago and got no response, let me try again in hopes that I can make my question clearer. Let’s say I have the following models class Author \< ActiveRecord::Base has\_many :si…

---

## [Quick peace of mind question](https://www.ruby-forum.com/t/quick-peace-of-mind-question/117526)

<div class="topic-metadata">

**Author:** [@vince](https://www.ruby-forum.com/u/vince)\
**Replies:** 1\
**Last updated:** [October 17, 2007, 6:33pm UTC](https://www.ruby-forum.com/t/quick-peace-of-mind-question/117526 "2007-10-17T18:33:05Z")

</div>

I usually develop using nginx/mongrel and deploy on the same platform. In the past I’d develop on webrick and deploy on lighttpd and would (rarely) run into situations where code worked on webrick but not on lightty. …

---

## [Primary Keys enforcement vanishes in test database](https://www.ruby-forum.com/t/primary-keys-enforcement-vanishes-in-test-database/117399)

<div class="topic-metadata">

**Author:** [@alan](https://www.ruby-forum.com/u/alan)\
**Replies:** 2\
**Last updated:** [October 17, 2007, 6:31pm UTC](https://www.ruby-forum.com/t/primary-keys-enforcement-vanishes-in-test-database/117399 "2007-10-17T18:31:53Z")

</div>

I use this naming convention for primary keys: ActiveRecord::Base.primary\_key\_prefix\_type = :table\_name\_with\_underscore I generate the MySQL test database: rake db:test:prepare, and although the column is there there…

---

## [Expire\_page not working](https://www.ruby-forum.com/t/expire-page-not-working/114269)

<div class="topic-metadata">

**Author:** [@KenM](https://www.ruby-forum.com/u/KenM)\
**Replies:** 2\
**Last updated:** [October 17, 2007, 6:27pm UTC](https://www.ruby-forum.com/t/expire-page-not-working/114269 "2007-10-17T18:27:12Z")

</div>

I’ve enabled page caching on a site I’m currently constructing. The sweeper is called upon any changes made to the model, as expected. The sweeper code is as follows: class PersonSweeper \< ActionController::Caching::…

---

## [Evaluating nil](https://www.ruby-forum.com/t/evaluating-nil/117452)

<div class="topic-metadata">

**Author:** [@JoeRails](https://www.ruby-forum.com/u/JoeRails)\
**Replies:** 10\
**Last updated:** [October 17, 2007, 6:14pm UTC](https://www.ruby-forum.com/t/evaluating-nil/117452 "2007-10-17T18:14:55Z")

</div>

Hi I have done a drop down menu (collection\_select) were I included a blank space. Then in my controller I want it to evaluate if the chosen drop down option is nil. I do this and keep getting errors: if @category.pa…

---

## [\[somewhat OT\] Publishing a Badge from Rails & IE Security](https://www.ruby-forum.com/t/somewhat-ot-publishing-a-badge-from-rails-ie-security/117525)

<div class="topic-metadata">

**Author:** [@jshow](https://www.ruby-forum.com/u/jshow)\
**Replies:** 0\
**Last updated:** [October 17, 2007, 6:07pm UTC](https://www.ruby-forum.com/t/somewhat-ot-publishing-a-badge-from-rails-ie-security/117525 "2007-10-17T18:07:53Z")

</div>

Hello rails’ers. I’ve search high and low without results, so hoping someone here has bumped into a reference or solution. I’ve built a badge - for displaying our sites content on remote sites. You’ve seen them on Tw…

---

## [Rails not reloading](https://www.ruby-forum.com/t/rails-not-reloading/117513)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 2\
**Last updated:** [October 17, 2007, 5:52pm UTC](https://www.ruby-forum.com/t/rails-not-reloading/117513 "2007-10-17T17:52:26Z")

</div>

It appears that rails ‘should’ reload controllers as they are modified. “As soon as a method is created or changed, it immediately is noticed and integrated into the current Rails system.” http://www.linuxjournal.com/…

---

## [Windows/Apache2/MySql/RoR Help? (Plus rant!)](https://www.ruby-forum.com/t/windows-apache2-mysql-ror-help-plus-rant/114902)

<div class="topic-metadata">

**Author:** [@dnstevenson](https://www.ruby-forum.com/u/dnstevenson)\
**Replies:** 7\
**Last updated:** [October 17, 2007, 5:47pm UTC](https://www.ruby-forum.com/t/windows-apache2-mysql-ror-help-plus-rant/114902 "2007-10-17T17:47:22Z")

</div>

I have a pre-existing installation of apache2.2/php/mysql on Windows Server 2003. I just want to install rails to work with it. Does anyone know of any decent information about how to do this? It doesn't inspire co…

---

## [Can't read image](https://www.ruby-forum.com/t/cant-read-image/117512)

<div class="topic-metadata">

**Author:** [@shafi](https://www.ruby-forum.com/u/shafi)\
**Replies:** 1\
**Last updated:** [October 17, 2007, 5:30pm UTC](https://www.ruby-forum.com/t/cant-read-image/117512 "2007-10-17T17:30:58Z")

</div>

hi all, i wanna generate thumbnail from image i found RMagick and found this code but i can’t run it, so please anyone help me in this issue. my code def index img = Magick::Image.read(’/images/img2.jpg’).first w…

---

## [Forms Questions](https://www.ruby-forum.com/t/forms-questions/117514)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [October 17, 2007, 5:29pm UTC](https://www.ruby-forum.com/t/forms-questions/117514 "2007-10-17T17:29:13Z")

</div>

I need to create a loca form, do some checking and comparing in the controller action and then commit to the database. What methods do I need to make a local form that would save all it’s data to an instance variable …

---

## [How to add multiple items to a cart](https://www.ruby-forum.com/t/how-to-add-multiple-items-to-a-cart/117111)

<div class="topic-metadata">

**Author:** [@elle](https://www.ruby-forum.com/u/elle)\
**Replies:** 1\
**Last updated:** [October 17, 2007, 5:26pm UTC](https://www.ruby-forum.com/t/how-to-add-multiple-items-to-a-cart/117111 "2007-10-17T17:26:18Z")

</div>

My first question here. I am developing a shopping cart based on “Beginning Ruby on Rails E- Commerce”. I would like to be able to add multiple items. Because, what if I wanted 700 items? I don’t really want to repea…

---

## [Active Scaffold - contract work $75 / hour - 4 to 6 weeks](https://www.ruby-forum.com/t/active-scaffold-contract-work-75-hour-4-to-6-weeks/117511)

<div class="topic-metadata">

**Author:** [@James\_Burrett](https://www.ruby-forum.com/u/James_Burrett)\
**Replies:** 0\
**Last updated:** [October 17, 2007, 5:12pm UTC](https://www.ruby-forum.com/t/active-scaffold-contract-work-75-hour-4-to-6-weeks/117511 "2007-10-17T17:12:50Z")

</div>

We need an experienced rails developer to help on a rails project using Active Scaffold. There are several modules that are needed and it would probably take 4 to 6 weeks to develop. The rate is $75 per hour CDN Plea…

---

## [Does the model and the controller share a 1to1 relatioship?](https://www.ruby-forum.com/t/does-the-model-and-the-controller-share-a-1to1-relatioship/117480)

<div class="topic-metadata">

**Author:** [@dyavorski](https://www.ruby-forum.com/u/dyavorski)\
**Replies:** 3\
**Last updated:** [October 17, 2007, 4:52pm UTC](https://www.ruby-forum.com/t/does-the-model-and-the-controller-share-a-1to1-relatioship/117480 "2007-10-17T16:52:20Z")

</div>

Hi all I am a very experienced programmer (and therefor can appriciate the rails framework as the right thing) But a totally new to Rails. I am trying to build a website that includes a front-end for users and an adm…

---

## [Basic Question about Base Files](https://www.ruby-forum.com/t/basic-question-about-base-files/117465)

<div class="topic-metadata">

**Author:** [@banry](https://www.ruby-forum.com/u/banry)\
**Replies:** 3\
**Last updated:** [October 17, 2007, 4:44pm UTC](https://www.ruby-forum.com/t/basic-question-about-base-files/117465 "2007-10-17T16:44:42Z")

</div>

Ooooh, I’m having so much fun with Ruby on Rails. I have the students assigning to parents, the parents are able to come login… it’s great. That’s the functional part. As I get more of it working I am sure I’ll have …

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

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