# Rails

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

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

---

## [ActiveRecord find :select](https://www.ruby-forum.com/t/activerecord-find-select/143925)

<div class="topic-metadata">

**Author:** [@micktaiwan](https://www.ruby-forum.com/u/micktaiwan)\
**Replies:** 0\
**Last updated:** [July 23, 2008, 10:12pm UTC](https://www.ruby-forum.com/t/activerecord-find-select/143925 "2008-07-23T22:12:44Z")

</div>

Hello, Why using this :select, it works : :select=\>", (select count() from tasks T) as subcache" but using this one does not: :select=\>", (select count() from tasks T where T.task\_id = tasks.id) as subcache" return…

---

## [Serialization to yaml](https://www.ruby-forum.com/t/serialization-to-yaml/143924)

<div class="topic-metadata">

**Author:** [@joel](https://www.ruby-forum.com/u/joel)\
**Replies:** 0\
**Last updated:** [July 23, 2008, 10:11pm UTC](https://www.ruby-forum.com/t/serialization-to-yaml/143924 "2008-07-23T22:11:29Z")

</div>

Hello, I m serializing an object so that I can send it by email easily. However my serailized object sometimes have a lot of quotes in it like : " commentable\_type: BlogPage updated\_at: 2008-07-14 19:55:03 …

---

## [Gem question on hosted service](https://www.ruby-forum.com/t/gem-question-on-hosted-service/143400)

<div class="topic-metadata">

**Author:** [@Tubahead](https://www.ruby-forum.com/u/Tubahead)\
**Replies:** 4\
**Last updated:** [July 23, 2008, 9:49pm UTC](https://www.ruby-forum.com/t/gem-question-on-hosted-service/143400 "2008-07-23T21:49:43Z")

</div>

All, This may be a gem question (not rails) but I feel sure someone else on this list has seen this issue go by. I use a hosting service that has ROR available, but I am among the few developers using it. I am devel…

---

## [Accessing the keyname and the value](https://www.ruby-forum.com/t/accessing-the-keyname-and-the-value/143889)

<div class="topic-metadata">

**Author:** [@monsterag](https://www.ruby-forum.com/u/monsterag)\
**Replies:** 3\
**Last updated:** [July 23, 2008, 9:27pm UTC](https://www.ruby-forum.com/t/accessing-the-keyname-and-the-value/143889 "2008-07-23T21:27:23Z")

</div>

Hello in PHP i can access the Keynames of an array by using this option: while(list($k,$v) = each($uebergabe)) { if($k \<\> "Abschicken" ){ $koepfe\[\] = $k; …

---

## [Writing a new function in the model problem](https://www.ruby-forum.com/t/writing-a-new-function-in-the-model-problem/143844)

<div class="topic-metadata">

**Author:** [@paradise](https://www.ruby-forum.com/u/paradise)\
**Replies:** 3\
**Last updated:** [July 23, 2008, 9:04pm UTC](https://www.ruby-forum.com/t/writing-a-new-function-in-the-model-problem/143844 "2008-07-23T21:04:36Z")

</div>

If anyone can help with this problem, I would greatly appreciate. In general I am trying to write a new method in one of models (Appointments) that takes a hash of objects and returns formated times that are within …

---

## [SMTP Server Used?](https://www.ruby-forum.com/t/smtp-server-used/143917)

<div class="topic-metadata">

**Author:** [@ror\_arch](https://www.ruby-forum.com/u/ror_arch)\
**Replies:** 0\
**Last updated:** [July 23, 2008, 8:55pm UTC](https://www.ruby-forum.com/t/smtp-server-used/143917 "2008-07-23T20:55:06Z")

</div>

What sort of an SMTP server do most people use around here for sending emails? I ask because I would like to look into this: an SMTP server that is not just used as a relay to send outgoing messages, but a server whic…

---

## [How to pass params from an action to another you redirect\_to](https://www.ruby-forum.com/t/how-to-pass-params-from-an-action-to-another-you-redirect-to/66846)

<div class="topic-metadata">

**Author:** [@alder](https://www.ruby-forum.com/u/alder)\
**Replies:** 5\
**Last updated:** [July 23, 2008, 8:46pm UTC](https://www.ruby-forum.com/t/how-to-pass-params-from-an-action-to-another-you-redirect-to/66846 "2008-07-23T20:46:25Z")

</div>

Suppose action foo #redirects\_to action bar. Once #redirected\_to, bar would not have action foo’s params. One simple solution is: params\[:action\] = ‘bar’ redirect\_to(params) With that params is preserved in bar. The…

---

## [Another attachment\_fu on Windows problem](https://www.ruby-forum.com/t/another-attachment-fu-on-windows-problem/143806)

<div class="topic-metadata">

**Author:** [@brian](https://www.ruby-forum.com/u/brian)\
**Replies:** 3\
**Last updated:** [July 23, 2008, 8:02pm UTC](https://www.ruby-forum.com/t/another-attachment-fu-on-windows-problem/143806 "2008-07-23T20:02:26Z")

</div>

I’ve started from Mike C.'s tutorial as well. The base image gets saved fine, but the thumbnails don’t get created and the resizing is not working either. I’ve read the following thread about this: http://groups.goo…

---

## [Using Ruport and Restful Authentication](https://www.ruby-forum.com/t/using-ruport-and-restful-authentication/143132)

<div class="topic-metadata">

**Author:** [@MJohnH](https://www.ruby-forum.com/u/MJohnH)\
**Replies:** 2\
**Last updated:** [July 23, 2008, 7:21pm UTC](https://www.ruby-forum.com/t/using-ruport-and-restful-authentication/143132 "2008-07-23T19:21:55Z")

</div>

I’m using the Ruport Plugin and Restful Authentication Gem. I want to enable a report that varies depending on the user’s id. They are from different organisations. Restful Authentication creates a ‘current\_user’ vari…

---

## [How does a template know to use attributes before type cast after a validation error](https://www.ruby-forum.com/t/how-does-a-template-know-to-use-attributes-before-type-cast-after-a-validation-error/143900)

<div class="topic-metadata">

**Author:** [@tonypm](https://www.ruby-forum.com/u/tonypm)\
**Replies:** 1\
**Last updated:** [July 23, 2008, 6:45pm UTC](https://www.ruby-forum.com/t/how-does-a-template-know-to-use-attributes-before-type-cast-after-a-validation-error/143900 "2008-07-23T18:45:36Z")

</div>

I wonder if anyone could help me with this. In normal circumstances, re-rendering a form fields with validation errors, show original entered data and not type\_cast data from the object. However, I have a situation …

---

## [\[ANN\] WSO2 Web Services Framework For Ruby (WSF/Ruby) - 1.1.0 Released](https://www.ruby-forum.com/t/ann-wso2-web-services-framework-for-ruby-wsf-ruby-1-1-0-released/143903)

<div class="topic-metadata">

**Author:** [@dimuthu](https://www.ruby-forum.com/u/dimuthu)\
**Replies:** 0\
**Last updated:** [July 23, 2008, 6:16pm UTC](https://www.ruby-forum.com/t/ann-wso2-web-services-framework-for-ruby-wsf-ruby-1-1-0-released/143903 "2008-07-23T18:16:48Z")

</div>

WSO2 Web Services Framework For Ruby (WSF/Ruby) - 1.1.0 Released WSO2 WSF/Ruby team is pleased to announce the release of WSO2 WSF/Ruby 1.1.0. WSF/Ruby is the Ruby language extension to WSO2 WSF/C. This enables you …

---

## [Gsub all character except alphanum and character "&'](https://www.ruby-forum.com/t/gsub-all-character-except-alphanum-and-character/143848)

<div class="topic-metadata">

**Author:** [@sgudibanda](https://www.ruby-forum.com/u/sgudibanda)\
**Replies:** 1\
**Last updated:** [July 23, 2008, 6:16pm UTC](https://www.ruby-forum.com/t/gsub-all-character-except-alphanum-and-character/143848 "2008-07-23T18:16:12Z")

</div>

Hi, I want to replace all the special characters in my string except ‘&’ with ‘-’. How do i do that? I am currently using gsub(/\[^\[:alnum:\]\]/,’-’) But how do i say except ‘&’? Please suggest. Regards,

---

## [Preferred way to disable parts of a RESTful resource?](https://www.ruby-forum.com/t/preferred-way-to-disable-parts-of-a-restful-resource/143696)

<div class="topic-metadata">

**Author:** [@phallstrom](https://www.ruby-forum.com/u/phallstrom)\
**Replies:** 5\
**Last updated:** [July 23, 2008, 6:05pm UTC](https://www.ruby-forum.com/t/preferred-way-to-disable-parts-of-a-restful-resource/143696 "2008-07-23T18:05:40Z")

</div>

Hi all - I’ve got my RESTful resource all setup. However, there is no editing or destroying allowed. What’s the preferred way to disable those? remove the action? (don’t like this idea) redirect within the action s…

---

## [Extracting one column from an array of objects](https://www.ruby-forum.com/t/extracting-one-column-from-an-array-of-objects/143838)

<div class="topic-metadata">

**Author:** [@newbee-robert](https://www.ruby-forum.com/u/newbee-robert)\
**Replies:** 4\
**Last updated:** [July 23, 2008, 6:02pm UTC](https://www.ruby-forum.com/t/extracting-one-column-from-an-array-of-objects/143838 "2008-07-23T18:02:06Z")

</div>

This seems really simple but I can’t seem to find an answer. Say I have an array of Users which has a column called ‘id’. I need an array that holds just the ids. Right now I’m doing: for user in users ids \<\< user.id …

---

## [Is Globalize plugin dead?](https://www.ruby-forum.com/t/is-globalize-plugin-dead/138739)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 9\
**Last updated:** [July 23, 2008, 5:40pm UTC](https://www.ruby-forum.com/t/is-globalize-plugin-dead/138739 "2008-07-23T17:40:49Z")

</div>

It seems to me that Globalize product is years away from last Rails 2.0.2 version… no more information on it (latest are very old… including tutorial) no more wiki available lot of pending questions about it in many …

---

## [Rails process locking](https://www.ruby-forum.com/t/rails-process-locking/143895)

<div class="topic-metadata">

**Author:** [@fox](https://www.ruby-forum.com/u/fox)\
**Replies:** 0\
**Last updated:** [July 23, 2008, 5:32pm UTC](https://www.ruby-forum.com/t/rails-process-locking/143895 "2008-07-23T17:32:18Z")

</div>

hi all, Over the last couple of days, I’ve been trying to allow data uploads to my app via a soap interface. However, to get large files I have to put the data into an array on the client: open(‘data.doc’).readlines …

---

## [Attachement\_fu physical storage structure](https://www.ruby-forum.com/t/attachement-fu-physical-storage-structure/143884)

<div class="topic-metadata">

**Author:** [@MW\_Administrator](https://www.ruby-forum.com/u/MW_Administrator)\
**Replies:** 2\
**Last updated:** [July 23, 2008, 4:59pm UTC](https://www.ruby-forum.com/t/attachement-fu-physical-storage-structure/143884 "2008-07-23T16:59:11Z")

</div>

Hi - Can someone explain how/why attachment\_fu stores its files the way it does? I noticed that it creates a directory for each upload and am curious how it determines this and/or the methodology. Thanks!

---

## [Image Tags](https://www.ruby-forum.com/t/image-tags/143817)

<div class="topic-metadata">

**Author:** [@tICT](https://www.ruby-forum.com/u/tICT)\
**Replies:** 1\
**Last updated:** [July 23, 2008, 4:55pm UTC](https://www.ruby-forum.com/t/image-tags/143817 "2008-07-23T16:55:04Z")

</div>

is it possible to display ‘local’ images in the format src=“file:///E:/ StudentWork/screenshots/AO1\_review.png” where the source is a text field in a table? seems like I can generate the code ok, but the image won’t d…

---

## [Flash-based uploaders: SWFUpload, â€¦ and Ad obe Flash Player 10](https://www.ruby-forum.com/t/flash-based-uploaders-swfupload-a-and-ad-obe-flash-player-10/143890)

<div class="topic-metadata">

**Author:** [@Peter\_De\_Berdt](https://www.ruby-forum.com/u/Peter_De_Berdt)\
**Replies:** 0\
**Last updated:** [July 23, 2008, 4:02pm UTC](https://www.ruby-forum.com/t/flash-based-uploaders-swfupload-a-and-ad-obe-flash-player-10/143890 "2008-07-23T16:02:45Z")

</div>

I know quite a few of the Rails developers are using SWFUpload to simulate AJAX uploads (including filetype/size filtering and client- side upload progress) and I need to bring this to your attention (taken from Playb…

---

## [Session handling in rails and flex](https://www.ruby-forum.com/t/session-handling-in-rails-and-flex/143882)

<div class="topic-metadata">

**Author:** [@manohar\_amrutkar](https://www.ruby-forum.com/u/manohar_amrutkar)\
**Replies:** 1\
**Last updated:** [July 23, 2008, 3:22pm UTC](https://www.ruby-forum.com/t/session-handling-in-rails-and-flex/143882 "2008-07-23T15:22:11Z")

</div>

Hi All, I am using Flex for front-end in my application. This front-end needs some data from my application, so it calls few rails methods where i have generated xml file which gives these data. But i didn’t get any …

---

## [Difference between html.hi to evererb &rhtml](https://www.ruby-forum.com/t/difference-between-html-hi-to-evererb-rhtml/143857)

<div class="topic-metadata">

**Author:** [@lostwarrior](https://www.ruby-forum.com/u/lostwarrior)\
**Replies:** 2\
**Last updated:** [July 23, 2008, 3:11pm UTC](https://www.ruby-forum.com/t/difference-between-html-hi-to-evererb-rhtml/143857 "2008-07-23T15:11:40Z")

</div>

hi to everyone whats the difference between html.erb & rhtml

---

## [Displaying Dropdown list value on selection of other dropdown list](https://www.ruby-forum.com/t/displaying-dropdown-list-value-on-selection-of-other-dropdown-list/143614)

<div class="topic-metadata">

**Author:** [@Shripad](https://www.ruby-forum.com/u/Shripad)\
**Replies:** 3\
**Last updated:** [July 23, 2008, 3:01pm UTC](https://www.ruby-forum.com/t/displaying-dropdown-list-value-on-selection-of-other-dropdown-list/143614 "2008-07-23T15:01:42Z")

</div>

Hi all, I want to do like following, I have Zone dropdown list, which contain West Zone, South Zone etc. when i select a value from this, i want to display all the regions in the selected zone in Region dropdown. W…

---

## [Read document](https://www.ruby-forum.com/t/read-document/143871)

<div class="topic-metadata">

**Author:** [@sujith](https://www.ruby-forum.com/u/sujith)\
**Replies:** 4\
**Last updated:** [July 23, 2008, 2:52pm UTC](https://www.ruby-forum.com/t/read-document/143871 "2008-07-23T14:52:53Z")

</div>

i want to open word document file in browser, it means there will be one hyperlink if i click(ex: it’s file.doc) on that it has to open the file in the browser.

---

## [Link\_to\_remote object missing](https://www.ruby-forum.com/t/link-to-remote-object-missing/143878)

<div class="topic-metadata">

**Author:** [@eyp](https://www.ruby-forum.com/u/eyp)\
**Replies:** 0\
**Last updated:** [July 23, 2008, 1:50pm UTC](https://www.ruby-forum.com/t/link-to-remote-object-missing/143878 "2008-07-23T13:50:39Z")

</div>

Hello, I’m in troubles trying to use ‘link\_to\_remote’ on Rails 2.1. Having this page: Editing project \<% form\_for(:project, :url =\> project\_path(@project), :html =\> { :method =\> :put }) do |f| %\> Name \<%= …

---

## [Map.root doesn't do anything, index.html can't be changed](https://www.ruby-forum.com/t/map-root-doesnt-do-anything-index-html-cant-be-changed/142476)

<div class="topic-metadata">

**Author:** [@nuxygen](https://www.ruby-forum.com/u/nuxygen)\
**Replies:** 5\
**Last updated:** [July 23, 2008, 1:28pm UTC](https://www.ruby-forum.com/t/map-root-doesnt-do-anything-index-html-cant-be-changed/142476 "2008-07-23T13:28:56Z")

</div>

Environment: Apache/2.2.8 (Ubuntu) DAV/2 SVN/1.4.6 PHP/5.2.4-2ubuntu5.1 with Suhosin-Patch mod\_ruby/1.2.6 Ruby/1.8.6(2007-09-24) mod\_ssl/2.2.8 OpenSSL/0.9.8g Phusion\_Passenger/2.0.1 Server I’ve created several …

---

## [Disabling the vanilla auto-complete](https://www.ruby-forum.com/t/disabling-the-vanilla-auto-complete/113218)

<div class="topic-metadata">

**Author:** [@soroe](https://www.ruby-forum.com/u/soroe)\
**Replies:** 3\
**Last updated:** [July 23, 2008, 1:10pm UTC](https://www.ruby-forum.com/t/disabling-the-vanilla-auto-complete/113218 "2008-07-23T13:10:31Z")

</div>

Hey Guys, Does anyone know how to disable the brower’s auto-complete feature? I’d like some of my text input fields to not display a drop-down list of past entries. Sonny.

---

## [Object saved before validated?](https://www.ruby-forum.com/t/object-saved-before-validated/143873)

<div class="topic-metadata">

**Author:** [@cojones](https://www.ruby-forum.com/u/cojones)\
**Replies:** 0\
**Last updated:** [July 23, 2008, 12:35pm UTC](https://www.ruby-forum.com/t/object-saved-before-validated/143873 "2008-07-23T12:35:31Z")

</div>

Hey, I’m having a weird problem: When I add a product via webform it’s being saved before validated. Example: I fill out the form for a product named “Test”, I forget to type in the price so the error “Price can’t be…

---

## [Cap deploy authentication failed for \`'username'](https://www.ruby-forum.com/t/cap-deploy-authentication-failed-for-username/143869)

<div class="topic-metadata">

**Author:** [@scoubidoo-bidoo](https://www.ruby-forum.com/u/scoubidoo-bidoo)\
**Replies:** 0\
**Last updated:** [July 23, 2008, 12:04pm UTC](https://www.ruby-forum.com/t/cap-deploy-authentication-failed-for-username/143869 "2008-07-23T12:04:05Z")

</div>

Hello I have a problem for executing : cap deploy I already did some migration without any problem, but since few days (after debian’s update) I can’t use cap deploy I have this message : :~/ERP/Administration$ cap -…

---

## [Google translator - error - page is auto refreshing](https://www.ruby-forum.com/t/google-translator-error-page-is-auto-refreshing/143868)

<div class="topic-metadata">

**Author:** [@rashmir](https://www.ruby-forum.com/u/rashmir)\
**Replies:** 0\
**Last updated:** [July 23, 2008, 11:57am UTC](https://www.ruby-forum.com/t/google-translator-error-page-is-auto-refreshing/143868 "2008-07-23T11:57:42Z")

</div>

hi to all, this is rashmi, from mumbai asp.net developer … we are developing website name: www.discareuropa.com this has to develop in 2 language English & Español we have converted english to Español…through googl…

---

## [Arjun ghosh wants to chat](https://www.ruby-forum.com/t/arjun-ghosh-wants-to-chat/143863)

<div class="topic-metadata">

**Author:** [@arjun\_ghosh](https://www.ruby-forum.com/u/arjun_ghosh)\
**Replies:** 0\
**Last updated:** [July 23, 2008, 11:03am UTC](https://www.ruby-forum.com/t/arjun-ghosh-wants-to-chat/143863 "2008-07-23T11:03:48Z")

</div>

arjun ghosh wants to stay in better touch using some of Google’s coolest new products. If you already have Gmail or Google Talk, visit: You’ll need to click this link to be able to chat with arjun ghosh. To get Gm…

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

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