# Rails

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

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

---

## [Hammer time - live testing - no login required](https://www.ruby-forum.com/t/hammer-time-live-testing-no-login-required/106223)

<div class="topic-metadata">

**Author:** [@Dion\_H](https://www.ruby-forum.com/u/Dion_H)\
**Replies:** 0\
**Last updated:** [June 7, 2007, 6:02pm UTC](https://www.ruby-forum.com/t/hammer-time-live-testing-no-login-required/106223 "2007-06-07T18:02:55Z")

</div>

hi all, I have tweaked my rails app at http://www.blogsaic.com/ can you guys help out with some live load testing by uploading some tiles NO LOGIN required - just hit Add Tile or go to http://www.blogsaic.com/tile/ …

---

## [Updating records from a hash](https://www.ruby-forum.com/t/updating-records-from-a-hash/106174)

<div class="topic-metadata">

**Author:** [@smc7000](https://www.ruby-forum.com/u/smc7000)\
**Replies:** 7\
**Last updated:** [June 7, 2007, 5:59pm UTC](https://www.ruby-forum.com/t/updating-records-from-a-hash/106174 "2007-06-07T17:59:22Z")

</div>

I’m trying to figure out how to update multiple records in one method from a hash sent by a view, and i’m stuck. Here’s what i’m sending: \<% form\_tag :controller =\> ‘todoitems’, :action =\> ‘toggle\_todo’, :id =\> @id d…

---

## [Display news from wordpress blog within app](https://www.ruby-forum.com/t/display-news-from-wordpress-blog-within-app/106094)

<div class="topic-metadata">

**Author:** [@RSElliott\_M](https://www.ruby-forum.com/u/RSElliott_M)\
**Replies:** 1\
**Last updated:** [June 7, 2007, 5:56pm UTC](https://www.ruby-forum.com/t/display-news-from-wordpress-blog-within-app/106094 "2007-06-07T17:56:24Z")

</div>

I’ve got a wordpress blog in a totally different database. I’d like to take the five most recent articles and display them within my app, as well as possibly display associated comments and such. This seems to be a …

---

## [Rails Way to display if !blank?](https://www.ruby-forum.com/t/rails-way-to-display-if-blank/105650)

<div class="topic-metadata">

**Author:** [@quik77](https://www.ruby-forum.com/u/quik77)\
**Replies:** 5\
**Last updated:** [June 7, 2007, 5:50pm UTC](https://www.ruby-forum.com/t/rails-way-to-display-if-blank/105650 "2007-06-07T17:50:53Z")

</div>

I find myself doing this all the time: \<% if !foo.blank? %\> \<%= foo %\> \<% end %\> Is there a better way? Many thanks, Rob

---

## [Using sessions to give count of current visitors](https://www.ruby-forum.com/t/using-sessions-to-give-count-of-current-visitors/106222)

<div class="topic-metadata">

**Author:** [@jgrosjean](https://www.ruby-forum.com/u/jgrosjean)\
**Replies:** 0\
**Last updated:** [June 7, 2007, 5:47pm UTC](https://www.ruby-forum.com/t/using-sessions-to-give-count-of-current-visitors/106222 "2007-06-07T17:47:56Z")

</div>

I would like to list the current number of visitors on my site. To do this I’m counting the number of sessions that have been updated in the last five minutes. Here’s what I’m doing to make it work, please let me know…

---

## [Do you know for a Free ...!? Click Here :)](https://www.ruby-forum.com/t/do-you-know-for-a-free-click-here/106219)

<div class="topic-metadata">

**Author:** [@only\_freewares](https://www.ruby-forum.com/u/only_freewares)\
**Replies:** 0\
**Last updated:** [June 7, 2007, 5:13pm UTC](https://www.ruby-forum.com/t/do-you-know-for-a-free-click-here/106219 "2007-06-07T17:13:47Z")

</div>

NoSpyMail 1.1 “SpyMail” refers to any email message sent to you which attempts to collect information about you, your computer, or your email habits without your permission. SpyMail is not a new concept. It has been …

---

## [How to use Postgres schemas in Rails app to separate data](https://www.ruby-forum.com/t/how-to-use-postgres-schemas-in-rails-app-to-separate-data/106218)

<div class="topic-metadata">

**Author:** [@nathandelane](https://www.ruby-forum.com/u/nathandelane)\
**Replies:** 0\
**Last updated:** [June 7, 2007, 5:11pm UTC](https://www.ruby-forum.com/t/how-to-use-postgres-schemas-in-rails-app-to-separate-data/106218 "2007-06-07T17:11:46Z")

</div>

Rails/Postgres Gurus, Question: Is it possible to use Postgres schemas within a Rails app to separate tables and data between two different apps? Problem Set: I am thinking of combining two apps. I want to share s…

---

## [Why does REXML run significantly slower in Rails](https://www.ruby-forum.com/t/why-does-rexml-run-significantly-slower-in-rails/106214)

<div class="topic-metadata">

**Author:** [@allen\_r](https://www.ruby-forum.com/u/allen_r)\
**Replies:** 0\
**Last updated:** [June 7, 2007, 5:02pm UTC](https://www.ruby-forum.com/t/why-does-rexml-run-significantly-slower-in-rails/106214 "2007-06-07T17:02:44Z")

</div>

We have some code that uses REXML, that when executed outside of Rails as a standalone rb file, runs fine. Once we run the code inside of Rails, it is dog slow. I know REXML is slow, buggy, sucks, etc., but my questi…

---

## [Radio twitter](https://www.ruby-forum.com/t/radio-twitter/106201)

<div class="topic-metadata">

**Author:** [@jean\_pereira](https://www.ruby-forum.com/u/jean_pereira)\
**Replies:** 3\
**Last updated:** [June 7, 2007, 5:00pm UTC](https://www.ruby-forum.com/t/radio-twitter/106201 "2007-06-07T17:00:40Z")

</div>

Can someone help me? I like twitter a lot and I want to create radio twitter, which would be twittervision but on audio with the best messages. A raw example is here: mp3travel.com - mp3travel Resources and Informati…

---

## [Need to clean params](https://www.ruby-forum.com/t/need-to-clean-params/106209)

<div class="topic-metadata">

**Author:** [@P.V.Anthony](https://www.ruby-forum.com/u/P.V.Anthony)\
**Replies:** 3\
**Last updated:** [June 7, 2007, 4:48pm UTC](https://www.ruby-forum.com/t/need-to-clean-params/106209 "2007-06-07T16:48:39Z")

</div>

Hi, Please do bear with me as I am a newbie. I have an index params from a form with 5 fields of the same name. Most of the times all these fields will not be filled. Is there a way to clean the params before we do a…

---

## [Ajax killed my observe\_field](https://www.ruby-forum.com/t/ajax-killed-my-observe-field/106182)

<div class="topic-metadata">

**Author:** [@jeffpritchard](https://www.ruby-forum.com/u/jeffpritchard)\
**Replies:** 2\
**Last updated:** [June 7, 2007, 4:39pm UTC](https://www.ruby-forum.com/t/ajax-killed-my-observe-field/106182 "2007-06-07T16:39:26Z")

</div>

I have a page that has a text field on it which in turn has an observe\_field hooked up to it. As the user types in the field, a list of items on the page gets filtered by that entry. This all works fine. On the same…

---

## [Paths to images](https://www.ruby-forum.com/t/paths-to-images/106181)

<div class="topic-metadata">

**Author:** [@Serengeti](https://www.ruby-forum.com/u/Serengeti)\
**Replies:** 2\
**Last updated:** [June 7, 2007, 3:44pm UTC](https://www.ruby-forum.com/t/paths-to-images/106181 "2007-06-07T15:44:27Z")

</div>

I am having trouble figuring out the “right” way to specify the path to an image when it is an attribute of something other than an image tag. For example, I see that image\_tag(“myimage.png”) automatically knows to l…

---

## [Backgroundrb - Connection closed](https://www.ruby-forum.com/t/backgroundrb-connection-closed/98835)

<div class="topic-metadata">

**Author:** [@mrkohrea](https://www.ruby-forum.com/u/mrkohrea)\
**Replies:** 6\
**Last updated:** [June 7, 2007, 2:59pm UTC](https://www.ruby-forum.com/t/backgroundrb-connection-closed/98835 "2007-06-07T14:59:11Z")

</div>

Hello, maybe someone can help with backgroundrb. I’ve written an application, which makes use of backgroundrb. Everything works fine on my development machine, but it crashes on my production server. Something seem…

---

## [Problem with multiple file attachment](https://www.ruby-forum.com/t/problem-with-multiple-file-attachment/106198)

<div class="topic-metadata">

**Author:** [@guest](https://www.ruby-forum.com/u/guest)\
**Replies:** 1\
**Last updated:** [June 7, 2007, 12:13pm UTC](https://www.ruby-forum.com/t/problem-with-multiple-file-attachment/106198 "2007-06-07T12:13:42Z")

</div>

hi, actually i have done single file attachment in ruby on rails, now i want to do multiple attachment, but the problem is when i am trying to display the second file name from the params for the testing purpose, i g…

---

## [Is "rake db:test:prepare" support to (a) setup FK constraint](https://www.ruby-forum.com/t/is-rake-dbprepare-support-to-a-setup-fk-constraint/105764)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 2\
**Last updated:** [June 7, 2007, 10:30am UTC](https://www.ruby-forum.com/t/is-rake-dbprepare-support-to-a-setup-fk-constraint/105764 "2007-06-07T10:30:43Z")

</div>

Hi, Just noting (as I start to use unit tests) that when I issue “rake db:test:prepare” that what I do NOT see in my test database (as I do in development when running “rake db:migrate”): (a) FK constraints don’t see…

---

## [AR Extension, Bulk Upload and Synchronize](https://www.ruby-forum.com/t/ar-extension-bulk-upload-and-synchronize/106187)

<div class="topic-metadata">

**Author:** [@tonypm](https://www.ruby-forum.com/u/tonypm)\
**Replies:** 0\
**Last updated:** [June 7, 2007, 9:24am UTC](https://www.ruby-forum.com/t/ar-extension-bulk-upload-and-synchronize/106187 "2007-06-07T09:24:29Z")

</div>

Hi, I am looking at ActiveRecord Extension http://www.continuousthinking.com/tags/arext/rdoc/index.html as a way of helping me synchronize data from a csv file. I have the app working using row by row query, but the…

---

## [BackgrounDRB alternative for Windows?](https://www.ruby-forum.com/t/backgroundrb-alternative-for-windows/106008)

<div class="topic-metadata">

**Author:** [@inari](https://www.ruby-forum.com/u/inari)\
**Replies:** 8\
**Last updated:** [June 7, 2007, 9:08am UTC](https://www.ruby-forum.com/t/backgroundrb-alternative-for-windows/106008 "2007-06-07T09:08:28Z")

</div>

Is there an alternative to BackgrounDRB since it isn’t supported on Windows?

---

## [Errors after updating please help!](https://www.ruby-forum.com/t/errors-after-updating-please-help/106164)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [June 7, 2007, 9:05am UTC](https://www.ruby-forum.com/t/errors-after-updating-please-help/106164 "2007-06-07T09:05:27Z")

</div>

Hello! I recently upgraded to rails 1.1.6. When i fired up my application, it started up okay except i get this warning: …/config/boot.rb 28: Warning require\_gem is obsolete. Use gem instead How do I fix this? And …

---

## [:prompt on collection\_select worked locally but had to chang](https://www.ruby-forum.com/t/prompt-on-collection-select-worked-locally-but-had-to-chang/106170)

<div class="topic-metadata">

**Author:** [@scott](https://www.ruby-forum.com/u/scott)\
**Replies:** 2\
**Last updated:** [June 7, 2007, 9:04am UTC](https://www.ruby-forum.com/t/prompt-on-collection-select-worked-locally-but-had-to-chang/106170 "2007-06-07T09:04:27Z")

</div>

This is sort of a strange one. I had the following abbreviated form: \<% form\_for :product, :url =\> {:action =\> “preview\_item”, :id =\> @product}, :html =\> {:multipart =\> true} do |form| %\> form.collection\_select(:depa…

---

## [Handling Large Data Imports](https://www.ruby-forum.com/t/handling-large-data-imports/106138)

<div class="topic-metadata">

**Author:** [@sjames](https://www.ruby-forum.com/u/sjames)\
**Replies:** 2\
**Last updated:** [June 7, 2007, 8:43am UTC](https://www.ruby-forum.com/t/handling-large-data-imports/106138 "2007-06-07T08:43:26Z")

</div>

Greetings. Have any of you guys dealt with importing large amounts of data on deploy? I have two distinct situations I need to deal with and I was hoping for some advice. I have a fairly large CSV file of postal c…

---

## [Install external 'attachment\_fu' plugin using Radrails](https://www.ruby-forum.com/t/install-external-attachment-fu-plugin-using-radrails/106030)

<div class="topic-metadata">

**Author:** [@mmccall](https://www.ruby-forum.com/u/mmccall)\
**Replies:** 1\
**Last updated:** [June 7, 2007, 6:48am UTC](https://www.ruby-forum.com/t/install-external-attachment-fu-plugin-using-radrails/106030 "2007-06-07T06:48:15Z")

</div>

Hello, I want to install a plugin created for rails called ‘attachment\_fu’ . However, I am not sure how to do this. I searched the ‘rails/plugin’ console menu but I could not find the plugin listed. Can an install an…

---

## [Authentication and registration plug-in?](https://www.ruby-forum.com/t/authentication-and-registration-plug-in/106009)

<div class="topic-metadata">

**Author:** [@chirag](https://www.ruby-forum.com/u/chirag)\
**Replies:** 1\
**Last updated:** [June 7, 2007, 6:44am UTC](https://www.ruby-forum.com/t/authentication-and-registration-plug-in/106009 "2007-06-07T06:44:15Z")

</div>

I’m designing a HIPAA compliant Rails site and need a plug-in to do the following Auto-Expiry: Each user is assigned a unique password; system has password expiration enabled with expiration time configurable by syst…

---

## [Updating multiple records from a hash](https://www.ruby-forum.com/t/updating-multiple-records-from-a-hash/106176)

<div class="topic-metadata">

**Author:** [@smc7000](https://www.ruby-forum.com/u/smc7000)\
**Replies:** 1\
**Last updated:** [June 7, 2007, 4:27am UTC](https://www.ruby-forum.com/t/updating-multiple-records-from-a-hash/106176 "2007-06-07T04:27:08Z")

</div>

I’m trying to figure out how to update multiple records in one method from a hash sent by a view, and unfortunately, i’m dead stuck. Here’s what i’m sending: \<% form\_tag :controller =\> ‘todoitems’, :action =\> ‘toggle\_…

---

## [Order in pagination](https://www.ruby-forum.com/t/order-in-pagination/106165)

<div class="topic-metadata">

**Author:** [@raj\_ma](https://www.ruby-forum.com/u/raj_ma)\
**Replies:** 5\
**Last updated:** [June 7, 2007, 3:56am UTC](https://www.ruby-forum.com/t/order-in-pagination/106165 "2007-06-07T03:56:27Z")

</div>

@post\_pages, @posts = paginate :posts, :per\_page =\> 5, :order =\> ‘id’ The results are not ordered and I am not getting error and the results not ordered in any order…is there any error in the syntax ?? Raj.

---

## [Mystified by forms and models](https://www.ruby-forum.com/t/mystified-by-forms-and-models/106083)

<div class="topic-metadata">

**Author:** [@smc7000](https://www.ruby-forum.com/u/smc7000)\
**Replies:** 5\
**Last updated:** [June 7, 2007, 3:37am UTC](https://www.ruby-forum.com/t/mystified-by-forms-and-models/106083 "2007-06-07T03:37:03Z")

</div>

Okay. Either I’m missing something WAY basic or Rails and its API are lying to me (experience tells me it’s the former). Here is the basic setup for a check\_box tag in the API: \<%= check\_box(‘object’, ‘method’) %\> Ri…

---

## [Dynamically adding class methods to Model](https://www.ruby-forum.com/t/dynamically-adding-class-methods-to-model/106159)

<div class="topic-metadata">

**Author:** [@faux](https://www.ruby-forum.com/u/faux)\
**Replies:** 2\
**Last updated:** [June 7, 2007, 12:36am UTC](https://www.ruby-forum.com/t/dynamically-adding-class-methods-to-model/106159 "2007-06-07T00:36:47Z")

</div>

I have a Model that includes a bunch of class methods. I want to be able to make calls like: calories = Nutrient.calories fat = Nutrient.fat Right now, my Model looks like something I’d write in Java: class Nutrien…

---

## [Errors with complex models](https://www.ruby-forum.com/t/errors-with-complex-models/106166)

<div class="topic-metadata">

**Author:** [@Justin\_Ball](https://www.ruby-forum.com/u/Justin_Ball)\
**Replies:** 0\
**Last updated:** [June 7, 2007, 12:09am UTC](https://www.ruby-forum.com/t/errors-with-complex-models/106166 "2007-06-07T00:09:56Z")

</div>

Anybody know how to deal with errors when you have a complex model - Jamis B. talked about skinny Controllers at railsconf. It seems like this requires creating models that don’t necessarily have a database table behi…

---

## [Commenting code](https://www.ruby-forum.com/t/commenting-code/106154)

<div class="topic-metadata">

**Author:** [@gabordemeter](https://www.ruby-forum.com/u/gabordemeter)\
**Replies:** 4\
**Last updated:** [June 6, 2007, 11:50pm UTC](https://www.ruby-forum.com/t/commenting-code/106154 "2007-06-06T23:50:58Z")

</div>

Here’s one stupid question: How do you comment out a block of ruby code? I know that “#” comments one line, but how do i comment out a block of 7-8 lines of code? Don’t seem to be able to find this anywhere. Thanks, …

---

## [Very Noob Question: index.html](https://www.ruby-forum.com/t/very-noob-question-index-html/106162)

<div class="topic-metadata">

**Author:** [@newby](https://www.ruby-forum.com/u/newby)\
**Replies:** 3\
**Last updated:** [June 6, 2007, 11:50pm UTC](https://www.ruby-forum.com/t/very-noob-question-index-html/106162 "2007-06-06T23:50:57Z")

</div>

Hi, I have a very noob question. I just started on RoR this week, glad to be on board. I’m just wondering where I edit the first page when people come to the site, index.html. There seems to be one in the public fold…

---

## [Render :action =\> bla, :anchor =\> 'bla'](https://www.ruby-forum.com/t/render-action-bla-anchor-bla/106153)

<div class="topic-metadata">

**Author:** [@mischa78](https://www.ruby-forum.com/u/mischa78)\
**Replies:** 2\
**Last updated:** [June 6, 2007, 11:33pm UTC](https://www.ruby-forum.com/t/render-action-bla-anchor-bla/106153 "2007-06-06T23:33:50Z")

</div>

Hi, I hope someone can help me with this. I have a pretty long form (which involves scrolling). After posting the form, some data gets validated and if there are errors the form is rendered again and the errors are s…

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

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