# Rails

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

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

---

## [Rails Dev w/Design Skills Needed](https://www.ruby-forum.com/t/rails-dev-w-design-skills-needed/150339)

<div class="topic-metadata">

**Author:** [@MW\_Administrator](https://www.ruby-forum.com/u/MW_Administrator)\
**Replies:** 0\
**Last updated:** [October 7, 2008, 3:19pm UTC](https://www.ruby-forum.com/t/rails-dev-w-design-skills-needed/150339 "2008-10-07T15:19:16Z")

</div>

Hi - I am looking for some help wrapping up a project. The project is mostly light-duty meaning mostly design/cosmetics, app clean-up, testing and misc coding. If interested please contact me off list (send credenti…

---

## [Accessing Oracle Package in models](https://www.ruby-forum.com/t/accessing-oracle-package-in-models/150257)

<div class="topic-metadata">

**Author:** [@sanand83](https://www.ruby-forum.com/u/sanand83)\
**Replies:** 1\
**Last updated:** [October 7, 2008, 3:19pm UTC](https://www.ruby-forum.com/t/accessing-oracle-package-in-models/150257 "2008-10-07T15:19:04Z")

</div>

Hi All, Just wanted to know if we can write models for the Oracle packages. Like, if I have an oracle package named “user\_pkg”, and a function function\_1 in it, can I have a model under the name “UserPkg” and then ac…

---

## [Protect\_from\_forgery :only =\> \[:create, :delete, :update\] what does this do exactly?](https://www.ruby-forum.com/t/protect-from-forgery-only-create-delete-update-what-does-this-do-exactly/147015)

<div class="topic-metadata">

**Author:** [@tyliong](https://www.ruby-forum.com/u/tyliong)\
**Replies:** 6\
**Last updated:** [October 7, 2008, 1:21pm UTC](https://www.ruby-forum.com/t/protect-from-forgery-only-create-delete-update-what-does-this-do-exactly/147015 "2008-10-07T13:21:37Z")

</div>

protect\_from\_forgery :only =\> \[:create, :delete, :update\] Questions: (1)why do i need to put it in when i get an authenticate token error from passing an :id from the controller through AJAX? (2)are there any disadva…

---

## [About displaying chinese in mysql](https://www.ruby-forum.com/t/about-displaying-chinese-in-mysql/150323)

<div class="topic-metadata">

**Author:** [@daociyiyou](https://www.ruby-forum.com/u/daociyiyou)\
**Replies:** 1\
**Last updated:** [October 7, 2008, 1:12pm UTC](https://www.ruby-forum.com/t/about-displaying-chinese-in-mysql/150323 "2008-10-07T13:12:21Z")

</div>

how do i display chinese correctly when query the data of the mysql database in the demand window? My application works well for displaying the chinese,but in the demand window , it can not display chinese correctly…

---

## [Regular Expression pattern matching question](https://www.ruby-forum.com/t/regular-expression-pattern-matching-question/149458)

<div class="topic-metadata">

**Author:** [@ressister](https://www.ruby-forum.com/u/ressister)\
**Replies:** 3\
**Last updated:** [October 7, 2008, 11:59am UTC](https://www.ruby-forum.com/t/regular-expression-pattern-matching-question/149458 "2008-10-07T11:59:14Z")

</div>

Hi there, I’m trying to split a string using RegExp to extract a price from it. The price may or may not have a dollar sign in front of it and may or may not contain a decimal value. Below are some string examples o…

---

## [How can i call multiple action in one form](https://www.ruby-forum.com/t/how-can-i-call-multiple-action-in-one-form/150321)

<div class="topic-metadata">

**Author:** [@dharmdip](https://www.ruby-forum.com/u/dharmdip)\
**Replies:** 1\
**Last updated:** [October 7, 2008, 11:25am UTC](https://www.ruby-forum.com/t/how-can-i-call-multiple-action-in-one-form/150321 "2008-10-07T11:25:32Z")

</div>

hello I am trying to call multiple form action is it possible ?

---

## [Redirect to another controller / action form a controller](https://www.ruby-forum.com/t/redirect-to-another-controller-action-form-a-controller/150206)

<div class="topic-metadata">

**Author:** [@andres](https://www.ruby-forum.com/u/andres)\
**Replies:** 2\
**Last updated:** [October 7, 2008, 10:51am UTC](https://www.ruby-forum.com/t/redirect-to-another-controller-action-form-a-controller/150206 "2008-10-07T10:51:41Z")

</div>

Hi, When Inside a controller, instead of rendering, is there any way to generate a dispatch to another action in another controller that is interpreted by the receiver controller as a javascript request?

---

## [In\_place\_editing won't update, keeps saving](https://www.ruby-forum.com/t/in-place-editing-wont-update-keeps-saving/150249)

<div class="topic-metadata">

**Author:** [@CompUser](https://www.ruby-forum.com/u/CompUser)\
**Replies:** 3\
**Last updated:** [October 7, 2008, 10:27am UTC](https://www.ruby-forum.com/t/in-place-editing-wont-update-keeps-saving/150249 "2008-10-07T10:27:35Z")

</div>

Hey lads, I’m stuck!! implementing in\_place\_editing is simple, according to many tutorials. but i can’t find out what i’m doing wrong. I can edit the text, but when I hit the “Ok” key, the “Saving…” part comes up and …

---

## [One clic application for rails on OSX](https://www.ruby-forum.com/t/one-clic-application-for-rails-on-osx/150318)

<div class="topic-metadata">

**Author:** [@gazoduc](https://www.ruby-forum.com/u/gazoduc)\
**Replies:** 1\
**Last updated:** [October 7, 2008, 10:18am UTC](https://www.ruby-forum.com/t/one-clic-application-for-rails-on-osx/150318 "2008-10-07T10:18:12Z")

</div>

Hi ! I am thinking about preparing an “all-in-one” application to run zena on mac OSX without installing any dependencies. The application should contain: ruby imagemagick gems: rake mongrel mongrel\_cluster rmagick …

---

## [Post, get](https://www.ruby-forum.com/t/post-get/150315)

<div class="topic-metadata">

**Author:** [@fRAnKEnSTEin](https://www.ruby-forum.com/u/fRAnKEnSTEin)\
**Replies:** 1\
**Last updated:** [October 7, 2008, 10:03am UTC](https://www.ruby-forum.com/t/post-get/150315 "2008-10-07T10:03:34Z")

</div>

hi, When i enter information in a form and hit the submit button if there is any error on the form i should display the respective error, but i lose ill the information that i have netered in the form. gHOw can i ret…

---

## [Problem with Check box tag](https://www.ruby-forum.com/t/problem-with-check-box-tag/150230)

<div class="topic-metadata">

**Author:** [@indu](https://www.ruby-forum.com/u/indu)\
**Replies:** 2\
**Last updated:** [October 7, 2008, 9:08am UTC](https://www.ruby-forum.com/t/problem-with-check-box-tag/150230 "2008-10-07T09:08:02Z")

</div>

Hai Just started to learn Ruby on Rails I have a list of users displayed as rows and towards each row there is a check box. There is a “Select All” , and “Approve” buttons. On clicking the Select All button I want to…

---

## [Array to\_xml](https://www.ruby-forum.com/t/array-to-xml/150299)

<div class="topic-metadata">

**Author:** [@sam](https://www.ruby-forum.com/u/sam)\
**Replies:** 5\
**Last updated:** [October 7, 2008, 7:55am UTC](https://www.ruby-forum.com/t/array-to-xml/150299 "2008-10-07T07:55:35Z")

</div>

Why is it that… {code} myarray = \[“one”\] =\> \[“one”\] myarray.to\_xml RuntimeError: Not all elements respond to to\_xml from /foo/vendor/rails/activerecord/lib/…/…/activesupport/lib/ active\_support/core\_ext/array/…

---

## [Retrieve selected value from \<%=select()%\>](https://www.ruby-forum.com/t/retrieve-selected-value-from-select/150313)

<div class="topic-metadata">

**Author:** [@jicksta](https://www.ruby-forum.com/u/jicksta)\
**Replies:** 0\
**Last updated:** [October 7, 2008, 7:13am UTC](https://www.ruby-forum.com/t/retrieve-selected-value-from-select/150313 "2008-10-07T07:13:35Z")

</div>

Hi, I’m learning ruby on rails at the moment so please consider if this is a silly problem. I have a index.rhtml file where the combo box lies. When this combo box with different areas changes it updates another combo…

---

## [Rails Deployment Using Passenger (Problems)](https://www.ruby-forum.com/t/rails-deployment-using-passenger-problems/150311)

<div class="topic-metadata">

**Author:** [@Prateek](https://www.ruby-forum.com/u/Prateek)\
**Replies:** 0\
**Last updated:** [October 7, 2008, 7:12am UTC](https://www.ruby-forum.com/t/rails-deployment-using-passenger-problems/150311 "2008-10-07T07:12:13Z")

</div>

Hello, I have been trying to deploy my Rails application using Passenger on my local machine that runs Mac OS X Tiger. I saw the screencast by Ryan B. and also referred to benr75\[http://benr75.com/articles/ 2008/04/1…

---

## [Livevalidation](https://www.ruby-forum.com/t/livevalidation/150310)

<div class="topic-metadata">

**Author:** [@fRAnKEnSTEin](https://www.ruby-forum.com/u/fRAnKEnSTEin)\
**Replies:** 0\
**Last updated:** [October 7, 2008, 7:02am UTC](https://www.ruby-forum.com/t/livevalidation/150310 "2008-10-07T07:02:52Z")

</div>

Hi, I am using livevalidation for validating a form in the client side. I only got one problem, in my form i need to validate check-in and check-out dates, so for example the the check-out date must be greater than …

---

## [Rails deployment - application urls](https://www.ruby-forum.com/t/rails-deployment-application-urls/150308)

<div class="topic-metadata">

**Author:** [@jschank](https://www.ruby-forum.com/u/jschank)\
**Replies:** 0\
**Last updated:** [October 7, 2008, 6:14am UTC](https://www.ruby-forum.com/t/rails-deployment-application-urls/150308 "2008-10-07T06:14:51Z")

</div>

Hello, I’m finally ready to deploy my first rails app. I’m deploying to my own server (so I have root access) which is a mac mini running apache2, MySQL, etc. This server sits at the end of a static IP address. At th…

---

## [Attachment\_fu: saving content in multiple models ?!](https://www.ruby-forum.com/t/attachment-fu-saving-content-in-multiple-models/150307)

<div class="topic-metadata">

**Author:** [@lz-coelho](https://www.ruby-forum.com/u/lz-coelho)\
**Replies:** 0\
**Last updated:** [October 7, 2008, 6:04am UTC](https://www.ruby-forum.com/t/attachment-fu-saving-content-in-multiple-models/150307 "2008-10-07T06:04:19Z")

</div>

Yeah, I’m trying to solve it: Models: User and Picture User has\_many Pictures Pictures belongs\_to User \<% form\_for(@user, :html =\> { :multipart =\> true }) do |f| %\> \<%= f.text\_field :anything %\> \<%= f.file\_field …

---

## [Any advice re best way to make money as a RoR developer in your spare time?](https://www.ruby-forum.com/t/any-advice-re-best-way-to-make-money-as-a-ror-developer-in-your-spare-time/150241)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 3\
**Last updated:** [October 7, 2008, 5:10am UTC](https://www.ruby-forum.com/t/any-advice-re-best-way-to-make-money-as-a-ror-developer-in-your-spare-time/150241 "2008-10-07T05:10:29Z")

</div>

Hi all, Any advice on, realistically, what’s a reasonable approach to try to make some money in ones spare time (after a 9-5pm job) using one’s Ruby on Rails skills? So therefore in my case I may only have 5-10 hou…

---

## [Draggable prototype error](https://www.ruby-forum.com/t/draggable-prototype-error/150303)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [October 7, 2008, 5:04am UTC](https://www.ruby-forum.com/t/draggable-prototype-error/150303 "2008-10-07T05:04:38Z")

</div>

I am doing no CSS just this: \<%= draggable\_element :block %\> I am getting a firebug error pointing to protoype: element is null http://localhost:3000/javascripts/prototype.js?1222747699 Line 1881 Any ideas? If I d…

---

## [Has\_many\_through with conditions on another table (:joins)](https://www.ruby-forum.com/t/has-many-through-with-conditions-on-another-table-joins/150298)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 2\
**Last updated:** [October 7, 2008, 4:40am UTC](https://www.ruby-forum.com/t/has-many-through-with-conditions-on-another-table-joins/150298 "2008-10-07T04:40:04Z")

</div>

Hi, I have an class that looks like this: class Section \< ActiveRecord::Base belongs\_to :offering, :foreign\_key =\> :parent\_id has\_many :memberships, :as =\> :member\_of has\_many :students, :through =\> :memberships, :s…

---

## [Associations not saved in migration](https://www.ruby-forum.com/t/associations-not-saved-in-migration/150302)

<div class="topic-metadata">

**Author:** [@mrpete](https://www.ruby-forum.com/u/mrpete)\
**Replies:** 0\
**Last updated:** [October 7, 2008, 4:14am UTC](https://www.ruby-forum.com/t/associations-not-saved-in-migration/150302 "2008-10-07T04:14:14Z")

</div>

hi. i’ve got a couple migrations where i’ve added foreign keys and tried to update them via the migration but my items don’t save. i’ve used save! in the hopes that an exception gets raised but no luck. the migrati…

---

## [Listing and Updating Plugins](https://www.ruby-forum.com/t/listing-and-updating-plugins/150245)

<div class="topic-metadata">

**Author:** [@apremdas](https://www.ruby-forum.com/u/apremdas)\
**Replies:** 4\
**Last updated:** [October 7, 2008, 1:40am UTC](https://www.ruby-forum.com/t/listing-and-updating-plugins/150245 "2008-10-07T01:40:58Z")

</div>

Hi all, Project I’m working on has a number of plugins, particularly several from github. Want to be able to List all the plugins and where they come from Update all/some of the plugins Now using Rails 2.1 and scri…

---

## [Letting a user choose pictures](https://www.ruby-forum.com/t/letting-a-user-choose-pictures/150208)

<div class="topic-metadata">

**Author:** [@stimpy](https://www.ruby-forum.com/u/stimpy)\
**Replies:** 2\
**Last updated:** [October 7, 2008, 1:34am UTC](https://www.ruby-forum.com/t/letting-a-user-choose-pictures/150208 "2008-10-07T01:34:31Z")

</div>

I have an area on a site where a user can upload pictures to, and then another area in which they create a new topic. Now I want a user to be able to select photos from their uploaded photos… and I’ve hit a coder’s bl…

---

## [Mistaking with polymorphic associations?!](https://www.ruby-forum.com/t/mistaking-with-polymorphic-associations/150293)

<div class="topic-metadata">

**Author:** [@lz-coelho](https://www.ruby-forum.com/u/lz-coelho)\
**Replies:** 0\
**Last updated:** [October 7, 2008, 12:31am UTC](https://www.ruby-forum.com/t/mistaking-with-polymorphic-associations/150293 "2008-10-07T00:31:16Z")

</div>

Hello, I’m trying to solve a problem without success. Look at: I have 3 models (Recipe, Comments and User) an Recipe has many Comments an User has many Comments an User has many Recipes I tried to implement this us…

---

## [How manage bounce emails with a different email?](https://www.ruby-forum.com/t/how-manage-bounce-emails-with-a-different-email/150292)

<div class="topic-metadata">

**Author:** [@xdmx](https://www.ruby-forum.com/u/xdmx)\
**Replies:** 0\
**Last updated:** [October 7, 2008, 12:28am UTC](https://www.ruby-forum.com/t/how-manage-bounce-emails-with-a-different-email/150292 "2008-10-07T00:28:45Z")

</div>

Hi, i send emails with a from and a reply-to email address, but i want that the bounces are returned to another email address. How can i do this? I found that the return-path value would solve this, but it’s set by th…

---

## [Disabling a form if a url param is not present](https://www.ruby-forum.com/t/disabling-a-form-if-a-url-param-is-not-present/150294)

<div class="topic-metadata">

**Author:** [@ressister](https://www.ruby-forum.com/u/ressister)\
**Replies:** 0\
**Last updated:** [October 7, 2008, 12:23am UTC](https://www.ruby-forum.com/t/disabling-a-form-if-a-url-param-is-not-present/150294 "2008-10-07T00:23:03Z")

</div>

Hi there, I’ve used Javascript in the past to disable form fields, but I’m wondering if there’s a way to easily do this with Rails during the page generation. In my app, i have a page that has a form. I want to disab…

---

## [Mongrel/nginx vs mod\_rails](https://www.ruby-forum.com/t/mongrel-nginx-vs-mod-rails/148675)

<div class="topic-metadata">

**Author:** [@vince](https://www.ruby-forum.com/u/vince)\
**Replies:** 11\
**Last updated:** [October 7, 2008, 12:07am UTC](https://www.ruby-forum.com/t/mongrel-nginx-vs-mod-rails/148675 "2008-10-07T00:07:12Z")

</div>

Does anyone have any recommendations when to use mod\_rails vs a mongrel/nginx stack? Is one better for low-ram situations or is there a clear winner performance-wise regardless of hardware? Thx, Vince

---

## [Problem with auto\_complete!](https://www.ruby-forum.com/t/problem-with-auto-complete/149898)

<div class="topic-metadata">

**Author:** [@juan](https://www.ruby-forum.com/u/juan)\
**Replies:** 8\
**Last updated:** [October 6, 2008, 11:38pm UTC](https://www.ruby-forum.com/t/problem-with-auto-complete/149898 "2008-10-06T23:38:51Z")

</div>

Hello!!! first of all sorry for my English! :-( Well I’m trying to make an auto\_complete in my application, but it’s getting hard to do it. This is all what I’ve done: 1.I’m working with rails 2.1 and Postgres 2.My …

---

## [How do I use migrations?](https://www.ruby-forum.com/t/how-do-i-use-migrations/150273)

<div class="topic-metadata">

**Author:** [@Gary\_Taylor](https://www.ruby-forum.com/u/Gary_Taylor)\
**Replies:** 1\
**Last updated:** [October 6, 2008, 11:36pm UTC](https://www.ruby-forum.com/t/how-do-i-use-migrations/150273 "2008-10-06T23:36:41Z")

</div>

Hi, I have been using engines for a month or so and have been using the migration generator which simply puts a migration in the normal place which then asks the relevant engines plugin to do the migration. But, if m…

---

## [Question about validations](https://www.ruby-forum.com/t/question-about-validations/150269)

<div class="topic-metadata">

**Author:** [@elioncho](https://www.ruby-forum.com/u/elioncho)\
**Replies:** 3\
**Last updated:** [October 6, 2008, 11:06pm UTC](https://www.ruby-forum.com/t/question-about-validations/150269 "2008-10-06T23:06:46Z")

</div>

Hello, Well I have implemented in my app a wall similar to the one found on facebooks user profiles. I have created a wall\_comments controller and wall\_comment model. Only friends can post in each others wall. On my …

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

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