# Rails

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

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

---

## [Newbie questions - create table and file browser?](https://www.ruby-forum.com/t/newbie-questions-create-table-and-file-browser/134914)

<div class="topic-metadata">

**Author:** [@toro04](https://www.ruby-forum.com/u/toro04)\
**Replies:** 2\
**Last updated:** [April 16, 2008, 5:33am UTC](https://www.ruby-forum.com/t/newbie-questions-create-table-and-file-browser/134914 "2008-04-16T05:33:24Z")

</div>

Hey Guys, I am attempting to develop an application for managing my company’s workflow doing visual effects for the TV/film industry. I have a few ruby on rails questions. How can I create a new table in a database…

---

## [OT: What do you use for ie6 pngfixes?](https://www.ruby-forum.com/t/ot-what-do-you-use-for-ie6-pngfixes/134800)

<div class="topic-metadata">

**Author:** [@chrisolsen](https://www.ruby-forum.com/u/chrisolsen)\
**Replies:** 11\
**Last updated:** [April 16, 2008, 3:49am UTC](https://www.ruby-forum.com/t/ot-what-do-you-use-for-ie6-pngfixes/134800 "2008-04-16T03:49:52Z")

</div>

What do you guys use for fixing the ie6 issue with png files? I have never been able to get any of them to work. Here are a couple that I have tried and failed with: IE PNG Fix - TwinHelix jQuery.ifixpng - png trans…

---

## [Session variable error](https://www.ruby-forum.com/t/session-variable-error/134852)

<div class="topic-metadata">

**Author:** [@Fabio](https://www.ruby-forum.com/u/Fabio)\
**Replies:** 1\
**Last updated:** [April 16, 2008, 3:25am UTC](https://www.ruby-forum.com/t/session-variable-error/134852 "2008-04-16T03:25:53Z")

</div>

Hii guys! I’m new to ROR… I have a helpter in my rails APP with 2 classes inside it There’s a method that needs to set a session variable, but I’m getting an error def send\_upload\_request(entry) . . some code her…

---

## [Authorization plugin problem](https://www.ruby-forum.com/t/authorization-plugin-problem/134909)

<div class="topic-metadata">

**Author:** [@abusiek](https://www.ruby-forum.com/u/abusiek)\
**Replies:** 0\
**Last updated:** [April 16, 2008, 3:17am UTC](https://www.ruby-forum.com/t/authorization-plugin-problem/134909 "2008-04-16T03:17:07Z")

</div>

Hi! I’m using Rails 2.0.2 and i’ve install “authorization plugin”, Now when I write something like this: @project = Project.new(params\[:project\]) if @project.save @manager = User.find(params\[:project\]\[:user\_id…

---

## [AR performance weirdness](https://www.ruby-forum.com/t/ar-performance-weirdness/134893)

<div class="topic-metadata">

**Author:** [@jrochkind](https://www.ruby-forum.com/u/jrochkind)\
**Replies:** 5\
**Last updated:** [April 16, 2008, 12:48am UTC](https://www.ruby-forum.com/t/ar-performance-weirdness/134893 "2008-04-16T00:48:13Z")

</div>

So I’ve tracked down a mal-performing query in my app, and I can’t figure out why it’s behaving so poorly. I’m getting 5-10 seconds of response time in Rails for the same query that in MySQL directly takes only .01 se…

---

## [What's wrong with Mongrel?](https://www.ruby-forum.com/t/whats-wrong-with-mongrel/132392)

<div class="topic-metadata">

**Author:** [@sebastian](https://www.ruby-forum.com/u/sebastian)\
**Replies:** 6\
**Last updated:** [April 16, 2008, 12:35am UTC](https://www.ruby-forum.com/t/whats-wrong-with-mongrel/132392 "2008-04-16T00:35:10Z")

</div>

I’ve recently moved to a new system, Mac OS X 10.5, which has Rails and Mongrel installed by default. Yet when I fire up the server with “script/server”, Webrick is used instead of Mongrel. And when trying to force th…

---

## [Acts\_as\_paranoid Unknown key(s): with\_deleted](https://www.ruby-forum.com/t/acts-as-paranoid-unknown-key-s-with-deleted/134899)

<div class="topic-metadata">

**Author:** [@jared](https://www.ruby-forum.com/u/jared)\
**Replies:** 1\
**Last updated:** [April 16, 2008, 12:31am UTC](https://www.ruby-forum.com/t/acts-as-paranoid-unknown-key-s-with-deleted/134899 "2008-04-16T00:31:40Z")

</div>

Trying this straight from the README: I have acts\_as\_paranoid in my model (Course), and added the deleted\_at column. This is OK: Course.find\_with\_deleted(:all) Course.find(:all, :with\_deleted =\> true) gives: Argum…

---

## [Revver video link and Javascript](https://www.ruby-forum.com/t/revver-video-link-and-javascript/134897)

<div class="topic-metadata">

**Author:** [@Laughlink](https://www.ruby-forum.com/u/Laughlink)\
**Replies:** 0\
**Last updated:** [April 16, 2008, 12:26am UTC](https://www.ruby-forum.com/t/revver-video-link-and-javascript/134897 "2008-04-16T00:26:22Z")

</div>

I am trying to include the Revver video player into my RoR website. I inserted the Javascript into a partial, but the js freaks-out and will not hold the formating together (although the video links work!). Obviously …

---

## [Best practice for showing ajax loader gif?](https://www.ruby-forum.com/t/best-practice-for-showing-ajax-loader-gif/134839)

<div class="topic-metadata">

**Author:** [@vapor](https://www.ruby-forum.com/u/vapor)\
**Replies:** 4\
**Last updated:** [April 16, 2008, 12:19am UTC](https://www.ruby-forum.com/t/best-practice-for-showing-ajax-loader-gif/134839 "2008-04-16T00:19:21Z")

</div>

what is the best practice for showing animated ajax spinner? The usual Element.show(‘spinner’) has to stick with every form’s :loading. Is there some easier or light-weight method? Because I have this page that can co…

---

## [Stylesheet\_link\_tag](https://www.ruby-forum.com/t/stylesheet-link-tag/134778)

<div class="topic-metadata">

**Author:** [@Gordon\_Robertson](https://www.ruby-forum.com/u/Gordon_Robertson)\
**Replies:** 9\
**Last updated:** [April 15, 2008, 11:43pm UTC](https://www.ruby-forum.com/t/stylesheet-link-tag/134778 "2008-04-15T23:43:00Z")

</div>

Hi, I have the following, very simple, simple layout - \<%= title\_tag %\> \<%= stylesheet\_link\_tag %\> Main Title Up until this point, the HTML's coming from the application layout. \<%= @conten…

---

## [Is there a way to outsource image uploads?](https://www.ruby-forum.com/t/is-there-a-way-to-outsource-image-uploads/134859)

<div class="topic-metadata">

**Author:** [@vince](https://www.ruby-forum.com/u/vince)\
**Replies:** 4\
**Last updated:** [April 15, 2008, 11:43pm UTC](https://www.ruby-forum.com/t/is-there-a-way-to-outsource-image-uploads/134859 "2008-04-15T23:43:00Z")

</div>

I’m trying to keep my rails app lean and mean and want to avoid (if possible) dealing with image uploads, thumbnail generation, running RMagick etc. I was excited about Amazon letting you upload files directly from th…

---

## [Problem with creating custom generator](https://www.ruby-forum.com/t/problem-with-creating-custom-generator/134886)

<div class="topic-metadata">

**Author:** [@Henry\_W](https://www.ruby-forum.com/u/Henry_W)\
**Replies:** 0\
**Last updated:** [April 15, 2008, 11:08pm UTC](https://www.ruby-forum.com/t/problem-with-creating-custom-generator/134886 "2008-04-15T23:08:55Z")

</div>

Hi, I’m trying to create a new generator class in my .rails/generators directory. Everything appears to be setup correctly but when I run ruby script/generate the generator doesn’t appear in the list. I’m running on …

---

## [Dojo and Rails](https://www.ruby-forum.com/t/dojo-and-rails/134885)

<div class="topic-metadata">

**Author:** [@Schalk\_N](https://www.ruby-forum.com/u/Schalk_N)\
**Replies:** 0\
**Last updated:** [April 15, 2008, 11:00pm UTC](https://www.ruby-forum.com/t/dojo-and-rails/134885 "2008-04-15T23:00:05Z")

</div>

Hi there, I thought I got Dojo working with rails but I was wrong. When I have a text\_area set-up as: \<%= f.text\_area :content %\> Generated HTML: The form submits fine and the content is sent to the controller. Ho…

---

## [Trouble using send\_data to stream image to browser](https://www.ruby-forum.com/t/trouble-using-send-data-to-stream-image-to-browser/196641)

<div class="topic-metadata">

**Author:** [@jlesleyball](https://www.ruby-forum.com/u/jlesleyball)\
**Replies:** 0\
**Last updated:** [April 15, 2008, 10:55pm UTC](https://www.ruby-forum.com/t/trouble-using-send-data-to-stream-image-to-browser/196641 "2008-04-15T22:55:59Z")

</div>

Hi I’m doing some server-side graphics with Java2D and I’m trying to stream the resulting image to the browser using send\_data. When I try to view the image that I streamed, the browser just shows the URL in the wind…

---

## [Trouble using send\_data to stream image to browser](https://www.ruby-forum.com/t/trouble-using-send-data-to-stream-image-to-browser/134882)

<div class="topic-metadata">

**Author:** [@jlesleyball](https://www.ruby-forum.com/u/jlesleyball)\
**Replies:** 0\
**Last updated:** [April 15, 2008, 10:55pm UTC](https://www.ruby-forum.com/t/trouble-using-send-data-to-stream-image-to-browser/134882 "2008-04-15T22:55:59Z")

</div>

Hi I’m doing some server-side graphics with Java2D and I’m trying to stream the resulting image to the browser using send\_data. When I try to view the image that I streamed, the browser just shows the URL in the wind…

---

## [Scaffold views](https://www.ruby-forum.com/t/scaffold-views/134879)

<div class="topic-metadata">

**Author:** [@flaps](https://www.ruby-forum.com/u/flaps)\
**Replies:** 0\
**Last updated:** [April 15, 2008, 10:07pm UTC](https://www.ruby-forum.com/t/scaffold-views/134879 "2008-04-15T22:07:13Z")

</div>

Is there a way to get the rails generate script to create scaffold views with more than one db entry per table row?

---

## [\[ANN\] Boxcar Conductor](https://www.ruby-forum.com/t/ann-boxcar-conductor/134870)

<div class="topic-metadata">

**Author:** [@robby247365](https://www.ruby-forum.com/u/robby247365)\
**Replies:** 2\
**Last updated:** [April 15, 2008, 9:25pm UTC](https://www.ruby-forum.com/t/ann-boxcar-conductor/134870 "2008-04-15T21:25:55Z")

</div>

Hey all! Our team is working on some interactive deployment tasks for deploying to Boxcar\[1\] accounts. While our efforts are focused on easing the deployment process to our hosting service, we wanted to open up the w…

---

## [File\_fied\_tag on safari](https://www.ruby-forum.com/t/file-fied-tag-on-safari/131906)

<div class="topic-metadata">

**Author:** [@arpit\_jain](https://www.ruby-forum.com/u/arpit_jain)\
**Replies:** 3\
**Last updated:** [April 15, 2008, 9:24pm UTC](https://www.ruby-forum.com/t/file-fied-tag-on-safari/131906 "2008-04-15T21:24:50Z")

</div>

Hi I am using file\_field\_tag helper to upload the files. It is working fine on mozilla and ie but it really screwed me up in safari. When i see the log file, i found that its binary data is being passed, not the fi…

---

## [ActionController::InvalidAuthenticityToken](https://www.ruby-forum.com/t/actioncontroller-invalidauthenticitytoken/134873)

<div class="topic-metadata">

**Author:** [@mikhailov](https://www.ruby-forum.com/u/mikhailov)\
**Replies:** 0\
**Last updated:** [April 15, 2008, 9:18pm UTC](https://www.ruby-forum.com/t/actioncontroller-invalidauthenticitytoken/134873 "2008-04-15T21:18:53Z")

</div>

I have fixed this problem by include prototype in template \<%= javascript\_include\_tag “prototype” %\>

---

## [Converting symbol to object](https://www.ruby-forum.com/t/converting-symbol-to-object/134762)

<div class="topic-metadata">

**Author:** [@html-kurs](https://www.ruby-forum.com/u/html-kurs)\
**Replies:** 10\
**Last updated:** [April 15, 2008, 9:11pm UTC](https://www.ruby-forum.com/t/converting-symbol-to-object/134762 "2008-04-15T21:11:11Z")

</div>

Hi, writing a helper I pass a symbol of my model-object (something like \<%= printrow(:book, :title) =\>) In the helper-method I need to do something like this: def printrow(object, method) if object.somemethod outpu…

---

## [\[ANN\] Boxcar Conductor](https://www.ruby-forum.com/t/ann-boxcar-conductor/134871)

<div class="topic-metadata">

**Author:** [@robby247365](https://www.ruby-forum.com/u/robby247365)\
**Replies:** 0\
**Last updated:** [April 15, 2008, 8:32pm UTC](https://www.ruby-forum.com/t/ann-boxcar-conductor/134871 "2008-04-15T20:32:25Z")

</div>

Hey all! Our team is working on some interactive deployment tasks for deploying to Boxcar\[1\] accounts. While our efforts are focused on easing the deployment process to our hosting service, we wanted to open up the w…

---

## [\[ANN\] Ruport 1.6 and Murdoch 1.0](https://www.ruby-forum.com/t/ann-ruport-1-6-and-murdoch-1-0/134744)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 8\
**Last updated:** [April 15, 2008, 8:14pm UTC](https://www.ruby-forum.com/t/ann-ruport-1-6-and-murdoch-1-0/134744 "2008-04-15T20:14:36Z")

</div>

Hi folks, After a silent release of Ruport 1.6.0, I’m happy to announce Ruport 1.6.1 and Murdoch 1.0. Although 1.6.1 is just a README update, this announcement will serve as the 1.6.0 release notes as well. Most of …

---

## [Access model from rake](https://www.ruby-forum.com/t/access-model-from-rake/134639)

<div class="topic-metadata">

**Author:** [@eirc](https://www.ruby-forum.com/u/eirc)\
**Replies:** 2\
**Last updated:** [April 15, 2008, 8:01pm UTC](https://www.ruby-forum.com/t/access-model-from-rake/134639 "2008-04-15T20:01:04Z")

</div>

hello is it possible to access methods I add to my models from a rake task? adding “=\> :environment” seem to enable only the methods defined in ActiveRecord::Base. Calling other methods results in: undefined method \`…

---

## [Environment.rb uninitialized constant when starting console](https://www.ruby-forum.com/t/environment-rb-uninitialized-constant-when-starting-console/134863)

<div class="topic-metadata">

**Author:** [@yetanothergeek](https://www.ruby-forum.com/u/yetanothergeek)\
**Replies:** 2\
**Last updated:** [April 15, 2008, 7:52pm UTC](https://www.ruby-forum.com/t/environment-rb-uninitialized-constant-when-starting-console/134863 "2008-04-15T19:52:16Z")

</div>

I have the following code in environment.rb: require File.join(File.dirname(FILE), ‘boot’) raw\_config = File.read(RAILS\_ROOT + “/config/config.yml”) APP\_CONFIG = YAML.load(raw\_config)\[RAILS\_ENV\] This works fine when …

---

## [Asking for help passing variables with an observe\_field](https://www.ruby-forum.com/t/asking-for-help-passing-variables-with-an-observe-field/134785)

<div class="topic-metadata">

**Author:** [@eggman2001](https://www.ruby-forum.com/u/eggman2001)\
**Replies:** 2\
**Last updated:** [April 15, 2008, 7:05pm UTC](https://www.ruby-forum.com/t/asking-for-help-passing-variables-with-an-observe-field/134785 "2008-04-15T19:05:47Z")

</div>

Hi, I have the following observe field: \<%= observe\_field :session\_treatment, :url =\> { :action =\> ‘retrieve\_rate’ }, :with =\> ‘treatment’ %\> This passes on the ‘treatment’ variable to the action, but I’d like to pas…

---

## [How to add a condition in a Select form tag?](https://www.ruby-forum.com/t/how-to-add-a-condition-in-a-select-form-tag/134837)

<div class="topic-metadata">

**Author:** [@differenthink](https://www.ruby-forum.com/u/differenthink)\
**Replies:** 2\
**Last updated:** [April 15, 2008, 6:59pm UTC](https://www.ruby-forum.com/t/how-to-add-a-condition-in-a-select-form-tag/134837 "2008-04-15T18:59:40Z")

</div>

Hi, i ve got this piece of code : \<%= select(“profile”, “vlogiciel”, @vlogiciel.collect {|vlogiciel| \[ vlogiciel.logiciel.nom, vlogiciel.id \] }, :include\_blank=\>true, :selected=\>(@vl).to\_i )%\> But i would like to do…

---

## [Why does it still call transaction items with transaction support turned off?](https://www.ruby-forum.com/t/why-does-it-still-call-transaction-items-with-transaction-support-turned-off/134862)

<div class="topic-metadata">

**Author:** [@apswartz](https://www.ruby-forum.com/u/apswartz)\
**Replies:** 0\
**Last updated:** [April 15, 2008, 6:58pm UTC](https://www.ruby-forum.com/t/why-does-it-still-call-transaction-items-with-transaction-support-turned-off/134862 "2008-04-15T18:58:51Z")

</div>

I am pulling my hair out here (and I don’t have much to spare.) I changed Line 22 of test\_helper.rb to read: self.use\_transactional\_fixtures = false #trying to get things to work However, I am still getting the follo…

---

## [Newbie : homepage without referencing a controller](https://www.ruby-forum.com/t/newbie-homepage-without-referencing-a-controller/134792)

<div class="topic-metadata">

**Author:** [@kschu](https://www.ruby-forum.com/u/kschu)\
**Replies:** 9\
**Last updated:** [April 15, 2008, 6:43pm UTC](https://www.ruby-forum.com/t/newbie-homepage-without-referencing-a-controller/134792 "2008-04-15T18:43:35Z")

</div>

I’m racking my brain trying to get all this straight in my head. What do the settings need to be in order to show a layout on the landing page without referencing a controller. All I want to do is hit www.mypage.com a…

---

## [Text tagging question](https://www.ruby-forum.com/t/text-tagging-question/134860)

<div class="topic-metadata">

**Author:** [@gadys](https://www.ruby-forum.com/u/gadys)\
**Replies:** 0\
**Last updated:** [April 15, 2008, 6:41pm UTC](https://www.ruby-forum.com/t/text-tagging-question/134860 "2008-04-15T18:41:14Z")

</div>

Hi I’m using the plugin savage beast 2. the views contain allot of lines like \<%= link\_to 'Create New Forum'\[:create\_new\_forum\], new\_forum\_path, :class =\> "utility" %\> what is this part for \[:create\_new\_forum\] and ho…

---

## [Scientific notation problem](https://www.ruby-forum.com/t/scientific-notation-problem/134782)

<div class="topic-metadata">

**Author:** [@PeteSalty](https://www.ruby-forum.com/u/PeteSalty)\
**Replies:** 9\
**Last updated:** [April 15, 2008, 6:29pm UTC](https://www.ruby-forum.com/t/scientific-notation-problem/134782 "2008-04-15T18:29:49Z")

</div>

We’re developing a system that’s used for tracking company IPO data and we’re running into a few number storage issues. For large numbers, i.e. numbers greater than 100 million, MySQL insists on storing these as scien…

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

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