# Rails

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

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

---

## [PHP -\> Ruby On Rails: advice wanted on customer management ( dns / email )](https://www.ruby-forum.com/t/php-ruby-on-rails-advice-wanted-on-customer-management-dns-email/183161)

<div class="topic-metadata">

**Author:** [@rubybox](https://www.ruby-forum.com/u/rubybox)\
**Replies:** 5\
**Last updated:** [February 9, 2010, 2:10pm UTC](https://www.ruby-forum.com/t/php-ruby-on-rails-advice-wanted-on-customer-management-dns-email/183161 "2010-02-09T14:10:43Z")

</div>

Ive searched this group and google Groups and hope this topic will get approved since ruby on rails tak seems the only place I could ask. CURRENT SITUATION: Currently Im using a Plesk, PHP, Ruby Enterprise VPS with t…

---

## [How to call javascript function in A site?](https://www.ruby-forum.com/t/how-to-call-javascript-function-in-a-site/183048)

<div class="topic-metadata">

**Author:** [@junyan](https://www.ruby-forum.com/u/junyan)\
**Replies:** 3\
**Last updated:** [February 9, 2010, 1:13pm UTC](https://www.ruby-forum.com/t/how-to-call-javascript-function-in-a-site/183048 "2010-02-09T13:13:55Z")

</div>

Hello, rubiers. now, I wanna call some functions in A site that was already implemented by another company. ( I don’t know internal… just nothing…) anyway, there are several javascript functions in there what I want …

---

## [Using YM4R/GM plugin in rails](https://www.ruby-forum.com/t/using-ym4r-gm-plugin-in-rails/183168)

<div class="topic-metadata">

**Author:** [@senling](https://www.ruby-forum.com/u/senling)\
**Replies:** 0\
**Last updated:** [February 9, 2010, 12:42pm UTC](https://www.ruby-forum.com/t/using-ym4r-gm-plugin-in-rails/183168 "2010-02-09T12:42:19Z")

</div>

I have installed YM4R/GM plugin. I’m using Rails 2.3.5. After installing, i could’nt start my application. it shows, Application error Rails application failed to start properly.

---

## [Dynamic drop downs for product search](https://www.ruby-forum.com/t/dynamic-drop-downs-for-product-search/182453)

<div class="topic-metadata">

**Author:** [@brianp](https://www.ruby-forum.com/u/brianp)\
**Replies:** 2\
**Last updated:** [February 9, 2010, 10:17am UTC](https://www.ruby-forum.com/t/dynamic-drop-downs-for-product-search/182453 "2010-02-09T10:17:10Z")

</div>

Hey Everyone, I’m about to embark on having a search function for the products on my app via dynamic dropdowns. A dropdown for make would only leave AVAILABLE models of that make. selecting year would only leave avai…

---

## [Same partial different results](https://www.ruby-forum.com/t/same-partial-different-results/183052)

<div class="topic-metadata">

**Author:** [@brianp](https://www.ruby-forum.com/u/brianp)\
**Replies:** 4\
**Last updated:** [February 9, 2010, 9:39am UTC](https://www.ruby-forum.com/t/same-partial-different-results/183052 "2010-02-09T09:39:07Z")

</div>

Hey everyone. I’m using a partial 3 times in my applications.html.erb file. When the index is loaded everything works exactly like it should. (the partial contains a collection\_select with prompts). If i goto the show…

---

## [Error in Bundler with PostgreSQL and Rails3](https://www.ruby-forum.com/t/error-in-bundler-with-postgresql-and-rails3/183104)

<div class="topic-metadata">

**Author:** [@bluetrust](https://www.ruby-forum.com/u/bluetrust)\
**Replies:** 3\
**Last updated:** [February 9, 2010, 1:44am UTC](https://www.ruby-forum.com/t/error-in-bundler-with-postgresql-and-rails3/183104 "2010-02-09T01:44:13Z")

</div>

Hi there, I’m trying to get up and running with PostgreSQL 8.4 and the Rails 3 beta. I’m running on Ruby 1.8.7 via RVM and have installed the ‘pg’ gem. While I’ve been able to get the pg gem to successfully build, …

---

## [Recommending friends, using RoR's Mailer](https://www.ruby-forum.com/t/recommending-friends-using-rors-mailer/183149)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 0\
**Last updated:** [February 9, 2010, 12:28am UTC](https://www.ruby-forum.com/t/recommending-friends-using-rors-mailer/183149 "2010-02-09T00:28:19Z")

</div>

Hi there, I wan tto be able to allow users to invite friends… The action below is exactly the same as the code used to send a user their username. Only difference is, I need to change the ‘‘user = User.find\_by\_email(e…

---

## [Page generation time](https://www.ruby-forum.com/t/page-generation-time/146231)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 3\
**Last updated:** [February 8, 2010, 11:23pm UTC](https://www.ruby-forum.com/t/page-generation-time/146231 "2010-02-08T23:23:56Z")

</div>

Hi everybody, Is there a simple way to get the page generation time and display it in a view? I believe so because this information is published in the terminal (in development mode). Thanks, Dendicus

---

## [Checking for nil](https://www.ruby-forum.com/t/checking-for-nil/183132)

<div class="topic-metadata">

**Author:** [@ketema](https://www.ruby-forum.com/u/ketema)\
**Replies:** 7\
**Last updated:** [February 8, 2010, 11:10pm UTC](https://www.ruby-forum.com/t/checking-for-nil/183132 "2010-02-08T23:10:27Z")

</div>

HI, I have inherited support on a rails website and I am encountering the following problem: \<% if @request.env\[‘HTTP\_USER\_AGENT’\].downcase.index(‘msie 6.0’)!=nil %\> \<%= stylesheet\_link\_tag ‘ie6’ %\> \<% elsif @reques…

---

## [ActiveModel callbacks](https://www.ruby-forum.com/t/activemodel-callbacks/183141)

<div class="topic-metadata">

**Author:** [@robkuz](https://www.ruby-forum.com/u/robkuz)\
**Replies:** 0\
**Last updated:** [February 8, 2010, 10:12pm UTC](https://www.ruby-forum.com/t/activemodel-callbacks/183141 "2010-02-08T22:12:59Z")

</div>

Hi, I’ve set up several ActiveModel callbacks an run them via \_run\_whatever\_callbacks do … some code end Now i would like to run the before\_whatever and after\_whatever independently, aka \_run\_before\_whatever\_callb…

---

## [Can use use observe\_field with a 3rd party server?](https://www.ruby-forum.com/t/can-use-use-observe-field-with-a-3rd-party-server/183125)

<div class="topic-metadata">

**Author:** [@dino\_d](https://www.ruby-forum.com/u/dino_d)\
**Replies:** 1\
**Last updated:** [February 8, 2010, 9:36pm UTC](https://www.ruby-forum.com/t/can-use-use-observe-field-with-a-3rd-party-server/183125 "2010-02-08T21:36:11Z")

</div>

Hi- I’m trying to implement an auto-complete using Yahoo’s autocomplete server, which basically suggests search completions: http://ff.search.yahoo.com/gossip?output=fxjson&command={your searchterms}’ if you want to…

---

## [Warbler question for deployment on Tomcat](https://www.ruby-forum.com/t/warbler-question-for-deployment-on-tomcat/183049)

<div class="topic-metadata">

**Author:** [@MichaelF](https://www.ruby-forum.com/u/MichaelF)\
**Replies:** 1\
**Last updated:** [February 8, 2010, 7:39pm UTC](https://www.ruby-forum.com/t/warbler-question-for-deployment-on-tomcat/183049 "2010-02-08T19:39:40Z")

</div>

I am using Rail 2.2.2 with JRuby 1.4 to deploy to a Tomcat 6 server. In looking through the Warbler documentation I am stumped on the proper settings for a couple of parameters. In my warble.rb file I see lines for: c…

---

## [How to write an outgoing URL call and get the XML response?](https://www.ruby-forum.com/t/how-to-write-an-outgoing-url-call-and-get-the-xml-response/183122)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 0\
**Last updated:** [February 8, 2010, 5:43pm UTC](https://www.ruby-forum.com/t/how-to-write-an-outgoing-url-call-and-get-the-xml-response/183122 "2010-02-08T17:43:47Z")

</div>

I have to write a call from my rails app to an external URL : http://999:removed\_email\_address@domain.invalid/apis/media.php?action=createCollection&collection\_id=123 then I should get back an XML answer , to be parsed…

---

## [Conditions in form\_for](https://www.ruby-forum.com/t/conditions-in-form-for/183120)

<div class="topic-metadata">

**Author:** [@hemantborole](https://www.ruby-forum.com/u/hemantborole)\
**Replies:** 2\
**Last updated:** [February 8, 2010, 4:37pm UTC](https://www.ruby-forum.com/t/conditions-in-form-for/183120 "2010-02-08T16:37:49Z")

</div>

Hey guys, How can we give two form\_for based on conditions? I mean like this:- unless condition1.nil? form\_for :abc, :url =\> { :action =\> “123” } do |f| else form\_for :abc, :url =\> { :action =\> “234” } do |f| end T…

---

## [Page view counter](https://www.ruby-forum.com/t/page-view-counter/183034)

<div class="topic-metadata">

**Author:** [@seSSSSor\_tower](https://www.ruby-forum.com/u/seSSSSor_tower)\
**Replies:** 7\
**Last updated:** [February 8, 2010, 4:31pm UTC](https://www.ruby-forum.com/t/page-view-counter/183034 "2010-02-08T16:31:48Z")

</div>

Hi, Anyone can point me in the right direction… I have a very simple rails app and I want to do a page view counter for it so that I can display how many people have viewed a given page on it since day one and also i…

---

## [Polymorphic association question](https://www.ruby-forum.com/t/polymorphic-association-question/183098)

<div class="topic-metadata">

**Author:** [@df-sean](https://www.ruby-forum.com/u/df-sean)\
**Replies:** 1\
**Last updated:** [February 8, 2010, 3:51pm UTC](https://www.ruby-forum.com/t/polymorphic-association-question/183098 "2010-02-08T15:51:59Z")

</div>

This is an example from the geokit plugin which I am trying to reproduce. class Location \< ActiveRecord::Base belongs\_to :locatable, :polymorphic =\> true acts\_as\_mappable end class Company \< ActiveRecord::Base has…

---

## [What happened to CoC?](https://www.ruby-forum.com/t/what-happened-to-coc/183096)

<div class="topic-metadata">

**Author:** [@tutiplain](https://www.ruby-forum.com/u/tutiplain)\
**Replies:** 7\
**Last updated:** [February 8, 2010, 3:23pm UTC](https://www.ruby-forum.com/t/what-happened-to-coc/183096 "2010-02-08T15:23:52Z")

</div>

Hi everyone, First I want to begin by saying I am a total newbie when it comes to Rails. I am reading Obie F.'s The Rails Way, but I have a question about something he says. He says that if I have a controller like…

---

## [Rails 3 beta: "bundle install" not installing to the GEM\_HOME](https://www.ruby-forum.com/t/rails-3-beta-bundle-install-not-installing-to-the-gem-home/183099)

<div class="topic-metadata">

**Author:** [@gavvin](https://www.ruby-forum.com/u/gavvin)\
**Replies:** 4\
**Last updated:** [February 8, 2010, 3:18pm UTC](https://www.ruby-forum.com/t/rails-3-beta-bundle-install-not-installing-to-the-gem-home/183099 "2010-02-08T15:18:01Z")

</div>

I’ve tried everything I can think of, but “bundle install” is still installing all new gems into /User/.gems. My GEM\_HOME is /usr/local/ lib/ruby/gems/. Is this a bug?

---

## [Model using STI new function only working partially](https://www.ruby-forum.com/t/model-using-sti-new-function-only-working-partially/183094)

<div class="topic-metadata">

**Author:** [@Solly](https://www.ruby-forum.com/u/Solly)\
**Replies:** 1\
**Last updated:** [February 8, 2010, 3:16pm UTC](https://www.ruby-forum.com/t/model-using-sti-new-function-only-working-partially/183094 "2010-02-08T15:16:15Z")

</div>

Hi, I have an application using STI on a model named Publisher. Publisher uses STI via a column named “service”. When I call p = Publisher.new(…, :service =\> “TwitterPublisher”) the service does not get assigned, yet…

---

## [Akshay Nawale wants to chat](https://www.ruby-forum.com/t/akshay-nawale-wants-to-chat/183116)

<div class="topic-metadata">

**Author:** [@aksnavs](https://www.ruby-forum.com/u/aksnavs)\
**Replies:** 0\
**Last updated:** [February 8, 2010, 1:39pm UTC](https://www.ruby-forum.com/t/akshay-nawale-wants-to-chat/183116 "2010-02-08T13:39:06Z")

</div>

Akshay N. wants to stay in better touch using some of Google’s coolest new products. If you already have Gmail or Google Talk, visit: You’ll need to click this link to be able to chat with Akshay N… To get Gmail -…

---

## [Collection grouping/sorting question](https://www.ruby-forum.com/t/collection-grouping-sorting-question/183112)

<div class="topic-metadata">

**Author:** [@eggie5](https://www.ruby-forum.com/u/eggie5)\
**Replies:** 0\
**Last updated:** [February 8, 2010, 1:02pm UTC](https://www.ruby-forum.com/t/collection-grouping-sorting-question/183112 "2010-02-08T13:02:49Z")

</div>

@coll= \[{:period=\>{:people=\>\[#\], :date=\>Sun, 08 Feb 2009}}, {:period=\>{:people=\>\[#, #, #, #, #, #, #, #, #, #, #, #, #, #, #, #, #, #\], :date=\>Sun, 15 Feb 2009}}, {:period=\>{:people=\>\[#, #, #, #, #, #, #, #, #, #, #, …

---

## [Uploading and Mailing documents](https://www.ruby-forum.com/t/uploading-and-mailing-documents/183109)

<div class="topic-metadata">

**Author:** [@mercurius](https://www.ruby-forum.com/u/mercurius)\
**Replies:** 4\
**Last updated:** [February 8, 2010, 12:27pm UTC](https://www.ruby-forum.com/t/uploading-and-mailing-documents/183109 "2010-02-08T12:27:13Z")

</div>

What I want is a document uploader on the front end so my visitors can upload their CV or a completed application form and then submit this document. On submission, an email will be sent with the document attached to …

---

## [Multiple dependencies on Deletions](https://www.ruby-forum.com/t/multiple-dependencies-on-deletions/183093)

<div class="topic-metadata">

**Author:** [@jeff\_aigner](https://www.ruby-forum.com/u/jeff_aigner)\
**Replies:** 1\
**Last updated:** [February 8, 2010, 11:41am UTC](https://www.ruby-forum.com/t/multiple-dependencies-on-deletions/183093 "2010-02-08T11:41:15Z")

</div>

I’m having an interesting issue in terms of dependencies. I have a truck record, which has\_one employee. Then I have a master record, which has\_many truck records. The problem is this: If there exists a master record,…

---

## [Where to put large application controller code](https://www.ruby-forum.com/t/where-to-put-large-application-controller-code/183064)

<div class="topic-metadata">

**Author:** [@pytlik](https://www.ruby-forum.com/u/pytlik)\
**Replies:** 8\
**Last updated:** [February 8, 2010, 9:07am UTC](https://www.ruby-forum.com/t/where-to-put-large-application-controller-code/183064 "2010-02-08T09:07:29Z")

</div>

Hello, A common experience: You start to develop a new rails application. When controller method code is growing, you will put parts of its code under the private section at the end of the controller, because you want…

---

## [Parallel Payment Conflict Resolution in Paypal](https://www.ruby-forum.com/t/parallel-payment-conflict-resolution-in-paypal/183103)

<div class="topic-metadata">

**Author:** [@saurabhpurnaye](https://www.ruby-forum.com/u/saurabhpurnaye)\
**Replies:** 1\
**Last updated:** [February 8, 2010, 9:04am UTC](https://www.ruby-forum.com/t/parallel-payment-conflict-resolution-in-paypal/183103 "2010-02-08T09:04:34Z")

</div>

I want to use the paypal adaptive parallel payment API with ROR, please help me out regarding the following query. Query: Suppose there is a Buyer say B1 bought products, of different sellers say S1, S2, S3, from htt…

---

## [Getting going](https://www.ruby-forum.com/t/getting-going/80653)

<div class="topic-metadata">

**Author:** [@bjorn](https://www.ruby-forum.com/u/bjorn)\
**Replies:** 8\
**Last updated:** [February 8, 2010, 7:10am UTC](https://www.ruby-forum.com/t/getting-going/80653 "2010-02-08T07:10:04Z")

</div>

Hi, I’m just getting going with RoR and thus far am enjoying it very much. There’s just something oddly satisfying about it. That being said I do find myself tripping over the little things…like NIL. I’ve been doing a…

---

## [Should I be using observers for an enquiry?](https://www.ruby-forum.com/t/should-i-be-using-observers-for-an-enquiry/183100)

<div class="topic-metadata">

**Author:** [@ct9a](https://www.ruby-forum.com/u/ct9a)\
**Replies:** 1\
**Last updated:** [February 8, 2010, 6:06am UTC](https://www.ruby-forum.com/t/should-i-be-using-observers-for-an-enquiry/183100 "2010-02-08T06:06:39Z")

</div>

hi there, I recently used observers in other parts of my application and really like how neat it is (ie. controllers don’t have to be carrying extra notification logic). Now, I have another functionality for which us…

---

## [500 Internal Error](https://www.ruby-forum.com/t/500-internal-error/183025)

<div class="topic-metadata">

**Author:** [@nbsimsah](https://www.ruby-forum.com/u/nbsimsah)\
**Replies:** 5\
**Last updated:** [February 8, 2010, 2:24am UTC](https://www.ruby-forum.com/t/500-internal-error/183025 "2010-02-08T02:24:13Z")

</div>

I have on ubuntu a digital library application Kete which gives in the log/production.log: Please help, thnx. /!\\ FAILSAFE /!\\ Fri Feb 05 19:05:08 +0200 2010 Status: 500 Internal Server Error No connection to serve…

---

## [Dry collections in other models](https://www.ruby-forum.com/t/dry-collections-in-other-models/183029)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 4\
**Last updated:** [February 8, 2010, 1:08am UTC](https://www.ruby-forum.com/t/dry-collections-in-other-models/183029 "2010-02-08T01:08:07Z")

</div>

Starting over, mail program sent prematurely… 2 models, Salons, Reviews In ApplicationHelper.rb… SALON\_STATES = Salon.find(:all, :group =\> ‘state’, :select =\> ‘state’) So in any view, I can collect… \<%= options = \[\[…

---

## [Sequential steps in rails](https://www.ruby-forum.com/t/sequential-steps-in-rails/183054)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 3\
**Last updated:** [February 8, 2010, 12:16am UTC](https://www.ruby-forum.com/t/sequential-steps-in-rails/183054 "2010-02-08T00:16:37Z")

</div>

A lot of times websites simulate wizards where you enter some information and click the next button to move to the next step before completing the form. I’m looking at some code that attempts to achieve this, but it h…

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

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