# Rails

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

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

---

## [RMagick and Image Manipulation](https://www.ruby-forum.com/t/rmagick-and-image-manipulation/70286)

<div class="topic-metadata">

**Author:** [@eric](https://www.ruby-forum.com/u/eric)\
**Replies:** 7\
**Last updated:** [October 22, 2007, 12:45pm UTC](https://www.ruby-forum.com/t/rmagick-and-image-manipulation/70286 "2007-10-22T12:45:45Z")

</div>

Hey all, I’m currently working with Rmagick on an image editing feature for a rails app. I’m adding an editing function which would allow the user to rotate, add effects, etc…to uploaded images. The interface is worke…

---

## [Where's Sean Treadway page?](https://www.ruby-forum.com/t/wheres-sean-treadway-page/117584)

<div class="topic-metadata">

**Author:** [@Hector\_Parra](https://www.ruby-forum.com/u/Hector_Parra)\
**Replies:** 2\
**Last updated:** [October 22, 2007, 12:44pm UTC](https://www.ruby-forum.com/t/wheres-sean-treadway-page/117584 "2007-10-22T12:44:39Z")

</div>

I’ve been using one of the plugins (Responds to Parent) of Sean Treadway to make Ajax uploads on my website, and it was all ok. But yesterday I tried to modify it so I could use it to render some partials in my parent…

---

## [Search issue](https://www.ruby-forum.com/t/search-issue/117913)

<div class="topic-metadata">

**Author:** [@vapor](https://www.ruby-forum.com/u/vapor)\
**Replies:** 2\
**Last updated:** [October 22, 2007, 12:31pm UTC](https://www.ruby-forum.com/t/search-issue/117913 "2007-10-22T12:31:48Z")

</div>

I have a drop down list that has a value ‘any’. And I have this code in controller… @results = Post.find(:all, :conditions =\> ‘status = ?’, @status) If any is selected, it means search for all records. What do I need …

---

## [How do you access the :through join model objects?](https://www.ruby-forum.com/t/how-do-you-access-the-through-join-model-objects/117867)

<div class="topic-metadata">

**Author:** [@avramd](https://www.ruby-forum.com/u/avramd)\
**Replies:** 2\
**Last updated:** [October 22, 2007, 12:24pm UTC](https://www.ruby-forum.com/t/how-do-you-access-the-through-join-model-objects/117867 "2007-10-22T12:24:11Z")

</div>

Hello, I have some confusion regarding how access the join model object that is responsible for a relationship I am working with. Here’s a simple case: class A \< ActiveRecord::Base has\_many :connections has\_many :bs…

---

## [Form Posts to different controllers/models based on pull down menu select](https://www.ruby-forum.com/t/form-posts-to-different-controllers-models-based-on-pull-down-menu-select/117912)

<div class="topic-metadata">

**Author:** [@zippy](https://www.ruby-forum.com/u/zippy)\
**Replies:** 0\
**Last updated:** [October 22, 2007, 12:05pm UTC](https://www.ruby-forum.com/t/form-posts-to-different-controllers-models-based-on-pull-down-menu-select/117912 "2007-10-22T12:05:26Z")

</div>

Hi there, I just joined your group and was wondering if someone could please help me with this problem. I’m fairly new to ROR and have been trying to figure out how to POST form data to a different controller/model ba…

---

## [Rails 2.0PR is out, is Engines 2.0 on it's way?](https://www.ruby-forum.com/t/rails-2-0pr-is-out-is-engines-2-0-on-its-way/116190)

<div class="topic-metadata">

**Author:** [@nshb](https://www.ruby-forum.com/u/nshb)\
**Replies:** 1\
**Last updated:** [October 22, 2007, 12:04pm UTC](https://www.ruby-forum.com/t/rails-2-0pr-is-out-is-engines-2-0-on-its-way/116190 "2007-10-22T12:04:16Z")

</div>

Hey James et all, Curious if you have been doing any work with EDGE yet, or even the recently announced 2.0PR. Looks like some really sweet improvements have been made. Although I still like my ToolbawksPacker over …

---

## [How to reflect database change to model](https://www.ruby-forum.com/t/how-to-reflect-database-change-to-model/117624)

<div class="topic-metadata">

**Author:** [@nick](https://www.ruby-forum.com/u/nick)\
**Replies:** 2\
**Last updated:** [October 22, 2007, 9:56am UTC](https://www.ruby-forum.com/t/how-to-reflect-database-change-to-model/117624 "2007-10-22T09:56:46Z")

</div>

Hi, all When database schema changed dynamically, like you add new column, or create new table. The model will not reflect on those changes. How does active\_record handle this situation? Which class or method I need…

---

## [Validate .xml url](https://www.ruby-forum.com/t/validate-xml-url/117903)

<div class="topic-metadata">

**Author:** [@sumesh](https://www.ruby-forum.com/u/sumesh)\
**Replies:** 0\
**Last updated:** [October 22, 2007, 9:15am UTC](https://www.ruby-forum.com/t/validate-xml-url/117903 "2007-10-22T09:15:20Z")

</div>

how to validate a .xml url in Ruby on Rails Thanks sumesh

---

## [Rails attachment\_fu db\_file upload issue](https://www.ruby-forum.com/t/rails-attachment-fu-db-file-upload-issue/114370)

<div class="topic-metadata">

**Author:** [@jkahn](https://www.ruby-forum.com/u/jkahn)\
**Replies:** 2\
**Last updated:** [October 22, 2007, 8:48am UTC](https://www.ruby-forum.com/t/rails-attachment-fu-db-file-upload-issue/114370 "2007-10-22T08:48:56Z")

</div>

I’ve recently added attachment\_fu to my applicatons, and it works without reporting any errors. Works fine in :file\_system mode, but not in :db\_file mode. It seems to upload only about 45 bytes of data instead of th…

---

## [RMagick: How to run scripts in rails](https://www.ruby-forum.com/t/rmagick-how-to-run-scripts-in-rails/117258)

<div class="topic-metadata">

**Author:** [@ratschi85](https://www.ruby-forum.com/u/ratschi85)\
**Replies:** 7\
**Last updated:** [October 22, 2007, 8:45am UTC](https://www.ruby-forum.com/t/rmagick-how-to-run-scripts-in-rails/117258 "2007-10-22T08:45:25Z")

</div>

Hey, I just managed to install ImageMagick and the RMagick gem for rails. But I’m not sure how to run the scripts from the documentation. For example: require ‘RMagick’ include Magick cat = ImageList.new(“Cheetah.…

---

## [ActionController::HttpAuthentication and MySQL](https://www.ruby-forum.com/t/actioncontroller-httpauthentication-and-mysql/117901)

<div class="topic-metadata">

**Author:** [@jawosis](https://www.ruby-forum.com/u/jawosis)\
**Replies:** 0\
**Last updated:** [October 22, 2007, 8:42am UTC](https://www.ruby-forum.com/t/actioncontroller-httpauthentication-and-mysql/117901 "2007-10-22T08:42:30Z")

</div>

Has anyone a example how to authenticate against users stored in a MySQL-Database? – Jochen K. railswerk.de, gissmoh.de, figgfrosch.de, ror-ror.de

---

## [Trying to upload image in database](https://www.ruby-forum.com/t/trying-to-upload-image-in-database/117684)

<div class="topic-metadata">

**Author:** [@priyasaini](https://www.ruby-forum.com/u/priyasaini)\
**Replies:** 2\
**Last updated:** [October 22, 2007, 8:14am UTC](https://www.ruby-forum.com/t/trying-to-upload-image-in-database/117684 "2007-10-22T08:14:17Z")

</div>

Hi All, I got the Error message when i try to upload a image file into database using Ruby on Rails , PGError: ERROR: unterminated quoted string at or near “'ï¿½ï¿½ï¿½ï¿½” LINE 1: …O photos (“description”, “picture”…

---

## [Update quantity](https://www.ruby-forum.com/t/update-quantity/117842)

<div class="topic-metadata">

**Author:** [@elle](https://www.ruby-forum.com/u/elle)\
**Replies:** 3\
**Last updated:** [October 22, 2007, 6:02am UTC](https://www.ruby-forum.com/t/update-quantity/117842 "2007-10-22T06:02:55Z")

</div>

Hi, I added a field to my cart that allows you to update the quantity of the item but when I try to update the quantity I get an error: NoMethodError in CartController#update undefined method \`update\_attribute’ for #A…

---

## [Discounted total](https://www.ruby-forum.com/t/discounted-total/117843)

<div class="topic-metadata">

**Author:** [@elle](https://www.ruby-forum.com/u/elle)\
**Replies:** 2\
**Last updated:** [October 22, 2007, 5:47am UTC](https://www.ruby-forum.com/t/discounted-total/117843 "2007-10-22T05:47:07Z")

</div>

Hi again, Every customer has a discount level assigned to them. when they add items to the cart and on checkout (or when admin views all orders), I would like to show the total after discount. In the orders table, I …

---

## [Focusing wedget using javascript PROBLEM](https://www.ruby-forum.com/t/focusing-wedget-using-javascript-problem/117888)

<div class="topic-metadata">

**Author:** [@advait](https://www.ruby-forum.com/u/advait)\
**Replies:** 0\
**Last updated:** [October 22, 2007, 5:26am UTC](https://www.ruby-forum.com/t/focusing-wedget-using-javascript-problem/117888 "2007-10-22T05:26:12Z")

</div>

Hello, I needed to know, using javascript along with rails, that is in an rhtml file how do i make the focus of the widget on the first field when a given page is loaded. I have two problems 1 =\> I would like to kno…

---

## [Legacy database and habtm](https://www.ruby-forum.com/t/legacy-database-and-habtm/117543)

<div class="topic-metadata">

**Author:** [@rubylover](https://www.ruby-forum.com/u/rubylover)\
**Replies:** 1\
**Last updated:** [October 22, 2007, 4:55am UTC](https://www.ruby-forum.com/t/legacy-database-and-habtm/117543 "2007-10-22T04:55:07Z")

</div>

Greetings, I’m fighting with a poorly designed SQL Server database. The database is not normalized whatsoever, so I’m running into some brick walls trying to get Rails to be friendly with it. I need to create a habt…

---

## [Missing gems causing Mongrel/Webrick to fail on bootup](https://www.ruby-forum.com/t/missing-gems-causing-mongrel-webrick-to-fail-on-bootup/117883)

<div class="topic-metadata">

**Author:** [@soroe](https://www.ruby-forum.com/u/soroe)\
**Replies:** 0\
**Last updated:** [October 22, 2007, 3:58am UTC](https://www.ruby-forum.com/t/missing-gems-causing-mongrel-webrick-to-fail-on-bootup/117883 "2007-10-22T03:58:57Z")

</div>

Hey Guys, I recently moved my RoR project to another puter and when I attempted to start up Mongrel (or Webrick) I got the following message on the Windoze console… After about an hour of scratching my head I remembe…

---

## [Uninstalling rails](https://www.ruby-forum.com/t/uninstalling-rails/117878)

<div class="topic-metadata">

**Author:** [@Darthen](https://www.ruby-forum.com/u/Darthen)\
**Replies:** 0\
**Last updated:** [October 22, 2007, 1:22am UTC](https://www.ruby-forum.com/t/uninstalling-rails/117878 "2007-10-22T01:22:12Z")

</div>

Hello, I ran into some errors while updating gems. How can I uninstall rails (and all the dependencies) completely and start over with a fresh install? Thanks Darthen

---

## [Help adding css changer](https://www.ruby-forum.com/t/help-adding-css-changer/117875)

<div class="topic-metadata">

**Author:** [@sashaski](https://www.ruby-forum.com/u/sashaski)\
**Replies:** 0\
**Last updated:** [October 22, 2007, 12:34am UTC](https://www.ruby-forum.com/t/help-adding-css-changer/117875 "2007-10-22T00:34:48Z")

</div>

I want to let the admin of my app be able to change the css used for the app from within the admin panel, what I want is a dropdown box with a list of stylesheets, so when it gets submitted, the stylesheet to be used …

---

## [How to render 1="User" 2="Moderator" 3="Admin" etc](https://www.ruby-forum.com/t/how-to-render-1-user-2-moderator-3-admin-etc/117870)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [October 21, 2007, 10:32pm UTC](https://www.ruby-forum.com/t/how-to-render-1-user-2-moderator-3-admin-etc/117870 "2007-10-21T22:32:28Z")

</div>

Am in the midst of creating a largish app & have suddenly got struck with brain freeze. I want to store an integral value in table, but render it in HTML as text. So if the value is 1 I’d display the word “User” in a …

---

## [Forms with nesting/composite models](https://www.ruby-forum.com/t/forms-with-nesting-composite-models/117791)

<div class="topic-metadata">

**Author:** [@elan](https://www.ruby-forum.com/u/elan)\
**Replies:** 2\
**Last updated:** [October 21, 2007, 10:02pm UTC](https://www.ruby-forum.com/t/forms-with-nesting-composite-models/117791 "2007-10-21T22:02:02Z")

</div>

I was wondering how best to handle forms where I’m presenting a model and some of its “children”, i.e. a Person with multiple IM contacts or something. I had a look at some of the source in HighriseHQ, figuring hey, i…

---

## [You don't have permission to access /dispatch.fcgi on this s](https://www.ruby-forum.com/t/you-dont-have-permission-to-access-dispatch-fcgi-on-this-s/117869)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 0\
**Last updated:** [October 21, 2007, 9:58pm UTC](https://www.ruby-forum.com/t/you-dont-have-permission-to-access-dispatch-fcgi-on-this-s/117869 "2007-10-21T21:58:32Z")

</div>

Trying to get things setup on GoDaddy and get this error. Anyone know how to fix it?

---

## [A different way to do polymorphic associations](https://www.ruby-forum.com/t/a-different-way-to-do-polymorphic-associations/112049)

<div class="topic-metadata">

**Author:** [@pedz](https://www.ruby-forum.com/u/pedz)\
**Replies:** 2\
**Last updated:** [October 21, 2007, 9:30pm UTC](https://www.ruby-forum.com/t/a-different-way-to-do-polymorphic-associations/112049 "2007-10-21T21:30:34Z")

</div>

I did not like the way that Rails did polymorphic associations. I found it impossible to add constraints into the database itself to make sure that things were hooked up like they were suppose to be. And doing the va…

---

## [Passing parameters between controllers](https://www.ruby-forum.com/t/passing-parameters-between-controllers/117837)

<div class="topic-metadata">

**Author:** [@shishir\_s](https://www.ruby-forum.com/u/shishir_s)\
**Replies:** 2\
**Last updated:** [October 21, 2007, 8:59pm UTC](https://www.ruby-forum.com/t/passing-parameters-between-controllers/117837 "2007-10-21T20:59:30Z")

</div>

Hi, I am trying to pass some parameters from one controller method to a method in a different controller , using the rediret\_to method. My code is something like this controllerA def method1 id =(params\[‘user\_name’…

---

## [Attachment\_fu and rails 1.2.5 and rails 2.0pre](https://www.ruby-forum.com/t/attachment-fu-and-rails-1-2-5-and-rails-2-0pre/117820)

<div class="topic-metadata">

**Author:** [@jawosis](https://www.ruby-forum.com/u/jawosis)\
**Replies:** 4\
**Last updated:** [October 21, 2007, 8:38pm UTC](https://www.ruby-forum.com/t/attachment-fu-and-rails-1-2-5-and-rails-2-0pre/117820 "2007-10-21T20:38:27Z")

</div>

Anyone successfully using attachment\_fu with rails 1.2.5 and/or rails 2.0 pre? I would like to use database storage. – Jochen K.

---

## [Inherited model relation design](https://www.ruby-forum.com/t/inherited-model-relation-design/103369)

<div class="topic-metadata">

**Author:** [@xain](https://www.ruby-forum.com/u/xain)\
**Replies:** 1\
**Last updated:** [October 21, 2007, 7:24pm UTC](https://www.ruby-forum.com/t/inherited-model-relation-design/103369 "2007-10-21T19:24:10Z")

</div>

I want to have a Person class It will has attributes like name,email,address, phone… Then I will like some subclasses like Student, Teacher, Doctor, Lawyer, JobSeeker… these models will have attributes that belong to …

---

## [\[ANN/ADV\] "Advancing With Rails" training, Berlin, November 19-22](https://www.ruby-forum.com/t/ann-adv-advancing-with-rails-training-berlin-november-19-22/117861)

<div class="topic-metadata">

**Author:** [@David\_ASBlack](https://www.ruby-forum.com/u/David_ASBlack)\
**Replies:** 0\
**Last updated:** [October 21, 2007, 6:50pm UTC](https://www.ruby-forum.com/t/ann-adv-advancing-with-rails-training-berlin-november-19-22/117861 "2007-10-21T18:50:50Z")

</div>

Hi – I’m please to announce that Ruby Power and Light, in association with members of the Berlin Ruby U. Group, will be offering a four-day “Advancing With Rails” course in Berlin, Germany, November 19-22. The course…

---

## [How to avoid past pages to be displayed](https://www.ruby-forum.com/t/how-to-avoid-past-pages-to-be-displayed/117851)

<div class="topic-metadata">

**Author:** [@luma](https://www.ruby-forum.com/u/luma)\
**Replies:** 1\
**Last updated:** [October 21, 2007, 6:43pm UTC](https://www.ruby-forum.com/t/how-to-avoid-past-pages-to-be-displayed/117851 "2007-10-21T18:43:49Z")

</div>

I’ve got the following problem with firefox: When I click the back button after logging out, I can see all the pages of the browser history where I was logged in. These pages are not reloaded, so I assume the before\_f…

---

## [Sort Helper2 for column header sorting](https://www.ruby-forum.com/t/sort-helper2-for-column-header-sorting/117859)

<div class="topic-metadata">

**Author:** [@LAB](https://www.ruby-forum.com/u/LAB)\
**Replies:** 0\
**Last updated:** [October 21, 2007, 6:19pm UTC](https://www.ruby-forum.com/t/sort-helper2-for-column-header-sorting/117859 "2007-10-21T18:19:15Z")

</div>

I’ve been using SortHelper2 (http://wiki.rubyonrails.org/rails/pages/ SortHelper2) to help with column header sorting in a table. The problem is, it only seems to work in the LIST action/view for any controller. I w…

---

## [Making 'expire\_fragment' available to a model?](https://www.ruby-forum.com/t/making-expire-fragment-available-to-a-model/117844)

<div class="topic-metadata">

**Author:** [@idlefingers](https://www.ruby-forum.com/u/idlefingers)\
**Replies:** 4\
**Last updated:** [October 21, 2007, 5:27pm UTC](https://www.ruby-forum.com/t/making-expire-fragment-available-to-a-model/117844 "2007-10-21T17:27:42Z")

</div>

I noticed a lot of repetition across different Sweeper models in my app expiring the same fragments and so have been trying to move all the expire\_fragment calls into another model which the sweepers can then use but …

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

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