# Rails

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

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

---

## [IE: "File Download Security Warning" opens instead of executing RJS files](https://www.ruby-forum.com/t/ie-file-download-security-warning-opens-instead-of-executing-rjs-files/144214)

<div class="topic-metadata">

**Author:** [@jdevine](https://www.ruby-forum.com/u/jdevine)\
**Replies:** 0\
**Last updated:** [July 26, 2008, 7:29pm UTC](https://www.ruby-forum.com/t/ie-file-download-security-warning-opens-instead-of-executing-rjs-files/144214 "2008-07-26T19:29:55Z")

</div>

Man, trying to make an AJAX-laden site work on IE is really turning out to be a chore. My newest problem, as I stated above is that on IE(7), when I submit a form via remote\_form\_for and return an RJS response, the br…

---

## [Rendered Url in browser & Digg Script & meta tags](https://www.ruby-forum.com/t/rendered-url-in-browser-digg-script-meta-tags/144207)

<div class="topic-metadata">

**Author:** [@indigoi](https://www.ruby-forum.com/u/indigoi)\
**Replies:** 0\
**Last updated:** [July 26, 2008, 6:18pm UTC](https://www.ruby-forum.com/t/rendered-url-in-browser-digg-script-meta-tags/144207 "2008-07-26T18:18:03Z")

</div>

Question 1) How can i get my dynamically rendered page URL where it says digg\_url?? so i can have digg voters, vote for that specific page, not just one static page i type in. Question 2) how can i dynamically add…

---

## ['connect' user to categories through preferences](https://www.ruby-forum.com/t/connect-user-to-categories-through-preferences/144202)

<div class="topic-metadata">

**Author:** [@remco](https://www.ruby-forum.com/u/remco)\
**Replies:** 0\
**Last updated:** [July 26, 2008, 6:11pm UTC](https://www.ruby-forum.com/t/connect-user-to-categories-through-preferences/144202 "2008-07-26T18:11:16Z")

</div>

Hi, The users on my website can create/update their account for newsletters purposes. In my next-release i want to add more preferences, based on activities(travel). The user can select categories(activities) through…

---

## [Store image as blob or as file pointers](https://www.ruby-forum.com/t/store-image-as-blob-or-as-file-pointers/144075)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 5\
**Last updated:** [July 26, 2008, 5:37pm UTC](https://www.ruby-forum.com/t/store-image-as-blob-or-as-file-pointers/144075 "2008-07-26T17:37:28Z")

</div>

Hi This is a general implementation question…I am using different company logos in my application…And I am familiar with saving these images as file pointers in the DB…What I am asking is if I directly save this imag…

---

## [Text::Format assistance needed](https://www.ruby-forum.com/t/text-format-assistance-needed/143920)

<div class="topic-metadata">

**Author:** [@tinney](https://www.ruby-forum.com/u/tinney)\
**Replies:** 4\
**Last updated:** [July 26, 2008, 5:23pm UTC](https://www.ruby-forum.com/t/text-format-assistance-needed/143920 "2008-07-26T17:23:21Z")

</div>

Hello everyone, I was reading through the Rails API and came across Text::Format. It appears as if I can use this to format my text for my users. I’ll be launching a creative writing website and if I can allow members…

---

## [Image upload with attachment\_fu](https://www.ruby-forum.com/t/image-upload-with-attachment-fu/144198)

<div class="topic-metadata">

**Author:** [@sadathiru](https://www.ruby-forum.com/u/sadathiru)\
**Replies:** 0\
**Last updated:** [July 26, 2008, 4:47pm UTC](https://www.ruby-forum.com/t/image-upload-with-attachment-fu/144198 "2008-07-26T16:47:33Z")

</div>

hi, I could do everything with attachment\_fu, uploading, thumbnailing. My problem is that if I try to upload a image such as 400kb size, i could not able to upload even I set :max\_size =\> 10.megabytes. I don’t know w…

---

## [Dropdown selected value not reflecting in edit view](https://www.ruby-forum.com/t/dropdown-selected-value-not-reflecting-in-edit-view/144192)

<div class="topic-metadata">

**Author:** [@shaily903](https://www.ruby-forum.com/u/shaily903)\
**Replies:** 1\
**Last updated:** [July 26, 2008, 4:02pm UTC](https://www.ruby-forum.com/t/dropdown-selected-value-not-reflecting-in-edit-view/144192 "2008-07-26T16:02:29Z")

</div>

hi I am facing the following issue: I have the following dropdown, in the new view select\_tag “experience\[\]”, options\_for\_select(\[\[less\_than\_1\_year, \[0,1\]\],\[between\_1\_and\_3\_years, \[1,3\]\],\[between\_3\_and\_5\_years, \[3,5…

---

## [Select\_tag help](https://www.ruby-forum.com/t/select-tag-help/144188)

<div class="topic-metadata">

**Author:** [@jazzezravi](https://www.ruby-forum.com/u/jazzezravi)\
**Replies:** 4\
**Last updated:** [July 26, 2008, 3:04pm UTC](https://www.ruby-forum.com/t/select-tag-help/144188 "2008-07-26T15:04:28Z")

</div>

Hi All, controller: def html @tag1=\[“Arun”,“Babu”,Chitra"\] end html.html.erb : \<%= select\_tag “@tag1”,"#{@tag1\[0\]}#{@tag1\[1\]} "%\> It was working fine. But my question is any other simple ways are available. Be…

---

## [Premature end of script headers: dispatch.fcgi](https://www.ruby-forum.com/t/premature-end-of-script-headers-dispatch-fcgi/143899)

<div class="topic-metadata">

**Author:** [@cojones](https://www.ruby-forum.com/u/cojones)\
**Replies:** 4\
**Last updated:** [July 26, 2008, 1:47pm UTC](https://www.ruby-forum.com/t/premature-end-of-script-headers-dispatch-fcgi/143899 "2008-07-26T13:47:38Z")

</div>

Hey people, I’m working on this issue for more than 4 hours now and I have no idea what’s wrong so I ask you kindly to have a look at my stuff. When I try to access my website I get this error: Application error Rai…

---

## [Text not rendering as html](https://www.ruby-forum.com/t/text-not-rendering-as-html/144191)

<div class="topic-metadata">

**Author:** [@messismore](https://www.ruby-forum.com/u/messismore)\
**Replies:** 0\
**Last updated:** [July 26, 2008, 1:47pm UTC](https://www.ruby-forum.com/t/text-not-rendering-as-html/144191 "2008-07-26T13:47:20Z")

</div>

Hi, I have set up TinyMCE as an inkine javascript text editor on my text areas, but when I open show.html.erb it renders out, for example, bold tags as “Get” in the actual browser as opposed to “Get”. Can someone pl…

---

## [!st deployment. Rails version problems?](https://www.ruby-forum.com/t/st-deployment-rails-version-problems/143979)

<div class="topic-metadata">

**Author:** [@messismore](https://www.ruby-forum.com/u/messismore)\
**Replies:** 4\
**Last updated:** [July 26, 2008, 1:44pm UTC](https://www.ruby-forum.com/t/st-deployment-rails-version-problems/143979 "2008-07-26T13:44:47Z")

</div>

Hi, I am about to deploy my first Rails app, but am a little worried about certain syntax changes from Rails 1.8 to 2.1(which I will be using). I’m finding it hard to get my head around what happens if the web hostin…

---

## [Any Flash/ SilverLight Flex Equivalent for ROR?](https://www.ruby-forum.com/t/any-flash-silverlight-flex-equivalent-for-ror/144162)

<div class="topic-metadata">

**Author:** [@ror\_arch](https://www.ruby-forum.com/u/ror_arch)\
**Replies:** 4\
**Last updated:** [July 26, 2008, 11:19am UTC](https://www.ruby-forum.com/t/any-flash-silverlight-flex-equivalent-for-ror/144162 "2008-07-26T11:19:49Z")

</div>

I was wondering if there are any equivalents to flash/silverlight or flex (would ajax be an equivalent?) for ROR? for creating RIAs?

---

## [Liquid on Rails 2.1 still broken?](https://www.ruby-forum.com/t/liquid-on-rails-2-1-still-broken/144186)

<div class="topic-metadata">

**Author:** [@goodwill](https://www.ruby-forum.com/u/goodwill)\
**Replies:** 1\
**Last updated:** [July 26, 2008, 10:25am UTC](https://www.ruby-forum.com/t/liquid-on-rails-2-1-still-broken/144186 "2008-07-26T10:25:21Z")

</div>

I have tried a very simple page rendering and it seems completely broken. All I got is: Showing sites/users/gearbox/pages/index.liquid where line # raised: wrong number of arguments (1 for 2) Full trace attached: /L…

---

## [Actionmailer weirdness](https://www.ruby-forum.com/t/actionmailer-weirdness/144179)

<div class="topic-metadata">

**Author:** [@johnnybutler7](https://www.ruby-forum.com/u/johnnybutler7)\
**Replies:** 1\
**Last updated:** [July 26, 2008, 8:40am UTC](https://www.ruby-forum.com/t/actionmailer-weirdness/144179 "2008-07-26T08:40:38Z")

</div>

Hi, In my controller: Emailer.deliver\_site\_update(user) In my action mailer class: class Emailer \< ActionMailer::Base def self.deliver\_site\_update(user, site\_update) @recipients = “#{user.email}” @content\_type = “…

---

## [Rendering layout not in apps/layout?](https://www.ruby-forum.com/t/rendering-layout-not-in-apps-layout/144181)

<div class="topic-metadata">

**Author:** [@goodwill](https://www.ruby-forum.com/u/goodwill)\
**Replies:** 0\
**Last updated:** [July 26, 2008, 8:24am UTC](https://www.ruby-forum.com/t/rendering-layout-not-in-apps-layout/144181 "2008-07-26T08:24:19Z")

</div>

I can see render :file can do so for the template file, but how about the layout? Possible to use a layout file outside apps/layout?

---

## [Best way to make multilanguage program](https://www.ruby-forum.com/t/best-way-to-make-multilanguage-program/144178)

<div class="topic-metadata">

**Author:** [@giga](https://www.ruby-forum.com/u/giga)\
**Replies:** 0\
**Last updated:** [July 26, 2008, 8:06am UTC](https://www.ruby-forum.com/t/best-way-to-make-multilanguage-program/144178 "2008-07-26T08:06:54Z")

</div>

In rails 2.2 there will bi new system to translate aplications. But if I start now deviloping a big program, what is the best way to make a multilanguage progrman thinking about future? It will be in 3 languges, engli…

---

## ["this version of engines plugin requires rails 1.2 or later"](https://www.ruby-forum.com/t/this-version-of-engines-plugin-requires-rails-1-2-or-later/144176)

<div class="topic-metadata">

**Author:** [@joeyboy](https://www.ruby-forum.com/u/joeyboy)\
**Replies:** 0\
**Last updated:** [July 26, 2008, 7:00am UTC](https://www.ruby-forum.com/t/this-version-of-engines-plugin-requires-rails-1-2-or-later/144176 "2008-07-26T07:00:05Z")

</div>

hi! just downloaded the latest version of coupa e-procurement. when i try to run rake db:schema:load i get this error: this version of engines plugin requires rails 1.2 or later doing rails --version returns 2.1.0 a…

---

## [About registe test](https://www.ruby-forum.com/t/about-registe-test/144127)

<div class="topic-metadata">

**Author:** [@daociyiyou](https://www.ruby-forum.com/u/daociyiyou)\
**Replies:** 2\
**Last updated:** [July 26, 2008, 3:42am UTC](https://www.ruby-forum.com/t/about-registe-test/144127 "2008-07-26T03:42:00Z")

</div>

hello: An action needed to test is: def register @user=User.new(params\[:user\]) if params\[:user\] && @user.save # if province=="åŒ—äº¬"...,set the city attr'value the same as province province=params\[:user\]\[:provin…

---

## [Titleize and roman numerals](https://www.ruby-forum.com/t/titleize-and-roman-numerals/144167)

<div class="topic-metadata">

**Author:** [@central\_tex](https://www.ruby-forum.com/u/central_tex)\
**Replies:** 0\
**Last updated:** [July 26, 2008, 2:37am UTC](https://www.ruby-forum.com/t/titleize-and-roman-numerals/144167 "2008-07-26T02:37:01Z")

</div>

movie = “hellboy ii: the golden army” movie.titleize puts movie “Hellboy Ii: The Golden Army” I have noticed this issue with the titleize method. It does not work with roman numerals. I am running rails 2.1. Does an…

---

## [Array#reject vs Array#each + in-block boolean test--I'm baffled--please help!](https://www.ruby-forum.com/t/array-reject-vs-array-each-in-block-boolean-test-im-baffled-please-help/144163)

<div class="topic-metadata">

**Author:** [@rpardee](https://www.ruby-forum.com/u/rpardee)\
**Replies:** 0\
**Last updated:** [July 26, 2008, 12:17am UTC](https://www.ruby-forum.com/t/array-reject-vs-array-each-in-block-boolean-test-im-baffled-please-help/144163 "2008-07-26T00:17:21Z")

</div>

Hey All, Can someone explain the difference between these two constructs? Consider a Projects model, which has\_many :tasks–so tasks here is (I believe) an array. Construct #1: tasks.reject(&:new\_record?).each do |ta…

---

## [\[ANN/ADV\] Only TWO WEEKS left to register for the Ruby Hoedown!](https://www.ruby-forum.com/t/ann-adv-only-two-weeks-left-to-register-for-the-ruby-hoedown/144161)

<div class="topic-metadata">

**Author:** [@Jeremy\_McAnally](https://www.ruby-forum.com/u/Jeremy_McAnally)\
**Replies:** 0\
**Last updated:** [July 26, 2008, 12:15am UTC](https://www.ruby-forum.com/t/ann-adv-only-two-weeks-left-to-register-for-the-ruby-hoedown/144161 "2008-07-26T00:15:36Z")

</div>

Hi folks, There’s only 2 weeks left to register for the Ruby Hoedown, sponsored by Engine Y. and Hashrocket. We’ve got talks from Jim W., Joe O’Brien, Rein H., Giles B., David Black, Chris W., Rick B., and more! Ch…

---

## [Prevent the second form-submit on server side](https://www.ruby-forum.com/t/prevent-the-second-form-submit-on-server-side/144160)

<div class="topic-metadata">

**Author:** [@ssk](https://www.ruby-forum.com/u/ssk)\
**Replies:** 0\
**Last updated:** [July 26, 2008, 12:07am UTC](https://www.ruby-forum.com/t/prevent-the-second-form-submit-on-server-side/144160 "2008-07-26T00:07:13Z")

</div>

Hi, I want to prevent users from re-submitting a form. Disabling the submit button would be a simple solution but not perfect. A better solution would be using session/cookie on the server side. I want to know if the…

---

## [Add an auto-increment column with rake?](https://www.ruby-forum.com/t/add-an-auto-increment-column-with-rake/144158)

<div class="topic-metadata">

**Author:** [@dino\_d](https://www.ruby-forum.com/u/dino_d)\
**Replies:** 0\
**Last updated:** [July 25, 2008, 11:40pm UTC](https://www.ruby-forum.com/t/add-an-auto-increment-column-with-rake/144158 "2008-07-25T23:40:44Z")

</div>

Hi - for some reason when I was learning Rails, I thought it would be a good idea to drop the id from a table. I have no idea why I did it, but now I’d like it back. I can roll all the way back, but I don’t want to…

---

## [Margin in body(css problem)](https://www.ruby-forum.com/t/margin-in-body-css-problem/144147)

<div class="topic-metadata">

**Author:** [@torso](https://www.ruby-forum.com/u/torso)\
**Replies:** 1\
**Last updated:** [July 25, 2008, 11:40pm UTC](https://www.ruby-forum.com/t/margin-in-body-css-problem/144147 "2008-07-25T23:40:09Z")

</div>

Hi I have problem which contains css in rails. Here’s the sample CSS: body{ padding:0px; margin:0px; } #test{ background-color:red; } HTML: test Okey it should go to the TOP of the page and make test text…

---

## [Scaffold help please!](https://www.ruby-forum.com/t/scaffold-help-please/144157)

<div class="topic-metadata">

**Author:** [@pipex](https://www.ruby-forum.com/u/pipex)\
**Replies:** 0\
**Last updated:** [July 25, 2008, 11:17pm UTC](https://www.ruby-forum.com/t/scaffold-help-please/144157 "2008-07-25T23:17:12Z")

</div>

I need some help please, im am doing a movie list so i first do a scaffold for movies: ruby script/generate scaffold movie title:string description:text ranking:string and it works ok but then i do a second scaffol…

---

## [Doing Selenium tests and :confirm inside a link\_to\_remote does not work](https://www.ruby-forum.com/t/doing-selenium-tests-and-confirm-inside-a-link-to-remote-does-not-work/144155)

<div class="topic-metadata">

**Author:** [@j.francisco](https://www.ruby-forum.com/u/j.francisco)\
**Replies:** 0\
**Last updated:** [July 25, 2008, 11:17pm UTC](https://www.ruby-forum.com/t/doing-selenium-tests-and-confirm-inside-a-link-to-remote-does-not-work/144155 "2008-07-25T23:17:12Z")

</div>

Hello there. I have a problem doing Selenium tests. When I try to test my delete method doesn’t prompt me the respective alert which otherwise would appears before run the destroy method on the controller. Without S…

---

## [Simple functional test fails](https://www.ruby-forum.com/t/simple-functional-test-fails/143953)

<div class="topic-metadata">

**Author:** [@txapelgorri](https://www.ruby-forum.com/u/txapelgorri)\
**Replies:** 3\
**Last updated:** [July 25, 2008, 11:17pm UTC](https://www.ruby-forum.com/t/simple-functional-test-fails/143953 "2008-07-25T23:17:12Z")

</div>

Hi there: I’m starting with rails and I founded and issue that I can’t figure out how to solve: This is the controller: class StoriesController \< ApplicationController def index @current\_time = Time.now @story = …

---

## [Doing Selenium tests and :confirm inside a link\_to\_remote does not work](https://www.ruby-forum.com/t/doing-selenium-tests-and-confirm-inside-a-link-to-remote-does-not-work/144154)

<div class="topic-metadata">

**Author:** [@paco.onrails](https://www.ruby-forum.com/u/paco.onrails)\
**Replies:** 0\
**Last updated:** [July 25, 2008, 11:16pm UTC](https://www.ruby-forum.com/t/doing-selenium-tests-and-confirm-inside-a-link-to-remote-does-not-work/144154 "2008-07-25T23:16:01Z")

</div>

Hello there. I have a problem doing Selenium tests. When I try to test my delete method doesn’t prompt me the respective alert which otherwise would appears before run the destroy method on the controller. Without S…

---

## [AR serialize and MySQL, truncation](https://www.ruby-forum.com/t/ar-serialize-and-mysql-truncation/144151)

<div class="topic-metadata">

**Author:** [@jrochkind](https://www.ruby-forum.com/u/jrochkind)\
**Replies:** 0\
**Last updated:** [July 25, 2008, 11:08pm UTC](https://www.ruby-forum.com/t/ar-serialize-and-mysql-truncation/144151 "2008-07-25T23:08:38Z")

</div>

I am still using latest Rails 1.8, not 2. Using the “serialize :attribute\_name” method on an ActiveRecord, if the serialization ends up being too long for the field, with a MySQL database, it will just be silently tru…

---

## [Protect my admin namespace](https://www.ruby-forum.com/t/protect-my-admin-namespace/144144)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [July 25, 2008, 10:56pm UTC](https://www.ruby-forum.com/t/protect-my-admin-namespace/144144 "2008-07-25T22:56:06Z")

</div>

Hi all. I’ve an admin namespace in my app with some controllers. What’s the best approach in order to login protect all of them? I’m thinking about using before\_filter, but I can forget to add it to an new controller…

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

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