# Rails

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

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

---

## [How to load many slow items into a page?](https://www.ruby-forum.com/t/how-to-load-many-slow-items-into-a-page/109462)

<div class="topic-metadata">

**Author:** [@dkam](https://www.ruby-forum.com/u/dkam)\
**Replies:** 3\
**Last updated:** [July 16, 2007, 3:01pm UTC](https://www.ruby-forum.com/t/how-to-load-many-slow-items-into-a-page/109462 "2007-07-16T15:01:18Z")

</div>

Hey there - I’ve got a problem I’ve been trying to find a solution to. I’ve got a page which contains a list of prices which are gathered from various websites - however it takes a while for the prices to be collected…

---

## [Sorting By Last Comment? ("post.comments.first.created\_on")](https://www.ruby-forum.com/t/sorting-by-last-comment-post-comments-first-created-on/109465)

<div class="topic-metadata">

**Author:** [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Replies:** 3\
**Last updated:** [July 16, 2007, 2:51pm UTC](https://www.ruby-forum.com/t/sorting-by-last-comment-post-comments-first-created-on/109465 "2007-07-16T14:51:17Z")

</div>

I’m trying to order a table based on the last comment, and have tried almost everything and still can’t get it working. My specs are just like the API’s (ActiveRecord::Associations::ClassMethods) class Post \< Active…

---

## [Problem: Upload file size limit to 500KB](https://www.ruby-forum.com/t/problem-upload-file-size-limit-to-500kb/107041)

<div class="topic-metadata">

**Author:** [@homestarrunner](https://www.ruby-forum.com/u/homestarrunner)\
**Replies:** 1\
**Last updated:** [July 16, 2007, 2:41pm UTC](https://www.ruby-forum.com/t/problem-upload-file-size-limit-to-500kb/107041 "2007-07-16T14:41:06Z")

</div>

hi, i’m sure some of you had come across this problem before, but i was unable to find the answer after spending quite some time searching. i have a basic file uploader, code similar to rails recipe (or rails manual)…

---

## [Who wants a sample application?](https://www.ruby-forum.com/t/who-wants-a-sample-application/106987)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 10\
**Last updated:** [July 16, 2007, 2:19pm UTC](https://www.ruby-forum.com/t/who-wants-a-sample-application/106987 "2007-07-16T14:19:06Z")

</div>

Hi all! Its a long story, but i’ve developed a rails application for a client who didn’t end up wanting (or paying for) it. Its an online rostering system for small shops (a cafe in this instance) who want to allow t…

---

## [Reg: collection select \[drop down\]](https://www.ruby-forum.com/t/reg-collection-select-drop-down/109527)

<div class="topic-metadata">

**Author:** [@shiva](https://www.ruby-forum.com/u/shiva)\
**Replies:** 0\
**Last updated:** [July 16, 2007, 1:23pm UTC](https://www.ruby-forum.com/t/reg-collection-select-drop-down/109527 "2007-07-16T13:23:06Z")

</div>

Iam facing one problem.if anything went wrong iam rendering back to the page that time wht i selected in drop down is not selected.again it comes to the first one…any one knows the answer pls send me

---

## [Creating a gem](https://www.ruby-forum.com/t/creating-a-gem/109519)

<div class="topic-metadata">

**Author:** [@eizesus](https://www.ruby-forum.com/u/eizesus)\
**Replies:** 0\
**Last updated:** [July 16, 2007, 11:04am UTC](https://www.ruby-forum.com/t/creating-a-gem/109519 "2007-07-16T11:04:24Z")

</div>

Hi, Does anyone knows of a good tutorial on how to create a gem? tnx.

---

## [Partials vs. Helpers](https://www.ruby-forum.com/t/partials-vs-helpers/109517)

<div class="topic-metadata">

**Author:** [@sharkie](https://www.ruby-forum.com/u/sharkie)\
**Replies:** 0\
**Last updated:** [July 16, 2007, 9:53am UTC](https://www.ruby-forum.com/t/partials-vs-helpers/109517 "2007-07-16T09:53:23Z")

</div>

I have several partials containing dynamic codes (already memcached all the fragments as best I could), which I reuse ( render :partial =\> “stuff.rhtml” ) a lot within a single action call. For example, I have a parti…

---

## [Integrating Ajax IM in rails](https://www.ruby-forum.com/t/integrating-ajax-im-in-rails/109516)

<div class="topic-metadata">

**Author:** [@sumi](https://www.ruby-forum.com/u/sumi)\
**Replies:** 0\
**Last updated:** [July 16, 2007, 9:07am UTC](https://www.ruby-forum.com/t/integrating-ajax-im-in-rails/109516 "2007-07-16T09:07:05Z")

</div>

Hi all, Now days everyone looking for integration of well developed php based forums, calendars…and many in to their rails applications. Even I want to integrate php based Ajax IM chat client into my rails project. …

---

## [Executing php code in rails app](https://www.ruby-forum.com/t/executing-php-code-in-rails-app/109340)

<div class="topic-metadata">

**Author:** [@sumi](https://www.ruby-forum.com/u/sumi)\
**Replies:** 3\
**Last updated:** [July 16, 2007, 8:48am UTC](https://www.ruby-forum.com/t/executing-php-code-in-rails-app/109340 "2007-07-16T08:48:05Z")

</div>

Hi all, This might sound weird!!! If I want to include/execute simple “helloworld” inside my rails application (actually I want to integrate some php applications…) what need to be done. If I am not wrong this is po…

---

## [Simple AJAX file upload for Rails](https://www.ruby-forum.com/t/simple-ajax-file-upload-for-rails/108187)

<div class="topic-metadata">

**Author:** [@rainchen](https://www.ruby-forum.com/u/rainchen)\
**Replies:** 4\
**Last updated:** [July 16, 2007, 7:23am UTC](https://www.ruby-forum.com/t/simple-ajax-file-upload-for-rails/108187 "2007-07-16T07:23:50Z")

</div>

Normally, to upload file,we will write some codes in the view page like: \<% form\_for(:photo, :url =\> {:action =\> :create}, :html =\> { :multipart =\> true}) do |form| -%\> Upload A Image: \<%= form.file\_field :upload…

---

## [Can't upload file via C# application](https://www.ruby-forum.com/t/cant-upload-file-via-c-application/109514)

<div class="topic-metadata">

**Author:** [@Kam\_kei\_S](https://www.ruby-forum.com/u/Kam_kei_S)\
**Replies:** 0\
**Last updated:** [July 16, 2007, 7:06am UTC](https://www.ruby-forum.com/t/cant-upload-file-via-c-application/109514 "2007-07-16T07:06:01Z")

</div>

When i try to upload a file via a C# application, i always get an error from ror. Here is the error Mon Jul 16 12:58:51 +0800 2007: Error calling Dispatcher.dispatch #\<EOFError: bad boundary end of body part\> C:/Ins…

---

## [Backgroundrb not detaching](https://www.ruby-forum.com/t/backgroundrb-not-detaching/109322)

<div class="topic-metadata">

**Author:** [@matt](https://www.ruby-forum.com/u/matt)\
**Replies:** 3\
**Last updated:** [July 16, 2007, 5:33am UTC](https://www.ruby-forum.com/t/backgroundrb-not-detaching/109322 "2007-07-16T05:33:54Z")

</div>

I have a loop: Dir.new("#{RAILS\_ROOT}/public/images/vehicles/uploaded/ #{@vehicle.id}").each do |image| if image =~ /.\*.jpg$/i @vehicle\_image = VehicleImage.new() @vehicle.vehicle\_images \<\< @vehicle\_image File.cp("…

---

## [Issues with openid](https://www.ruby-forum.com/t/issues-with-openid/92734)

<div class="topic-metadata">

**Author:** [@patcito](https://www.ruby-forum.com/u/patcito)\
**Replies:** 4\
**Last updated:** [July 16, 2007, 3:44am UTC](https://www.ruby-forum.com/t/issues-with-openid/92734 "2007-07-16T03:44:48Z")

</div>

hey, I’m trying to use openid but I always get that “undefined method \`using\_open\_id?’” I did put require ‘openid’ on top of my controller, is there anything else I should include? this is my checklogin function: de…

---

## [QUICK QUESTION: Method in Controller AND Helper](https://www.ruby-forum.com/t/quick-question-method-in-controller-and-helper/107261)

<div class="topic-metadata">

**Author:** [@joep](https://www.ruby-forum.com/u/joep)\
**Replies:** 7\
**Last updated:** [July 16, 2007, 3:41am UTC](https://www.ruby-forum.com/t/quick-question-method-in-controller-and-helper/107261 "2007-07-16T03:41:42Z")

</div>

Hey, Is there a way to write a method in the application controller and also have it available as a helper method without rewriting it in the application helper? I’m pretty sure there is, but haven’t found the specif…

---

## [Web 2.0, what is/is not supported on iPhone?](https://www.ruby-forum.com/t/web-2-0-what-is-is-not-supported-on-iphone/107984)

<div class="topic-metadata">

**Author:** [@jeffpritchard](https://www.ruby-forum.com/u/jeffpritchard)\
**Replies:** 13\
**Last updated:** [July 16, 2007, 2:50am UTC](https://www.ruby-forum.com/t/web-2-0-what-is-is-not-supported-on-iphone/107984 "2007-07-16T02:50:38Z")

</div>

So far I know that Flash is not supported. That’s good for us. I haven’t been able to determine with certainty whether or not cookies are supported. That’s important. I’m assuming that the version of Safari that run…

---

## [Announcing "Ruby Newbie," a new Ruby on Rails blog aimed at](https://www.ruby-forum.com/t/announcing-ruby-newbie-a-new-ruby-on-rails-blog-aimed-at/109504)

<div class="topic-metadata">

**Author:** [@Jim\_Gagne](https://www.ruby-forum.com/u/Jim_Gagne)\
**Replies:** 0\
**Last updated:** [July 16, 2007, 2:09am UTC](https://www.ruby-forum.com/t/announcing-ruby-newbie-a-new-ruby-on-rails-blog-aimed-at/109504 "2007-07-16T02:09:35Z")

</div>

Unlike most of those who blog so eloquently about Ruby and Rails, my day job is unrelated to computers. But let’s face it, I’m obsessed. What to do? Start a blog! I apologize in advance for the name “Ruby N.” (http:// …

---

## [Country\_options / state\_options?](https://www.ruby-forum.com/t/country-options-state-options/109501)

<div class="topic-metadata">

**Author:** [@Nguma\_M](https://www.ruby-forum.com/u/Nguma_M)\
**Replies:** 0\
**Last updated:** [July 16, 2007, 1:40am UTC](https://www.ruby-forum.com/t/country-options-state-options/109501 "2007-07-16T01:40:33Z")

</div>

I stumbled upon a very undocumented feature: country\_options and state\_options form helpers I dont see anyone using those in numerous address forms tutorials and examples. The first thing that comes to mind is that i…

---

## [\[AAF\] Odd total\_hits situation](https://www.ruby-forum.com/t/aaf-odd-total-hits-situation/109502)

<div class="topic-metadata">

**Author:** [@iceninejon](https://www.ruby-forum.com/u/iceninejon)\
**Replies:** 0\
**Last updated:** [July 16, 2007, 1:29am UTC](https://www.ruby-forum.com/t/aaf-odd-total-hits-situation/109502 "2007-07-16T01:29:53Z")

</div>

I’m fairly new to RoR so go easy please :). I’m having a situation where I’m using acts\_as\_ferret and getting odd results. I’m trying to implement pagination described at Ferret Pagination in Rails - igvita.com but …

---

## [Get which enviornment is running from controller](https://www.ruby-forum.com/t/get-which-enviornment-is-running-from-controller/109500)

<div class="topic-metadata">

**Author:** [@ktheory](https://www.ruby-forum.com/u/ktheory)\
**Replies:** 4\
**Last updated:** [July 16, 2007, 12:56am UTC](https://www.ruby-forum.com/t/get-which-enviornment-is-running-from-controller/109500 "2007-07-16T00:56:06Z")

</div>

how can I get what enviornment is currently running from a controller?.. like development, test, production, etc. thanks…

---

## [How to invoke a GET request to home page](https://www.ruby-forum.com/t/how-to-invoke-a-get-request-to-home-page/109425)

<div class="topic-metadata">

**Author:** [@dorelal](https://www.ruby-forum.com/u/dorelal)\
**Replies:** 2\
**Last updated:** [July 16, 2007, 12:47am UTC](https://www.ruby-forum.com/t/how-to-invoke-a-get-request-to-home-page/109425 "2007-07-16T00:47:29Z")

</div>

The homepage of my application has time sensitive data. The homepage is cached for fast loading. However I clean out the cache every day midnight. It means the first person who hits the after the cache clean up has …

---

## [Is it normal or a kind of bug?](https://www.ruby-forum.com/t/is-it-normal-or-a-kind-of-bug/109488)

<div class="topic-metadata">

**Author:** [@mix](https://www.ruby-forum.com/u/mix)\
**Replies:** 2\
**Last updated:** [July 16, 2007, 12:06am UTC](https://www.ruby-forum.com/t/is-it-normal-or-a-kind-of-bug/109488 "2007-07-16T00:06:06Z")

</div>

I’ve put :multipart =\> true in a form, added a file\_field\_tag, selected a file and then sent the page… The result is a “nice” 500 error page, is it normal?

---

## [Attachment\_fu not working on Textdrive](https://www.ruby-forum.com/t/attachment-fu-not-working-on-textdrive/108243)

<div class="topic-metadata">

**Author:** [@chirag](https://www.ruby-forum.com/u/chirag)\
**Replies:** 8\
**Last updated:** [July 16, 2007, 12:03am UTC](https://www.ruby-forum.com/t/attachment-fu-not-working-on-textdrive/108243 "2007-07-16T00:03:26Z")

</div>

I have attachment\_fu working on my local Windows machine (localhost: 3000) But when I transfer it to Textdrive (Solaris), it doesn’t work. Any ideas? Give it a shot: http://haloresearch.textdriven.com:8217/raw\_data\_…

---

## [Attachment\_fu does not invoke 'create' (POST) action](https://www.ruby-forum.com/t/attachment-fu-does-not-invoke-create-post-action/109412)

<div class="topic-metadata">

**Author:** [@chirag](https://www.ruby-forum.com/u/chirag)\
**Replies:** 1\
**Last updated:** [July 16, 2007, 12:02am UTC](https://www.ruby-forum.com/t/attachment-fu-does-not-invoke-create-post-action/109412 "2007-07-16T00:02:26Z")

</div>

When I use attachment\_fu on my hosted server (TextDrive using lighttpd fastCGI), I can bring up the ‘new’ action but logger shows that ‘create’ (POST) action never gets invoked. The weird part is that the EXACT same …

---

## [Problems during deployment with capistrano](https://www.ruby-forum.com/t/problems-during-deployment-with-capistrano/109411)

<div class="topic-metadata">

**Author:** [@Andreas\_Kviby](https://www.ruby-forum.com/u/Andreas_Kviby)\
**Replies:** 3\
**Last updated:** [July 15, 2007, 11:40pm UTC](https://www.ruby-forum.com/t/problems-during-deployment-with-capistrano/109411 "2007-07-15T23:40:25Z")

</div>

So I wrote my first little rails app and suceeded to deploy it to my railsmachine account. But now when I wrote a new app in Rails I want to overwrite the old one with this completely and I can’t seem to get this to …

---

## [Creating a Navigation menu](https://www.ruby-forum.com/t/creating-a-navigation-menu/109122)

<div class="topic-metadata">

**Author:** [@differenthink](https://www.ruby-forum.com/u/differenthink)\
**Replies:** 8\
**Last updated:** [July 15, 2007, 11:28pm UTC](https://www.ruby-forum.com/t/creating-a-navigation-menu/109122 "2007-07-15T23:28:24Z")

</div>

Hi, I m trying to create a navigation menu as the one at the top of digg website… My navigation menu is composed of Menu, and Submenu… menu and submenu are form query to the DB… So right now, in my application layou…

---

## [How to handle reserved names in legacy database](https://www.ruby-forum.com/t/how-to-handle-reserved-names-in-legacy-database/108930)

<div class="topic-metadata">

**Author:** [@Allan](https://www.ruby-forum.com/u/Allan)\
**Replies:** 8\
**Last updated:** [July 15, 2007, 10:21pm UTC](https://www.ruby-forum.com/t/how-to-handle-reserved-names-in-legacy-database/108930 "2007-07-15T22:21:19Z")

</div>

Hi, I’m using RoR to interface to a legacy database. One of the columns in the legacy database is ‘notify’ and this is causing (I believe) errors like: r = RegressionData.find(:first) =\> #\<RegressionData ID: 1, … …

---

## [Get 1000 $ / day](https://www.ruby-forum.com/t/get-1000-day/109498)

<div class="topic-metadata">

**Author:** [@newbar](https://www.ruby-forum.com/u/newbar)\
**Replies:** 0\
**Last updated:** [July 15, 2007, 10:18pm UTC](https://www.ruby-forum.com/t/get-1000-day/109498 "2007-07-15T22:18:19Z")

</div>

Get 1000 $ / day all BIG BIG business on the web !! http://www.cash-dreams.biz

---

## [Expressing a Complex DDL in Rails](https://www.ruby-forum.com/t/expressing-a-complex-ddl-in-rails/109493)

<div class="topic-metadata">

**Author:** [@lrojas](https://www.ruby-forum.com/u/lrojas)\
**Replies:** 0\
**Last updated:** [July 15, 2007, 9:05pm UTC](https://www.ruby-forum.com/t/expressing-a-complex-ddl-in-rails/109493 "2007-07-15T21:05:16Z")

</div>

Hi all, i am migrating an aplication to Rails and it has some weird construct to handle References and DropDown Values, i was wondering how could i express this in Rails? i put it on Parked at Loopia but in case it e…

---

## [Best practise](https://www.ruby-forum.com/t/best-practise/109492)

<div class="topic-metadata">

**Author:** [@harm](https://www.ruby-forum.com/u/harm)\
**Replies:** 0\
**Last updated:** [July 15, 2007, 8:53pm UTC](https://www.ruby-forum.com/t/best-practise/109492 "2007-07-15T20:53:15Z")

</div>

Dear all, I am making some sort of questioning system in which people and answer different questions (with a limited answer set). These questions can have comments but I will not directly show people that, think of bl…

---

## [Documentation](https://www.ruby-forum.com/t/documentation/109434)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [July 15, 2007, 8:19pm UTC](https://www.ruby-forum.com/t/documentation/109434 "2007-07-15T20:19:07Z")

</div>

how can i generate rails docs wiht rake/ plz /

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

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