# Rails

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

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

---

## [ActionMailer sending mass emails,Suggestion for validation](https://www.ruby-forum.com/t/actionmailer-sending-mass-emails-suggestion-for-validation/164479)

<div class="topic-metadata">

**Author:** [@sandeepcasp](https://www.ruby-forum.com/u/sandeepcasp)\
**Replies:** 1\
**Last updated:** [April 1, 2009, 8:33pm UTC](https://www.ruby-forum.com/t/actionmailer-sending-mass-emails-suggestion-for-validation/164479 "2009-04-01T20:33:06Z")

</div>

Hi all, I’ve used below link to send mass emails to people.I am able to send using the same code without any issues. Now,Is that i need to validate Subject,Recipient,Message text boxes.Can you please suggest me how t…

---

## [Form\_for, partials, and link\_to\_remote](https://www.ruby-forum.com/t/form-for-partials-and-link-to-remote/164387)

<div class="topic-metadata">

**Author:** [@willclarkdesigns](https://www.ruby-forum.com/u/willclarkdesigns)\
**Replies:** 2\
**Last updated:** [April 1, 2009, 8:31pm UTC](https://www.ruby-forum.com/t/form-for-partials-and-link-to-remote/164387 "2009-04-01T20:31:35Z")

</div>

I’m using Rails 2.3.2 with a form to edit a Page object: \<% form\_for(\[:admin, @page\], :class =\> “form”) do |f| %\> #… \<% end %\> In that form I’m also using fields\_for/nested models. I want the ability in the form to …

---

## [ActionMailer sending mass emails,Suggestion for validation](https://www.ruby-forum.com/t/actionmailer-sending-mass-emails-suggestion-for-validation/164480)

<div class="topic-metadata">

**Author:** [@sandeepcasp](https://www.ruby-forum.com/u/sandeepcasp)\
**Replies:** 0\
**Last updated:** [April 1, 2009, 8:26pm UTC](https://www.ruby-forum.com/t/actionmailer-sending-mass-emails-suggestion-for-validation/164480 "2009-04-01T20:26:33Z")

</div>

Hi all, I’ve used below link to send mass emails to people.I am able to send using the same code without any issues. Now,Is that i need to validate Subject,Recipient,Message text boxes.Can you please suggest me how…

---

## [Newbie - Mysql::Error in SayController#hello](https://www.ruby-forum.com/t/newbie-mysql-error-in-saycontroller-hello/164473)

<div class="topic-metadata">

**Author:** [@Deb\_P](https://www.ruby-forum.com/u/Deb_P)\
**Replies:** 1\
**Last updated:** [April 1, 2009, 7:52pm UTC](https://www.ruby-forum.com/t/newbie-mysql-error-in-saycontroller-hello/164473 "2009-04-01T19:52:21Z")

</div>

Hi, I’m trying to follow the agile book for hello world. I’ve run into several problems and been able to resolve them up to: Mysql::Error in SayController#hello Access denied for user ‘root’@‘localhost’ (using passw…

---

## [Passing a full object as arguments VS minimal information?](https://www.ruby-forum.com/t/passing-a-full-object-as-arguments-vs-minimal-information/164460)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 1\
**Last updated:** [April 1, 2009, 7:19pm UTC](https://www.ruby-forum.com/t/passing-a-full-object-as-arguments-vs-minimal-information/164460 "2009-04-01T19:19:20Z")

</div>

Hi, Is it a good idea to pass a full object as an argument, or is it better to only give minimum info to the method?

---

## [Windows Production Apache Cluster. Mongrel sleeps](https://www.ruby-forum.com/t/windows-production-apache-cluster-mongrel-sleeps/164255)

<div class="topic-metadata">

**Author:** [@chrisdwan](https://www.ruby-forum.com/u/chrisdwan)\
**Replies:** 1\
**Last updated:** [April 1, 2009, 6:57pm UTC](https://www.ruby-forum.com/t/windows-production-apache-cluster-mongrel-sleeps/164255 "2009-04-01T18:57:43Z")

</div>

When running production mode on Windows 2003 using Apache and a proxy balancer mod and mod\_rewrite to redirect to the mongrel instances, I sometimes get a Proxy Error thrown from Apache. Setup is done according to thi…

---

## [Custom validation and i18n](https://www.ruby-forum.com/t/custom-validation-and-i18n/164459)

<div class="topic-metadata">

**Author:** [@rasmus](https://www.ruby-forum.com/u/rasmus)\
**Replies:** 0\
**Last updated:** [April 1, 2009, 5:07pm UTC](https://www.ruby-forum.com/t/custom-validation-and-i18n/164459 "2009-04-01T17:07:06Z")

</div>

Hi guys, I’m looking for some advice on how to follow best practices. In my app users can create “reports”. A report belongs to an employee. Therefore, when creating a report I want to check, that the chosen employee…

---

## [Datetime\_select issues](https://www.ruby-forum.com/t/datetime-select-issues/164422)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [April 1, 2009, 4:53pm UTC](https://www.ruby-forum.com/t/datetime-select-issues/164422 "2009-04-01T16:53:05Z")

</div>

I tried using this to build a datetime text box area: select\_datetime (date = Time.now, :order =\> \[:year, :month, :day\]) This just returns a hash will the year, month, day, hour, minute. I also tried using datetime\_s…

---

## [My bug, nefarious scraper or a legitimate browser plugin?](https://www.ruby-forum.com/t/my-bug-nefarious-scraper-or-a-legitimate-browser-plugin/164267)

<div class="topic-metadata">

**Author:** [@jshow](https://www.ruby-forum.com/u/jshow)\
**Replies:** 3\
**Last updated:** [April 1, 2009, 4:48pm UTC](https://www.ruby-forum.com/t/my-bug-nefarious-scraper-or-a-legitimate-browser-plugin/164267 "2009-04-01T16:48:21Z")

</div>

I’ve been faced the the following symptoms for some time. I have links coded as :post or :put, so I can make sure that bots aren’t hitting particular links. But it something is either hitting them as :get through an e…

---

## [Gem to open office 2007 xls in older version office](https://www.ruby-forum.com/t/gem-to-open-office-2007-xls-in-older-version-office/164451)

<div class="topic-metadata">

**Author:** [@radha](https://www.ruby-forum.com/u/radha)\
**Replies:** 0\
**Last updated:** [April 1, 2009, 4:08pm UTC](https://www.ruby-forum.com/t/gem-to-open-office-2007-xls-in-older-version-office/164451 "2009-04-01T16:08:09Z")

</div>

Hello Friends, In my rails application i have to open office 2007 spreadsheets in the older versions of open office ex.2003. Is there any gem or plugin to do the same. Or the gem/plugin which converts office 2007 xls…

---

## [Should I install ruby 1.9?](https://www.ruby-forum.com/t/should-i-install-ruby-1-9/164271)

<div class="topic-metadata">

**Author:** [@thebarge](https://www.ruby-forum.com/u/thebarge)\
**Replies:** 3\
**Last updated:** [April 1, 2009, 3:50pm UTC](https://www.ruby-forum.com/t/should-i-install-ruby-1-9/164271 "2009-04-01T15:50:33Z")

</div>

I’ve updated rails to 2.3.2, should I update ruby to 1.9? What are the advantages/disadvantages in doing so? I’m on os x. thanks

---

## [Rearranging the letters of a word](https://www.ruby-forum.com/t/rearranging-the-letters-of-a-word/164443)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [April 1, 2009, 3:35pm UTC](https://www.ruby-forum.com/t/rearranging-the-letters-of-a-word/164443 "2009-04-01T15:35:31Z")

</div>

Hello there, I have to rearrange the letters of a word in all possible ways in my rails application.I am not getting the exact way doing so, please can anybody help me in developing that logic. Thank you in advance. …

---

## [Denormalize DB by adding redundant foreign keys to tables](https://www.ruby-forum.com/t/denormalize-db-by-adding-redundant-foreign-keys-to-tables/164442)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 2\
**Last updated:** [April 1, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/denormalize-db-by-adding-redundant-foreign-keys-to-tables/164442 "2009-04-01T15:25:52Z")

</div>

Hi, I have 3 models: User, Order(user\_id), Membership(order\_id). I’d like to know if a given user has a valid membership, i.e: the order.status == ‘paid’ and membership.expires\_at \> Time.now I could use a User has\_ma…

---

## [How do you handle SQlite3 files between branches in git](https://www.ruby-forum.com/t/how-do-you-handle-sqlite3-files-between-branches-in-git/164438)

<div class="topic-metadata">

**Author:** [@MartOn](https://www.ruby-forum.com/u/MartOn)\
**Replies:** 1\
**Last updated:** [April 1, 2009, 3:18pm UTC](https://www.ruby-forum.com/t/how-do-you-handle-sqlite3-files-between-branches-in-git/164438 "2009-04-01T15:18:10Z")

</div>

Hello I now this should maybe be put in a git group, but I guessing many rails developers (if using sqlite3) for development have a good idea… I have an application with different branches, so my SQlite3 file get dep…

---

## [Use fixtures within fixtures?](https://www.ruby-forum.com/t/use-fixtures-within-fixtures/164146)

<div class="topic-metadata">

**Author:** [@cojones](https://www.ruby-forum.com/u/cojones)\
**Replies:** 10\
**Last updated:** [April 1, 2009, 3:16pm UTC](https://www.ruby-forum.com/t/use-fixtures-within-fixtures/164146 "2009-04-01T15:16:39Z")

</div>

Heya, I’m using globalize2 and have following problem with my fixtures: categories.yml: one: parent\_id: two color: #ff00aa two: color: #00ff11 three: parent\_id: two color: #ab00ab category\_translations.yml on…

---

## [Create an apllication inside facebook using rfacebook](https://www.ruby-forum.com/t/create-an-apllication-inside-facebook-using-rfacebook/164446)

<div class="topic-metadata">

**Author:** [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Replies:** 0\
**Last updated:** [April 1, 2009, 3:11pm UTC](https://www.ruby-forum.com/t/create-an-apllication-inside-facebook-using-rfacebook/164446 "2009-04-01T15:11:49Z")

</div>

Hi, I want to create an application inside facebook using rfacebook plugin. I have an experience of developing an external application which is interacting with the facebook and retrieving an information from it. I h…

---

## [Does ARMailer work in Rails 2.3 ?!](https://www.ruby-forum.com/t/does-armailer-work-in-rails-2-3/164368)

<div class="topic-metadata">

**Author:** [@tharrisx](https://www.ruby-forum.com/u/tharrisx)\
**Replies:** 9\
**Last updated:** [April 1, 2009, 2:53pm UTC](https://www.ruby-forum.com/t/does-armailer-work-in-rails-2-3/164368 "2009-04-01T14:53:21Z")

</div>

Hi, can anyone tell me : a) IF ARMailer works in Rails 2.3, and b) HOW to make it work? (Anything special to do or to think about?) -\> I have recently upgraded to Rails 2.3 and ARMailer stopped saving the emails to …

---

## [Hpricot won't scrape! (newb question)](https://www.ruby-forum.com/t/hpricot-wont-scrape-newb-question/164429)

<div class="topic-metadata">

**Author:** [@jrgoodner](https://www.ruby-forum.com/u/jrgoodner)\
**Replies:** 2\
**Last updated:** [April 1, 2009, 2:50pm UTC](https://www.ruby-forum.com/t/hpricot-wont-scrape-newb-question/164429 "2009-04-01T14:50:50Z")

</div>

Hey all! Just to preface, I am fairly new to RoR, and brand new to using hpricot. I am using the following code to scrape this xpath: “/html/body/div/div\[5\]/div/div\[2\]/div\[2\]/div\[2\]” from this url: “http://www.grea…

---

## [Creating has\_one models on save](https://www.ruby-forum.com/t/creating-has-one-models-on-save/164411)

<div class="topic-metadata">

**Author:** [@novaruby](https://www.ruby-forum.com/u/novaruby)\
**Replies:** 3\
**Last updated:** [April 1, 2009, 2:48pm UTC](https://www.ruby-forum.com/t/creating-has-one-models-on-save/164411 "2009-04-01T14:48:29Z")

</div>

What is the best practice to create has\_one (always exist) model relationships when creating the parent model. eg: class User \< ActiveRecord::Base has\_one :balance end class Balance \< ActiveRecord::Base belongs\_to…

---

## [OOP road block](https://www.ruby-forum.com/t/oop-road-block/164423)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 3\
**Last updated:** [April 1, 2009, 2:35pm UTC](https://www.ruby-forum.com/t/oop-road-block/164423 "2009-04-01T14:35:37Z")

</div>

Hi, I recently performed a major rewrite of my app to provide better encapsulation and more descriptive behavior for my models. But I also encountered very often a dilemma: does the logic I am writing belong to the c…

---

## [Log in and log out help](https://www.ruby-forum.com/t/log-in-and-log-out-help/164428)

<div class="topic-metadata">

**Author:** [@vimal1](https://www.ruby-forum.com/u/vimal1)\
**Replies:** 1\
**Last updated:** [April 1, 2009, 12:09pm UTC](https://www.ruby-forum.com/t/log-in-and-log-out-help/164428 "2009-04-01T12:09:56Z")

</div>

Hey, i was wondering if anyone could tell me how to do a login and logout page for a rails application? thanks

---

## [Storing information in session in rails - How to?](https://www.ruby-forum.com/t/storing-information-in-session-in-rails-how-to/164418)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [April 1, 2009, 12:03pm UTC](https://www.ruby-forum.com/t/storing-information-in-session-in-rails-how-to/164418 "2009-04-01T12:03:29Z")

</div>

Hi, I am a rails newbie and i need to store some info. in the session, so that i can use it in any controllers when needed. in config/enviroment.rb, i have, config.action\_controller.session = { :session\_key =\> ‘\_xxx\_…

---

## [How to grant table in rails](https://www.ruby-forum.com/t/how-to-grant-table-in-rails/164424)

<div class="topic-metadata">

**Author:** [@ple\_mazako](https://www.ruby-forum.com/u/ple_mazako)\
**Replies:** 2\
**Last updated:** [April 1, 2009, 11:07am UTC](https://www.ruby-forum.com/t/how-to-grant-table-in-rails/164424 "2009-04-01T11:07:02Z")

</div>

i want to know about grant table in rails. Have anyone helps me to give idea about grant table in rails? thank you. -\_\_-

---

## [Application without database.yml](https://www.ruby-forum.com/t/application-without-database-yml/164343)

<div class="topic-metadata">

**Author:** [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Replies:** 9\
**Last updated:** [April 1, 2009, 10:33am UTC](https://www.ruby-forum.com/t/application-without-database-yml/164343 "2009-04-01T10:33:32Z")

</div>

Hi, I have created one application. In that application I am not using any database. Whenever I starting rails server it is giving me an error for configuration of database.yml. What should I do for this? Thanks, …

---

## [Workling - Queue List](https://www.ruby-forum.com/t/workling-queue-list/164330)

<div class="topic-metadata">

**Author:** [@manuel](https://www.ruby-forum.com/u/manuel)\
**Replies:** 2\
**Last updated:** [April 1, 2009, 10:31am UTC](https://www.ruby-forum.com/t/workling-queue-list/164330 "2009-04-01T10:31:46Z")

</div>

Hi there, I’m working on a Conversion Machine for Videos. I use workling and starling. My problem is that I can’t find a way to show me how many jobs I have in each worker queue and maybe the possiblity to delete a j…

---

## [Models relations definition](https://www.ruby-forum.com/t/models-relations-definition/164412)

<div class="topic-metadata">

**Author:** [@CiriusMex](https://www.ruby-forum.com/u/CiriusMex)\
**Replies:** 2\
**Last updated:** [April 1, 2009, 10:11am UTC](https://www.ruby-forum.com/t/models-relations-definition/164412 "2009-04-01T10:11:44Z")

</div>

Hi, got an issue here ^^ Ok so my problem is that I have a table named “users\_accounts” and another one named “accounts\_messages”. As you will guess, accounts\_messages is a list of messages that “users\_accounts” can i…

---

## [How create new Rails with old version?](https://www.ruby-forum.com/t/how-create-new-rails-with-old-version/164416)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 2\
**Last updated:** [April 1, 2009, 8:59am UTC](https://www.ruby-forum.com/t/how-create-new-rails-with-old-version/164416 "2009-04-01T08:59:02Z")

</div>

Been googling, can’t find an answer… I have 1.2.6 installed (part of OS X Leopard), and I have installed 2.3.2. Running the two versions using the config environment.rb I get, freezing I get. I have some legacy 1.2.…

---

## [What is the best way to update more that 1 div in AJAX call](https://www.ruby-forum.com/t/what-is-the-best-way-to-update-more-that-1-div-in-ajax-call/164417)

<div class="topic-metadata">

**Author:** [@tkbeili](https://www.ruby-forum.com/u/tkbeili)\
**Replies:** 3\
**Last updated:** [April 1, 2009, 8:20am UTC](https://www.ruby-forum.com/t/what-is-the-best-way-to-update-more-that-1-div-in-ajax-call/164417 "2009-04-01T08:20:32Z")

</div>

Hello, I want to update more than 1 div inside the page with 1 AJAX call. I noticed you can only render 1 at a time in Rails methods and also you can only set 1 update: inside form\_remote\_for. What is the best way to…

---

## [Getting a Time Zone abbreviation from the full name?](https://www.ruby-forum.com/t/getting-a-time-zone-abbreviation-from-the-full-name/163482)

<div class="topic-metadata">

**Author:** [@Danimal](https://www.ruby-forum.com/u/Danimal)\
**Replies:** 1\
**Last updated:** [April 1, 2009, 5:52am UTC](https://www.ruby-forum.com/t/getting-a-time-zone-abbreviation-from-the-full-name/163482 "2009-04-01T05:52:47Z")

</div>

There’s got to be an easier way… I am building an event manager and as part of it, the user selects the time zone of the event from a drop-down list using the time\_zone\_select helper. This is stored in the events tabl…

---

## [TimeWithZone seems in rails 2.3 seems broken...is this the correct behavior?](https://www.ruby-forum.com/t/timewithzone-seems-in-rails-2-3-seems-broken-is-this-the-correct-behavior/164367)

<div class="topic-metadata">

**Author:** [@suer\_rick](https://www.ruby-forum.com/u/suer_rick)\
**Replies:** 2\
**Last updated:** [April 1, 2009, 5:38am UTC](https://www.ruby-forum.com/t/timewithzone-seems-in-rails-2-3-seems-broken-is-this-the-correct-behavior/164367 "2009-04-01T05:38:10Z")

</div>

My environment.rb contains config.time\_zone = ‘UTC’ If my understanding is correct, rails should assume time values coming from the database are UTC, and since config.time\_zone is set to ‘UTC’, it should not try to c…

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

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