# Rails

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

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

---

## [Sharing session between 1.2.3 and 2.3.2 apps](https://www.ruby-forum.com/t/sharing-session-between-1-2-3-and-2-3-2-apps/172088)

<div class="topic-metadata">

**Author:** [@chuvisco](https://www.ruby-forum.com/u/chuvisco)\
**Replies:** 2\
**Last updated:** [July 15, 2009, 2:03pm UTC](https://www.ruby-forum.com/t/sharing-session-between-1-2-3-and-2-3-2-apps/172088 "2009-07-15T14:03:26Z")

</div>

Hello, I have an old, huge, awful 1.2.3 rails application. I can’t upgrade it and I must integrate it with a new 2.3.2 rails app, by sharing sessions. I’ve tried a lot of things, dirty things indeed, but that didn’t w…

---

## [\[ActiveRecord::Base\].collect {|a,b| ...} weirdness](https://www.ruby-forum.com/t/activerecord-base-collect-a-b-weirdness/172091)

<div class="topic-metadata">

**Author:** [@niels\_g](https://www.ruby-forum.com/u/niels_g)\
**Replies:** 4\
**Last updated:** [July 15, 2009, 12:03pm UTC](https://www.ruby-forum.com/t/activerecord-base-collect-a-b-weirdness/172091 "2009-07-15T12:03:12Z")

</div>

Hey everyone. My mind has been boggled by an issue I ran into a few hours ago. I am completely lost as to why the following code behaves the way it does and would appreciate any hints from you guys. It would already b…

---

## [\[ANN\] Aloha on Rails, Hawaii Rails Conf, Last Day for Proposals](https://www.ruby-forum.com/t/ann-aloha-on-rails-hawaii-rails-conf-last-day-for-proposals/172135)

<div class="topic-metadata">

**Author:** [@seth](https://www.ruby-forum.com/u/seth)\
**Replies:** 0\
**Last updated:** [July 15, 2009, 11:36am UTC](https://www.ruby-forum.com/t/ann-aloha-on-rails-hawaii-rails-conf-last-day-for-proposals/172135 "2009-07-15T11:36:18Z")

</div>

Aloha! July 15th is the last day for proposals to present at Aloha on Rails, the Hawaii Ruby on Rails Conference. Join Chad F., Obie Fernandez, Gregg P., Jim W., Yehuda K., and many more at the premier destination e…

---

## [I have a big problem](https://www.ruby-forum.com/t/i-have-a-big-problem/172118)

<div class="topic-metadata">

**Author:** [@adsouzp](https://www.ruby-forum.com/u/adsouzp)\
**Replies:** 6\
**Last updated:** [July 15, 2009, 10:55am UTC](https://www.ruby-forum.com/t/i-have-a-big-problem/172118 "2009-07-15T10:55:24Z")

</div>

No database content shows in Internet Explorer! It works on other major browsers but not IE. What do I do?

---

## [Undefined method \`paginate'](https://www.ruby-forum.com/t/undefined-method-paginate/172107)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 8\
**Last updated:** [July 15, 2009, 10:23am UTC](https://www.ruby-forum.com/t/undefined-method-paginate/172107 "2009-07-15T10:23:10Z")

</div>

How come I get this error? I have the same setup on my local dev machine as the server where I get the error, using the will\_paginate gem and require in env. The server uses the same version 2.2.2. And the same rails …

---

## [Working Depot app? (not AWDWR-related)](https://www.ruby-forum.com/t/working-depot-app-not-awdwr-related/172102)

<div class="topic-metadata">

**Author:** [@Felix\_SchSSS\_fer](https://www.ruby-forum.com/u/Felix_SchSSS_fer)\
**Replies:** 5\
**Last updated:** [July 15, 2009, 10:08am UTC](https://www.ruby-forum.com/t/working-depot-app-not-awdwr-related/172102 "2009-07-15T10:08:39Z")

</div>

Hello, I’m looking for some kind of depot app (really just a “select file and click upload” kind of thing), doesn’t need to be pretty, doesn’t need to manage users or anything, and to be completely honest I don’t even …

---

## [Quicktime Movie from Hard Disk](https://www.ruby-forum.com/t/quicktime-movie-from-hard-disk/171681)

<div class="topic-metadata">

**Author:** [@coldie](https://www.ruby-forum.com/u/coldie)\
**Replies:** 3\
**Last updated:** [July 15, 2009, 10:01am UTC](https://www.ruby-forum.com/t/quicktime-movie-from-hard-disk/171681 "2009-07-15T10:01:02Z")

</div>

Hi there, i want to embed a Quicktime-Movie on my Page. I use the following code: Getting the file by an internet-adress erverything is fine, but it doesn’t apply by using the path from my hard-disk. Is their a sp…

---

## [Ar\_sendmail and gchart](https://www.ruby-forum.com/t/ar-sendmail-and-gchart/172129)

<div class="topic-metadata">

**Author:** [@chimorito](https://www.ruby-forum.com/u/chimorito)\
**Replies:** 0\
**Last updated:** [July 15, 2009, 9:50am UTC](https://www.ruby-forum.com/t/ar-sendmail-and-gchart/172129 "2009-07-15T09:50:51Z")

</div>

Hi, first at all sorry if my english is not the best. I write this topic because we have a problem with ar\_sendmail after install googlecharts gem. In our server, if I comment this line in enviorenment.rb: #require ‘…

---

## [Handle incoming mails in ruby on rails](https://www.ruby-forum.com/t/handle-incoming-mails-in-ruby-on-rails/172126)

<div class="topic-metadata">

**Author:** [@dharshannew](https://www.ruby-forum.com/u/dharshannew)\
**Replies:** 2\
**Last updated:** [July 15, 2009, 9:27am UTC](https://www.ruby-forum.com/t/handle-incoming-mails-in-ruby-on-rails/172126 "2009-07-15T09:27:08Z")

</div>

How to Handle incoming mails in ruby on rails?

---

## [Generating a view from a controller](https://www.ruby-forum.com/t/generating-a-view-from-a-controller/172121)

<div class="topic-metadata">

**Author:** [@crazy\_canuck](https://www.ruby-forum.com/u/crazy_canuck)\
**Replies:** 2\
**Last updated:** [July 15, 2009, 7:39am UTC](https://www.ruby-forum.com/t/generating-a-view-from-a-controller/172121 "2009-07-15T07:39:38Z")

</div>

Hello everyone, My name is Brandon. I have just finished setting up a ruby on Rails server with PostgreSQL. No i am on windows server 2003 R2 service pack 2. I can create an app, and seems like create a controller… r…

---

## [Invalid binding information](https://www.ruby-forum.com/t/invalid-binding-information/172122)

<div class="topic-metadata">

**Author:** [@mushi](https://www.ruby-forum.com/u/mushi)\
**Replies:** 0\
**Last updated:** [July 15, 2009, 7:38am UTC](https://www.ruby-forum.com/t/invalid-binding-information/172122 "2009-07-15T07:38:43Z")

</div>

Hello everyone i am working on a web application where i need to authenticate our company user’s with our active directory/ldap server. i am using ruby-net-ldap gem for that purpose and getting the following error N…

---

## [Error while testing validatesformatof](https://www.ruby-forum.com/t/error-while-testing-validatesformatof/172083)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 4\
**Last updated:** [July 15, 2009, 7:36am UTC](https://www.ruby-forum.com/t/error-while-testing-validatesformatof/172083 "2009-07-15T07:36:42Z")

</div>

Hi I have model Role as validates\_presence\_of :name validates\_presence\_of :description validates\_format\_of :name, :with =\> /\[,\]/ And the test to check format as setup do @role = Factory(:role) #gives :name=\>‘role1…

---

## [Diacritics automatically transformed to ASCII?](https://www.ruby-forum.com/t/diacritics-automatically-transformed-to-ascii/172111)

<div class="topic-metadata">

**Author:** [@jimmyz](https://www.ruby-forum.com/u/jimmyz)\
**Replies:** 0\
**Last updated:** [July 15, 2009, 12:20am UTC](https://www.ruby-forum.com/t/diacritics-automatically-transformed-to-ascii/172111 "2009-07-15T00:20:57Z")

</div>

I’m experiencing a crazy problem where diacritics (ü,é,á) are automatically being transformed to ASCII (u,e,a) in my ActiveRecord objects. I know see that the data is properly encoded (UTF-8) in the DB, but when put i…

---

## [Starting up with Ruby on Rails](https://www.ruby-forum.com/t/starting-up-with-ruby-on-rails/172049)

<div class="topic-metadata">

**Author:** [@Renzo](https://www.ruby-forum.com/u/Renzo)\
**Replies:** 2\
**Last updated:** [July 14, 2009, 11:54pm UTC](https://www.ruby-forum.com/t/starting-up-with-ruby-on-rails/172049 "2009-07-14T23:54:40Z")

</div>

Hi guys… I want to learn Ruby on Rails… Actually I already have a Computer Based Training CD in Ruby on Rails by Lynda.com… But I’m having a hard time in deploying the requirement 'coz in the training video the speake…

---

## [Rails 2.3.2, Apache2 and CGI not working](https://www.ruby-forum.com/t/rails-2-3-2-apache2-and-cgi-not-working/163725)

<div class="topic-metadata">

**Author:** [@futlib](https://www.ruby-forum.com/u/futlib)\
**Replies:** 5\
**Last updated:** [July 14, 2009, 11:54pm UTC](https://www.ruby-forum.com/t/rails-2-3-2-apache2-and-cgi-not-working/163725 "2009-07-14T23:54:25Z")

</div>

Hi, I am trying to deploy a trivial rails application on an apache server, using the, as I understand obsolete, CGI way. First of all, some versions: System: Debian 5.0 Apache: Apache 2.2.9 Ruby: 1.8.7 Gem: 1.3.1 …

---

## [ANN: RuPy '09 Conference](https://www.ruby-forum.com/t/ann-rupy-09-conference/172108)

<div class="topic-metadata">

**Author:** [@Jakub\_PSNowak](https://www.ruby-forum.com/u/Jakub_PSNowak)\
**Replies:** 0\
**Last updated:** [July 14, 2009, 10:44pm UTC](https://www.ruby-forum.com/t/ann-rupy-09-conference/172108 "2009-07-14T22:44:33Z")

</div>

RuPy 2009 :: Strongly Dynamic Conference Poznan, Poland November 7-8, 2009 :: Call for speakers RuPy is a conference about dynamically typed programming languages. Held for the first time in April 2007 it gathered e…

---

## [Date\_select problem with i18n](https://www.ruby-forum.com/t/date-select-problem-with-i18n/163101)

<div class="topic-metadata">

**Author:** [@zeba-momin](https://www.ruby-forum.com/u/zeba-momin)\
**Replies:** 1\
**Last updated:** [July 14, 2009, 7:52pm UTC](https://www.ruby-forum.com/t/date-select-problem-with-i18n/163101 "2009-07-14T19:52:32Z")

</div>

Hi, I’m localizing my rails 2.2.2 application using i18n. In my form(view) I have: \<%= date\_select :range,:start\_date,:order =\> \[:month,:day,:year\]%\> In environment.rb I have: I18n.default\_locale = ‘en-US’ and in e…

---

## [Time Converstions Issues](https://www.ruby-forum.com/t/time-converstions-issues/171961)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 19\
**Last updated:** [July 14, 2009, 6:43pm UTC](https://www.ruby-forum.com/t/time-converstions-issues/171961 "2009-07-14T18:43:09Z")

</div>

The Time object in Rails 2.3.2 is problematic because it acts like a datetime whenever possible, especially in hash conversions. I am not using time zones, and I am not using and Datetimes. The mysql Time object simpl…

---

## [Select or select\_tag](https://www.ruby-forum.com/t/select-or-select-tag/172090)

<div class="topic-metadata">

**Author:** [@Rachel\_N](https://www.ruby-forum.com/u/Rachel_N)\
**Replies:** 1\
**Last updated:** [July 14, 2009, 6:01pm UTC](https://www.ruby-forum.com/t/select-or-select-tag/172090 "2009-07-14T18:01:37Z")

</div>

Which is the easiest to implement in a Rails app view when pulling data from tables? select or select\_tag? Thank you, Rachel S Nichol Oracle Developer Hargray Telephone Company Positive Exchange of Control Hargra…

---

## [Rails problem](https://www.ruby-forum.com/t/rails-problem/171956)

<div class="topic-metadata">

**Author:** [@giga](https://www.ruby-forum.com/u/giga)\
**Replies:** 5\
**Last updated:** [July 14, 2009, 2:33pm UTC](https://www.ruby-forum.com/t/rails-problem/171956 "2009-07-14T14:33:02Z")

</div>

gem list \*\*\* LOCAL GEMS \*\*\* … rails (2.3.2, 2.3.0, 2.2.2) … gem env gempath /root/.gem/ruby/1.8:/usr/lib/ruby/gems/1.8 ./config/environment.rb … RAILS\_GEM\_VERSION = ‘2.3.2’ unless defined? RAILS\_GEM\_VERSION … ./…

---

## [Fresh MSI installation prlblems](https://www.ruby-forum.com/t/fresh-msi-installation-prlblems/171962)

<div class="topic-metadata">

**Author:** [@wtjb](https://www.ruby-forum.com/u/wtjb)\
**Replies:** 1\
**Last updated:** [July 14, 2009, 1:48pm UTC](https://www.ruby-forum.com/t/fresh-msi-installation-prlblems/171962 "2009-07-14T13:48:35Z")

</div>

I have recently tried to download and use the Windows installer to get started with Ruby. Everything seems to install ok. I have it located in c:\\Ruby and I have followed this exactly: http://rubyonrails.org/download …

---

## [How to add after\_filter-style render](https://www.ruby-forum.com/t/how-to-add-after-filter-style-render/172079)

<div class="topic-metadata">

**Author:** [@stevo84](https://www.ruby-forum.com/u/stevo84)\
**Replies:** 1\
**Last updated:** [July 14, 2009, 1:16pm UTC](https://www.ruby-forum.com/t/how-to-add-after-filter-style-render/172079 "2009-07-14T13:16:27Z")

</div>

Hello I would like to execute specific action rendering something into page after each of my ajax calls. In example I would like to update some div or display an alert. How I imagine it could work is as follows clas…

---

## [A copy of XX has been removed from the module tree but is still active!](https://www.ruby-forum.com/t/a-copy-of-xx-has-been-removed-from-the-module-tree-but-is-still-active/137658)

<div class="topic-metadata">

**Author:** [@histrionics](https://www.ruby-forum.com/u/histrionics)\
**Replies:** 7\
**Last updated:** [July 14, 2009, 10:24am UTC](https://www.ruby-forum.com/t/a-copy-of-xx-has-been-removed-from-the-module-tree-but-is-still-active/137658 "2009-07-14T10:24:16Z")

</div>

I have a class in my /lib/ directory called tracker.rb It’s function is to receive an array of URLs and then perform 4 separate tasks on each URL Each of the 4 tasks gets it’s own thread. the class is called from my …

---

## [Variable embedded on a string](https://www.ruby-forum.com/t/variable-embedded-on-a-string/172077)

<div class="topic-metadata">

**Author:** [@aldoitalo](https://www.ruby-forum.com/u/aldoitalo)\
**Replies:** 0\
**Last updated:** [July 14, 2009, 9:41am UTC](https://www.ruby-forum.com/t/variable-embedded-on-a-string/172077 "2009-07-14T09:41:32Z")

</div>

hi, i have a problem with inserting a variable embedded on a string. The string is formed by two “%” at start and end wich i don’t know this usage (is a part of view\_helper.rb of the plugin will\_paginate): %{ view %d…

---

## [Problem with ar-extensions import](https://www.ruby-forum.com/t/problem-with-ar-extensions-import/172075)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [July 14, 2009, 9:25am UTC](https://www.ruby-forum.com/t/problem-with-ar-extensions-import/172075 "2009-07-14T09:25:36Z")

</div>

hi! I’m using rails 2.3.2 with ar-extensions 0.9.1 (mysql 5) I’m trying to use the import() method on one of my AR models and it works but it still runs a single insert query for each record. Oddly, MyModel.supports\_…

---

## [Testing javascript](https://www.ruby-forum.com/t/testing-javascript/171977)

<div class="topic-metadata">

**Author:** [@jimb](https://www.ruby-forum.com/u/jimb)\
**Replies:** 2\
**Last updated:** [July 14, 2009, 9:12am UTC](https://www.ruby-forum.com/t/testing-javascript/171977 "2009-07-14T09:12:52Z")

</div>

Hi, I have two select lists in my app called ‘topic’ and ‘member’. Based on what I select in topic, member is populated accordingly (using java script). eg. If I select ‘subject1’ in topic, member should be populated…

---

## [Can we call php function in Rails?](https://www.ruby-forum.com/t/can-we-call-php-function-in-rails/172047)

<div class="topic-metadata">

**Author:** [@Srinivas\_I](https://www.ruby-forum.com/u/Srinivas_I)\
**Replies:** 3\
**Last updated:** [July 14, 2009, 8:34am UTC](https://www.ruby-forum.com/t/can-we-call-php-function-in-rails/172047 "2009-07-14T08:34:57Z")

</div>

Hi all , I have a small doubt , Can we call a php function in Rails . Is there any Interpreter or a Bridge in which Rails application can talk to a Php File and call a specific method from php file . Thanks in A…

---

## [Locking, and How to Test it](https://www.ruby-forum.com/t/locking-and-how-to-test-it/171986)

<div class="topic-metadata">

**Author:** [@brian](https://www.ruby-forum.com/u/brian)\
**Replies:** 4\
**Last updated:** [July 14, 2009, 6:06am UTC](https://www.ruby-forum.com/t/locking-and-how-to-test-it/171986 "2009-07-14T06:06:47Z")

</div>

This is a two part question. Which type of locking should I use (optimistic vs. pessimistic) and then how do I account for locking in my tests? My scenario is essentially the purchase of a unique item where the firs…

---

## [How to add default value to text\_field\_with\_auto\_complete](https://www.ruby-forum.com/t/how-to-add-default-value-to-text-field-with-auto-complete/172009)

<div class="topic-metadata">

**Author:** [@thriving](https://www.ruby-forum.com/u/thriving)\
**Replies:** 3\
**Last updated:** [July 14, 2009, 5:55am UTC](https://www.ruby-forum.com/t/how-to-add-default-value-to-text-field-with-auto-complete/172009 "2009-07-14T05:55:26Z")

</div>

I can’t find the way in rails api of how to add default value in text\_field\_with\_auto\_complete. Anyone know please teach me. Thank you.

---

## [Excessive use of CPU](https://www.ruby-forum.com/t/excessive-use-of-cpu/172066)

<div class="topic-metadata">

**Author:** [@Leandro\_Maioral](https://www.ruby-forum.com/u/Leandro_Maioral)\
**Replies:** 0\
**Last updated:** [July 14, 2009, 4:24am UTC](https://www.ruby-forum.com/t/excessive-use-of-cpu/172066 "2009-07-14T04:24:46Z")

</div>

Hello guys and girls, I have a problem with a method (new), it is using 100% of CPU for 15/20 seconds. Follow the method below: http://pastie.org/537568 kits\_controller.rb def new @page\_title = ‘Add a Kit’ @kit = K…

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

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