# Rails

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

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

---

## [Class associations apart from models](https://www.ruby-forum.com/t/class-associations-apart-from-models/108687)

<div class="topic-metadata">

**Author:** [@max](https://www.ruby-forum.com/u/max)\
**Replies:** 0\
**Last updated:** [July 6, 2007, 1:02am UTC](https://www.ruby-forum.com/t/class-associations-apart-from-models/108687 "2007-07-06T01:02:41Z")

</div>

I want to use several custom classes in the controller. Some of them are supposed to have certain associations. I know how to work with associations in the model and I thought that I could do something similar here. W…

---

## [Init Monit as non-root?](https://www.ruby-forum.com/t/init-monit-as-non-root/108679)

<div class="topic-metadata">

**Author:** [@ddancer](https://www.ruby-forum.com/u/ddancer)\
**Replies:** 2\
**Last updated:** [July 5, 2007, 11:54pm UTC](https://www.ruby-forum.com/t/init-monit-as-non-root/108679 "2007-07-05T23:54:32Z")

</div>

Hi All, Question regarding Monit usage. I’ve set up Monit using a config file that is owned by my Rails user. Which works fine. However, I’d rest easy on the weekends knowing that if the server is rebooted then Moni…

---

## [Alert(null)](https://www.ruby-forum.com/t/alert-null/108676)

<div class="topic-metadata">

**Author:** [@mravo](https://www.ruby-forum.com/u/mravo)\
**Replies:** 2\
**Last updated:** [July 5, 2007, 11:29pm UTC](https://www.ruby-forum.com/t/alert-null/108676 "2007-07-05T23:29:49Z")

</div>

Hello, sometimes I get this “message” or error: try { alert(null); } catch (e) { alert(‘RJS error:\\n\\n’ + e.toString()); alert(‘alert(null);’); throw e }. What does this mean? My app works fine and variables are passed…

---

## [Multiple Nested Resources + named routes](https://www.ruby-forum.com/t/multiple-nested-resources-named-routes/108677)

<div class="topic-metadata">

**Author:** [@AryaAsemanfar](https://www.ruby-forum.com/u/AryaAsemanfar)\
**Replies:** 0\
**Last updated:** [July 5, 2007, 11:16pm UTC](https://www.ruby-forum.com/t/multiple-nested-resources-named-routes/108677 "2007-07-05T23:16:28Z")

</div>

Hello, I’m not sure if this has been answered before but I couldn’t find anything in the few searches I did before posting. Anyway, here is what I’m trying to do: I have 3 resources: One, Two, and Three map.resource…

---

## [The secret of picking the right domain name](https://www.ruby-forum.com/t/the-secret-of-picking-the-right-domain-name/108675)

<div class="topic-metadata">

**Author:** [@Moona\_Naeem](https://www.ruby-forum.com/u/Moona_Naeem)\
**Replies:** 0\
**Last updated:** [July 5, 2007, 11:00pm UTC](https://www.ruby-forum.com/t/the-secret-of-picking-the-right-domain-name/108675 "2007-07-05T23:00:26Z")

</div>

The secret of picking the right domain name This little article tells you how to pick the traffic generating domain name for your business. I assume you already know the advantages of having a domain name: professiona…

---

## [503 Errors While Cluster Is Still Active](https://www.ruby-forum.com/t/503-errors-while-cluster-is-still-active/108674)

<div class="topic-metadata">

**Author:** [@rubylover](https://www.ruby-forum.com/u/rubylover)\
**Replies:** 0\
**Last updated:** [July 5, 2007, 10:38pm UTC](https://www.ruby-forum.com/t/503-errors-while-cluster-is-still-active/108674 "2007-07-05T22:38:23Z")

</div>

I’ve setup a new mongrel cluster on my VPS, and am noticing a lot if 503 errors if I try to hit the server too many times in succession in a few seconds. I’ve read that this is usually caused by the cluster crashing,…

---

## [Text editor of choice](https://www.ruby-forum.com/t/text-editor-of-choice/108455)

<div class="topic-metadata">

**Author:** [@weexpectedthis](https://www.ruby-forum.com/u/weexpectedthis)\
**Replies:** 11\
**Last updated:** [July 5, 2007, 10:33pm UTC](https://www.ruby-forum.com/t/text-editor-of-choice/108455 "2007-07-05T22:33:21Z")

</div>

I’ve been developing in Rails for 8 - 9 months and have yet to find a good text editing framework for use on a Windows machine. I’ve heard bunches about Textmate, and I’ve tried out Aptana for Eclipse and the standal…

---

## [Using conditions appropriately](https://www.ruby-forum.com/t/using-conditions-appropriately/108670)

<div class="topic-metadata">

**Author:** [@rjsquire](https://www.ruby-forum.com/u/rjsquire)\
**Replies:** 3\
**Last updated:** [July 5, 2007, 10:16pm UTC](https://www.ruby-forum.com/t/using-conditions-appropriately/108670 "2007-07-05T22:16:29Z")

</div>

I’ve been struggling with this function for most of the morning, but something just doesn’t seem right in my logic with respect to efficiency. I have a basic view that is submitting information on three variables dir…

---

## [Controller member variables](https://www.ruby-forum.com/t/controller-member-variables/108669)

<div class="topic-metadata">

**Author:** [@reacher](https://www.ruby-forum.com/u/reacher)\
**Replies:** 2\
**Last updated:** [July 5, 2007, 10:02pm UTC](https://www.ruby-forum.com/t/controller-member-variables/108669 "2007-07-05T22:02:14Z")

</div>

I’m failing to see why a member variable in my controller won’t keep it’s value. Here’s the setup: editor\_controller.rb: … def index display\_loops end def mytoggle @show\_loops = !@show\_loops redirect\_to :action…

---

## [Redirecting in Mongrel](https://www.ruby-forum.com/t/redirecting-in-mongrel/180828)

<div class="topic-metadata">

**Author:** [@maurice-gladwell](https://www.ruby-forum.com/u/maurice-gladwell)\
**Replies:** 2\
**Last updated:** [July 5, 2007, 9:50pm UTC](https://www.ruby-forum.com/t/redirecting-in-mongrel/180828 "2007-07-05T21:50:13Z")

</div>

I’m setting up a website with Mongrel. One of the requirements is for URLs to be redirected to different files than they usually would, e.g.: http://example.com/users/show/123-king-kong Would actually look for the ca…

---

## [Syntax for delete](https://www.ruby-forum.com/t/syntax-for-delete/108629)

<div class="topic-metadata">

**Author:** [@Mahendra](https://www.ruby-forum.com/u/Mahendra)\
**Replies:** 1\
**Last updated:** [July 5, 2007, 9:32pm UTC](https://www.ruby-forum.com/t/syntax-for-delete/108629 "2007-07-05T21:32:08Z")

</div>

Hi, I am saving my data using object.save like this: @project = Project.new(params\[:project\]) @project.save How can i delete same. I am using @project.delete But it is giving me error. Plz. help…

---

## [Order of results from find(array)](https://www.ruby-forum.com/t/order-of-results-from-find-array/108633)

<div class="topic-metadata">

**Author:** [@dave](https://www.ruby-forum.com/u/dave)\
**Replies:** 3\
**Last updated:** [July 5, 2007, 9:29pm UTC](https://www.ruby-forum.com/t/order-of-results-from-find-array/108633 "2007-07-05T21:29:07Z")

</div>

Hi all, I’m using find to query my database using an array of IDs that represent the records I want to pull. But when the results come back they are in a different order than that I requested them in. For instance, I…

---

## [Undefined method \`original\_filename' for "random.jpg":String](https://www.ruby-forum.com/t/undefined-method-original-filename-for-random-jpg-string/225954)

<div class="topic-metadata">

**Author:** [@krystian](https://www.ruby-forum.com/u/krystian)\
**Replies:** 2\
**Last updated:** [July 5, 2007, 9:17pm UTC](https://www.ruby-forum.com/t/undefined-method-original-filename-for-random-jpg-string/225954 "2007-07-05T21:17:59Z")

</div>

I have a problem getting attachments to work in a specific caseâ€¦ I have the following data model (this is a relevant subset of it): a log can have many journals a journal belongs to a log and can have many attachmen…

---

## [Mongrel help](https://www.ruby-forum.com/t/mongrel-help/108662)

<div class="topic-metadata">

**Author:** [@terhorst](https://www.ruby-forum.com/u/terhorst)\
**Replies:** 1\
**Last updated:** [July 5, 2007, 9:13pm UTC](https://www.ruby-forum.com/t/mongrel-help/108662 "2007-07-05T21:13:08Z")

</div>

I’m running InstantRails on a Windows machine. I’ve got Mongrel running and localhost:3000 is resolving correctly and everything is working great locally. I want to view the app from another machine on the same LAN. I…

---

## [How to get user's IP](https://www.ruby-forum.com/t/how-to-get-users-ip/107517)

<div class="topic-metadata">

**Author:** [@makenai](https://www.ruby-forum.com/u/makenai)\
**Replies:** 12\
**Last updated:** [July 5, 2007, 6:16pm UTC](https://www.ruby-forum.com/t/how-to-get-users-ip/107517 "2007-07-05T18:16:44Z")

</div>

Hello, I want to log users who enter my site and what they are doing. Registration and login is not required, so what is left is IP. (something like wikipedia, you can edit without logging in, and then there is your …

---

## [Observe\_field without :update](https://www.ruby-forum.com/t/observe-field-without-update/108603)

<div class="topic-metadata">

**Author:** [@STeffen\_Brunner](https://www.ruby-forum.com/u/STeffen_Brunner)\
**Replies:** 1\
**Last updated:** [July 5, 2007, 5:25pm UTC](https://www.ruby-forum.com/t/observe-field-without-update/108603 "2007-07-05T17:25:38Z")

</div>

Hi, I want to check a select box with the observe\_field method, but won’t do a AJAX request if it changes. Instead I want to call a REST-path. Letting away the optional :update parameter had no success. Tx.

---

## [Act\_as\_tree, belongs\_to and has\_many foreign keys incorrect](https://www.ruby-forum.com/t/act-as-tree-belongs-to-and-has-many-foreign-keys-incorrect/108649)

<div class="topic-metadata">

**Author:** [@stephen\_OSD](https://www.ruby-forum.com/u/stephen_OSD)\
**Replies:** 0\
**Last updated:** [July 5, 2007, 5:22pm UTC](https://www.ruby-forum.com/t/act-as-tree-belongs-to-and-has-many-foreign-keys-incorrect/108649 "2007-07-05T17:22:37Z")

</div>

Two models: class Project \<\< ActiveRecord::Base has\_many :files end class File \<\< ActiveRecord::Base has\_one :project acts\_as\_tree end Inside of the project model, when creating a new product, I want to store th…

---

## [Apache2 and subdomains](https://www.ruby-forum.com/t/apache2-and-subdomains/108646)

<div class="topic-metadata">

**Author:** [@gman](https://www.ruby-forum.com/u/gman)\
**Replies:** 0\
**Last updated:** [July 5, 2007, 5:19pm UTC](https://www.ruby-forum.com/t/apache2-and-subdomains/108646 "2007-07-05T17:19:37Z")

</div>

Hi everyone, I’ve set up rails to use dynamic subdomains with the account location plugin. And on my dev box I’ve been able to get the result I require by modifying my hosts file. 127.0.0.1 user1.myapp.com 127.0.0.1…

---

## [Active Record and DB normalization](https://www.ruby-forum.com/t/active-record-and-db-normalization/108582)

<div class="topic-metadata">

**Author:** [@chris](https://www.ruby-forum.com/u/chris)\
**Replies:** 5\
**Last updated:** [July 5, 2007, 5:09pm UTC](https://www.ruby-forum.com/t/active-record-and-db-normalization/108582 "2007-07-05T17:09:36Z")

</div>

Folks, I have a need to normalize some DB tables, and I’m having difficulty working out how ActiveRecord models should handle this need. Any advice would be greatly appreciated. The user model was previously very sim…

---

## [What's the trick for using CLOB values (Oracle)?](https://www.ruby-forum.com/t/whats-the-trick-for-using-clob-values-oracle/108645)

<div class="topic-metadata">

**Author:** [@dmorin](https://www.ruby-forum.com/u/dmorin)\
**Replies:** 0\
**Last updated:** [July 5, 2007, 4:53pm UTC](https://www.ruby-forum.com/t/whats-the-trick-for-using-clob-values-oracle/108645 "2007-07-05T16:53:31Z")

</div>

I’ve got a bunch of fairly large values (30kb each) I’m trying to insert into a CLOB column in my Oracle(10g) model. Since Rails is trying to create a typical insert statement with the entire value, this is causing a…

---

## [Trying to reproduce "Creating a weblog in 15 minutes"](https://www.ruby-forum.com/t/trying-to-reproduce-creating-a-weblog-in-15-minutes/108472)

<div class="topic-metadata">

**Author:** [@bluejaguar](https://www.ruby-forum.com/u/bluejaguar)\
**Replies:** 4\
**Last updated:** [July 5, 2007, 4:37pm UTC](https://www.ruby-forum.com/t/trying-to-reproduce-creating-a-weblog-in-15-minutes/108472 "2007-07-05T16:37:31Z")

</div>

This is exactly 3 minutes into the video rails\_take2\_with\_sound.mov from Ruby on Rails — A web-app framework that includes everything needed to create database-backed web applications according to the Model-View-Control…

---

## [Refresh a list](https://www.ruby-forum.com/t/refresh-a-list/108464)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 1\
**Last updated:** [July 5, 2007, 4:31pm UTC](https://www.ruby-forum.com/t/refresh-a-list/108464 "2007-07-05T16:31:30Z")

</div>

I now have things being deleted dynamically from a list. The problem now is that when I add something to that list it hits the database getting all the correct users and the things associated with those users. However…

---

## [Videos from the 2007](https://www.ruby-forum.com/t/videos-from-the-2007/180503)

<div class="topic-metadata">

**Author:** [@kajism](https://www.ruby-forum.com/u/kajism)\
**Replies:** 3\
**Last updated:** [July 5, 2007, 4:23pm UTC](https://www.ruby-forum.com/t/videos-from-the-2007/180503 "2007-07-05T16:23:28Z")

</div>

Hi guys, I am searching in vain for the videos from the railsconf 2007. Does anybody know if there are any plans to put it on the web? Thanks, Karel

---

## [Could a BackgrounDrb worker do this?](https://www.ruby-forum.com/t/could-a-backgroundrb-worker-do-this/68226)

<div class="topic-metadata">

**Author:** [@wpwood](https://www.ruby-forum.com/u/wpwood)\
**Replies:** 8\
**Last updated:** [July 5, 2007, 4:21pm UTC](https://www.ruby-forum.com/t/could-a-backgroundrb-worker-do-this/68226 "2007-07-05T16:21:28Z")

</div>

When a user explicitly logs out of my app (by clicking a button that invokes the ‘logout’ action), all the DB records and files they’ve created during their session get deleted. I’m trying to figure out how to do tha…

---

## [Help with basic category setup](https://www.ruby-forum.com/t/help-with-basic-category-setup/108644)

<div class="topic-metadata">

**Author:** [@CPerry](https://www.ruby-forum.com/u/CPerry)\
**Replies:** 0\
**Last updated:** [July 5, 2007, 4:13pm UTC](https://www.ruby-forum.com/t/help-with-basic-category-setup/108644 "2007-07-05T16:13:27Z")

</div>

Hey all, I have created a small app that collects links submitted by users. I have now decided that I want to categorize those links into several different categories. Being very new to Rails, I am unsure as to how to…

---

## [Multilingual resources](https://www.ruby-forum.com/t/multilingual-resources/108642)

<div class="topic-metadata">

**Author:** [@steerio](https://www.ruby-forum.com/u/steerio)\
**Replies:** 0\
**Last updated:** [July 5, 2007, 4:10pm UTC](https://www.ruby-forum.com/t/multilingual-resources/108642 "2007-07-05T16:10:23Z")

</div>

Hey! We’re trying to create multilingual resources, i.e. ones that can have a language selector in the URL - to have search engines index all the language versions of resources. The optional solution would be: /fooba…

---

## [Embedded object routing issue (flash)](https://www.ruby-forum.com/t/embedded-object-routing-issue-flash/108643)

<div class="topic-metadata">

**Author:** [@krisv](https://www.ruby-forum.com/u/krisv)\
**Replies:** 0\
**Last updated:** [July 5, 2007, 4:08pm UTC](https://www.ruby-forum.com/t/embedded-object-routing-issue-flash/108643 "2007-07-05T16:08:27Z")

</div>

Hi all, I’m having problems trying to get a flash control to work properly. Here’s the code I’m using to embed the object: Until recently, this worked like a charm, but since updating my rails version (1.2.3) th…

---

## [Safari and Firefox give different answers](https://www.ruby-forum.com/t/safari-and-firefox-give-different-answers/108419)

<div class="topic-metadata">

**Author:** [@gorter9](https://www.ruby-forum.com/u/gorter9)\
**Replies:** 10\
**Last updated:** [July 5, 2007, 3:52pm UTC](https://www.ruby-forum.com/t/safari-and-firefox-give-different-answers/108419 "2007-07-05T15:52:06Z")

</div>

I’am creating an image uploading system for advertise site in Rails Using receipt 57 from the book rails recipies. 1 action give different returns in safari and Firefox def file\_data=(file\_data) if file\_data.blank? …

---

## [Sitealizer plugin vulnerable to SQL injections?](https://www.ruby-forum.com/t/sitealizer-plugin-vulnerable-to-sql-injections/108641)

<div class="topic-metadata">

**Author:** [@Zargony](https://www.ruby-forum.com/u/Zargony)\
**Replies:** 0\
**Last updated:** [July 5, 2007, 3:51pm UTC](https://www.ruby-forum.com/t/sitealizer-plugin-vulnerable-to-sql-injections/108641 "2007-07-05T15:51:22Z")

</div>

From what I’ve seen after quickly browsing through the sitealizer (http://sitealizer.rubyforge.org/) source, it’ll make the whole application vulnerable to SQL-injection attacks. All HTTP params are passed directly i…

---

## [Form\_for and virtual attribute](https://www.ruby-forum.com/t/form-for-and-virtual-attribute/108640)

<div class="topic-metadata">

**Author:** [@jfoxny](https://www.ruby-forum.com/u/jfoxny)\
**Replies:** 0\
**Last updated:** [July 5, 2007, 3:40pm UTC](https://www.ruby-forum.com/t/form-for-and-virtual-attribute/108640 "2007-07-05T15:40:10Z")

</div>

I have an ‘edit\_user’ template that looks like this: \<% form\_for :user, @user, :url =\> { :action =\> 'edit\_user' } do |f| %\> User Name: \<%= f.text\_field :name %\> Full Name: \<%= f.text\_field :fullname %\> …

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

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