# Rails

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

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

---

## [Login chooses database](https://www.ruby-forum.com/t/login-chooses-database/164111)

<div class="topic-metadata">

**Author:** [@rike](https://www.ruby-forum.com/u/rike)\
**Replies:** 3\
**Last updated:** [March 29, 2009, 12:30am UTC](https://www.ruby-forum.com/t/login-chooses-database/164111 "2009-03-29T00:30:00Z")

</div>

Hi, I just finishes my first RoR application and I’m happy that nearly every problem I had was solved. But now I need your help. The problem is that an other organisation wants to use my application as well. The serve…

---

## [Country\_select in Rails 2.3.2](https://www.ruby-forum.com/t/country-select-in-rails-2-3-2/164151)

<div class="topic-metadata">

**Author:** [@tkbeili](https://www.ruby-forum.com/u/tkbeili)\
**Replies:** 4\
**Last updated:** [March 28, 2009, 10:18pm UTC](https://www.ruby-forum.com/t/country-select-in-rails-2-3-2/164151 "2009-03-28T22:18:41Z")

</div>

Hello, I have this code for country\_select \<%= country\_select :user, :country, nil, {:include\_blank=\> true}, {:class=\>“topicField”} %\> Used to work for Rails 2.0.2 but as I’m trying to upgrade to Rails 2.3.2 I’m get…

---

## [Rails 2.3.2 issue with loading global constants file](https://www.ruby-forum.com/t/rails-2-3-2-issue-with-loading-global-constants-file/164158)

<div class="topic-metadata">

**Author:** [@tam](https://www.ruby-forum.com/u/tam)\
**Replies:** 0\
**Last updated:** [March 28, 2009, 9:40pm UTC](https://www.ruby-forum.com/t/rails-2-3-2-issue-with-loading-global-constants-file/164158 "2009-03-28T21:40:32Z")

</div>

Hello, I’m trying to upgrade to Rails 2.3.2. I have been using global constants file: config/global\_constants.conf.rb which I would use this way in controller: require ‘global\_constants.conf’ In Rails 2.3.2 I’m gett…

---

## [Rails rdoc compilation](https://www.ruby-forum.com/t/rails-rdoc-compilation/164157)

<div class="topic-metadata">

**Author:** [@html-kurs](https://www.ruby-forum.com/u/html-kurs)\
**Replies:** 0\
**Last updated:** [March 28, 2009, 9:22pm UTC](https://www.ruby-forum.com/t/rails-rdoc-compilation/164157 "2009-03-28T21:22:21Z")

</div>

Hi, I just pushed a compilation of several often used ajax-rdocs to github. So you can access it offline and in a similar way. Maybe someone else would use it, too. You can find it here: Bye, Martin

---

## [Rails 2.3.2 issue with loading global constants file](https://www.ruby-forum.com/t/rails-2-3-2-issue-with-loading-global-constants-file/164141)

<div class="topic-metadata">

**Author:** [@tkbeili](https://www.ruby-forum.com/u/tkbeili)\
**Replies:** 1\
**Last updated:** [March 28, 2009, 7:50pm UTC](https://www.ruby-forum.com/t/rails-2-3-2-issue-with-loading-global-constants-file/164141 "2009-03-28T19:50:25Z")

</div>

Hello, I’m trying to upgrade to Rails 2.3.2. I have been using global constants file: config/global\_constants.conf.rb which I would use this way in controller: require ‘global\_constants.conf’ In Rails 2.3.2 I’m gett…

---

## [TimeZone confusion](https://www.ruby-forum.com/t/timezone-confusion/164115)

<div class="topic-metadata">

**Author:** [@suer\_rick](https://www.ruby-forum.com/u/suer_rick)\
**Replies:** 3\
**Last updated:** [March 28, 2009, 7:49pm UTC](https://www.ruby-forum.com/t/timezone-confusion/164115 "2009-03-28T19:49:10Z")

</div>

I’m using rails 2.3.2. I have Date/Time data stored in a SQL Server database. All values are UTC (although the database just stores the time, not the zone). All of my computers are in the America/New York time zone. …

---

## [Message Queue for Rails?](https://www.ruby-forum.com/t/message-queue-for-rails/164113)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 4\
**Last updated:** [March 28, 2009, 7:44pm UTC](https://www.ruby-forum.com/t/message-queue-for-rails/164113 "2009-03-28T19:44:11Z")

</div>

So, MQ was an active area for a while with several contenders like AP4R. Many libs seemed focused on triggering long or scheduled processes, and not really for connecting many small apps together to build responses fo…

---

## [Script/server error on Mac OS X](https://www.ruby-forum.com/t/script-server-error-on-mac-os-x/163989)

<div class="topic-metadata">

**Author:** [@bernardub](https://www.ruby-forum.com/u/bernardub)\
**Replies:** 3\
**Last updated:** [March 28, 2009, 7:32pm UTC](https://www.ruby-forum.com/t/script-server-error-on-mac-os-x/163989 "2009-03-28T19:32:25Z")

</div>

Hello all, Recently, my apps stopped functionning properly on my dev machine running Mac OS 10.4.11 Both script/server and script/console commands return this : dub-macbook:~/Sites/contacts dub$ script/server dyld: …

---

## [How do you protect files in RoR](https://www.ruby-forum.com/t/how-do-you-protect-files-in-ror/164078)

<div class="topic-metadata">

**Author:** [@milandobrota](https://www.ruby-forum.com/u/milandobrota)\
**Replies:** 3\
**Last updated:** [March 28, 2009, 6:23pm UTC](https://www.ruby-forum.com/t/how-do-you-protect-files-in-ror/164078 "2009-03-28T18:23:01Z")

</div>

I’m mostly interested in mp3 files. I’m supposed to build a music store app. Where should you keep files (s3?). And what’s more important how do you protect other people from using the same link? I guess you have to g…

---

## [Baffled on forms and controllers!](https://www.ruby-forum.com/t/baffled-on-forms-and-controllers/164144)

<div class="topic-metadata">

**Author:** [@dnstevenson](https://www.ruby-forum.com/u/dnstevenson)\
**Replies:** 1\
**Last updated:** [March 28, 2009, 6:19pm UTC](https://www.ruby-forum.com/t/baffled-on-forms-and-controllers/164144 "2009-03-28T18:19:17Z")

</div>

Hi Chaps, Having a little issue with my date filter business here, ive got a date\_filter (something i added to my form builder - which works by the way) in my page, and I want to use it to filter my @articles. in my …

---

## [Rails's models diagrams](https://www.ruby-forum.com/t/railss-models-diagrams/163393)

<div class="topic-metadata">

**Author:** [@futadict](https://www.ruby-forum.com/u/futadict)\
**Replies:** 6\
**Last updated:** [March 28, 2009, 5:59pm UTC](https://www.ruby-forum.com/t/railss-models-diagrams/163393 "2009-03-28T17:59:33Z")

</div>

hi i’m a newbie ror programmer and in my job demand the rails’s models diagrams to add this plataform to the daily work, i still havent found anything so if someone could be so nice to send me one ill be very thanful– …

---

## [Content Management the Rails way](https://www.ruby-forum.com/t/content-management-the-rails-way/164058)

<div class="topic-metadata">

**Author:** [@niczm25](https://www.ruby-forum.com/u/niczm25)\
**Replies:** 2\
**Last updated:** [March 28, 2009, 5:54pm UTC](https://www.ruby-forum.com/t/content-management-the-rails-way/164058 "2009-03-28T17:54:59Z")

</div>

Hi guys, I’m currently looking into the CMS’s we use at the moment in house with an aim to replace them with a Rails / Ruby based system to match our application stacks (we do 50/50 app / CMS development). At the mo…

---

## [Router :requirements](https://www.ruby-forum.com/t/router-requirements/164054)

<div class="topic-metadata">

**Author:** [@giga](https://www.ruby-forum.com/u/giga)\
**Replies:** 2\
**Last updated:** [March 28, 2009, 5:20pm UTC](https://www.ruby-forum.com/t/router-requirements/164054 "2009-03-28T17:20:14Z")

</div>

How to make “:requirements” for router parameter that accept any string / any character? map.page ‘search/:word’, :controller =\> ‘search’, :requirements =\> { :word =\> ??? } By default it doesn’t accept “dot” in searc…

---

## [Git and vendor/rails](https://www.ruby-forum.com/t/git-and-vendor-rails/164132)

<div class="topic-metadata">

**Author:** [@colinloretz](https://www.ruby-forum.com/u/colinloretz)\
**Replies:** 2\
**Last updated:** [March 28, 2009, 4:29pm UTC](https://www.ruby-forum.com/t/git-and-vendor-rails/164132 "2009-03-28T16:29:50Z")

</div>

This is really a git question but the problem is with rails using git and others may have come across the problem. I have a branch on my application’s git repository with edge rails as a subproject checked out into v…

---

## [Adding automatic conditions to find method](https://www.ruby-forum.com/t/adding-automatic-conditions-to-find-method/164043)

<div class="topic-metadata">

**Author:** [@tkbeili](https://www.ruby-forum.com/u/tkbeili)\
**Replies:** 2\
**Last updated:** [March 28, 2009, 4:22pm UTC](https://www.ruby-forum.com/t/adding-automatic-conditions-to-find-method/164043 "2009-03-28T16:22:16Z")

</div>

Hello, Is there a way to add automatic condition to all active record find methods? I have an attribute in all my tables something like “effective\_end\_date” so that I don’t delete records but I keep them by setting …

---

## [Primary Key Field name - Problem](https://www.ruby-forum.com/t/primary-key-field-name-problem/164134)

<div class="topic-metadata">

**Author:** [@devirv](https://www.ruby-forum.com/u/devirv)\
**Replies:** 4\
**Last updated:** [March 28, 2009, 1:57pm UTC](https://www.ruby-forum.com/t/primary-key-field-name-problem/164134 "2009-03-28T13:57:35Z")

</div>

Dear All, Can i declare a primary key field name as us\_id? instead of Id. Regards Devi.R

---

## [.ago](https://www.ruby-forum.com/t/ago/164125)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 3\
**Last updated:** [March 28, 2009, 12:53pm UTC](https://www.ruby-forum.com/t/ago/164125 "2009-03-28T12:53:42Z")

</div>

Hi I have m = 1.year.ago.mon #This I get 3 But how to get name of month ie March from above? Thanks in advance Sijo

---

## [How to add onchanget event to select field](https://www.ruby-forum.com/t/how-to-add-onchanget-event-to-select-field/164127)

<div class="topic-metadata">

**Author:** [@ple\_mazako](https://www.ruby-forum.com/u/ple_mazako)\
**Replies:** 0\
**Last updated:** [March 28, 2009, 8:54am UTC](https://www.ruby-forum.com/t/how-to-add-onchanget-event-to-select-field/164127 "2009-03-28T08:54:53Z")

</div>

Hello, I would like to add javascript ‘onChange’ event handling for a select field, such as Modifiers \<%= form.select :s\_modify, (\[ “Frequency”, “Genotype”, “Germline”, “Group”, “Haplotype”, , “Metagenomic”, “P…

---

## [Error\_messages\_for source code for Rails 2.1.0?](https://www.ruby-forum.com/t/error-messages-for-source-code-for-rails-2-1-0/164122)

<div class="topic-metadata">

**Author:** [@ram](https://www.ruby-forum.com/u/ram)\
**Replies:** 1\
**Last updated:** [March 28, 2009, 7:24am UTC](https://www.ruby-forum.com/t/error-messages-for-source-code-for-rails-2-1-0/164122 "2009-03-28T07:24:55Z")

</div>

Hi all, Im looking to customize the validation error messages displayed by Rails. I took the code for error\_messages\_for from the Rails api docs and put it in my application\_helper to modify it but I get this error o…

---

## [How can I forward to different pages for different account](https://www.ruby-forum.com/t/how-can-i-forward-to-different-pages-for-different-account/163806)

<div class="topic-metadata">

**Author:** [@youhaodeyi](https://www.ruby-forum.com/u/youhaodeyi)\
**Replies:** 3\
**Last updated:** [March 28, 2009, 4:32am UTC](https://www.ruby-forum.com/t/how-can-i-forward-to-different-pages-for-different-account/163806 "2009-03-28T04:32:00Z")

</div>

My web site has a login feature. What I want to do is to design different page for different account. But in an action, I couldn’t use redirect\_to more than one time. I am looking for a way like this: if account == “a…

---

## [Fwd: Re: Message Queue for Rails?](https://www.ruby-forum.com/t/fwd-re-message-queue-for-rails/164119)

<div class="topic-metadata">

**Author:** [@Tyler\_MacDonald](https://www.ruby-forum.com/u/Tyler_MacDonald)\
**Replies:** 1\
**Last updated:** [March 28, 2009, 3:56am UTC](https://www.ruby-forum.com/t/fwd-re-message-queue-for-rails/164119 "2009-03-28T03:56:58Z")

</div>

http://home.gna.org/xmpp4r/ Use your favourite jabber/XMPP server and you immediately have a messaging system with authenticated entities, status updates, queueing of messages when a server is unavailable, etc. And …

---

## [Unsubscribe](https://www.ruby-forum.com/t/unsubscribe/164114)

<div class="topic-metadata">

**Author:** [@rustam](https://www.ruby-forum.com/u/rustam)\
**Replies:** 0\
**Last updated:** [March 28, 2009, 3:00am UTC](https://www.ruby-forum.com/t/unsubscribe/164114 "2009-03-28T03:00:02Z")

</div>

unsubscribe

---

## [Forms without a database backend](https://www.ruby-forum.com/t/forms-without-a-database-backend/164102)

<div class="topic-metadata">

**Author:** [@devbanana](https://www.ruby-forum.com/u/devbanana)\
**Replies:** 4\
**Last updated:** [March 28, 2009, 12:56am UTC](https://www.ruby-forum.com/t/forms-without-a-database-backend/164102 "2009-03-28T00:56:08Z")

</div>

Hi, I’m trying to create a simple contact form. It might use the database later for storing the messages, but not yet, I don’t think. However, I’d still like to be able to validate the fields easily, like you would w…

---

## [Prag Progs: "Developing Facebook Platform Applications with Rails" - any good?](https://www.ruby-forum.com/t/prag-progs-developing-facebook-platform-applications-with-rails-any-good/164062)

<div class="topic-metadata">

**Author:** [@itsastickup](https://www.ruby-forum.com/u/itsastickup)\
**Replies:** 5\
**Last updated:** [March 27, 2009, 11:34pm UTC](https://www.ruby-forum.com/t/prag-progs-developing-facebook-platform-applications-with-rails-any-good/164062 "2009-03-27T23:34:12Z")

</div>

Hi there, I found the first Pragmatic Programmer’s book from all those years ago very readable. But I don’t wish to blow a load of money on a bad book having made the presumption that the author of this book is as goo…

---

## [Loading classes](https://www.ruby-forum.com/t/loading-classes/164033)

<div class="topic-metadata">

**Author:** [@elioncho](https://www.ruby-forum.com/u/elioncho)\
**Replies:** 2\
**Last updated:** [March 27, 2009, 10:49pm UTC](https://www.ruby-forum.com/t/loading-classes/164033 "2009-03-27T22:49:06Z")

</div>

Hello guys, In my app users are able to upload their own classes into their public folder and execute certain code on them. I have this code to load the classes on their folder: Dir.glob(File.join(path,self.login,‘li…

---

## [ActionMailer multipart: html, plain and attachment?](https://www.ruby-forum.com/t/actionmailer-multipart-html-plain-and-attachment/164103)

<div class="topic-metadata">

**Author:** [@Danimal](https://www.ruby-forum.com/u/Danimal)\
**Replies:** 0\
**Last updated:** [March 27, 2009, 10:26pm UTC](https://www.ruby-forum.com/t/actionmailer-multipart-html-plain-and-attachment/164103 "2009-03-27T22:26:52Z")

</div>

Has anyone gotten emails to work where you specify the HTML and the plain text alternatives, but also include an attachment? Reason I’m asking: I’m sending out event notices, styled as HTML but with a plain text alter…

---

## [ActionMailer not send email and not generate error in log](https://www.ruby-forum.com/t/actionmailer-not-send-email-and-not-generate-error-in-log/164042)

<div class="topic-metadata">

**Author:** [@nuugii](https://www.ruby-forum.com/u/nuugii)\
**Replies:** 1\
**Last updated:** [March 27, 2009, 10:05pm UTC](https://www.ruby-forum.com/t/actionmailer-not-send-email-and-not-generate-error-in-log/164042 "2009-03-27T22:05:05Z")

</div>

hello guys… i was trying configuring SMTP with GMail n my rails appliaction. when running everything seems alright but the mails not getting delivered. also the logs show the action as successful . in environment.rb: …

---

## [How to pull down menu](https://www.ruby-forum.com/t/how-to-pull-down-menu/164035)

<div class="topic-metadata">

**Author:** [@haneef5k](https://www.ruby-forum.com/u/haneef5k)\
**Replies:** 1\
**Last updated:** [March 27, 2009, 9:42pm UTC](https://www.ruby-forum.com/t/how-to-pull-down-menu/164035 "2009-03-27T21:42:49Z")

</div>

hi, im new to Ror im learning by video tutorial .i wnt to knw how 2 add drop down menu…r pull down menu… it means ( select: collect.) pls help…me there s any web site…to learn tis…??

---

## [Where does rails loads paths?](https://www.ruby-forum.com/t/where-does-rails-loads-paths/164098)

<div class="topic-metadata">

**Author:** [@elioncho](https://www.ruby-forum.com/u/elioncho)\
**Replies:** 1\
**Last updated:** [March 27, 2009, 9:29pm UTC](https://www.ruby-forum.com/t/where-does-rails-loads-paths/164098 "2009-03-27T21:29:18Z")

</div>

Hi guys, I have this in my environment and was wondering the location of the code that actually loads this directory: config.load\_paths += %W( #{RAILS\_ROOT}/public/accounts/admin/lib ) I want to know the code that is…

---

## [Which plugin useful for facebook API?](https://www.ruby-forum.com/t/which-plugin-useful-for-facebook-api/163199)

<div class="topic-metadata">

**Author:** [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Replies:** 5\
**Last updated:** [March 27, 2009, 9:15pm UTC](https://www.ruby-forum.com/t/which-plugin-useful-for-facebook-api/163199 "2009-03-27T21:15:48Z")

</div>

Hi, I am integrating a facebook with my application. I am using plugin “rfacebook” for that. I read that there is also one more plugin is availabe which is “facebooker”. Which should I use? and why? Thanks, Tushar. …

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

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