# Rails

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

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

---

## [Syntax Error?](https://www.ruby-forum.com/t/syntax-error/87597)

<div class="topic-metadata">

**Author:** [@cjonghyun](https://www.ruby-forum.com/u/cjonghyun)\
**Replies:** 0\
**Last updated:** [March 4, 2007, 6:23am UTC](https://www.ruby-forum.com/t/syntax-error/87597 "2007-03-04T06:23:28Z")

</div>

I wanted to make a ‘simple blog’ refer to “Creating a weblog in 15 minutes” on rubyonrails.org I made controller named post, and model named posts and started again Webrick server but , ther was a error like this → …

---

## [Require\_gem versus gem](https://www.ruby-forum.com/t/require-gem-versus-gem/87595)

<div class="topic-metadata">

**Author:** [@snacktime](https://www.ruby-forum.com/u/snacktime)\
**Replies:** 2\
**Last updated:** [March 4, 2007, 6:12am UTC](https://www.ruby-forum.com/t/require-gem-versus-gem/87595 "2007-03-04T06:12:28Z")

</div>

Trying to figure out why require\_gem works and gem doesn’t. using just gem, I get uninitialized constant ActiveRecord (NameError). Use require\_gem and it works, but tells me that require\_gem is obsolete. require ‘ru…

---

## [Opinions needed](https://www.ruby-forum.com/t/opinions-needed/87568)

<div class="topic-metadata">

**Author:** [@KendallJ](https://www.ruby-forum.com/u/KendallJ)\
**Replies:** 1\
**Last updated:** [March 4, 2007, 5:16am UTC](https://www.ruby-forum.com/t/opinions-needed/87568 "2007-03-04T05:16:25Z")

</div>

I’d like to get some opinions out there from some skillful Rails programmers. Let me ask if a certain scenario is possible. I would like to expose the major portion of my web app, which acts as a workspace, to anyon…

---

## [Installing](https://www.ruby-forum.com/t/installing/87585)

<div class="topic-metadata">

**Author:** [@ilivni](https://www.ruby-forum.com/u/ilivni)\
**Replies:** 1\
**Last updated:** [March 4, 2007, 4:59am UTC](https://www.ruby-forum.com/t/installing/87585 "2007-03-04T04:59:25Z")

</div>

I have skimmed through many web pages, how to’s and editorials, my final conclusion is that the programming language for this particular part of the program is going to be Ruby. There are many reasons: Apple will su…

---

## [Using AR outside of rails](https://www.ruby-forum.com/t/using-ar-outside-of-rails/87592)

<div class="topic-metadata">

**Author:** [@snacktime](https://www.ruby-forum.com/u/snacktime)\
**Replies:** 1\
**Last updated:** [March 4, 2007, 4:56am UTC](https://www.ruby-forum.com/t/using-ar-outside-of-rails/87592 "2007-03-04T04:56:24Z")

</div>

I’ve seen a number of ways to use AR outside of rails, and am wondering what other think is the best approach for my particular application. The application is in it’s own module namespace. To use it within rails yo…

---

## [Multiple has\_many :through](https://www.ruby-forum.com/t/multiple-has-many-through/87589)

<div class="topic-metadata">

**Author:** [@Claudio\_PSSSSSSS](https://www.ruby-forum.com/u/Claudio_PSSSSSSS)\
**Replies:** 0\
**Last updated:** [March 4, 2007, 3:46am UTC](https://www.ruby-forum.com/t/multiple-has-many-through/87589 "2007-03-04T03:46:21Z")

</div>

hi, simplifying I’ve this: user -\> membership -\> group -\> grant -\> right user has\_many group through membership and group has\_many right through grant. I can fetch the groups’ rights well, doing some console stuff l…

---

## [Ruby on large scale projects, and cakephp](https://www.ruby-forum.com/t/ruby-on-large-scale-projects-and-cakephp/87350)

<div class="topic-metadata">

**Author:** [@emre](https://www.ruby-forum.com/u/emre)\
**Replies:** 4\
**Last updated:** [March 4, 2007, 3:24am UTC](https://www.ruby-forum.com/t/ruby-on-large-scale-projects-and-cakephp/87350 "2007-03-04T03:24:19Z")

</div>

I’m new to Ruby and I have a few questions about it. How does Ruby scale to large-scale web applications? For example, if YouTube were written in Ruby, would it be as fast as it is now? Another question is how do you …

---

## [\[ANN\] Rails Date Kit 1.0.1](https://www.ruby-forum.com/t/ann-rails-date-kit-1-0-1/87584)

<div class="topic-metadata">

**Author:** [@Stuart\_R](https://www.ruby-forum.com/u/Stuart_R)\
**Replies:** 0\
**Last updated:** [March 4, 2007, 2:47am UTC](https://www.ruby-forum.com/t/ann-rails-date-kit-1-0-1/87584 "2007-03-04T02:47:01Z")

</div>

I’ve put together some notes and some code explaining how to set a global display format for all your dates and how to input and validate dates with user friendly date formats using a date\_field helper plus a lightwei…

---

## [Apache 403 Forbidden](https://www.ruby-forum.com/t/apache-403-forbidden/87572)

<div class="topic-metadata">

**Author:** [@Shak](https://www.ruby-forum.com/u/Shak)\
**Replies:** 0\
**Last updated:** [March 4, 2007, 2:07am UTC](https://www.ruby-forum.com/t/apache-403-forbidden/87572 "2007-03-04T02:07:14Z")

</div>

Hello everyone, I can’t seem to figure out why apache is continually giving me a 403 forbidden page whilst trying to access my rails application. The mongrel clusters are working fine as I can access them through the…

---

## [RJS problems](https://www.ruby-forum.com/t/rjs-problems/87571)

<div class="topic-metadata">

**Author:** [@mslagell](https://www.ruby-forum.com/u/mslagell)\
**Replies:** 0\
**Last updated:** [March 4, 2007, 2:00am UTC](https://www.ruby-forum.com/t/rjs-problems/87571 "2007-03-04T02:00:23Z")

</div>

Hello… I’m new to RJS (and rails) but it seems like this code should work, but doesn’t. If I comment out the second statement, the ‘invite’ is updated on the page. I can see the generated javascript in the alert and…

---

## [AjaxScaffold](https://www.ruby-forum.com/t/ajaxscaffold/87566)

<div class="topic-metadata">

**Author:** [@akm](https://www.ruby-forum.com/u/akm)\
**Replies:** 3\
**Last updated:** [March 4, 2007, 1:59am UTC](https://www.ruby-forum.com/t/ajaxscaffold/87566 "2007-03-04T01:59:07Z")

</div>

Hi, I have just come across this plugin for rails. Is anyone else here using it in their projects? Any good? – Regards Andrew

---

## [Multiple apps on the same server, all should be able to surv](https://www.ruby-forum.com/t/multiple-apps-on-the-same-server-all-should-be-able-to-surv/87480)

<div class="topic-metadata">

**Author:** [@alexeyv](https://www.ruby-forum.com/u/alexeyv)\
**Replies:** 11\
**Last updated:** [March 4, 2007, 1:34am UTC](https://www.ruby-forum.com/t/multiple-apps-on-the-same-server-all-should-be-able-to-surv/87480 "2007-03-04T01:34:05Z")

</div>

Dear all, I am researching solutions for “how do you squeeze as many Rails apps as you can on a cluster” problem. Environment constraints are as follows: 4 commodity web servers (2 CPUs, 8 Gb of RAM each) shared fi…

---

## [Hotlinking an entire row in an HTML table](https://www.ruby-forum.com/t/hotlinking-an-entire-row-in-an-html-table/52495)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 9\
**Last updated:** [March 4, 2007, 1:05am UTC](https://www.ruby-forum.com/t/hotlinking-an-entire-row-in-an-html-table/52495 "2007-03-04T01:05:42Z")

</div>

Hi, This seems simple but I cant get it to work… I have a table with 4 or 5 columns and 20-30 rows. I’d like to have the ability to click anywhere in a particular row to fire an action, such as bringing up a “Detail…

---

## [Rails on IIS](https://www.ruby-forum.com/t/rails-on-iis/93597)

<div class="topic-metadata">

**Author:** [@Adam\_Carheden](https://www.ruby-forum.com/u/Adam_Carheden)\
**Replies:** 21\
**Last updated:** [March 4, 2007, 12:16am UTC](https://www.ruby-forum.com/t/rails-on-iis/93597 "2007-03-04T00:16:47Z")

</div>

I just spent the last two days trying to get Rails on IIS to work with Windows 2003/IIS 6.0. I think I’ve finally got it working, but it took more googling than I care to describe. Now I’ve got a few questions: Is th…

---

## [Feedback for a new application](https://www.ruby-forum.com/t/feedback-for-a-new-application/87556)

<div class="topic-metadata">

**Author:** [@Ashley\_Graham](https://www.ruby-forum.com/u/Ashley_Graham)\
**Replies:** 1\
**Last updated:** [March 4, 2007, 12:01am UTC](https://www.ruby-forum.com/t/feedback-for-a-new-application/87556 "2007-03-04T00:01:58Z")

</div>

Hey everyone, Just a quick announcement/request for feedback for my new rails application: Scratch Pad. It takes notes. Scratch Pad assumes that you’re a smart person and you have a lot of good ideas. The trouble is…

---

## [Controller/view for "/" (root)?](https://www.ruby-forum.com/t/controller-view-for-root/87511)

<div class="topic-metadata">

**Author:** [@onionknight](https://www.ruby-forum.com/u/onionknight)\
**Replies:** 2\
**Last updated:** [March 3, 2007, 11:23pm UTC](https://www.ruby-forum.com/t/controller-view-for-root/87511 "2007-03-03T23:23:08Z")

</div>

Is it possible to give a controller or view for the root directory or am I limited to putting files in public/ for the root?

---

## [Mailing lists in rails?](https://www.ruby-forum.com/t/mailing-lists-in-rails/87551)

<div class="topic-metadata">

**Author:** [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Replies:** 1\
**Last updated:** [March 3, 2007, 11:16pm UTC](https://www.ruby-forum.com/t/mailing-lists-in-rails/87551 "2007-03-03T23:16:56Z")

</div>

I have a client that wants to send out a mass email to all of the registered users. I figured I would use ActionMailer for this, but is this suitable for mass emailing? Or is there another solution or a better way to …

---

## [Acts\_as\_ferret drb server](https://www.ruby-forum.com/t/acts-as-ferret-drb-server/87561)

<div class="topic-metadata">

**Author:** [@toro04](https://www.ruby-forum.com/u/toro04)\
**Replies:** 0\
**Last updated:** [March 3, 2007, 11:12pm UTC](https://www.ruby-forum.com/t/acts-as-ferret-drb-server/87561 "2007-03-03T23:12:41Z")

</div>

I’d like to use the acts\_as\_ferret drb server on my current project which also uses capistrano for deployment. The drb server works great – starts right up – except as far as I can tell there is no built in way to st…

---

## [Acts\_as\_devils\_advocate](https://www.ruby-forum.com/t/acts-as-devils-advocate/87545)

<div class="topic-metadata">

**Author:** [@jeffpritchard](https://www.ruby-forum.com/u/jeffpritchard)\
**Replies:** 1\
**Last updated:** [March 3, 2007, 10:55pm UTC](https://www.ruby-forum.com/t/acts-as-devils-advocate/87545 "2007-03-03T22:55:53Z")

</div>

First let me say that I mean no disrespect with these comments. It’s a bona fide effort to better understand the significance of something that the core Rails team is clearly very interested in and proud of. So with …

---

## [0also photos](https://www.ruby-forum.com/t/0also-photos/87562)

<div class="topic-metadata">

**Author:** [@haa1973](https://www.ruby-forum.com/u/haa1973)\
**Replies:** 0\
**Last updated:** [March 3, 2007, 10:50pm UTC](https://www.ruby-forum.com/t/0also-photos/87562 "2007-03-03T22:50:53Z")

</div>

0also photos http://www.0alsoufia.jeeran.com http://www.0alsoufia.jeeran.com http://www.0alsoufia.jeeran.com http://www.0alsoufia.jeeran.com

---

## [Rails caching model](https://www.ruby-forum.com/t/rails-caching-model/87554)

<div class="topic-metadata">

**Author:** [@teesea](https://www.ruby-forum.com/u/teesea)\
**Replies:** 1\
**Last updated:** [March 3, 2007, 9:25pm UTC](https://www.ruby-forum.com/t/rails-caching-model/87554 "2007-03-03T21:25:45Z")

</div>

I’m having some trouble adding a method to one of my active record models, I added one method fine but when I added another method I got the error message “undefined method”, I’ve restarted the server, the pc but this…

---

## [One-to-One Associations and REST](https://www.ruby-forum.com/t/one-to-one-associations-and-rest/87528)

<div class="topic-metadata">

**Author:** [@ralph](https://www.ruby-forum.com/u/ralph)\
**Replies:** 5\
**Last updated:** [March 3, 2007, 9:08pm UTC](https://www.ruby-forum.com/t/one-to-one-associations-and-rest/87528 "2007-03-03T21:08:23Z")

</div>

Hello, I’m trying to write a piece of code that enables users to upload an avatar. The user code and the avatar code does work great, but now I want to associate the avatar with the user, which should also be reflect…

---

## [Belongs\_to and foreign\_id troubles](https://www.ruby-forum.com/t/belongs-to-and-foreign-id-troubles/87553)

<div class="topic-metadata">

**Author:** [@gustav](https://www.ruby-forum.com/u/gustav)\
**Replies:** 0\
**Last updated:** [March 3, 2007, 8:09pm UTC](https://www.ruby-forum.com/t/belongs-to-and-foreign-id-troubles/87553 "2007-03-03T20:09:19Z")

</div>

Hi everyone, I’m trying to connect an uploaded image (using act\_as\_attachment) to an item in my database. Uploading the image in itself is no problem, though I can’t seem to get the foreign-id to “stick”. I’ve set up…

---

## [Iterating through a collection using partials](https://www.ruby-forum.com/t/iterating-through-a-collection-using-partials/87552)

<div class="topic-metadata">

**Author:** [@taylorstrait](https://www.ruby-forum.com/u/taylorstrait)\
**Replies:** 1\
**Last updated:** [March 3, 2007, 7:26pm UTC](https://www.ruby-forum.com/t/iterating-through-a-collection-using-partials/87552 "2007-03-03T19:26:59Z")

</div>

This should be straightforward but a search hasn’t helped: I want to convert this: \<% for post in @posts %\> \<%= link\_to "#{post.title}" %\> posted by \<%= link\_to "#{post.person.name}" %\> \<%= h(post…

---

## [Ruby LSAPI extension 2.0 released](https://www.ruby-forum.com/t/ruby-lsapi-extension-2-0-released/86546)

<div class="topic-metadata">

**Author:** [@finster](https://www.ruby-forum.com/u/finster)\
**Replies:** 1\
**Last updated:** [March 3, 2007, 6:54pm UTC](https://www.ruby-forum.com/t/ruby-lsapi-extension-2-0-released/86546 "2007-03-03T18:54:29Z")

</div>

Hi Folks, Ruby LSAPI 2.0 is released. In this release, a few more tunable environment variables has been added, the process manager has been improved to stop excessive idle process and runaway process dynamically. Fo…

---

## [Table name of an object](https://www.ruby-forum.com/t/table-name-of-an-object/87542)

<div class="topic-metadata">

**Author:** [@ralph](https://www.ruby-forum.com/u/ralph)\
**Replies:** 3\
**Last updated:** [March 3, 2007, 6:22pm UTC](https://www.ruby-forum.com/t/table-name-of-an-object/87542 "2007-03-03T18:22:48Z")

</div>

Hello, how can I find out the table name of an object? For example I have the object ua of the class UserArticle: ua = UserArticle.find(1) How can I find out it is saved in the table user\_articles?

---

## [Config.cache\_classes value ignored in development mode under](https://www.ruby-forum.com/t/config-cache-classes-value-ignored-in-development-mode-under/87541)

<div class="topic-metadata">

**Author:** [@DEfusion](https://www.ruby-forum.com/u/DEfusion)\
**Replies:** 0\
**Last updated:** [March 3, 2007, 5:58pm UTC](https://www.ruby-forum.com/t/config-cache-classes-value-ignored-in-development-mode-under/87541 "2007-03-03T17:58:17Z")

</div>

I’m running latest version of RoR under Apache 2 (using a virtual host), if I change the environment config within the virtual host (SetEnv RAILS\_ENV development) then it changes environment as expected. However when…

---

## [One form for different models](https://www.ruby-forum.com/t/one-form-for-different-models/87532)

<div class="topic-metadata">

**Author:** [@damaris](https://www.ruby-forum.com/u/damaris)\
**Replies:** 1\
**Last updated:** [March 3, 2007, 5:51pm UTC](https://www.ruby-forum.com/t/one-form-for-different-models/87532 "2007-03-03T17:51:30Z")

</div>

Currently I have a form with some inputs, related to a wiki page. So I have: \<%= text\_field ‘page’, ‘title’ â€¦ \<%= text\_field ‘page’, ‘summary’ â€¦ \<%= text\_field ‘page’, ‘body’ â€¦ And a model called “Page”, exten…

---

## [Cap deploy problem](https://www.ruby-forum.com/t/cap-deploy-problem/87437)

<div class="topic-metadata">

**Author:** [@al-evans](https://www.ruby-forum.com/u/al-evans)\
**Replies:** 2\
**Last updated:** [March 3, 2007, 5:02pm UTC](https://www.ruby-forum.com/t/cap-deploy-problem/87437 "2007-03-03T17:02:10Z")

</div>

Can anybody tell me what’s happening here? I can do this, with the expected results: ssh -l somename dir2.com cd /var/www/dir1/dir2/current && ls -l But then I do something similar via Capistrano I get an error at the …

---

## [Stop browser from "form filling" fields](https://www.ruby-forum.com/t/stop-browser-from-form-filling-fields/87080)

<div class="topic-metadata">

**Author:** [@Diego](https://www.ruby-forum.com/u/Diego)\
**Replies:** 14\
**Last updated:** [March 3, 2007, 4:41pm UTC](https://www.ruby-forum.com/t/stop-browser-from-form-filling-fields/87080 "2007-03-03T16:41:10Z")

</div>

Hi all, I have a user login form which the browser keeps populating because of its form fill feature. So when anyone goes to log in it shows the previous login’s username and password. How can I stop the browser from…

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

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