# Rails

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

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

---

## [Help using a rake task to add items to my database?](https://www.ruby-forum.com/t/help-using-a-rake-task-to-add-items-to-my-database/158618)

<div class="topic-metadata">

**Author:** [@sharon](https://www.ruby-forum.com/u/sharon)\
**Replies:** 3\
**Last updated:** [January 26, 2009, 2:27am UTC](https://www.ruby-forum.com/t/help-using-a-rake-task-to-add-items-to-my-database/158618 "2009-01-26T02:27:03Z")

</div>

Once a month or so, I’d like to pull data from an RSS feed and add it into my database. I’ve written a rake task that properly reads the feed, parses it and assigns the correct information to new instances of my @even…

---

## [Question re: Charactersets](https://www.ruby-forum.com/t/question-re-charactersets/158620)

<div class="topic-metadata">

**Author:** [@tharrisx](https://www.ruby-forum.com/u/tharrisx)\
**Replies:** 2\
**Last updated:** [January 26, 2009, 1:48am UTC](https://www.ruby-forum.com/t/question-re-charactersets/158620 "2009-01-26T01:48:43Z")

</div>

Hi there, I need some help with characters (charactersets): I have “special characters” in some db fields. When those fields are used for the composition of an email, those “special characters” show up screwed up in …

---

## [Hosting](https://www.ruby-forum.com/t/hosting/158617)

<div class="topic-metadata">

**Author:** [@visitor1981](https://www.ruby-forum.com/u/visitor1981)\
**Replies:** 0\
**Last updated:** [January 25, 2009, 10:34pm UTC](https://www.ruby-forum.com/t/hosting/158617 "2009-01-25T22:34:08Z")

</div>

salve a tutti, Ã¨ la prima voltache posto nel vostro forum. Mi sto ora avicinando a Ruby on Rails (quindi non sono ancora molto esperto) cercando di sviluppare un sito web (di piccole dimensioni anche se c’Ã¨ la possi…

---

## [Observer questions](https://www.ruby-forum.com/t/observer-questions/158574)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 2\
**Last updated:** [January 25, 2009, 10:29pm UTC](https://www.ruby-forum.com/t/observer-questions/158574 "2009-01-25T22:29:18Z")

</div>

Hi, Re Rails observers, (i.e. http://api.rubyonrails.org/classes/ActiveRecord/Observer.html ), can anyone clarify: Question - Does the call back for a registered observer occur AFTER or BEFORE the database transact…

---

## [Using update to either update or create new object](https://www.ruby-forum.com/t/using-update-to-either-update-or-create-new-object/158599)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 1\
**Last updated:** [January 25, 2009, 7:41pm UTC](https://www.ruby-forum.com/t/using-update-to-either-update-or-create-new-object/158599 "2009-01-25T19:41:02Z")

</div>

I’m using form\_remote\_for to create a new object in the beginning, and then if the object already exists, update it. I’m using the REST form so my form looks like this: \<% form\_remote\_for(@spec) do |form| %\> \<% end …

---

## [Possible Open Source Project](https://www.ruby-forum.com/t/possible-open-source-project/158604)

<div class="topic-metadata">

**Author:** [@Schalk\_N](https://www.ruby-forum.com/u/Schalk_N)\
**Replies:** 0\
**Last updated:** [January 25, 2009, 7:36pm UTC](https://www.ruby-forum.com/t/possible-open-source-project/158604 "2009-01-25T19:36:19Z")

</div>

Hi there everyone, I was wondering, is there anyone on this list that would be interested in working on an open source project to create a solution for generating website thumbnails in Rails? If there is any interest…

---

## [\[ANN\] Launching ThinkoSphere, an accelerator of democracy](https://www.ruby-forum.com/t/ann-launching-thinkosphere-an-accelerator-of-democracy/158601)

<div class="topic-metadata">

**Author:** [@harryspier](https://www.ruby-forum.com/u/harryspier)\
**Replies:** 0\
**Last updated:** [January 25, 2009, 7:21pm UTC](https://www.ruby-forum.com/t/ann-launching-thinkosphere-an-accelerator-of-democracy/158601 "2009-01-25T19:21:33Z")

</div>

After 1.5 years of development in hobby time, I am pleased to announce that the alpha version of ThinkoSphere.com is publicly launched! I started this project knowing nothing to web dev. I tried first PHP but I almost…

---

## [Button\_to font & bkgrnd](https://www.ruby-forum.com/t/button-to-font-bkgrnd/158600)

<div class="topic-metadata">

**Author:** [@kenwei](https://www.ruby-forum.com/u/kenwei)\
**Replies:** 0\
**Last updated:** [January 25, 2009, 6:56pm UTC](https://www.ruby-forum.com/t/button-to-font-bkgrnd/158600 "2009-01-25T18:56:53Z")

</div>

How to change the font-size and background-color for the button\_to statement? Can this be done somehow via the button\_to options, html-options? Can it be done without using css? Maybe via a or ?? TIA, Ken

---

## [Emailing: How to execute "ar\_sendmail" using "RailsCron"](https://www.ruby-forum.com/t/emailing-how-to-execute-ar-sendmail-using-railscron/158598)

<div class="topic-metadata">

**Author:** [@tharrisx](https://www.ruby-forum.com/u/tharrisx)\
**Replies:** 0\
**Last updated:** [January 25, 2009, 6:06pm UTC](https://www.ruby-forum.com/t/emailing-how-to-execute-ar-sendmail-using-railscron/158598 "2009-01-25T18:06:53Z")

</div>

Hi there, I’d like to know how to get “ar\_sendmail” (a command from the gem “ar\_mailer”) executed using the plugin “RailsCron”: FYI: “RailsCron” is a way to execute background tasks using your Ruby on Rails environme…

---

## [Is there any better way to do this?](https://www.ruby-forum.com/t/is-there-any-better-way-to-do-this/158589)

<div class="topic-metadata">

**Author:** [@giga](https://www.ruby-forum.com/u/giga)\
**Replies:** 5\
**Last updated:** [January 25, 2009, 5:59pm UTC](https://www.ruby-forum.com/t/is-there-any-better-way-to-do-this/158589 "2009-01-25T17:59:23Z")

</div>

\#order can be “date” or “score” or “user” @order = “date” #default @order = session\[:order\] if session\[:order\] @order = params\[:order\] if params\[:order\] orderby = “updated\_on DESC” #default orderby = “score DESC” if…

---

## [\[ANN\] Typo 5.2 for Rails 2.2 released](https://www.ruby-forum.com/t/ann-typo-5-2-for-rails-2-2-released/158597)

<div class="topic-metadata">

**Author:** [@de\_Villamil\_FrSSSSd](https://www.ruby-forum.com/u/de_Villamil_FrSSSSd)\
**Replies:** 0\
**Last updated:** [January 25, 2009, 5:35pm UTC](https://www.ruby-forum.com/t/ann-typo-5-2-for-rails-2-2-released/158597 "2009-01-25T17:35:47Z")

</div>

Hello, We’re very pleased and proud to announce the release of Typo 5.2 “Helmut Newton” for Rails 2.2, the famous blogging engine, 4 months after our last release. Typo 5.2 is more than a simple port from Rails 2.0.2…

---

## [How to pop up a Download Window](https://www.ruby-forum.com/t/how-to-pop-up-a-download-window/158582)

<div class="topic-metadata">

**Author:** [@sauravsuman012](https://www.ruby-forum.com/u/sauravsuman012)\
**Replies:** 1\
**Last updated:** [January 25, 2009, 5:15pm UTC](https://www.ruby-forum.com/t/how-to-pop-up-a-download-window/158582 "2009-01-25T17:15:05Z")

</div>

Hi all , I have to show window as like you got on click of save(or by pressing of ctrl+s), which exact function like the crtl+s press. Please let me know if anyone having any idea regarding this. It would be great he…

---

## [Two has\_many association for a single model](https://www.ruby-forum.com/t/two-has-many-association-for-a-single-model/158575)

<div class="topic-metadata">

**Author:** [@sachinkale](https://www.ruby-forum.com/u/sachinkale)\
**Replies:** 2\
**Last updated:** [January 25, 2009, 9:00am UTC](https://www.ruby-forum.com/t/two-has-many-association-for-a-single-model/158575 "2009-01-25T09:00:33Z")

</div>

Hi I have following models employee transaction Requirement - A transaction has a dealer(employee) and a driver(employee). I experimented following I have put - /models/employee.rb : has\_many :transactions,…

---

## [Simple Question, Complex Answer?](https://www.ruby-forum.com/t/simple-question-complex-answer/158551)

<div class="topic-metadata">

**Author:** [@jayhalleaux](https://www.ruby-forum.com/u/jayhalleaux)\
**Replies:** 1\
**Last updated:** [January 25, 2009, 5:54am UTC](https://www.ruby-forum.com/t/simple-question-complex-answer/158551 "2009-01-25T05:54:39Z")

</div>

I am trying to make a multi-user DB application. My question is how do I keep the multiple users’ browser view in sync when a user updates the database? I want to avoid polling the server client-side to see if it ha…

---

## [How make attachment\_fu with 2 has\_attachment](https://www.ruby-forum.com/t/how-make-attachment-fu-with-2-has-attachment/158423)

<div class="topic-metadata">

**Author:** [@anton\_effendi](https://www.ruby-forum.com/u/anton_effendi)\
**Replies:** 3\
**Last updated:** [January 25, 2009, 5:01am UTC](https://www.ruby-forum.com/t/how-make-attachment-fu-with-2-has-attachment/158423 "2009-01-25T05:01:28Z")

</div>

Hiii I need help… I want to make upload photo with attachment\_fu… this logic is if admin has\_attachment :content\_type =\> :image, :storage =\> :file\_system, :path\_prefix =\> ‘public/photos’, :processor =\> ‘Rmagick’, …

---

## [getValue() in a Controller problem, help please](https://www.ruby-forum.com/t/getvalue-in-a-controller-problem-help-please/158410)

<div class="topic-metadata">

**Author:** [@davidstokar](https://www.ruby-forum.com/u/davidstokar)\
**Replies:** 4\
**Last updated:** [January 25, 2009, 4:54am UTC](https://www.ruby-forum.com/t/getvalue-in-a-controller-problem-help-please/158410 "2009-01-25T04:54:25Z")

</div>

Hello there, I’m trying to do something like: render :update do |page| page\[:client\_list\].replace\_html render(:partial =\> ‘client\_list’, :object =\> @clients\_list) name = page\[:name\].getValue(); end but I’m not get…

---

## [Premature end of script headers: dispatch.cgi](https://www.ruby-forum.com/t/premature-end-of-script-headers-dispatch-cgi/103463)

<div class="topic-metadata">

**Author:** [@RailsRoller](https://www.ruby-forum.com/u/RailsRoller)\
**Replies:** 6\
**Last updated:** [January 25, 2009, 12:35am UTC](https://www.ruby-forum.com/t/premature-end-of-script-headers-dispatch-cgi/103463 "2009-01-25T00:35:25Z")

</div>

Hi! I’m trying to setup rails in my remote server: fedora-core-4-x86\_64 running on vps. Apache is already installed… and i installed ruby / gems / rails manually via ssh. when i’m creating a rails app and placing a s…

---

## [Dynamically generate a field option from dropdown selection](https://www.ruby-forum.com/t/dynamically-generate-a-field-option-from-dropdown-selection/158368)

<div class="topic-metadata">

**Author:** [@bagadoughnuts](https://www.ruby-forum.com/u/bagadoughnuts)\
**Replies:** 7\
**Last updated:** [January 24, 2009, 11:45pm UTC](https://www.ruby-forum.com/t/dynamically-generate-a-field-option-from-dropdown-selection/158368 "2009-01-24T23:45:41Z")

</div>

Hi all, I’m having a hard time trying to find a good tutorial on how to generate a field (with ajax) from a dropdown selection. For example: I have an app where you can select up to two tickets per person. Only if t…

---

## [Attachment\_fu and Internet Explorer](https://www.ruby-forum.com/t/attachment-fu-and-internet-explorer/158567)

<div class="topic-metadata">

**Author:** [@bbaggins](https://www.ruby-forum.com/u/bbaggins)\
**Replies:** 0\
**Last updated:** [January 24, 2009, 11:38pm UTC](https://www.ruby-forum.com/t/attachment-fu-and-internet-explorer/158567 "2009-01-24T23:38:42Z")

</div>

Hi Guys / Gals, I’m stumped on a attachment\_fu & IE issues that I hope someone here can help with. I’ve got attachment\_fu working nicely with firefox, safari, but when I use the same form from IE, I get the following…

---

## [Reprocess attachment\_fu thumbnails with ImageMagick edits](https://www.ruby-forum.com/t/reprocess-attachment-fu-thumbnails-with-imagemagick-edits/158564)

<div class="topic-metadata">

**Author:** [@timgremore](https://www.ruby-forum.com/u/timgremore)\
**Replies:** 0\
**Last updated:** [January 24, 2009, 10:49pm UTC](https://www.ruby-forum.com/t/reprocess-attachment-fu-thumbnails-with-imagemagick-edits/158564 "2009-01-24T22:49:39Z")

</div>

I’m trying to modify product images when a user marks a product as “sold” and I am able to modify the original image file successfully, but when I try to reprocess the thumbnails, my ImageMagick modifications don’t st…

---

## [Mongrel cluster processes not starting](https://www.ruby-forum.com/t/mongrel-cluster-processes-not-starting/153876)

<div class="topic-metadata">

**Author:** [@r-a-mueller](https://www.ruby-forum.com/u/r-a-mueller)\
**Replies:** 1\
**Last updated:** [January 24, 2009, 10:31pm UTC](https://www.ruby-forum.com/t/mongrel-cluster-processes-not-starting/153876 "2009-01-24T22:31:36Z")

</div>

I am starting my mongrel processes with mongrel\_rails cluster::start or sudo mongrel\_rails cluster::start starting port 8000 starting port 8001 starting port 8002 starting port 8003 and they appear to have starte…

---

## [Best plaform for RAM / several apps](https://www.ruby-forum.com/t/best-plaform-for-ram-several-apps/157359)

<div class="topic-metadata">

**Author:** [@fero](https://www.ruby-forum.com/u/fero)\
**Replies:** 4\
**Last updated:** [January 24, 2009, 10:24pm UTC](https://www.ruby-forum.com/t/best-plaform-for-ram-several-apps/157359 "2009-01-24T22:24:45Z")

</div>

Hello. Which platform is best with respect to RAM ? I want to deploy 5 rails apps. on virtual server. Please send your recommendation. Thanks

---

## [Can't install sqlite-ruby gem on OS X 10.5.5](https://www.ruby-forum.com/t/cant-install-sqlite-ruby-gem-on-os-x-10-5-5/158552)

<div class="topic-metadata">

**Author:** [@adammontgomery](https://www.ruby-forum.com/u/adammontgomery)\
**Replies:** 5\
**Last updated:** [January 24, 2009, 9:53pm UTC](https://www.ruby-forum.com/t/cant-install-sqlite-ruby-gem-on-os-x-10-5-5/158552 "2009-01-24T21:53:46Z")

</div>

I’m new to OS X. I’ve been messing with Rails for about a year. I’ve cloned my rails app using git. script/server starts, and I get an error in my browser about sqlite3. So, I try to install sqlite-ruby gem and I fa…

---

## [Undefined method attr\_accessible](https://www.ruby-forum.com/t/undefined-method-attr-accessible/158562)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 1\
**Last updated:** [January 24, 2009, 9:51pm UTC](https://www.ruby-forum.com/t/undefined-method-attr-accessible/158562 "2009-01-24T21:51:12Z")

</div>

Hi, I just created a new model called Sidebar, for custom sidebar on a per page basis: – class Sidebar \< ActiveRecord::Base attr\_accessibleÂ :content validates\_uniqueness\_of :permalink, :scope =\> :site\_id end # cl…

---

## [Acts as Versioned problem with Inflector (Rails 2.2.2)](https://www.ruby-forum.com/t/acts-as-versioned-problem-with-inflector-rails-2-2-2/158517)

<div class="topic-metadata">

**Author:** [@blacknight](https://www.ruby-forum.com/u/blacknight)\
**Replies:** 2\
**Last updated:** [January 24, 2009, 7:10pm UTC](https://www.ruby-forum.com/t/acts-as-versioned-problem-with-inflector-rails-2-2-2/158517 "2009-01-24T19:10:55Z")

</div>

I created a “Page” class and rolled in Acts as Versioned. I received the following error: uninitialized constant ActiveRecord::Acts::Versioned::ClassMethods::Inflector /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/…

---

## [Elementary Array Question](https://www.ruby-forum.com/t/elementary-array-question/158491)

<div class="topic-metadata">

**Author:** [@jordantheous](https://www.ruby-forum.com/u/jordantheous)\
**Replies:** 4\
**Last updated:** [January 24, 2009, 7:10pm UTC](https://www.ruby-forum.com/t/elementary-array-question/158491 "2009-01-24T19:10:19Z")

</div>

\*From Chris P., Learn to Program Hey All – In the below source code they array is called in the method as x, y, but the “if” statements are looking to \[y\]\[x\]. Can anyone explain to me why they are switched? If you …

---

## [Rails sanitize method is stripping my anchors](https://www.ruby-forum.com/t/rails-sanitize-method-is-stripping-my-anchors/158546)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 1\
**Last updated:** [January 24, 2009, 6:03pm UTC](https://www.ruby-forum.com/t/rails-sanitize-method-is-stripping-my-anchors/158546 "2009-01-24T18:03:46Z")

</div>

Hi, I have some html pages that are saved in DB and which require anchors for quickly jumping inside the page. People can edit the page manually, so in order to keep things clean I use Rails sanitize method to clean …

---

## [String split help](https://www.ruby-forum.com/t/string-split-help/158498)

<div class="topic-metadata">

**Author:** [@giga](https://www.ruby-forum.com/u/giga)\
**Replies:** 2\
**Last updated:** [January 24, 2009, 5:15pm UTC](https://www.ruby-forum.com/t/string-split-help/158498 "2009-01-24T17:15:31Z")

</div>

I have string: “xxx | yyy | zzz | ddd” I need to split it to: “xxx”, “yyy”, “zzz” and “ddd”, make link to every word like: xxx So result must by: from this: “xxx | yyy | zzz | ddd” to this: “xxx, yyy, zzz, ddd” H…

---

## [Canoo webtest](https://www.ruby-forum.com/t/canoo-webtest/158538)

<div class="topic-metadata">

**Author:** [@bahaw](https://www.ruby-forum.com/u/bahaw)\
**Replies:** 1\
**Last updated:** [January 24, 2009, 5:00pm UTC](https://www.ruby-forum.com/t/canoo-webtest/158538 "2009-01-24T17:00:52Z")

</div>

has anyone used canoo webtest to test a rails application? appreciate the info.

---

## [Disadvantages of Ruby on Rails](https://www.ruby-forum.com/t/disadvantages-of-ruby-on-rails/90938)

<div class="topic-metadata">

**Author:** [@rajrkodeep](https://www.ruby-forum.com/u/rajrkodeep)\
**Replies:** 23\
**Last updated:** [January 24, 2009, 4:55pm UTC](https://www.ruby-forum.com/t/disadvantages-of-ruby-on-rails/90938 "2009-01-24T16:55:32Z")

</div>

can anyone tell that what are the disadvantages f Ruby on Rails lets Discuss

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

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