# Rails

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

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

---

## [Problem with First Try at Ruby On Rails](https://www.ruby-forum.com/t/problem-with-first-try-at-ruby-on-rails/128000)

<div class="topic-metadata">

**Author:** [@taffyc](https://www.ruby-forum.com/u/taffyc)\
**Replies:** 14\
**Last updated:** [February 5, 2008, 7:38am UTC](https://www.ruby-forum.com/t/problem-with-first-try-at-ruby-on-rails/128000 "2008-02-05T07:38:28Z")

</div>

Hi There, I am a complete newbie - just doing the training at Lynda.com. I’m having a problem with one of the first exercises. I’ve installed Ruby, Rails, Ruby Gems, etc. I’m using webrick as my local webserver. I’m …

---

## [Adding extra fields to request headers](https://www.ruby-forum.com/t/adding-extra-fields-to-request-headers/128122)

<div class="topic-metadata">

**Author:** [@pradeepta](https://www.ruby-forum.com/u/pradeepta)\
**Replies:** 0\
**Last updated:** [February 5, 2008, 7:26am UTC](https://www.ruby-forum.com/t/adding-extra-fields-to-request-headers/128122 "2008-02-05T07:26:00Z")

</div>

how can i add extra fields to http request headers ?

---

## [Are there any graphical tools for MDA with RoR?](https://www.ruby-forum.com/t/are-there-any-graphical-tools-for-mda-with-ror/128119)

<div class="topic-metadata">

**Author:** [@Jean-Christophe\_Ker](https://www.ruby-forum.com/u/Jean-Christophe_Ker)\
**Replies:** 0\
**Last updated:** [February 5, 2008, 7:19am UTC](https://www.ruby-forum.com/t/are-there-any-graphical-tools-for-mda-with-ror/128119 "2008-02-05T07:19:38Z")

</div>

Hi, are there any tools, like a graphical modeler, to design then generate RoR application, from storage (through generation and configuration of RoR classes) to presentation layer (through generation and configurati…

---

## [View question about yield](https://www.ruby-forum.com/t/view-question-about-yield/127410)

<div class="topic-metadata">

**Author:** [@tresero](https://www.ruby-forum.com/u/tresero)\
**Replies:** 15\
**Last updated:** [February 5, 2008, 5:26am UTC](https://www.ruby-forum.com/t/view-question-about-yield/127410 "2008-02-05T05:26:34Z")

</div>

I am currently in a brain freeze. I would like to display my pages (dynamically in cms, grabbing title), in the application layout. The yield is: In HAML = yield :sidemenu The problem is that this yield is in the pa…

---

## [Individual db connection per user?](https://www.ruby-forum.com/t/individual-db-connection-per-user/128105)

<div class="topic-metadata">

**Author:** [@shifra](https://www.ruby-forum.com/u/shifra)\
**Replies:** 1\
**Last updated:** [February 5, 2008, 2:51am UTC](https://www.ruby-forum.com/t/individual-db-connection-per-user/128105 "2008-02-05T02:51:35Z")

</div>

Hi all, We have an SEC requirement that all connections to our app’s database be made with the credentials of the individual user who is logged in, not with the connection configured in the database.yml. We know this…

---

## [How does craigslist retain search query results?](https://www.ruby-forum.com/t/how-does-craigslist-retain-search-query-results/128062)

<div class="topic-metadata">

**Author:** [@liquidrails](https://www.ruby-forum.com/u/liquidrails)\
**Replies:** 1\
**Last updated:** [February 5, 2008, 1:41am UTC](https://www.ruby-forum.com/t/how-does-craigslist-retain-search-query-results/128062 "2008-02-05T01:41:51Z")

</div>

When you search for a keyword on craigslist, a list of posts is returned. When you click on an individual post in that list, the full post is displayed. Then, when you press the back button on your browser, the resu…

---

## [Weird "tag\_options" error after upgrading 1.2.6 -\> 2.0.2](https://www.ruby-forum.com/t/weird-tag-options-error-after-upgrading-1-2-6-2-0-2/128100)

<div class="topic-metadata">

**Author:** [@silent\_Se](https://www.ruby-forum.com/u/silent_Se)\
**Replies:** 3\
**Last updated:** [February 5, 2008, 1:37am UTC](https://www.ruby-forum.com/t/weird-tag-options-error-after-upgrading-1-2-6-2-0-2/128100 "2008-02-05T01:37:45Z")

</div>

Hello all. I am REALLY hoping someone can knock me upside the head with an answer to this because I’m flummoxed. I’m trying to get my project moved over to 2.0.2 from 1.2.6. I upgraded the Rails gem (and dependencie…

---

## [File upload field empty when validation error](https://www.ruby-forum.com/t/file-upload-field-empty-when-validation-error/127553)

<div class="topic-metadata">

**Author:** [@jasonb](https://www.ruby-forum.com/u/jasonb)\
**Replies:** 6\
**Last updated:** [February 5, 2008, 12:30am UTC](https://www.ruby-forum.com/t/file-upload-field-empty-when-validation-error/127553 "2008-02-05T00:30:55Z")

</div>

Hiya In my view, I’m using \<%= f.file\_field :file %\> Problems is, if the form has a validation error, this field is cleared and the user has to reselect a file Does anyone have a solution for this? thanks Jason

---

## [Attachment\_fu and form\_tag for multiple models?](https://www.ruby-forum.com/t/attachment-fu-and-form-tag-for-multiple-models/128087)

<div class="topic-metadata">

**Author:** [@softf5ajivanet](https://www.ruby-forum.com/u/softf5ajivanet)\
**Replies:** 2\
**Last updated:** [February 5, 2008, 12:13am UTC](https://www.ruby-forum.com/t/attachment-fu-and-form-tag-for-multiple-models/128087 "2008-02-05T00:13:35Z")

</div>

hi, i’ve got a page where i’m trying to save the user’s profile information and an image of the user, but i’m having trouble with using attachment\_fu and the form\_tag method. now i know attachment\_fu isn’t designed fo…

---

## [Help: searching a program!](https://www.ruby-forum.com/t/help-searching-a-program/127383)

<div class="topic-metadata">

**Author:** [@zok](https://www.ruby-forum.com/u/zok)\
**Replies:** 6\
**Last updated:** [February 4, 2008, 11:48pm UTC](https://www.ruby-forum.com/t/help-searching-a-program/127383 "2008-02-04T23:48:30Z")

</div>

Hi, I’m searching a proglam like cocoa, for MySQL administration for Windows. The program should include this nice drag and drop feature! … or is it possible to emulate OS X only for this program? Thanks for help, …

---

## [Clean all records](https://www.ruby-forum.com/t/clean-all-records/128075)

<div class="topic-metadata">

**Author:** [@flnative](https://www.ruby-forum.com/u/flnative)\
**Replies:** 5\
**Last updated:** [February 4, 2008, 11:35pm UTC](https://www.ruby-forum.com/t/clean-all-records/128075 "2008-02-04T23:35:49Z")

</div>

hi @ all How can I clean all records from a table in a mysql database without delete the table in the database? (only use a method in the model) thanks for helping!

---

## [Gettext and acts\_as\_paranoid gives stack overflow](https://www.ruby-forum.com/t/gettext-and-acts-as-paranoid-gives-stack-overflow/128088)

<div class="topic-metadata">

**Author:** [@ISESSmith-Heister](https://www.ruby-forum.com/u/ISESSmith-Heister)\
**Replies:** 0\
**Last updated:** [February 4, 2008, 11:03pm UTC](https://www.ruby-forum.com/t/gettext-and-acts-as-paranoid-gives-stack-overflow/128088 "2008-02-04T23:03:03Z")

</div>

HI all, I just started using acts\_as\_paranoid, and I’ve been using gettext for a while. Now I get the below errors when I run rake gettext:updatepo. It’s interesting that the errors seem to stack up, so the first file …

---

## [Habtm and ferret](https://www.ruby-forum.com/t/habtm-and-ferret/127953)

<div class="topic-metadata">

**Author:** [@jonathan\_stegall](https://www.ruby-forum.com/u/jonathan_stegall)\
**Replies:** 1\
**Last updated:** [February 4, 2008, 10:58pm UTC](https://www.ruby-forum.com/t/habtm-and-ferret/127953 "2008-02-04T22:58:19Z")

</div>

Hello, I’ve been working on a specific project for longer than I like to think about. At some point, I had ferret working in such a way that it would search fields in the HABTM relationship. Now, though, it only sear…

---

## [Hello World: uninitialized constant ApplicationController](https://www.ruby-forum.com/t/hello-world-uninitialized-constant-applicationcontroller/128069)

<div class="topic-metadata">

**Author:** [@dirk123](https://www.ruby-forum.com/u/dirk123)\
**Replies:** 3\
**Last updated:** [February 4, 2008, 10:20pm UTC](https://www.ruby-forum.com/t/hello-world-uninitialized-constant-applicationcontroller/128069 "2008-02-04T22:20:35Z")

</div>

Have the Wrox guide, but still having problems getting my hello world to run (very frustrating! :wink: Installed latest InstantRails package for Windows (XP). Thank you so much for helping!! Dirk After creating the…

---

## [Need help with self-referencing models and relationships](https://www.ruby-forum.com/t/need-help-with-self-referencing-models-and-relationships/128071)

<div class="topic-metadata">

**Author:** [@theogb](https://www.ruby-forum.com/u/theogb)\
**Replies:** 2\
**Last updated:** [February 4, 2008, 9:01pm UTC](https://www.ruby-forum.com/t/need-help-with-self-referencing-models-and-relationships/128071 "2008-02-04T21:01:28Z")

</div>

Okay, I have the site running (http://www.londonprogressivejournal.com) and if you look you can ‘respond’ to any given article which leads to you submitting a ‘letter’ object to the system. At a later date we’ll be p…

---

## [DRYing error\_messages\_for](https://www.ruby-forum.com/t/drying-error-messages-for/127821)

<div class="topic-metadata">

**Author:** [@Wakazula](https://www.ruby-forum.com/u/Wakazula)\
**Replies:** 12\
**Last updated:** [February 4, 2008, 7:55pm UTC](https://www.ruby-forum.com/t/drying-error-messages-for/127821 "2008-02-04T19:55:56Z")

</div>

The RAILS generators add code to display error messages. For example: \<%= error\_messages\_for :model %\> may display: There were problems with the following fields: \* field1 must be 4 characters \* field2 can't be blan…

---

## [Link\_to\_remote for external URL](https://www.ruby-forum.com/t/link-to-remote-for-external-url/128067)

<div class="topic-metadata">

**Author:** [@jackster](https://www.ruby-forum.com/u/jackster)\
**Replies:** 1\
**Last updated:** [February 4, 2008, 7:44pm UTC](https://www.ruby-forum.com/t/link-to-remote-for-external-url/128067 "2008-02-04T19:44:42Z")

</div>

Hi Forum, I have been using link\_to\_remote for other pages within my Rails environment with no problem. Right now I need to add a link to an external webpage and can’t seem to get the syntax right. I’m trying to do s…

---

## [MySQL Help?](https://www.ruby-forum.com/t/mysql-help/128061)

<div class="topic-metadata">

**Author:** [@pete](https://www.ruby-forum.com/u/pete)\
**Replies:** 3\
**Last updated:** [February 4, 2008, 7:41pm UTC](https://www.ruby-forum.com/t/mysql-help/128061 "2008-02-04T19:41:46Z")

</div>

Hi- I posted this under the MySQL group as well, but I thought some other Rails folks may have seen this before?? “Mysql::Error: Can’t create/write to file ‘/var/lib/mysql/ #sql\_146a\_0.MYI’ (Errcode: 30)” Anyone kno…

---

## [Routes for simple static part of site](https://www.ruby-forum.com/t/routes-for-simple-static-part-of-site/128057)

<div class="topic-metadata">

**Author:** [@jimmypalmer](https://www.ruby-forum.com/u/jimmypalmer)\
**Replies:** 1\
**Last updated:** [February 4, 2008, 6:55pm UTC](https://www.ruby-forum.com/t/routes-for-simple-static-part-of-site/128057 "2008-02-04T18:55:30Z")

</div>

I’ve created routes for the complex side of my web app, but I’m working on an ‘about us’ section which is completely static. I’m a little unsure as how the best way to do this and how the routes would be configured. …

---

## [Print DB value with HTML coding in it](https://www.ruby-forum.com/t/print-db-value-with-html-coding-in-it/128065)

<div class="topic-metadata">

**Author:** [@KTU](https://www.ruby-forum.com/u/KTU)\
**Replies:** 2\
**Last updated:** [February 4, 2008, 6:53pm UTC](https://www.ruby-forum.com/t/print-db-value-with-html-coding-in-it/128065 "2008-02-04T18:53:51Z")

</div>

Hi I have problem with printing database value with has text in it. value in DB is: workinfo and on html page it shows as: \<b\>workinfo\</b\> I use this call to print out that value: \<%=h @imitem.grpdesc if @imitem -%\>…

---

## [Is there any updatedb for script/console?](https://www.ruby-forum.com/t/is-there-any-updatedb-for-script-console/128054)

<div class="topic-metadata">

**Author:** [@mokkai](https://www.ruby-forum.com/u/mokkai)\
**Replies:** 1\
**Last updated:** [February 4, 2008, 5:59pm UTC](https://www.ruby-forum.com/t/is-there-any-updatedb-for-script-console/128054 "2008-02-04T17:59:33Z")

</div>

modification in model files are not quickly updated into script/console (it will updated after restart script/console) any idea ?

---

## [Submitting a popup](https://www.ruby-forum.com/t/submitting-a-popup/127832)

<div class="topic-metadata">

**Author:** [@neha-rohan](https://www.ruby-forum.com/u/neha-rohan)\
**Replies:** 7\
**Last updated:** [February 4, 2008, 5:54pm UTC](https://www.ruby-forum.com/t/submitting-a-popup/127832 "2008-02-04T17:54:10Z")

</div>

Hi, I wanted to discuss one scenario. From a main window, I open a javascript popup window, in that i have a form\_remote\_tag call. On the completion of this call, i want some server side code to execute and form to …

---

## [Starting an exe from within the browser](https://www.ruby-forum.com/t/starting-an-exe-from-within-the-browser/128037)

<div class="topic-metadata">

**Author:** [@wlodarczak](https://www.ruby-forum.com/u/wlodarczak)\
**Replies:** 2\
**Last updated:** [February 4, 2008, 5:47pm UTC](https://www.ruby-forum.com/t/starting-an-exe-from-within-the-browser/128037 "2008-02-04T17:47:02Z")

</div>

All, I’m writing a Rails based app. I’m still on Rails version 1.2.2. I need to start an external app from within the browser, only IE and pass an argument to it. The only way I found was using ActiveX. and then c…

---

## [File-column plugin file size validation?](https://www.ruby-forum.com/t/file-column-plugin-file-size-validation/76360)

<div class="topic-metadata">

**Author:** [@eddiewould](https://www.ruby-forum.com/u/eddiewould)\
**Replies:** 5\
**Last updated:** [February 4, 2008, 5:39pm UTC](https://www.ruby-forum.com/t/file-column-plugin-file-size-validation/76360 "2008-02-04T17:39:14Z")

</div>

Anyone had success with this? i tried this: validate :check\_file\_size def check\_file\_size if @picture and @picture.size \> 50000 errors.add(‘picture’, ‘too big’) end end def picture @picture end def picture=(picture) …

---

## [Error messages](https://www.ruby-forum.com/t/error-messages/126656)

<div class="topic-metadata">

**Author:** [@fries88](https://www.ruby-forum.com/u/fries88)\
**Replies:** 10\
**Last updated:** [February 4, 2008, 5:35pm UTC](https://www.ruby-forum.com/t/error-messages/126656 "2008-02-04T17:35:48Z")

</div>

Hi, I can validate and pop up error messages using, validates\_presence\_of :txt\_field .But how do I change the error message from this: 1 error prohibited this abc form from being saved There were problems with the f…

---

## [Act\_as\_ferret multi\_search](https://www.ruby-forum.com/t/act-as-ferret-multi-search/123959)

<div class="topic-metadata">

**Author:** [@Thiago\_G](https://www.ruby-forum.com/u/Thiago_G)\
**Replies:** 1\
**Last updated:** [February 4, 2008, 5:29pm UTC](https://www.ruby-forum.com/t/act-as-ferret-multi-search/123959 "2008-02-04T17:29:53Z")

</div>

Hi everyone, I’m trying to use act\_as\_ferret multi\_search with paginating\_links plugin but I’m getting a undefined method for multi\_search which is a act\_as\_ferret method that I’ve been using a lot in my app. I just …

---

## [Observe field & javascript](https://www.ruby-forum.com/t/observe-field-javascript/128036)

<div class="topic-metadata">

**Author:** [@KTU](https://www.ruby-forum.com/u/KTU)\
**Replies:** 4\
**Last updated:** [February 4, 2008, 5:15pm UTC](https://www.ruby-forum.com/t/observe-field-javascript/128036 "2008-02-04T17:15:46Z")

</div>

Hi How I can change this: \<%= radio\_button(“response\_item”, id, 1) %\>\<%= h(imitem.grpname) %\>\<br/ Help to work on radio button selection to call that same showdesc javascript ? ie. I want to embed that javascript …

---

## [Creating text field where text disappears upon click](https://www.ruby-forum.com/t/creating-text-field-where-text-disappears-upon-click/128042)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [February 4, 2008, 4:55pm UTC](https://www.ruby-forum.com/t/creating-text-field-where-text-disappears-upon-click/128042 "2008-02-04T16:55:01Z")

</div>

Hi, Is there a slick way in Rails to create a username text field in which it starts out reading, “Enter your username” and once you click on the text field, the “Enter your username” text disappears? Thanks, - Dave

---

## [Scruffy Bar Chart Question](https://www.ruby-forum.com/t/scruffy-bar-chart-question/128045)

<div class="topic-metadata">

**Author:** [@pete](https://www.ruby-forum.com/u/pete)\
**Replies:** 0\
**Last updated:** [February 4, 2008, 4:43pm UTC](https://www.ruby-forum.com/t/scruffy-bar-chart-question/128045 "2008-02-04T16:43:12Z")

</div>

Hi- I have been using Scruffy for a couple days and it’s worked out really well. I am stuck though getting a bar chart to work with a single line. Here’s what I am doing: general chart stuff…graph.new…etc … my\_gra…

---

## [ARes validation errors?](https://www.ruby-forum.com/t/ares-validation-errors/127579)

<div class="topic-metadata">

**Author:** [@jeff](https://www.ruby-forum.com/u/jeff)\
**Replies:** 2\
**Last updated:** [February 4, 2008, 4:14pm UTC](https://www.ruby-forum.com/t/ares-validation-errors/127579 "2008-02-04T16:14:41Z")

</div>

Just getting started with ActiveResource. If model validation fails on the server side, will ARes map the xml error messages so that \<%= error\_messages\_for :model %\> will still automagically work? I’m trying to split…

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

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