# Rails

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

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

---

## [RedBox Inner Div Slide Down](https://www.ruby-forum.com/t/redbox-inner-div-slide-down/138707)

<div class="topic-metadata">

**Author:** [@joel](https://www.ruby-forum.com/u/joel)\
**Replies:** 0\
**Last updated:** [May 27, 2008, 1:54am UTC](https://www.ruby-forum.com/t/redbox-inner-div-slide-down/138707 "2008-05-27T01:54:01Z")

</div>

Hello People, I would like to implement an onclick sliding div inside a popup ( redbox ). However I would like the wrapper div itself, ie, the popup div to stretch height at the same time as the inner div slide downs. …

---

## [How to get the data type of a variable?](https://www.ruby-forum.com/t/how-to-get-the-data-type-of-a-variable/138706)

<div class="topic-metadata">

**Author:** [@wings](https://www.ruby-forum.com/u/wings)\
**Replies:** 0\
**Last updated:** [May 27, 2008, 1:52am UTC](https://www.ruby-forum.com/t/how-to-get-the-data-type-of-a-variable/138706 "2008-05-27T01:52:57Z")

</div>

Hi all: I’m importing a csv file which I need to check if a particular column is a valid dollar amount (doest need to have the $ sign) What I have is if parsed\[column5\].class.to\_s = Float But this class method is ac…

---

## [Perplexing functional test results](https://www.ruby-forum.com/t/perplexing-functional-test-results/138705)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 2\
**Last updated:** [May 27, 2008, 1:41am UTC](https://www.ruby-forum.com/t/perplexing-functional-test-results/138705 "2008-05-27T01:41:44Z")

</div>

I’m getting pretty far with functional testing and have run into a situation where I’m checking a method that ‘stamps’ db data into form fields on a PDF file. I have 6 such methods in my ‘ClientsController’ and half t…

---

## [Undefined method \`partial\_updates='](https://www.ruby-forum.com/t/undefined-method-partial-updates/135412)

<div class="topic-metadata">

**Author:** [@rello](https://www.ruby-forum.com/u/rello)\
**Replies:** 7\
**Last updated:** [May 27, 2008, 12:32am UTC](https://www.ruby-forum.com/t/undefined-method-partial-updates/135412 "2008-05-27T00:32:04Z")

</div>

Hello When I try the command: rake db:migrate I get the following: rello@calimero:~/Sites/music\_library/config$ rake db:migrate (in /home/rello/Sites/music\_library) rake aborted! undefined method \`partial\_updates=…

---

## [Globalize and render\_component: infinite loop?](https://www.ruby-forum.com/t/globalize-and-render-component-infinite-loop/68153)

<div class="topic-metadata">

**Author:** [@sellittf](https://www.ruby-forum.com/u/sellittf)\
**Replies:** 2\
**Last updated:** [May 26, 2008, 11:13pm UTC](https://www.ruby-forum.com/t/globalize-and-render-component-infinite-loop/68153 "2008-05-26T23:13:40Z")

</div>

Hi, I just installed Globalize and I’m very excited about it! Using it with the default map.connect ‘:controller/:action/:id’ in config/routes.rb, there is no problem, but so far I set map.connect ‘:locale/:controll…

---

## [Handling multiple models DRYly-- using eval, but better way?](https://www.ruby-forum.com/t/handling-multiple-models-dryly-using-eval-but-better-way/138698)

<div class="topic-metadata">

**Author:** [@djlewis](https://www.ruby-forum.com/u/djlewis)\
**Replies:** 1\
**Last updated:** [May 26, 2008, 11:02pm UTC](https://www.ruby-forum.com/t/handling-multiple-models-dryly-using-eval-but-better-way/138698 "2008-05-26T23:02:12Z")

</div>

I have a bunch of models (about 30) that are all handled roughly the same way despite having different fields, text, etc (there’s a big data structure to drive all that). I’m trying to be DRY and handle them generica…

---

## [Gem remote install or update fails](https://www.ruby-forum.com/t/gem-remote-install-or-update-fails/138491)

<div class="topic-metadata">

**Author:** [@hansdons](https://www.ruby-forum.com/u/hansdons)\
**Replies:** 1\
**Last updated:** [May 26, 2008, 10:49pm UTC](https://www.ruby-forum.com/t/gem-remote-install-or-update-fails/138491 "2008-05-26T22:49:07Z")

</div>

I cannot get any gem command that involves: ‘Bulk updating Gem source index for: http://gems.rubyforge.org/’ to work. I just want to install Rails. Should be simple. I am not behind a proxy. I’ve tried the ‘no- http-p…

---

## [Ø§ø®øªø±ø§ù‚ ù…ùˆù‚ø¹ ù‚ùˆù‚ù„!](https://www.ruby-forum.com/t/o-o-o-o-o-u-u-u-u-o-u-u-u-u/138697)

<div class="topic-metadata">

**Author:** [@dgggrg](https://www.ruby-forum.com/u/dgggrg)\
**Replies:** 0\
**Last updated:** [May 26, 2008, 10:43pm UTC](https://www.ruby-forum.com/t/o-o-o-o-o-u-u-u-u-o-u-u-u-u/138697 "2008-05-26T22:43:57Z")

</div>

ÇáÓáÇã Úáíßã æÑÍãÉ Çááå æÈÑßÇÊå äÔæÝ Ýí åÐå ÇáÇíÇã ßËÑÉ Ýí ÚÏÏ ÇáÇÎÊÑÇÞÇÊ äÙÑÇø áÅäÔÇÑ ÇáãÚáæãÇÊ ÇáÓÑíÉ Çæ ÇáÈÑÇíÝÊ æáßä ! Ïæä ÌÏæì! áÇÈÏ Çä äÓãÚ æäÑì ÇÎÊÑÇÞÇð áãæÞÚ ÚÑÈí Çæ ãæÞÚ ÇÌäÈí! æáßä åÐÇ ÇáÇÎÊÑÇÞ ãä äæÚ ÂÎÑ …

---

## [Dealing with Money Calculations](https://www.ruby-forum.com/t/dealing-with-money-calculations/138689)

<div class="topic-metadata">

**Author:** [@sw0rdfish](https://www.ruby-forum.com/u/sw0rdfish)\
**Replies:** 5\
**Last updated:** [May 26, 2008, 9:50pm UTC](https://www.ruby-forum.com/t/dealing-with-money-calculations/138689 "2008-05-26T21:50:52Z")

</div>

Ok so this is probably the 100th time someone has brought this up, but searching the group brings up all the spam emails, and nothing of value… so I’m going to try again. I’m dealing with a LOT of numbers in my applic…

---

## [Why not merge :joins in with\_scope?](https://www.ruby-forum.com/t/why-not-merge-joins-in-with-scope/138681)

<div class="topic-metadata">

**Author:** [@macournoyer](https://www.ruby-forum.com/u/macournoyer)\
**Replies:** 6\
**Last updated:** [May 26, 2008, 7:24pm UTC](https://www.ruby-forum.com/t/why-not-merge-joins-in-with-scope/138681 "2008-05-26T19:24:03Z")

</div>

Hi, We’re chaining several named\_scope calls like this: Post.something\_with\_a\_join.another\_with\_a\_join And we found out the :joins in the scope aren’t merged. I’m wondering if there’s any reason why :joins aren’t mer…

---

## [Can't seem to find clarity on /admin section](https://www.ruby-forum.com/t/cant-seem-to-find-clarity-on-admin-section/138688)

<div class="topic-metadata">

**Author:** [@validkeys](https://www.ruby-forum.com/u/validkeys)\
**Replies:** 0\
**Last updated:** [May 26, 2008, 6:20pm UTC](https://www.ruby-forum.com/t/cant-seem-to-find-clarity-on-admin-section/138688 "2008-05-26T18:20:57Z")

</div>

I am just learning rails and using pick axe to do so, so I am using whathever version of rails that pick axe is using (I think its 1.2.6) instead of 2.0. I am going to be re-creating a current online store project tha…

---

## [Pass special symbols through URL](https://www.ruby-forum.com/t/pass-special-symbols-through-url/138678)

<div class="topic-metadata">

**Author:** [@serge](https://www.ruby-forum.com/u/serge)\
**Replies:** 1\
**Last updated:** [May 26, 2008, 5:35pm UTC](https://www.ruby-forum.com/t/pass-special-symbols-through-url/138678 "2008-05-26T17:35:01Z")

</div>

I need to pass path to file through URL e.g. path\_to\_file/file.mov so URL will be something like this http://localhost:3000/file\_manager/del\_media\_file/path\_to\_fileEfile.mov i found function to CGI::escape and CGI::…

---

## [Rails validation is inefficient](https://www.ruby-forum.com/t/rails-validation-is-inefficient/138514)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 20\
**Last updated:** [May 26, 2008, 5:16pm UTC](https://www.ruby-forum.com/t/rails-validation-is-inefficient/138514 "2008-05-26T17:16:48Z")

</div>

Hi, I have a User model, with a validates\_uniqueness\_of :login The generated SQL for the validation is: SELECT \* FROM users WHERE (LOWER(users.login) = ‘fernando’ AND users.id \<\> 10001) LIMIT 1; and it takes 0.13s …

---

## [RailsConf Europe 2008](https://www.ruby-forum.com/t/railsconf-europe-2008/138679)

<div class="topic-metadata">

**Author:** [@Paul\_Szulc](https://www.ruby-forum.com/u/Paul_Szulc)\
**Replies:** 0\
**Last updated:** [May 26, 2008, 4:58pm UTC](https://www.ruby-forum.com/t/railsconf-europe-2008/138679 "2008-05-26T16:58:13Z")

</div>

When will the registration start? What will be the fee to enter it? Anyone knows?

---

## [Error in my\_thread\_global\_end() when running rake db:migrate](https://www.ruby-forum.com/t/error-in-my-thread-global-end-when-running-rake-db-migrate/133726)

<div class="topic-metadata">

**Author:** [@frank\_programmer](https://www.ruby-forum.com/u/frank_programmer)\
**Replies:** 1\
**Last updated:** [May 26, 2008, 4:43pm UTC](https://www.ruby-forum.com/t/error-in-my-thread-global-end-when-running-rake-db-migrate/133726 "2008-05-26T16:43:21Z")

</div>

When I run rake db:migrate I get this error at the end. Error in my\_thread\_global\_end(): 1 threads didn’t exit I pinned it down to this code which is in 004\_create\_permissions.rb. # create admin user user = User.new u…

---

## [Using in\_place\_editor as plugin but how?](https://www.ruby-forum.com/t/using-in-place-editor-as-plugin-but-how/138558)

<div class="topic-metadata">

**Author:** [@der\_guido](https://www.ruby-forum.com/u/der_guido)\
**Replies:** 6\
**Last updated:** [May 26, 2008, 4:15pm UTC](https://www.ruby-forum.com/t/using-in-place-editor-as-plugin-but-how/138558 "2008-05-26T16:15:19Z")

</div>

Hi all together… I try since few day to use in\_place\_editor as plugin… so I installed it with ruby script/plugin install http://svn.redlinesoftware.com/plugins/in\_place\_editor/ and now?!? I get the error undefined…

---

## [Passing variables through session](https://www.ruby-forum.com/t/passing-variables-through-session/138675)

<div class="topic-metadata">

**Author:** [@jens](https://www.ruby-forum.com/u/jens)\
**Replies:** 0\
**Last updated:** [May 26, 2008, 4:14pm UTC](https://www.ruby-forum.com/t/passing-variables-through-session/138675 "2008-05-26T16:14:03Z")

</div>

Hi I have a form with user details and credit card details.The user details are entering into ‘user’ table and credit card details are entering ‘creditcard’ table.As the user entered his personnel information and cre…

---

## [Searching has\_many with UltraSphinx](https://www.ruby-forum.com/t/searching-has-many-with-ultrasphinx/132290)

<div class="topic-metadata">

**Author:** [@blinking\_bear](https://www.ruby-forum.com/u/blinking_bear)\
**Replies:** 4\
**Last updated:** [May 26, 2008, 3:08pm UTC](https://www.ruby-forum.com/t/searching-has-many-with-ultrasphinx/132290 "2008-05-26T15:08:24Z")

</div>

I’m switching from ferret to ultrasphinx… in ferret I used to search on tags for a model by just including the tag\_string method in the list of fields and implementing this method: def tag\_string tags.map(&:name).jo…

---

## [Is there a way to freeze Rails \_after\_ the fact?](https://www.ruby-forum.com/t/is-there-a-way-to-freeze-rails-after-the-fact/138608)

<div class="topic-metadata">

**Author:** [@wpwood](https://www.ruby-forum.com/u/wpwood)\
**Replies:** 3\
**Last updated:** [May 26, 2008, 2:36pm UTC](https://www.ruby-forum.com/t/is-there-a-way-to-freeze-rails-after-the-fact/138608 "2008-05-26T14:36:28Z")

</div>

I’ve got a managed VPS (the hosting service provides support) and they just did an unannounced upgrade to Rails 2.0. My app is 1.2.x. Is there a way to freeze Rails and the other gems my app needs to a prior version…

---

## [Have you used the Rails SaaS kit?](https://www.ruby-forum.com/t/have-you-used-the-rails-saas-kit/138447)

<div class="topic-metadata">

**Author:** [@melvinram](https://www.ruby-forum.com/u/melvinram)\
**Replies:** 3\
**Last updated:** [May 26, 2008, 2:31pm UTC](https://www.ruby-forum.com/t/have-you-used-the-rails-saas-kit/138447 "2008-05-26T14:31:43Z")

</div>

Have any of you actually bought & used the Rails SaaS kit? I am considering getting it to skip building out the admin & billing parts but I wanna get feedback from someone who has actually used it. Would you recommend…

---

## [Ruby on Rails Learning Tool](https://www.ruby-forum.com/t/ruby-on-rails-learning-tool/138650)

<div class="topic-metadata">

**Author:** [@Elizabeth\_B](https://www.ruby-forum.com/u/Elizabeth_B)\
**Replies:** 1\
**Last updated:** [May 26, 2008, 2:30pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-learning-tool/138650 "2008-05-26T14:30:31Z")

</div>

This a great, free resource for learning/finding info on Ruby on Rails: http://www.yoyobrain.com/cardboxes/preview/863 If you click on “Try a learning drill” the site will quiz you on Rails information to help you me…

---

## [Howto bypass FileColumn?](https://www.ruby-forum.com/t/howto-bypass-filecolumn/138662)

<div class="topic-metadata">

**Author:** [@differenthink](https://www.ruby-forum.com/u/differenthink)\
**Replies:** 0\
**Last updated:** [May 26, 2008, 2:12pm UTC](https://www.ruby-forum.com/t/howto-bypass-filecolumn/138662 "2008-05-26T14:12:44Z")

</div>

Hi, I would like to know how to bypass FileColumn process in a model ? Why ? because i want to populate my filecolumn attribute in my DB without actually sending an image… Any idea ? Thanks a lot

---

## [Trouble comparing datetimes in rspec](https://www.ruby-forum.com/t/trouble-comparing-datetimes-in-rspec/138573)

<div class="topic-metadata">

**Author:** [@bryan82](https://www.ruby-forum.com/u/bryan82)\
**Replies:** 8\
**Last updated:** [May 26, 2008, 2:09pm UTC](https://www.ruby-forum.com/t/trouble-comparing-datetimes-in-rspec/138573 "2008-05-26T14:09:47Z")

</div>

I’m getting a weird failure when trying to compare two datetimes. The failure message is: ‘Prompt as a featured prompt should set featured\_on for public prompts’ FAILED expected: Thu May 22 16:31:38 -0400 2008, got:…

---

## [Gem install rails gives this error on Suse 9.3:](https://www.ruby-forum.com/t/gem-install-rails-gives-this-error-on-suse-9-3/138661)

<div class="topic-metadata">

**Author:** [@octimizer](https://www.ruby-forum.com/u/octimizer)\
**Replies:** 1\
**Last updated:** [May 26, 2008, 2:02pm UTC](https://www.ruby-forum.com/t/gem-install-rails-gives-this-error-on-suse-9-3/138661 "2008-05-26T14:02:42Z")

</div>

hi there, i’m new to RoR, installed ruby and rubygems alright, this is what happens when I try to install rails: ~ # gem install rails /root/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:27:in gem\_original\_requi…

---

## [Displaying Base64binary encoded images](https://www.ruby-forum.com/t/displaying-base64binary-encoded-images/138658)

<div class="topic-metadata">

**Author:** [@ratcheer](https://www.ruby-forum.com/u/ratcheer)\
**Replies:** 1\
**Last updated:** [May 26, 2008, 1:32pm UTC](https://www.ruby-forum.com/t/displaying-base64binary-encoded-images/138658 "2008-05-26T13:32:02Z")

</div>

Hi, I am querying a webservice which returns images as Base64 encoded data. Displaying these images in Firefox is not a problem: However, I am having trouble displaying the images in Internet Explorer. I have been…

---

## [Problems changing button\_to to link\_to](https://www.ruby-forum.com/t/problems-changing-button-to-to-link-to/138545)

<div class="topic-metadata">

**Author:** [@pepa007](https://www.ruby-forum.com/u/pepa007)\
**Replies:** 1\
**Last updated:** [May 26, 2008, 1:24pm UTC](https://www.ruby-forum.com/t/problems-changing-button-to-to-link-to/138545 "2008-05-26T13:24:57Z")

</div>

Hi, I tried changing button\_to to link\_to without changing other parameters. The path upon clicking the button is 'localhost/generals/ empty\_creator. Hovering over button and link shows the same path for both. But w…

---

## [Access variables in controller from link\_to\_remote](https://www.ruby-forum.com/t/access-variables-in-controller-from-link-to-remote/138632)

<div class="topic-metadata">

**Author:** [@alais](https://www.ruby-forum.com/u/alais)\
**Replies:** 2\
**Last updated:** [May 26, 2008, 12:10pm UTC](https://www.ruby-forum.com/t/access-variables-in-controller-from-link-to-remote/138632 "2008-05-26T12:10:32Z")

</div>

This is really easy and simple but… I have view \<%=link\_to\_remote ‘this’, {:url=\>{:action=\>‘action’}, :with =\> “‘name=’ + $(‘text\_field\_id’).value” } %\> When I’m in the controller, how do I access the variable ‘name…

---

## [Generating XML Schema from XML](https://www.ruby-forum.com/t/generating-xml-schema-from-xml/138656)

<div class="topic-metadata">

**Author:** [@karthikeyan](https://www.ruby-forum.com/u/karthikeyan)\
**Replies:** 0\
**Last updated:** [May 26, 2008, 12:08pm UTC](https://www.ruby-forum.com/t/generating-xml-schema-from-xml/138656 "2008-05-26T12:08:56Z")

</div>

Hi, I want to generate an XML Schema file from an XML file. Is there any way to do it? Thanks in advance…

---

## [Found a silly bug in YAML Fixtures](https://www.ruby-forum.com/t/found-a-silly-bug-in-yaml-fixtures/138638)

<div class="topic-metadata">

**Author:** [@vikrant](https://www.ruby-forum.com/u/vikrant)\
**Replies:** 2\
**Last updated:** [May 26, 2008, 12:02pm UTC](https://www.ruby-forum.com/t/found-a-silly-bug-in-yaml-fixtures/138638 "2008-05-26T12:02:12Z")

</div>

Hi, In fixtures, whenever I define a string as “yes”, it is stored as “t” in the database. Here is an example in YAML. active\_user: username: active\_user is\_active: yes Now when I run the test, and check the test …

---

## [Link\_to\_remote headaches](https://www.ruby-forum.com/t/link-to-remote-headaches/136496)

<div class="topic-metadata">

**Author:** [@newrubygirl](https://www.ruby-forum.com/u/newrubygirl)\
**Replies:** 2\
**Last updated:** [May 26, 2008, 11:49am UTC](https://www.ruby-forum.com/t/link-to-remote-headaches/136496 "2008-05-26T11:49:14Z")

</div>

I’ve been searching the forums and the api for a specific way to update a parent window from a pop-up and am going in circles now. In my view I have \<%= link\_to\_remote “Update Parent”, :url =\> {:action =\> ‘update\_pare…

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

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