# Rails

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

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

---

## [Good Ubuntu Root-Access Dedicated Server?](https://www.ruby-forum.com/t/good-ubuntu-root-access-dedicated-server/91255)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [April 9, 2007, 10:19pm UTC](https://www.ruby-forum.com/t/good-ubuntu-root-access-dedicated-server/91255 "2007-04-09T22:19:45Z")

</div>

In January I moved a client off of dedicated hosting and moved them to VPSLink. I dug the VPS concept, but found myself chafing against the limits of OpenVZ. In the past couple of months I’ve moved two clients from T…

---

## [Rest](https://www.ruby-forum.com/t/rest/91333)

<div class="topic-metadata">

**Author:** [@technodolt](https://www.ruby-forum.com/u/technodolt)\
**Replies:** 10\
**Last updated:** [April 9, 2007, 9:01pm UTC](https://www.ruby-forum.com/t/rest/91333 "2007-04-09T21:01:33Z")

</div>

I posted on this at my blog (http://technodolt.blogspot.com/), and I’ll copy the post here. I’d love comments either place. So: REST. I’m having a problem here, and I think my problem derives from the fact that we a…

---

## [Redirecting if cookie doesn't exist](https://www.ruby-forum.com/t/redirecting-if-cookie-doesnt-exist/91487)

<div class="topic-metadata">

**Author:** [@azraelnewtype](https://www.ruby-forum.com/u/azraelnewtype)\
**Replies:** 1\
**Last updated:** [April 9, 2007, 8:40pm UTC](https://www.ruby-forum.com/t/redirecting-if-cookie-doesnt-exist/91487 "2007-04-09T20:40:31Z")

</div>

Hi all, I cannot get this to work at all … it never does the redirect. I have two authentication cookies set … Rails reads thier values fine if they exist If they don’t exist, I want to redirect the user to the logi…

---

## [Questions about ActiveRecord aggregation](https://www.ruby-forum.com/t/questions-about-activerecord-aggregation/91295)

<div class="topic-metadata">

**Author:** [@allen](https://www.ruby-forum.com/u/allen)\
**Replies:** 8\
**Last updated:** [April 9, 2007, 8:30pm UTC](https://www.ruby-forum.com/t/questions-about-activerecord-aggregation/91295 "2007-04-09T20:30:30Z")

</div>

Hi all, I’m quite new to rails. These may be silly questions, but I really need your advice. According to \<\>, composite objects in aggregation are value objects, which means their values cannot be changed. So if say…

---

## [Quick question regarding params](https://www.ruby-forum.com/t/quick-question-regarding-params/91434)

<div class="topic-metadata">

**Author:** [@sshefer](https://www.ruby-forum.com/u/sshefer)\
**Replies:** 2\
**Last updated:** [April 9, 2007, 7:57pm UTC](https://www.ruby-forum.com/t/quick-question-regarding-params/91434 "2007-04-09T19:57:25Z")

</div>

Hi, I currently am using acts as tree for building site navigation. When a new page is added to the site, a select option with the include blank option gets populated to determine the correct parent for the new page.…

---

## [Multi-way join files with types? (resend)](https://www.ruby-forum.com/t/multi-way-join-files-with-types-resend/91475)

<div class="topic-metadata">

**Author:** [@iceburgh](https://www.ruby-forum.com/u/iceburgh)\
**Replies:** 1\
**Last updated:** [April 9, 2007, 7:49pm UTC](https://www.ruby-forum.com/t/multi-way-join-files-with-types-resend/91475 "2007-04-09T19:49:24Z")

</div>

\[ I’m still hoping for some help with this, folks… -r \] As part of the Arti (http://mephisto-ar.cfcl.com) effort, I’m looking into creating a database to store information on entities and relationships found in Ruby …

---

## [ActionMailer: uninitialized constant](https://www.ruby-forum.com/t/actionmailer-uninitialized-constant/91488)

<div class="topic-metadata">

**Author:** [@mh456](https://www.ruby-forum.com/u/mh456)\
**Replies:** 0\
**Last updated:** [April 9, 2007, 7:00pm UTC](https://www.ruby-forum.com/t/actionmailer-uninitialized-constant/91488 "2007-04-09T19:00:16Z")

</div>

Hi! I have two Observers that call the same ActionMailer. With one Observer, everything works as expected. With the other one, I always get an error: “uninitialized constant MyObserver::MyMailer”. The calling line is…

---

## [Is a javascript object accessible in the .rjs file (AJAX)?](https://www.ruby-forum.com/t/is-a-javascript-object-accessible-in-the-rjs-file-ajax/91477)

<div class="topic-metadata">

**Author:** [@luca](https://www.ruby-forum.com/u/luca)\
**Replies:** 2\
**Last updated:** [April 9, 2007, 6:21pm UTC](https://www.ruby-forum.com/t/is-a-javascript-object-accessible-in-the-rjs-file-ajax/91477 "2007-04-09T18:21:46Z")

</div>

Hi All In my rhtml file I create a javascript object like This ‘js\_obj’ is the javascript object which use all the time in this page to hide/show/change stuff depending on the users actions. At some point the user…

---

## [How do i switch off error wrapping for a specific field?](https://www.ruby-forum.com/t/how-do-i-switch-off-error-wrapping-for-a-specific-field/91454)

<div class="topic-metadata">

**Author:** [@skade](https://www.ruby-forum.com/u/skade)\
**Replies:** 4\
**Last updated:** [April 9, 2007, 6:07pm UTC](https://www.ruby-forum.com/t/how-do-i-switch-off-error-wrapping-for-a-specific-field/91454 "2007-04-09T18:07:23Z")

</div>

Hi, i have some issues with the default rails error wrapping. It wraps errors in a div with class ‘fieldsWithError’, which is not good practice in my eyes. Adding a class ‘error’ to the field would be much nicer. My s…

---

## [How to find rows where no row in associated table exists?](https://www.ruby-forum.com/t/how-to-find-rows-where-no-row-in-associated-table-exists/91332)

<div class="topic-metadata">

**Author:** [@stubbsuk](https://www.ruby-forum.com/u/stubbsuk)\
**Replies:** 3\
**Last updated:** [April 9, 2007, 6:07pm UTC](https://www.ruby-forum.com/t/how-to-find-rows-where-no-row-in-associated-table-exists/91332 "2007-04-09T18:07:12Z")

</div>

Basically, how do I do this “The Rails Way™” SELECT \* FROM beta\_users u LEFT JOIN beta\_codes c ON u.id = c.beta\_user\_id AND c.code IS NULL At the moment I’m using find\_by\_sql, and that works Ok, but what would be the…

---

## [Strange problem with accentuated characters](https://www.ruby-forum.com/t/strange-problem-with-accentuated-characters/91482)

<div class="topic-metadata">

**Author:** [@josealvarez](https://www.ruby-forum.com/u/josealvarez)\
**Replies:** 0\
**Last updated:** [April 9, 2007, 5:58pm UTC](https://www.ruby-forum.com/t/strange-problem-with-accentuated-characters/91482 "2007-04-09T17:58:11Z")

</div>

I have a menu controller that has the configuration for the menus in my web. Each action is a menu and I have a function “opcion” that creates options that are stored in an array @opciones this way: \[{:nombre =\> “name…

---

## [How to render my own error pages correctly?](https://www.ruby-forum.com/t/how-to-render-my-own-error-pages-correctly/91479)

<div class="topic-metadata">

**Author:** [@rob](https://www.ruby-forum.com/u/rob)\
**Replies:** 0\
**Last updated:** [April 9, 2007, 5:46pm UTC](https://www.ruby-forum.com/t/how-to-render-my-own-error-pages-correctly/91479 "2007-04-09T17:46:16Z")

</div>

Hi there, I am trying to get my own error pages (404 for example) displayed correctly. I raise an error in my controller: raise MyException.new, “Bad thing.” Therefore I defined: class MyException \< Exception end …

---

## [ZenTest](https://www.ruby-forum.com/t/zentest/90699)

<div class="topic-metadata">

**Author:** [@rlwinter](https://www.ruby-forum.com/u/rlwinter)\
**Replies:** 3\
**Last updated:** [April 9, 2007, 5:32pm UTC](https://www.ruby-forum.com/t/zentest/90699 "2007-04-09T17:32:07Z")

</div>

Hi all, I just discovered a nifty gem call ZenTest. I’ve just stated playing around with the autotest command, which seem very cool and looks like a nice time saver. But, I did notice one very minor thing. When I u…

---

## [Using Ruby as a front end for a trading system](https://www.ruby-forum.com/t/using-ruby-as-a-front-end-for-a-trading-system/91305)

<div class="topic-metadata">

**Author:** [@mohtashim](https://www.ruby-forum.com/u/mohtashim)\
**Replies:** 4\
**Last updated:** [April 9, 2007, 5:27pm UTC](https://www.ruby-forum.com/t/using-ruby-as-a-front-end-for-a-trading-system/91305 "2007-04-09T17:27:22Z")

</div>

Hi All, needed some direction for a newbie to RoR. I have done work in Java, .net and perl, and really prefer perl and java over .net, now we are we are looking to start building a financial trading application, most …

---

## [Undefined method \`render' thrown in helper tet](https://www.ruby-forum.com/t/undefined-method-render-thrown-in-helper-tet/91023)

<div class="topic-metadata">

**Author:** [@clemrock](https://www.ruby-forum.com/u/clemrock)\
**Replies:** 1\
**Last updated:** [April 9, 2007, 5:07pm UTC](https://www.ruby-forum.com/t/undefined-method-render-thrown-in-helper-tet/91023 "2007-04-09T17:07:47Z")

</div>

Hello, I’m trying to write a very simple test for a very simple method in a helper\_test. Here’s the method I’m testing in my\_helper.rb: def subscribe\_email\_link if @subscription\_model\_class render(:partia…

---

## [Problem on Dreamhost: engine for rails 1.1.6](https://www.ruby-forum.com/t/problem-on-dreamhost-engine-for-rails-1-1-6/91445)

<div class="topic-metadata">

**Author:** [@ssk](https://www.ruby-forum.com/u/ssk)\
**Replies:** 1\
**Last updated:** [April 9, 2007, 4:44pm UTC](https://www.ruby-forum.com/t/problem-on-dreamhost-engine-for-rails-1-1-6/91445 "2007-04-09T16:44:02Z")

</div>

Hi, I’m trying to set up Substruct (shopping cart engine) on Dreamhost. I failed several times and tracked down to the problem area. I can reproduce the problem with these steps: install rails change public/.htacces…

---

## [Problems with relations](https://www.ruby-forum.com/t/problems-with-relations/91458)

<div class="topic-metadata">

**Author:** [@azazel](https://www.ruby-forum.com/u/azazel)\
**Replies:** 2\
**Last updated:** [April 9, 2007, 4:28pm UTC](https://www.ruby-forum.com/t/problems-with-relations/91458 "2007-04-09T16:28:50Z")

</div>

Hello there, Im working on an application which has the following Models: User(id, username, password, email) Group(id, name, owner\_id) I also have a table: groups\_users(group\_id, user\_id) to handle the many-to-many…

---

## [Tinymce and rails, can i do this?](https://www.ruby-forum.com/t/tinymce-and-rails-can-i-do-this/91457)

<div class="topic-metadata">

**Author:** [@mike](https://www.ruby-forum.com/u/mike)\
**Replies:** 1\
**Last updated:** [April 9, 2007, 3:55pm UTC](https://www.ruby-forum.com/t/tinymce-and-rails-can-i-do-this/91457 "2007-04-09T15:55:55Z")

</div>

hi, i’m developing a site using rails and i want to use tinymce. If i’ll use it i’ve to share the whole source code of my website or i’ve just to write somewhere that i use that editor and the copyright?

---

## [Add\_index problems](https://www.ruby-forum.com/t/add-index-problems/91462)

<div class="topic-metadata">

**Author:** [@Pierre-Alexandre\_M](https://www.ruby-forum.com/u/Pierre-Alexandre_M)\
**Replies:** 0\
**Last updated:** [April 9, 2007, 3:08pm UTC](https://www.ruby-forum.com/t/add-index-problems/91462 "2007-04-09T15:08:48Z")

</div>

Hi all, I think there’s a bug in rake db:schema:dump. Try to add in your migration execute ‘ALTER TABLE posts ADD UNIQUE (description(15))’ and rake db:schema:load : it just converts it to add\_index “posts”, \[“descr…

---

## [Acts\_as\_attachment save file in folder named after models pa](https://www.ruby-forum.com/t/acts-as-attachment-save-file-in-folder-named-after-models-pa/91402)

<div class="topic-metadata">

**Author:** [@teesea](https://www.ruby-forum.com/u/teesea)\
**Replies:** 1\
**Last updated:** [April 9, 2007, 3:06pm UTC](https://www.ruby-forum.com/t/acts-as-attachment-save-file-in-folder-named-after-models-pa/91402 "2007-04-09T15:06:48Z")

</div>

This is probably pretty easy, but I’m still a newb as far as ruby and rails goes. I am using the acts\_as\_attachment and would like to know how I go about setting the path that the file is saved to so that it is saved …

---

## [How to change the font size of text\_area](https://www.ruby-forum.com/t/how-to-change-the-font-size-of-text-area/91455)

<div class="topic-metadata">

**Author:** [@feng](https://www.ruby-forum.com/u/feng)\
**Replies:** 2\
**Last updated:** [April 9, 2007, 2:48pm UTC](https://www.ruby-forum.com/t/how-to-change-the-font-size-of-text-area/91455 "2007-04-09T14:48:31Z")

</div>

hi all, I have a text\_area, and i want make its font size smaller. \<%= form.text\_area :myarea, :rows =\> 20, :cols =\> 40 %\> how can I do ? any tips is appreciated. thanks

---

## [Errors](https://www.ruby-forum.com/t/errors/91431)

<div class="topic-metadata">

**Author:** [@mick](https://www.ruby-forum.com/u/mick)\
**Replies:** 1\
**Last updated:** [April 9, 2007, 1:20pm UTC](https://www.ruby-forum.com/t/errors/91431 "2007-04-09T13:20:29Z")

</div>

Hello guys, I have a question - I would like to use validation on a form I submit to the controller, so if (for example) an field is empty, it should add it to a list of errors, which I can then display beside any for…

---

## [Migrations: determine migration number in self.up()?](https://www.ruby-forum.com/t/migrations-determine-migration-number-in-self-up/91449)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 4\
**Last updated:** [April 9, 2007, 12:59pm UTC](https://www.ruby-forum.com/t/migrations-determine-migration-number-in-self-up/91449 "2007-04-09T12:59:05Z")

</div>

Hi all I need to know the number of a migration within the self.up() method, and I DON’T WANT TO RELY ON THE FILENAME (XXX\_my\_migration.rb). So is there a way to determine it somehow? def self.up puts 'doing migrati…

---

## [File upload artifacts](https://www.ruby-forum.com/t/file-upload-artifacts/91452)

<div class="topic-metadata">

**Author:** [@Serdar\_KSSSSlSSSSSS](https://www.ruby-forum.com/u/Serdar_KSSSSlSSSSSS)\
**Replies:** 0\
**Last updated:** [April 9, 2007, 12:56pm UTC](https://www.ruby-forum.com/t/file-upload-artifacts/91452 "2007-04-09T12:56:27Z")

</div>

I’m testing out Rails file upload (using Recipe 57 if you have the Recipe book) but each time I do an upload it leaves a temp file with a name like CGI4075.0 in my rails root directory. How do I get rid of these other…

---

## [Help! Error occurs while creating db schema for MySQL 5.0 us](https://www.ruby-forum.com/t/help-error-occurs-while-creating-db-schema-for-mysql-5-0-us/91446)

<div class="topic-metadata">

**Author:** [@allen](https://www.ruby-forum.com/u/allen)\
**Replies:** 1\
**Last updated:** [April 9, 2007, 12:36pm UTC](https://www.ruby-forum.com/t/help-error-occurs-while-creating-db-schema-for-mysql-5-0-us/91446 "2007-04-09T12:36:25Z")

</div>

Hi all, I’m creating the db schema for MySQL 5.0 using migration but run into error. My migration file is as follows: class CreateCustomers \< ActiveRecord::Migration def self.up create\_table :customers do |t| t.col…

---

## [Myspace login authentication using myspace](https://www.ruby-forum.com/t/myspace-login-authentication-using-myspace/91448)

<div class="topic-metadata">

**Author:** [@prot](https://www.ruby-forum.com/u/prot)\
**Replies:** 0\
**Last updated:** [April 9, 2007, 12:32pm UTC](https://www.ruby-forum.com/t/myspace-login-authentication-using-myspace/91448 "2007-04-09T12:32:32Z")

</div>

Hello, I am not able to check the login authentication using myspace plug in. its giving my execution time out error. but its working fine with other website.

---

## [Migrations: something like before\_up/after\_up hook?](https://www.ruby-forum.com/t/migrations-something-like-before-up-after-up-hook/90889)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 7\
**Last updated:** [April 9, 2007, 12:15pm UTC](https://www.ruby-forum.com/t/migrations-something-like-before-up-after-up-hook/90889 "2007-04-09T12:15:14Z")

</div>

Hi all I have to execute some code always after the up methods of my migrations. I wondered if there is a before\_up/after\_up hook that I can override? Or how could I achieve that? Thanks a lot Josh

---

## [Getting value of hidden field](https://www.ruby-forum.com/t/getting-value-of-hidden-field/91444)

<div class="topic-metadata">

**Author:** [@lalala](https://www.ruby-forum.com/u/lalala)\
**Replies:** 2\
**Last updated:** [April 9, 2007, 10:20am UTC](https://www.ruby-forum.com/t/getting-value-of-hidden-field/91444 "2007-04-09T10:20:59Z")

</div>

hi in my rhtml file i have \<%= hidden\_field\_tag 'fc', 42, :id=\>'fc' %\> how can i set params\[:blah\] to have the value of fc, so i can access the value of fc through params\[:blah\] in my controller ? thank you

---

## [Forwarding between controllers](https://www.ruby-forum.com/t/forwarding-between-controllers/90929)

<div class="topic-metadata">

**Author:** [@matthew](https://www.ruby-forum.com/u/matthew)\
**Replies:** 13\
**Last updated:** [April 9, 2007, 6:43am UTC](https://www.ruby-forum.com/t/forwarding-between-controllers/90929 "2007-04-09T06:43:58Z")

</div>

Hi I am a little confused - perhaps because of coming at this with a Java head but… I am looking for the equivalent of a forward from Java MVC frameworks whereby the request and it’s model data contents can be forwar…

---

## [Is there a utility tool to check the convention between DB t](https://www.ruby-forum.com/t/is-there-a-utility-tool-to-check-the-convention-between-db-t/91435)

<div class="topic-metadata">

**Author:** [@allen](https://www.ruby-forum.com/u/allen)\
**Replies:** 2\
**Last updated:** [April 9, 2007, 5:52am UTC](https://www.ruby-forum.com/t/is-there-a-utility-tool-to-check-the-convention-between-db-t/91435 "2007-04-09T05:52:52Z")

</div>

Say that I could just enter the AR model’s name, and it will output the DB table’s name according to rails’ default convention. Thanks.

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

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