# Rails

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

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

---

## [Translation in database](https://www.ruby-forum.com/t/translation-in-database/133525)

<div class="topic-metadata">

**Author:** [@sigma](https://www.ruby-forum.com/u/sigma)\
**Replies:** 0\
**Last updated:** [April 1, 2008, 10:47am UTC](https://www.ruby-forum.com/t/translation-in-database/133525 "2008-04-01T10:47:07Z")

</div>

Hi folks Is there a easy way to implement (a scalable) translation in database? I’ve got the following database-schema: Table 1: news (where basic news-data is stored… data,…) Table 2: news\_langs (here will the langu…

---

## [Plugin announcement: acts\_as\_fu](https://www.ruby-forum.com/t/plugin-announcement-acts-as-fu/133512)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [April 1, 2008, 10:03am UTC](https://www.ruby-forum.com/t/plugin-announcement-acts-as-fu/133512 "2008-04-01T10:03:30Z")

</div>

We’ve all seen the job listings. We know what they’re looking for. Rockstars. Code Monkeys. Rails Ninjas. And you’re left thinking, “But I’m just a programmer.” Well, not anymore. Today, you become a Rails Kung-Fu Mas…

---

## [Google map performance issue](https://www.ruby-forum.com/t/google-map-performance-issue/133515)

<div class="topic-metadata">

**Author:** [@srikanth\_u37](https://www.ruby-forum.com/u/srikanth_u37)\
**Replies:** 1\
**Last updated:** [April 1, 2008, 10:01am UTC](https://www.ruby-forum.com/t/google-map-performance-issue/133515 "2008-04-01T10:01:44Z")

</div>

Hi, We have an application which reads 1000’s of locations from the xml file and will display all those locations in the google map. We have implemented the following approach for this… Read all the data from xml f…

---

## [Seeing 404 and 500 errors](https://www.ruby-forum.com/t/seeing-404-and-500-errors/133501)

<div class="topic-metadata">

**Author:** [@teck](https://www.ruby-forum.com/u/teck)\
**Replies:** 2\
**Last updated:** [April 1, 2008, 9:59am UTC](https://www.ruby-forum.com/t/seeing-404-and-500-errors/133501 "2008-04-01T09:59:23Z")

</div>

Hi, I’m developing an app on Mac OS X (Leopard), Rails 1.2, and Mogrel. In developing, I have never seen 404 and 500 pages located in /public directory. I also tried running the server in the production mode by scrip…

---

## [Eager Loading + Confusion](https://www.ruby-forum.com/t/eager-loading-confusion/133220)

<div class="topic-metadata">

**Author:** [@brian](https://www.ruby-forum.com/u/brian)\
**Replies:** 6\
**Last updated:** [April 1, 2008, 9:45am UTC](https://www.ruby-forum.com/t/eager-loading-confusion/133220 "2008-04-01T09:45:13Z")

</div>

So I’m trying to do a find with an order by specific column values thing, but some of the columns are attributes through associations. So I did some eager loading with the :include option to try and access the attribu…

---

## [Requesting help on Ajax link\_to\_remote RJS error](https://www.ruby-forum.com/t/requesting-help-on-ajax-link-to-remote-rjs-error/133476)

<div class="topic-metadata">

**Author:** [@newtoruby](https://www.ruby-forum.com/u/newtoruby)\
**Replies:** 4\
**Last updated:** [April 1, 2008, 9:43am UTC](https://www.ruby-forum.com/t/requesting-help-on-ajax-link-to-remote-rjs-error/133476 "2008-04-01T09:43:26Z")

</div>

I am trying to make a remote call to an action when I click a link on one page. I have ‘books’ and ‘haves’ models. I have ‘my\_controller’ . In the index.rhtml I have a link ‘Add a book’. I am trying to replace the ad…

---

## [Uploading large files](https://www.ruby-forum.com/t/uploading-large-files/133509)

<div class="topic-metadata">

**Author:** [@jimmypalmer](https://www.ruby-forum.com/u/jimmypalmer)\
**Replies:** 1\
**Last updated:** [April 1, 2008, 9:41am UTC](https://www.ruby-forum.com/t/uploading-large-files/133509 "2008-04-01T09:41:35Z")

</div>

I have built a rails web application that requires me to upload several large files (200+mb). Unfortunately, I have not been successful in doing so with rails so I tried it through ftp, but was still not successful. I…

---

## [Exception in Rails](https://www.ruby-forum.com/t/exception-in-rails/133456)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 5\
**Last updated:** [April 1, 2008, 9:04am UTC](https://www.ruby-forum.com/t/exception-in-rails/133456 "2008-04-01T09:04:17Z")

</div>

It continues with the same error. I have created with a scaffold a posts\_controller: class PostsController \< ApplicationController rescue\_from Activerecord::NoMethodError. with =\> :not\_found protected def not\_found …

---

## [Error Message Problem](https://www.ruby-forum.com/t/error-message-problem/133520)

<div class="topic-metadata">

**Author:** [@sigma](https://www.ruby-forum.com/u/sigma)\
**Replies:** 0\
**Last updated:** [April 1, 2008, 8:51am UTC](https://www.ruby-forum.com/t/error-message-problem/133520 "2008-04-01T08:51:30Z")

</div>

Hi all, I tried to implement the error-message-for-Method with German output, but it don’t works. Here my code: \<%= error\_messages\_for(‘permission’, :header\_message=\>’%d Fehler beim Speichern’) %\> Anybody an idea w…

---

## [How to get human readable size in controller](https://www.ruby-forum.com/t/how-to-get-human-readable-size-in-controller/133192)

<div class="topic-metadata">

**Author:** [@iqbalhyd](https://www.ruby-forum.com/u/iqbalhyd)\
**Replies:** 2\
**Last updated:** [April 1, 2008, 6:42am UTC](https://www.ruby-forum.com/t/how-to-get-human-readable-size-in-controller/133192 "2008-04-01T06:42:38Z")

</div>

hi, i know i can use human\_size helper in views, but what if I need to emit human readable size in the controller e.g. in an error message? – Ishaq http://blogs.kahaf.com/ishaq Programming can be fun, so ca…

---

## [Trying to put Rails app into a war file to deploy on Glassfish](https://www.ruby-forum.com/t/trying-to-put-rails-app-into-a-war-file-to-deploy-on-glassfish/133499)

<div class="topic-metadata">

**Author:** [@ron](https://www.ruby-forum.com/u/ron)\
**Replies:** 1\
**Last updated:** [April 1, 2008, 4:20am UTC](https://www.ruby-forum.com/t/trying-to-put-rails-app-into-a-war-file-to-deploy-on-glassfish/133499 "2008-04-01T04:20:38Z")

</div>

Hi, I’m trying to package my rails application into a war file to install on glassfish. I’m having some trouble in OS X because when Netbeans tries to create the file, it gets a permission denied error. My thought …

---

## [Oh btw...this might be ridiculous, but I've created a Netbeans group with google](https://www.ruby-forum.com/t/oh-btw-this-might-be-ridiculous-but-ive-created-a-netbeans-group-with-google/133500)

<div class="topic-metadata">

**Author:** [@ron](https://www.ruby-forum.com/u/ron)\
**Replies:** 0\
**Last updated:** [April 1, 2008, 3:44am UTC](https://www.ruby-forum.com/t/oh-btw-this-might-be-ridiculous-but-ive-created-a-netbeans-group-with-google/133500 "2008-04-01T03:44:54Z")

</div>

So in order for Netbeans related questions to have a more specific forum, I’ve set up a google group for Netbeans users called simply Netbeans. Ron

---

## [Rails and Partials](https://www.ruby-forum.com/t/rails-and-partials/133477)

<div class="topic-metadata">

**Author:** [@interactivenyc](https://www.ruby-forum.com/u/interactivenyc)\
**Replies:** 2\
**Last updated:** [April 1, 2008, 2:22am UTC](https://www.ruby-forum.com/t/rails-and-partials/133477 "2008-04-01T02:22:35Z")

</div>

Excuse my ignorance on partials but… I am trying to use partials to create a uniform display box built with html tables. The only way I have thought about accomplishing this is to create two partials: \_start\_box.erb …

---

## [Simple Routing Error](https://www.ruby-forum.com/t/simple-routing-error/133487)

<div class="topic-metadata">

**Author:** [@sjglazer](https://www.ruby-forum.com/u/sjglazer)\
**Replies:** 2\
**Last updated:** [April 1, 2008, 1:17am UTC](https://www.ruby-forum.com/t/simple-routing-error/133487 "2008-04-01T01:17:44Z")

</div>

Hello there, I want to display a help icon and when users click it a simple static page to open in a pop-up. In My View I have: \<%= link\_to image\_tag(“info\_small.gif”) , { :action =\> “help”, :controller =\> “restaura…

---

## [What api's can ruby on rails use?](https://www.ruby-forum.com/t/what-apis-can-ruby-on-rails-use/133451)

<div class="topic-metadata">

**Author:** [@megax](https://www.ruby-forum.com/u/megax)\
**Replies:** 1\
**Last updated:** [April 1, 2008, 1:10am UTC](https://www.ruby-forum.com/t/what-apis-can-ruby-on-rails-use/133451 "2008-04-01T01:10:02Z")

</div>

Im trying to find out all the api’s ruby can use so far i’ve found Flickr api Amazon api Google maps api yahoo api youtube api rFaceboook api Does anyone know any others?

---

## [Creating rounded corners of images](https://www.ruby-forum.com/t/creating-rounded-corners-of-images/133481)

<div class="topic-metadata">

**Author:** [@heldopslippers](https://www.ruby-forum.com/u/heldopslippers)\
**Replies:** 1\
**Last updated:** [April 1, 2008, 12:32am UTC](https://www.ruby-forum.com/t/creating-rounded-corners-of-images/133481 "2008-04-01T00:32:24Z")

</div>

Hey All, Is it possible to round the corners of an image when you upload it on your site ?. yes I now… Why would I want that…Well I have to make a website which the designers thought “lets make al the images you upl…

---

## [OT CSS styling for form field lables:](https://www.ruby-forum.com/t/ot-css-styling-for-form-field-lables/133473)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 3\
**Last updated:** [March 31, 2008, 11:44pm UTC](https://www.ruby-forum.com/t/ot-css-styling-for-form-field-lables/133473 "2008-03-31T23:44:10Z")

</div>

I want to have my form field and their associated labels stack vertically without introducing xhtml inline or block elements. So, given this: \<% = Full Legal Name: \<input id="entity\_entity\_legal\_name" name=…

---

## [Scriptaculous effects new help](https://www.ruby-forum.com/t/scriptaculous-effects-new-help/133468)

<div class="topic-metadata">

**Author:** [@megax](https://www.ruby-forum.com/u/megax)\
**Replies:** 1\
**Last updated:** [March 31, 2008, 10:18pm UTC](https://www.ruby-forum.com/t/scriptaculous-effects-new-help/133468 "2008-03-31T22:18:55Z")

</div>

I have been experimenting with the scriptaculous effects and can get them working with a click as shown below: Flash but I want the effect to happen when the page loads but I have no idea how to do this can anyone he…

---

## [Simple Problem](https://www.ruby-forum.com/t/simple-problem/133465)

<div class="topic-metadata">

**Author:** [@sjglazer](https://www.ruby-forum.com/u/sjglazer)\
**Replies:** 3\
**Last updated:** [March 31, 2008, 10:05pm UTC](https://www.ruby-forum.com/t/simple-problem/133465 "2008-03-31T22:05:56Z")

</div>

Hi there, I have a simple search application where a user types in there address and I return a list. I have a radio button and a drop down where the user can narrow down the search. The problem is that after the sear…

---

## [Query problem with 'LIKE'](https://www.ruby-forum.com/t/query-problem-with-like/133472)

<div class="topic-metadata">

**Author:** [@drsharp](https://www.ruby-forum.com/u/drsharp)\
**Replies:** 4\
**Last updated:** [March 31, 2008, 9:43pm UTC](https://www.ruby-forum.com/t/query-problem-with-like/133472 "2008-03-31T21:43:47Z")

</div>

Hi. I’m trying to implement a basic search, but the LIKE clause in the query dosen’t seem to work as I expected. The result is only found if the exact phrase is typed in to the field. Have I made some sort of error? …

---

## [Specifying html class to submit\_to\_remote](https://www.ruby-forum.com/t/specifying-html-class-to-submit-to-remote/133394)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 8\
**Last updated:** [March 31, 2008, 9:25pm UTC](https://www.ruby-forum.com/t/specifying-html-class-to-submit-to-remote/133394 "2008-03-31T21:25:27Z")

</div>

Hi I am using submit\_to\_remote as below.But the class not working as expected.Please help to correct it \<%= submit\_to\_remote ‘search\_btn’, ‘Search’, :html =\> {:class =\> ‘itilbuttonlink1’}, :url =\> { :controller =\> ‘…

---

## [\[ANN\] Introductory Rails Seminar in San Francisco](https://www.ruby-forum.com/t/ann-introductory-rails-seminar-in-san-francisco/133469)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 0\
**Last updated:** [March 31, 2008, 9:07pm UTC](https://www.ruby-forum.com/t/ann-introductory-rails-seminar-in-san-francisco/133469 "2008-03-31T21:07:44Z")

</div>

My colleague Christopher Haupt and I are going to be presenting a two- day introductory seminar on Ruby on Rails in San Francisco, April 29-30. We’ve been producing the Learning Rails podcast for a few months now, and…

---

## [Showing a webpage in a div help](https://www.ruby-forum.com/t/showing-a-webpage-in-a-div-help/133464)

<div class="topic-metadata">

**Author:** [@megax](https://www.ruby-forum.com/u/megax)\
**Replies:** 2\
**Last updated:** [March 31, 2008, 8:56pm UTC](https://www.ruby-forum.com/t/showing-a-webpage-in-a-div-help/133464 "2008-03-31T20:56:26Z")

</div>

I would like to display this webpage in my RoR site (its only for a project) so I can show a game made in ruby on rails. I would like to diplay it in a div can anyone help me?

---

## [Nuby : adding new fields to existing table](https://www.ruby-forum.com/t/nuby-adding-new-fields-to-existing-table/133435)

<div class="topic-metadata">

**Author:** [@chinnakaruppan](https://www.ruby-forum.com/u/chinnakaruppan)\
**Replies:** 1\
**Last updated:** [March 31, 2008, 8:43pm UTC](https://www.ruby-forum.com/t/nuby-adding-new-fields-to-existing-table/133435 "2008-03-31T20:43:47Z")

</div>

Hi, I am starting rails with the clean slate(no legacy tables).I created tables and fields in sqlite using a gui.I am more comfortable this way.I did rake db:migrate. this updated the scheme.rb .After which I created …

---

## [Dynamically generating form tags](https://www.ruby-forum.com/t/dynamically-generating-form-tags/132615)

<div class="topic-metadata">

**Author:** [@brownerthanu](https://www.ruby-forum.com/u/brownerthanu)\
**Replies:** 3\
**Last updated:** [March 31, 2008, 8:24pm UTC](https://www.ruby-forum.com/t/dynamically-generating-form-tags/132615 "2008-03-31T20:24:51Z")

</div>

i’m trying to create a form which has dropdown menus for certain items and text boxes for others. i have a feeling i’m trying way too hard to make this happen. i have a method which writes strings of the proper tags…

---

## [Style + Feeds](https://www.ruby-forum.com/t/style-feeds/133452)

<div class="topic-metadata">

**Author:** [@joel](https://www.ruby-forum.com/u/joel)\
**Replies:** 0\
**Last updated:** [March 31, 2008, 7:01pm UTC](https://www.ruby-forum.com/t/style-feeds/133452 "2008-03-31T19:01:12Z")

</div>

Hi, Just wanted to know how I should proceed to add css syle to my feeds in rails. Thanks in advance Joel

---

## [Cleaning up my methods](https://www.ruby-forum.com/t/cleaning-up-my-methods/133441)

<div class="topic-metadata">

**Author:** [@softf5ajivanet](https://www.ruby-forum.com/u/softf5ajivanet)\
**Replies:** 2\
**Last updated:** [March 31, 2008, 6:48pm UTC](https://www.ruby-forum.com/t/cleaning-up-my-methods/133441 "2008-03-31T18:48:11Z")

</div>

Hi, I’m trying to clean up my methods and especially my controllers as they’re getting pretty bloated. Got a question, am I right in thinking that any methods I put into the inididual models are only accesible from th…

---

## [Sending DIV form content when submitting form](https://www.ruby-forum.com/t/sending-div-form-content-when-submitting-form/133221)

<div class="topic-metadata">

**Author:** [@dekhaus](https://www.ruby-forum.com/u/dekhaus)\
**Replies:** 1\
**Last updated:** [March 31, 2008, 6:36pm UTC](https://www.ruby-forum.com/t/sending-div-form-content-when-submitting-form/133221 "2008-03-31T18:36:15Z")

</div>

Hi All I have a form that has two select/list form elements. I'm using ajax (rjs, partials, and observe\_field) to enable a user to move items from one list/select to another list/select. When the user is satis…

---

## [Parsing text stored in database](https://www.ruby-forum.com/t/parsing-text-stored-in-database/133259)

<div class="topic-metadata">

**Author:** [@pankaj](https://www.ruby-forum.com/u/pankaj)\
**Replies:** 1\
**Last updated:** [March 31, 2008, 6:25pm UTC](https://www.ruby-forum.com/t/parsing-text-stored-in-database/133259 "2008-03-31T18:25:17Z")

</div>

Hi all There is a table called ‘emails’. It has a field ‘body’ which contains the contents of the email. It contains rhtml code for ex %=@user.name When this text from database is included in the actual email to be …

---

## [Best practices in Translation](https://www.ruby-forum.com/t/best-practices-in-translation/133368)

<div class="topic-metadata">

**Author:** [@fero46](https://www.ruby-forum.com/u/fero46)\
**Replies:** 1\
**Last updated:** [March 31, 2008, 6:22pm UTC](https://www.ruby-forum.com/t/best-practices-in-translation/133368 "2008-03-31T18:22:11Z")

</div>

Hi I thought about a way to translate a website. I thought about a Model, for example called Language, with a Table in the DB, that dynamicly load textphrase in the webpage. Maybe like this : @text= Language.find\_by…

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

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