# Rails

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

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

---

## [Upload an image](https://www.ruby-forum.com/t/upload-an-image/152599)

<div class="topic-metadata">

**Author:** [@Ishara\_G](https://www.ruby-forum.com/u/Ishara_G)\
**Replies:** 1\
**Last updated:** [November 5, 2008, 2:20pm UTC](https://www.ruby-forum.com/t/upload-an-image/152599 "2008-11-05T14:20:30Z")

</div>

can anyone give me the code for upload an image,i try in various ways such as acts\_as\_attatchment plugin but it wasn’t work…now im in a big trouble,plz give me another solution to this

---

## [Is someone using symlinked directories in views?](https://www.ruby-forum.com/t/is-someone-using-symlinked-directories-in-views/152593)

<div class="topic-metadata">

**Author:** [@dracko](https://www.ruby-forum.com/u/dracko)\
**Replies:** 0\
**Last updated:** [November 5, 2008, 1:19pm UTC](https://www.ruby-forum.com/t/is-someone-using-symlinked-directories-in-views/152593 "2008-11-05T13:19:15Z")

</div>

I tried to ask this question in a more in-depth discussion in: http://groups.google.com/group/rubyonrails-core/browse\_thread/thread/3186764740ccd8a5 But, maybe it was so big that anyone has read it. So I’m trying to s…

---

## [Testing your Controller, using RSpec](https://www.ruby-forum.com/t/testing-your-controller-using-rspec/152559)

<div class="topic-metadata">

**Author:** [@torm3nt](https://www.ruby-forum.com/u/torm3nt)\
**Replies:** 2\
**Last updated:** [November 5, 2008, 12:32pm UTC](https://www.ruby-forum.com/t/testing-your-controller-using-rspec/152559 "2008-11-05T12:32:43Z")

</div>

If anyone is interested, I’ve written up a fairly basic tutorial going over testing some features of your controllers, using RSpec. Am looking for comments/constructive criticism on the article and if there’s anything…

---

## [Combining :order and :group in find yields wrong records](https://www.ruby-forum.com/t/combining-order-and-group-in-find-yields-wrong-records/152549)

<div class="topic-metadata">

**Author:** [@chrisdwan](https://www.ruby-forum.com/u/chrisdwan)\
**Replies:** 1\
**Last updated:** [November 5, 2008, 12:25pm UTC](https://www.ruby-forum.com/t/combining-order-and-group-in-find-yields-wrong-records/152549 "2008-11-05T12:25:53Z")

</div>

I have a setup with Members, Teams and Memberships. Teams can have\_many Memberships Teams can have\_many Members through Memberships Memberships belongs to a status Only the latest Membership of a Member is valid. I …

---

## [Ambiguous nested conditions on find](https://www.ruby-forum.com/t/ambiguous-nested-conditions-on-find/152557)

<div class="topic-metadata">

**Author:** [@linojon](https://www.ruby-forum.com/u/linojon)\
**Replies:** 1\
**Last updated:** [November 5, 2008, 12:21pm UTC](https://www.ruby-forum.com/t/ambiguous-nested-conditions-on-find/152557 "2008-11-05T12:21:45Z")

</div>

Hi, i’m trying to figure out how to do a query with an ambiguous condition Lets say Comment belongs\_to :article and :user, and Article :belongs\_to :user How can I find the comments by one user on articles by another …

---

## [Constants in models are initialized before fixtures are loaded?](https://www.ruby-forum.com/t/constants-in-models-are-initialized-before-fixtures-are-loaded/152587)

<div class="topic-metadata">

**Author:** [@g0nzo](https://www.ruby-forum.com/u/g0nzo)\
**Replies:** 1\
**Last updated:** [November 5, 2008, 11:36am UTC](https://www.ruby-forum.com/t/constants-in-models-are-initialized-before-fixtures-are-loaded/152587 "2008-11-05T11:36:38Z")

</div>

Hi, here’s simplified code from the model: class Foo \< AR::Base FIRST = Foo.first.id end The problem is that when testing I get well known error: “Called id for nil…”. I guess that this constant is initialized bef…

---

## [Tips/links/books for building widgets](https://www.ruby-forum.com/t/tips-links-books-for-building-widgets/152580)

<div class="topic-metadata">

**Author:** [@remco](https://www.ruby-forum.com/u/remco)\
**Replies:** 0\
**Last updated:** [November 5, 2008, 10:28am UTC](https://www.ruby-forum.com/t/tips-links-books-for-building-widgets/152580 "2008-11-05T10:28:56Z")

</div>

Hi, Has someone tips/links/books for building widgets in the RoR. Thanks…remco

---

## [ISP denies HTTP DELETE in httpd.conf?](https://www.ruby-forum.com/t/isp-denies-http-delete-in-httpd-conf/152508)

<div class="topic-metadata">

**Author:** [@gummybears](https://www.ruby-forum.com/u/gummybears)\
**Replies:** 7\
**Last updated:** [November 5, 2008, 10:23am UTC](https://www.ruby-forum.com/t/isp-denies-http-delete-in-httpd-conf/152508 "2008-11-05T10:23:19Z")

</div>

Hi, I discovered that my webhoster denies HTTP delete’s. They suggest I can do the same via HTTP get’s. As I explained to them I am using their Rails framework via REST and CRUD, it seems either they don’t know what…

---

## [MS-SQL deliveres binary image as array](https://www.ruby-forum.com/t/ms-sql-deliveres-binary-image-as-array/152384)

<div class="topic-metadata">

**Author:** [@lackyg](https://www.ruby-forum.com/u/lackyg)\
**Replies:** 3\
**Last updated:** [November 5, 2008, 10:06am UTC](https://www.ruby-forum.com/t/ms-sql-deliveres-binary-image-as-array/152384 "2008-11-05T10:06:38Z")

</div>

Hello! I need to display images stored in a MS-SQL database but I get the following error: NoMethodError (undefined method unpack' for #\<Array:0x48cbff0\>): c:/ruby/lib/ruby/1.8/base64.rb:59:indecode64’ I guess its be…

---

## [To\_json() does not have behave like to\_xml builder and block support](https://www.ruby-forum.com/t/to-json-does-not-have-behave-like-to-xml-builder-and-block-support/152553)

<div class="topic-metadata">

**Author:** [@rubynewbie](https://www.ruby-forum.com/u/rubynewbie)\
**Replies:** 1\
**Last updated:** [November 5, 2008, 9:55am UTC](https://www.ruby-forum.com/t/to-json-does-not-have-behave-like-to-xml-builder-and-block-support/152553 "2008-11-05T09:55:05Z")

</div>

Our Rails application needs to support both xml and json formats. In some cases, we need to return custom XML that spans several objects and associations. I’ve been able to write custom to\_xml methods that use the b…

---

## [Closed stream occured while loading faster\_csv](https://www.ruby-forum.com/t/closed-stream-occured-while-loading-faster-csv/152575)

<div class="topic-metadata">

**Author:** [@barakathullah](https://www.ruby-forum.com/u/barakathullah)\
**Replies:** 0\
**Last updated:** [November 5, 2008, 9:29am UTC](https://www.ruby-forum.com/t/closed-stream-occured-while-loading-faster-csv/152575 "2008-11-05T09:29:00Z")

</div>

Hi, In my application i am using faster\_csv gem to process csv file export to the client through web request. Where as in the respective controller i am requiring the gem faster\_csv. But at sme times i am getting the…

---

## [Juggarnaut installation on windows](https://www.ruby-forum.com/t/juggarnaut-installation-on-windows/152572)

<div class="topic-metadata">

**Author:** [@shalmali](https://www.ruby-forum.com/u/shalmali)\
**Replies:** 0\
**Last updated:** [November 5, 2008, 8:59am UTC](https://www.ruby-forum.com/t/juggarnaut-installation-on-windows/152572 "2008-11-05T08:59:08Z")

</div>

Hello, I am trying to create chat application on windows. For this I am using Juggarnaut. For using juggarnaut, we need to start push\_server. But I am not getting how to run push\_server on windows. From one of the tu…

---

## [Disabling observe\_form AJAX request on submit button click?](https://www.ruby-forum.com/t/disabling-observe-form-ajax-request-on-submit-button-click/152429)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 2\
**Last updated:** [November 5, 2008, 7:56am UTC](https://www.ruby-forum.com/t/disabling-observe-form-ajax-request-on-submit-button-click/152429 "2008-11-05T07:56:11Z")

</div>

All, I have a form that is using observe\_form to periodically check for modifications to the form and submit an AJAX request. It works really well. However, by watching Firebug output, I notice that the AJAX request …

---

## [\[JOB\] Senior Engineer, NYC - Relo OK - 150-250k](https://www.ruby-forum.com/t/job-senior-engineer-nyc-relo-ok-150-250k/152566)

<div class="topic-metadata">

**Author:** [@OSS](https://www.ruby-forum.com/u/OSS)\
**Replies:** 0\
**Last updated:** [November 5, 2008, 7:55am UTC](https://www.ruby-forum.com/t/job-senior-engineer-nyc-relo-ok-150-250k/152566 "2008-11-05T07:55:35Z")

</div>

Job Title: Senior Engineer Location: New York City - Relocation assistance provided Salary: $150,000 - $250,000 per year + benefits Entrepreneurial. Challenging. Exciting. Fun. Innovative. Edgy. Distinctive. Sound li…

---

## [Railscast 75, Observe\_field and Shopping Cart](https://www.ruby-forum.com/t/railscast-75-observe-field-and-shopping-cart/151671)

<div class="topic-metadata">

**Author:** [@vinay](https://www.ruby-forum.com/u/vinay)\
**Replies:** 4\
**Last updated:** [November 5, 2008, 6:30am UTC](https://www.ruby-forum.com/t/railscast-75-observe-field-and-shopping-cart/151671 "2008-11-05T06:30:47Z")

</div>

Hi all, I have the shopping cart page where a user can add items dynamically through ajax as explained in Railscast episode 75. I am using observe\_field to observe the ‘quantity’ and ‘cost’ fields to update the total…

---

## [DB tables inexistant online but there in console](https://www.ruby-forum.com/t/db-tables-inexistant-online-but-there-in-console/152548)

<div class="topic-metadata">

**Author:** [@thithi32](https://www.ruby-forum.com/u/thithi32)\
**Replies:** 0\
**Last updated:** [November 5, 2008, 3:13am UTC](https://www.ruby-forum.com/t/db-tables-inexistant-online-but-there-in-console/152548 "2008-11-05T03:13:47Z")

</div>

Hi, I’m quite close achiving my first Cap Deploy … but something strange is happening: I did the “cap deploy” of the deploy.rb following: set :application, “league” set :repository, “http://ksXXXXX.kimsufi.com/sv…

---

## [Cap: 'No such file or directory' when doing 'cap:update'](https://www.ruby-forum.com/t/cap-no-such-file-or-directory-when-doing-cap-update/152532)

<div class="topic-metadata">

**Author:** [@thithi32](https://www.ruby-forum.com/u/thithi32)\
**Replies:** 2\
**Last updated:** [November 5, 2008, 1:14am UTC](https://www.ruby-forum.com/t/cap-no-such-file-or-directory-when-doing-cap-update/152532 "2008-11-05T01:14:26Z")

</div>

Hello, I stuck with this for a few hours … Can anyone help me (I’m new with Cap) …\>cap deploy:update executing \`deploy:update’ \*\* transaction: start executing \`deploy:update\_code’ \*\*\* \[deploy:update\_code\] rolling b…

---

## [XML-RPC client](https://www.ruby-forum.com/t/xml-rpc-client/152545)

<div class="topic-metadata">

**Author:** [@Nicholas\_W](https://www.ruby-forum.com/u/Nicholas_W)\
**Replies:** 0\
**Last updated:** [November 5, 2008, 12:43am UTC](https://www.ruby-forum.com/t/xml-rpc-client/152545 "2008-11-05T00:43:24Z")

</div>

I need to receive pings from Wordpress, someone knows of a simple library to handle this task ? I know of ActionWebservice but seems to be deprecated and it’s a bit too much for what I have to do … Better to parse by …

---

## [Nester Resources, Routes and Class Inheritance](https://www.ruby-forum.com/t/nester-resources-routes-and-class-inheritance/152495)

<div class="topic-metadata">

**Author:** [@sw0rdfish](https://www.ruby-forum.com/u/sw0rdfish)\
**Replies:** 3\
**Last updated:** [November 4, 2008, 11:33pm UTC](https://www.ruby-forum.com/t/nester-resources-routes-and-class-inheritance/152495 "2008-11-04T23:33:06Z")

</div>

Ok here’s a quicky… but a goody :slight\_smile: We have models Company, Reference and Applicant… and References and Applicants just inherit from Company, and are basically companies with the type field set to reference…

---

## [Guide to moving Rails 1 app to Rails 2?](https://www.ruby-forum.com/t/guide-to-moving-rails-1-app-to-rails-2/152526)

<div class="topic-metadata">

**Author:** [@jrochkind](https://www.ruby-forum.com/u/jrochkind)\
**Replies:** 1\
**Last updated:** [November 4, 2008, 11:24pm UTC](https://www.ruby-forum.com/t/guide-to-moving-rails-1-app-to-rails-2/152526 "2008-11-04T23:24:18Z")

</div>

Are there any guides available on what must be done to move an app written with Rails 1.x to the latest Rails 2.x? I’m having trouble finding such a thing in Google. Thanks for any pointers!

---

## [Undefined method \`start\_all' for Engines:Module](https://www.ruby-forum.com/t/undefined-method-start-all-for-engines-module/152535)

<div class="topic-metadata">

**Author:** [@mwalsh](https://www.ruby-forum.com/u/mwalsh)\
**Replies:** 0\
**Last updated:** [November 4, 2008, 11:16pm UTC](https://www.ruby-forum.com/t/undefined-method-start-all-for-engines-module/152535 "2008-11-04T23:16:48Z")

</div>

I am trying to upgrade Rails on an application we have from 1.1.6 to 2.1.2. I unfroze Rails and refroze at 2.1.2. I then removed the engines plugin and install the latest from git. However, I now get this error when I…

---

## [Are there plugins available for Hpricot or Mechanize](https://www.ruby-forum.com/t/are-there-plugins-available-for-hpricot-or-mechanize/152440)

<div class="topic-metadata">

**Author:** [@cswebgrl](https://www.ruby-forum.com/u/cswebgrl)\
**Replies:** 6\
**Last updated:** [November 4, 2008, 10:58pm UTC](https://www.ruby-forum.com/t/are-there-plugins-available-for-hpricot-or-mechanize/152440 "2008-11-04T22:58:47Z")

</div>

Hi All. Does anyone know if there are plugins available for Hpricot or Mechanize? I’d like to install plugins into my rails app instead of using gems if that’s possible. THANKS!

---

## [Unknown action No action responded to show](https://www.ruby-forum.com/t/unknown-action-no-action-responded-to-show/152520)

<div class="topic-metadata">

**Author:** [@bababobo](https://www.ruby-forum.com/u/bababobo)\
**Replies:** 5\
**Last updated:** [November 4, 2008, 10:27pm UTC](https://www.ruby-forum.com/t/unknown-action-no-action-responded-to-show/152520 "2008-11-04T22:27:09Z")

</div>

Hi, I am new to ruby, so pardon me if i am asking something basic. I am trying to create a simple test application where a user registers for a account and can see his profile and edit his profile. the navigation loo…

---

## [Collection\_select broken in 2.1.x?](https://www.ruby-forum.com/t/collection-select-broken-in-2-1-x/152524)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [November 4, 2008, 9:43pm UTC](https://www.ruby-forum.com/t/collection-select-broken-in-2-1-x/152524 "2008-11-04T21:43:13Z")

</div>

Greetings, Can someone verify for me if collection\_select is broken in Rails 2.1.x? I have an administrative form where an administrator can update the subscription level of a user. In the partial I say \<%= collecti…

---

## [Routes: Root as Users#Show](https://www.ruby-forum.com/t/routes-root-as-users-show/152477)

<div class="topic-metadata">

**Author:** [@ratcheer](https://www.ruby-forum.com/u/ratcheer)\
**Replies:** 1\
**Last updated:** [November 4, 2008, 9:26pm UTC](https://www.ruby-forum.com/t/routes-root-as-users-show/152477 "2008-11-04T21:26:44Z")

</div>

Hi, I’d like to define the root path of my site as the Users#Show action, therefore whenever someone goes to http://www.example.com they will see their own profile page. At the moment I have done this by having the f…

---

## [Remote\_form\_for, paths, and partials](https://www.ruby-forum.com/t/remote-form-for-paths-and-partials/147973)

<div class="topic-metadata">

**Author:** [@arachnd](https://www.ruby-forum.com/u/arachnd)\
**Replies:** 1\
**Last updated:** [November 4, 2008, 9:19pm UTC](https://www.ruby-forum.com/t/remote-form-for-paths-and-partials/147973 "2008-11-04T21:19:04Z")

</div>

hi, i’m having a little trouble rendering a partial that uses a remote\_form\_for and is in another controller. \<%= render :partial =\> “reviews/new”-%\> and in the partial i have only this, inside another controller \<%…

---

## [Html lists vs html tables](https://www.ruby-forum.com/t/html-lists-vs-html-tables/152410)

<div class="topic-metadata">

**Author:** [@Garrett\_B](https://www.ruby-forum.com/u/Garrett_B)\
**Replies:** 15\
**Last updated:** [November 4, 2008, 7:55pm UTC](https://www.ruby-forum.com/t/html-lists-vs-html-tables/152410 "2008-11-04T19:55:00Z")

</div>

Okay, we know there are issues with html tables and Ajax. Is there any good reason not to fake tables using CSS and nested lists? Then I could using Ajax on any row or any part of the table right? Is there some bes…

---

## [PDF builder that support SWF (Macromedia Flash) embedding](https://www.ruby-forum.com/t/pdf-builder-that-support-swf-macromedia-flash-embedding/152516)

<div class="topic-metadata">

**Author:** [@paco.onrails](https://www.ruby-forum.com/u/paco.onrails)\
**Replies:** 0\
**Last updated:** [November 4, 2008, 7:50pm UTC](https://www.ruby-forum.com/t/pdf-builder-that-support-swf-macromedia-flash-embedding/152516 "2008-11-04T19:50:41Z")

</div>

Hello, I need to create a PDF report that includes a Flash chart (FusionCharts) embedding option. Any suggestion? Paco Reyes

---

## [Easiest RoR - PDF solution (based on HTML and CSS)](https://www.ruby-forum.com/t/easiest-ror-pdf-solution-based-on-html-and-css/152179)

<div class="topic-metadata">

**Author:** [@paco.onrails](https://www.ruby-forum.com/u/paco.onrails)\
**Replies:** 4\
**Last updated:** [November 4, 2008, 7:46pm UTC](https://www.ruby-forum.com/t/easiest-ror-pdf-solution-based-on-html-and-css/152179 "2008-11-04T19:46:33Z")

</div>

Hello, what solution you can recommend me?

---

## [JSON problems in update method (ExtJs, Ext)](https://www.ruby-forum.com/t/json-problems-in-update-method-extjs-ext/152514)

<div class="topic-metadata">

**Author:** [@hirodusk](https://www.ruby-forum.com/u/hirodusk)\
**Replies:** 0\
**Last updated:** [November 4, 2008, 7:45pm UTC](https://www.ruby-forum.com/t/json-problems-in-update-method-extjs-ext/152514 "2008-11-04T19:45:53Z")

</div>

Hello rubyonrails peeps, my first post here. I’ve been having a lot of trouble today getting my controller to respond properly to an update request via json, coming from an EditorGridPanel in ExtJS. I started off by u…

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

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