# Rails

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

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

---

## [Setting up Rails to run on startup?](https://www.ruby-forum.com/t/setting-up-rails-to-run-on-startup/118662)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [October 29, 2007, 9:21pm UTC](https://www.ruby-forum.com/t/setting-up-rails-to-run-on-startup/118662 "2007-10-29T21:21:34Z")

</div>

Hi, I’m using Fedora LInux Core 5. After visiting the rails setup page (Ruby on Rails — A web-app framework that includes everything needed to create database-backed web applications according to the Model-View-Contro…

---

## [Override create form using activescaffold plugin to build image upload technique](https://www.ruby-forum.com/t/override-create-form-using-activescaffold-plugin-to-build-image-upload-technique/118658)

<div class="topic-metadata">

**Author:** [@Selvan](https://www.ruby-forum.com/u/Selvan)\
**Replies:** 0\
**Last updated:** [October 29, 2007, 9:12pm UTC](https://www.ruby-forum.com/t/override-create-form-using-activescaffold-plugin-to-build-image-upload-technique/118658 "2007-10-29T21:12:13Z")

</div>

does anyone have ever used activescaffold to build image upload to database? i’m not sure how to override the form elements in activescaffold plugin ( good UI rendering for LCRUD) and its difficult for me to understan…

---

## [Package and deploy ruby on rails on windows](https://www.ruby-forum.com/t/package-and-deploy-ruby-on-rails-on-windows/118656)

<div class="topic-metadata">

**Author:** [@Selvan](https://www.ruby-forum.com/u/Selvan)\
**Replies:** 0\
**Last updated:** [October 29, 2007, 9:05pm UTC](https://www.ruby-forum.com/t/package-and-deploy-ruby-on-rails-on-windows/118656 "2007-10-29T21:05:47Z")

</div>

i’ve been experiencing severe problem in packaging and deploying as ruby on rails after plugin/engine installation contains numerous files close to 200 MB and it took 2 hours to copy and burn it on a CD. it’s so painf…

---

## [Form.select question](https://www.ruby-forum.com/t/form-select-question/118653)

<div class="topic-metadata">

**Author:** [@Dave\_Hackenyos](https://www.ruby-forum.com/u/Dave_Hackenyos)\
**Replies:** 0\
**Last updated:** [October 29, 2007, 8:48pm UTC](https://www.ruby-forum.com/t/form-select-question/118653 "2007-10-29T20:48:51Z")

</div>

Hello, I am new to rails and have a question about form.select. I understand the examples that have a select drop down selections which map to a column in the model’s database row. What I want to do is provide a d…

---

## [Rails 2.0 and autotest not working together?](https://www.ruby-forum.com/t/rails-2-0-and-autotest-not-working-together/118602)

<div class="topic-metadata">

**Author:** [@jamal](https://www.ruby-forum.com/u/jamal)\
**Replies:** 2\
**Last updated:** [October 29, 2007, 8:15pm UTC](https://www.ruby-forum.com/t/rails-2-0-and-autotest-not-working-together/118602 "2007-10-29T20:15:26Z")

</div>

Hello, After getting rails 2.0 preview to work, autotest stopped working? $ autotest loading autotest/rails\_rspec /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -S script/spec -O spec/spec.opts …

---

## [Why Does This Controller Hang?](https://www.ruby-forum.com/t/why-does-this-controller-hang/118639)

<div class="topic-metadata">

**Author:** [@doug](https://www.ruby-forum.com/u/doug)\
**Replies:** 4\
**Last updated:** [October 29, 2007, 7:33pm UTC](https://www.ruby-forum.com/t/why-does-this-controller-hang/118639 "2007-10-29T19:33:54Z")

</div>

Given this controller: require ‘open-uri’ class HangController \< ApplicationController def m1 @content = open(‘http://localhost:3000/hang/m2’) do |s| s.read end end def m2 end end I know there are probably a …

---

## [Where does Rails convert "Person" to "people", "Car" to "cars"?](https://www.ruby-forum.com/t/where-does-rails-convert-person-to-people-car-to-cars/118634)

<div class="topic-metadata">

**Author:** [@QuintellaRosa](https://www.ruby-forum.com/u/QuintellaRosa)\
**Replies:** 4\
**Last updated:** [October 29, 2007, 6:42pm UTC](https://www.ruby-forum.com/t/where-does-rails-convert-person-to-people-car-to-cars/118634 "2007-10-29T18:42:26Z")

</div>

We know Rails convert “Car” to “cars” when creating tables and so. Or, “Person” to “people”. So, I’m sure there are rules that apply to “Car” and there are data to particular cases like “Person”. Being brazilian, mode…

---

## [RubyonRails 2.0 Preview Installation](https://www.ruby-forum.com/t/rubyonrails-2-0-preview-installation/118557)

<div class="topic-metadata">

**Author:** [@jamal](https://www.ruby-forum.com/u/jamal)\
**Replies:** 14\
**Last updated:** [October 29, 2007, 6:39pm UTC](https://www.ruby-forum.com/t/rubyonrails-2-0-preview-installation/118557 "2007-10-29T18:39:44Z")

</div>

Hi, I bought my Mac book for few days ago right before leopard were going to be released with RubyonRails :smiley: It had Rails 1.2 and I want to use Rails 2.0 preview, so I typed this in my terminal. gem install ra…

---

## [Error message after upgrading to Gusty Gibbon Ubuntu](https://www.ruby-forum.com/t/error-message-after-upgrading-to-gusty-gibbon-ubuntu/118637)

<div class="topic-metadata">

**Author:** [@Percival](https://www.ruby-forum.com/u/Percival)\
**Replies:** 2\
**Last updated:** [October 29, 2007, 6:24pm UTC](https://www.ruby-forum.com/t/error-message-after-upgrading-to-gusty-gibbon-ubuntu/118637 "2007-10-29T18:24:17Z")

</div>

I have started to get the error message “wrong number of arguments (1 for 0)” since I upgraded to Gusty Gibbon. I am new to ROR so I have no clue. This is the code that was running def create @user = User.new(params…

---

## [File.delete error](https://www.ruby-forum.com/t/file-delete-error/118632)

<div class="topic-metadata">

**Author:** [@ratschi85](https://www.ruby-forum.com/u/ratschi85)\
**Replies:** 2\
**Last updated:** [October 29, 2007, 5:41pm UTC](https://www.ruby-forum.com/t/file-delete-error/118632 "2007-10-29T17:41:44Z")

</div>

Hey, I’m trying to delete a file using: File.delete(RAILS\_ROOT, “public/images/logo.jpg”) But I get an error saying: Errno::EISDIR in MainController#cancel Is a directory -. Is there another way to delete a file? C…

---

## [Url based sessions](https://www.ruby-forum.com/t/url-based-sessions/118630)

<div class="topic-metadata">

**Author:** [@martijndenerd](https://www.ruby-forum.com/u/martijndenerd)\
**Replies:** 0\
**Last updated:** [October 29, 2007, 5:06pm UTC](https://www.ruby-forum.com/t/url-based-sessions/118630 "2007-10-29T17:06:36Z")

</div>

Hi, I trying to make the sessions in my rails app independent of the availability of cookies at the client side. In order to achieve this i am using a plugin \*, that adds \_session\_id to the querystring by adding it t…

---

## [Two RESTful routes to same controller - best way to implement](https://www.ruby-forum.com/t/two-restful-routes-to-same-controller-best-way-to-implement/118586)

<div class="topic-metadata">

**Author:** [@Schneller](https://www.ruby-forum.com/u/Schneller)\
**Replies:** 3\
**Last updated:** [October 29, 2007, 4:27pm UTC](https://www.ruby-forum.com/t/two-restful-routes-to-same-controller-best-way-to-implement/118586 "2007-10-29T16:27:11Z")

</div>

I have a controller that needs to render two different layouts depending on the current path, but otherwise performs all the same actions. The routes for the controller are: /bars /foos/5/bars Both need to call the…

---

## [:success message](https://www.ruby-forum.com/t/success-message/118627)

<div class="topic-metadata">

**Author:** [@vapor](https://www.ruby-forum.com/u/vapor)\
**Replies:** 0\
**Last updated:** [October 29, 2007, 4:23pm UTC](https://www.ruby-forum.com/t/success-message/118627 "2007-10-29T16:23:37Z")

</div>

Is there any way to flash\[:notice\] after :success attribute of a form?

---

## [Using ruby array in Ajax call](https://www.ruby-forum.com/t/using-ruby-array-in-ajax-call/118624)

<div class="topic-metadata">

**Author:** [@hustler](https://www.ruby-forum.com/u/hustler)\
**Replies:** 0\
**Last updated:** [October 29, 2007, 4:00pm UTC](https://www.ruby-forum.com/t/using-ruby-array-in-ajax-call/118624 "2007-10-29T16:00:56Z")

</div>

Im trying to pass a ruby array (@search\_params) to the server but the returned array is always empty even though it contains data in the view. Can someone please tell me what im doing wrong Add to search

---

## [Help with plugin install](https://www.ruby-forum.com/t/help-with-plugin-install/118623)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 0\
**Last updated:** [October 29, 2007, 3:52pm UTC](https://www.ruby-forum.com/t/help-with-plugin-install/118623 "2007-10-29T15:52:52Z")

</div>

I wish to install the globalize plugin and have it managed by the provider’s svn. For my purposes I am use the stable 1.2 release which the maintainer has released as http://svn.globalize-rails.org/svn/globalize/bran…

---

## [Mysql boolean field](https://www.ruby-forum.com/t/mysql-boolean-field/118615)

<div class="topic-metadata">

**Author:** [@xyzt](https://www.ruby-forum.com/u/xyzt)\
**Replies:** 4\
**Last updated:** [October 29, 2007, 3:05pm UTC](https://www.ruby-forum.com/t/mysql-boolean-field/118615 "2007-10-29T15:05:50Z")

</div>

hello, I have a boolean field(is\_suit) in a table(I use mysql) and I have Room class for this table.I compare the room entity lie this: \<%if room.is\_suit? then%\> \<%=image\_tag(’/images/icon/suit.jpg’) %\> \<%end%\> but…

---

## [How to determine if child rows added?](https://www.ruby-forum.com/t/how-to-determine-if-child-rows-added/118617)

<div class="topic-metadata">

**Author:** [@peri](https://www.ruby-forum.com/u/peri)\
**Replies:** 1\
**Last updated:** [October 29, 2007, 2:41pm UTC](https://www.ruby-forum.com/t/how-to-determine-if-child-rows-added/118617 "2007-10-29T14:41:50Z")

</div>

Hey all - I have an odd ball situation where I want to check the parent ActiveRecord object to see if the child rows have been loaded already or not. I’m sure the answer is probably staring me right in the face… but…

---

## [It's blog time](https://www.ruby-forum.com/t/its-blog-time/118611)

<div class="topic-metadata">

**Author:** [@mgreenly](https://www.ruby-forum.com/u/mgreenly)\
**Replies:** 0\
**Last updated:** [October 29, 2007, 2:13pm UTC](https://www.ruby-forum.com/t/its-blog-time/118611 "2007-10-29T14:13:09Z")

</div>

After much resistance to trends, I have joined the blogging world. This is for a selfish purpose: I can’t forget what I write down. The by-product is that others can read what I write down now, too. http://blog.flame…

---

## [Drag n Drop between 2 sortable lists](https://www.ruby-forum.com/t/drag-n-drop-between-2-sortable-lists/118606)

<div class="topic-metadata">

**Author:** [@pascalschudel](https://www.ruby-forum.com/u/pascalschudel)\
**Replies:** 0\
**Last updated:** [October 29, 2007, 1:32pm UTC](https://www.ruby-forum.com/t/drag-n-drop-between-2-sortable-lists/118606 "2007-10-29T13:32:20Z")

</div>

I’m trying to implementate a sortable list, where i can drag some object from and then drop on the other sortable list. The Object dragged from the first list should not dissapoint from the first list, it should then …

---

## [Displaying Multiple pictures](https://www.ruby-forum.com/t/displaying-multiple-pictures/117902)

<div class="topic-metadata">

**Author:** [@JUScruZN](https://www.ruby-forum.com/u/JUScruZN)\
**Replies:** 1\
**Last updated:** [October 29, 2007, 1:00pm UTC](https://www.ruby-forum.com/t/displaying-multiple-pictures/117902 "2007-10-29T13:00:37Z")

</div>

Hi, Can anybody tell me how to display multiple pictures with a download link below the pictures. Scenario : The pictures will be in a non public folder and I want to stream (if possible) the pictures to the browse…

---

## [Would this be a good(restfull) approach for livesearch?](https://www.ruby-forum.com/t/would-this-be-a-good-restfull-approach-for-livesearch/118601)

<div class="topic-metadata">

**Author:** [@remcoh](https://www.ruby-forum.com/u/remcoh)\
**Replies:** 0\
**Last updated:** [October 29, 2007, 12:57pm UTC](https://www.ruby-forum.com/t/would-this-be-a-good-restfull-approach-for-livesearch/118601 "2007-10-29T12:57:57Z")

</div>

Hi, I want to implement a search feature with the rest principles in mind. so i try to think in resources and i decided to just put in in the index method. this resource/method will be called form different places, f…

---

## [File\_upload with development/ in url](https://www.ruby-forum.com/t/file-upload-with-development-in-url/118567)

<div class="topic-metadata">

**Author:** [@axle\_bolt](https://www.ruby-forum.com/u/axle_bolt)\
**Replies:** 1\
**Last updated:** [October 29, 2007, 12:20pm UTC](https://www.ruby-forum.com/t/file-upload-with-development-in-url/118567 "2007-10-29T12:20:55Z")

</div>

Hi, I’m pretty new to Ruby and I’ve been banging my head against my desk all day trying to get to the bottom of this. I’m trying to use file\_upload to upload image files, but for some reason when I try to view them u…

---

## [Combo Box without Submit button](https://www.ruby-forum.com/t/combo-box-without-submit-button/118598)

<div class="topic-metadata">

**Author:** [@vapor](https://www.ruby-forum.com/u/vapor)\
**Replies:** 3\
**Last updated:** [October 29, 2007, 11:58am UTC](https://www.ruby-forum.com/t/combo-box-without-submit-button/118598 "2007-10-29T11:58:33Z")

</div>

I have a combo box with values and a Submit button to send those values to server. Ajax based. But I have seen on some sites that those people don’t have Submit buttons, just select a value from drop down and as you c…

---

## [Render\_with\_no\_layout cause by Pingdom](https://www.ruby-forum.com/t/render-with-no-layout-cause-by-pingdom/118479)

<div class="topic-metadata">

**Author:** [@joergd](https://www.ruby-forum.com/u/joergd)\
**Replies:** 2\
**Last updated:** [October 29, 2007, 11:07am UTC](https://www.ruby-forum.com/t/render-with-no-layout-cause-by-pingdom/118479 "2007-10-29T11:07:50Z")

</div>

Hi, When I go to my homepage all is well, however when the Pingdom bot arrives (every few seconds!), it throws the following error: ActionController::RenderError occurred in home#index: You called render with invalid…

---

## [Layout in Email](https://www.ruby-forum.com/t/layout-in-email/118585)

<div class="topic-metadata">

**Author:** [@priyasaini](https://www.ruby-forum.com/u/priyasaini)\
**Replies:** 11\
**Last updated:** [October 29, 2007, 10:32am UTC](https://www.ruby-forum.com/t/layout-in-email/118585 "2007-10-29T10:32:51Z")

</div>

Hello All: I want to apply a layout to all the mails going from my application. I created a layout tempalte file named mail.rhtml in the ‘layout’ directory. Now where should i specify the layout details to incorporat…

---

## [Date\_select and the bad id](https://www.ruby-forum.com/t/date-select-and-the-bad-id/118536)

<div class="topic-metadata">

**Author:** [@stratboy](https://www.ruby-forum.com/u/stratboy)\
**Replies:** 2\
**Last updated:** [October 29, 2007, 9:52am UTC](https://www.ruby-forum.com/t/date-select-and-the-bad-id/118536 "2007-10-29T09:52:23Z")

</div>

Hi! I’m using date\_select. I want to write a js that change the day field based on the month field (if I select october, than the day field has 31 days, if I select september, it changes to 30, and so on…) This is t…

---

## [Partials with yield](https://www.ruby-forum.com/t/partials-with-yield/118588)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [October 29, 2007, 9:17am UTC](https://www.ruby-forum.com/t/partials-with-yield/118588 "2007-10-29T09:17:39Z")

</div>

I’m just wondering if you can use yield/closures in action view templates, it’s kind of hard to explain so I’ll use an example: \<%= render(:partial =\> “table\_builder”, :locals =\> {:headings =\> \[“name”, “id”\], :collect…

---

## [Capistrano and Subversion being killed by signal 15](https://www.ruby-forum.com/t/capistrano-and-subversion-being-killed-by-signal-15/117410)

<div class="topic-metadata">

**Author:** [@fcano](https://www.ruby-forum.com/u/fcano)\
**Replies:** 2\
**Last updated:** [October 29, 2007, 8:55am UTC](https://www.ruby-forum.com/t/capistrano-and-subversion-being-killed-by-signal-15/117410 "2007-10-29T08:55:19Z")

</div>

Hello! I’m trying to deploy my app with Capistrano but I get what seems to be an weird error. I have been search the net looking for an answer but it seems to me that this problem is caused but some kind of combinanti…

---

## [Ruby array count](https://www.ruby-forum.com/t/ruby-array-count/118583)

<div class="topic-metadata">

**Author:** [@Bala](https://www.ruby-forum.com/u/Bala)\
**Replies:** 6\
**Last updated:** [October 29, 2007, 8:52am UTC](https://www.ruby-forum.com/t/ruby-array-count/118583 "2007-10-29T08:52:43Z")

</div>

Hi Experts, arr = \[1, 2, 3, 5, 5, 2, 5\] is that possible to find whats the count of an value inside an array “arr” for example 1 - 1 2 - 2 3 - 1 5 - 3 is that possible? plz help me guys, its my requirement for…

---

## [Two, independant paginations on one page](https://www.ruby-forum.com/t/two-independant-paginations-on-one-page/118578)

<div class="topic-metadata">

**Author:** [@cwt137](https://www.ruby-forum.com/u/cwt137)\
**Replies:** 1\
**Last updated:** [October 29, 2007, 7:51am UTC](https://www.ruby-forum.com/t/two-independant-paginations-on-one-page/118578 "2007-10-29T07:51:43Z")

</div>

I am a college student and just getting into the rails world. So please excuse me if the answer is simple… but I have RTFM and searched google many times to no avail. Alright I am making a simple blog like site. The …

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

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