# Rails

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

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

---

## [Change input image on hover](https://www.ruby-forum.com/t/change-input-image-on-hover/104379)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [June 5, 2008, 6:31am UTC](https://www.ruby-forum.com/t/change-input-image-on-hover/104379 "2008-06-05T06:31:53Z")

</div>

Hi guys, I’m having troubles getting to change an image on hover using the image\_submit\_tag helper. First of all I don’t know if I should use css for this (as i would for a normal link) or rjs (which i don’t know how…

---

## [Problems with methods... help](https://www.ruby-forum.com/t/problems-with-methods-help/139338)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 14\
**Last updated:** [June 5, 2008, 6:26am UTC](https://www.ruby-forum.com/t/problems-with-methods-help/139338 "2008-06-05T06:26:44Z")

</div>

Hi I made a simple example that is not the original but is giving me the same issue… I create a method on my controller… and make it so I cant sent him data to work with and return me the results… but I keep getting …

---

## [Including gems in rails projects. Gemonrails error](https://www.ruby-forum.com/t/including-gems-in-rails-projects-gemonrails-error/139565)

<div class="topic-metadata">

**Author:** [@pood](https://www.ruby-forum.com/u/pood)\
**Replies:** 1\
**Last updated:** [June 5, 2008, 5:43am UTC](https://www.ruby-forum.com/t/including-gems-in-rails-projects-gemonrails-error/139565 "2008-06-05T05:43:55Z")

</div>

I’m trying to load mechanize to my rails app with gemsonrails, but when I try to start up my server I get this error: “ERROR: Please update cygdrive/c/Documents and Settings/Feng/ruby/project/playerman/vendor/gems/mec…

---

## [When starting rails 2.0.2 i get the following error](https://www.ruby-forum.com/t/when-starting-rails-2-0-2-i-get-the-following-error/135736)

<div class="topic-metadata">

**Author:** [@Kevin\_Pratt](https://www.ruby-forum.com/u/Kevin_Pratt)\
**Replies:** 6\
**Last updated:** [June 5, 2008, 5:07am UTC](https://www.ruby-forum.com/t/when-starting-rails-2-0-2-i-get-the-following-error/135736 "2008-06-05T05:07:18Z")

</div>

I believe that my issue is releated to ticket http://dev.rails-engines.org/ticket/285 Has there been any headway on this particular issue? Error message. /Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active\_sup…

---

## [Can't load params\[:id\]](https://www.ruby-forum.com/t/cant-load-params-id/139579)

<div class="topic-metadata">

**Author:** [@tbobker](https://www.ruby-forum.com/u/tbobker)\
**Replies:** 0\
**Last updated:** [June 5, 2008, 4:04am UTC](https://www.ruby-forum.com/t/cant-load-params-id/139579 "2008-06-05T04:04:53Z")

</div>

really tricky problem. narrowed down the issue. view code: \<%= button\_to “Empty cart”, {:controller =\> ‘registration’,:action =\> :empty\_cart, :id =\> @location\_id}, :class =\> ‘button’ %\> generates html code (so @loca…

---

## [Call methods from different class](https://www.ruby-forum.com/t/call-methods-from-different-class/139471)

<div class="topic-metadata">

**Author:** [@hloooi](https://www.ruby-forum.com/u/hloooi)\
**Replies:** 8\
**Last updated:** [June 5, 2008, 3:27am UTC](https://www.ruby-forum.com/t/call-methods-from-different-class/139471 "2008-06-05T03:27:55Z")

</div>

hi again, can i ask something bout the method and class thing? i have a class called map.rb, and another class called Asset.rb in my Asset.rb, i have a method called def base\_part\_of(file\_name) name = File.basename(f…

---

## ["double assignation" in a hash?](https://www.ruby-forum.com/t/double-assignation-in-a-hash/139568)

<div class="topic-metadata">

**Author:** [@itkin](https://www.ruby-forum.com/u/itkin)\
**Replies:** 2\
**Last updated:** [June 5, 2008, 2:31am UTC](https://www.ruby-forum.com/t/double-assignation-in-a-hash/139568 "2008-06-05T02:31:54Z")

</div>

is it possible to make a quick "double assignation " in a hash like in php, for example : a={} a\[:b\]\[:c\]=“value”

---

## [Debuging ActiveMerhcant SOAP -\> CyberSource](https://www.ruby-forum.com/t/debuging-activemerhcant-soap-cybersource/139570)

<div class="topic-metadata">

**Author:** [@traceyz](https://www.ruby-forum.com/u/traceyz)\
**Replies:** 0\
**Last updated:** [June 5, 2008, 2:29am UTC](https://www.ruby-forum.com/t/debuging-activemerhcant-soap-cybersource/139570 "2008-06-05T02:29:01Z")

</div>

I am trying to use ActiveMerchant to send credit card transactions to CyberSource. I have been trying to follow the documentation, examples, and APIs, but problems persist. ActiveMerchant is sending a SOAP header and …

---

## [Potential bug with named\_scope?](https://www.ruby-forum.com/t/potential-bug-with-named-scope/139540)

<div class="topic-metadata">

**Author:** [@Derek\_P](https://www.ruby-forum.com/u/Derek_P)\
**Replies:** 5\
**Last updated:** [June 5, 2008, 1:59am UTC](https://www.ruby-forum.com/t/potential-bug-with-named-scope/139540 "2008-06-05T01:59:47Z")

</div>

Hey, I setup this named\_scope in my class: named\_scope :latest, lambda { {:order =\> “created\_at DESC”, :limit =\> 1} } it works fine, the sql returned looks like this: …ORDER BY created\_at DESC LIMIT 1 It looks like …

---

## [\[ANN\] Vancouver.rb - Open Ruby/Rails Hack Night - Every Monday 7pm - Whenever (9ish) - Join Us](https://www.ruby-forum.com/t/ann-vancouver-rb-open-ruby-rails-hack-night-every-monday-7pm-whenever-9ish-join-us/139567)

<div class="topic-metadata">

**Author:** [@gerald\_b](https://www.ruby-forum.com/u/gerald_b)\
**Replies:** 0\
**Last updated:** [June 5, 2008, 1:09am UTC](https://www.ruby-forum.com/t/ann-vancouver-rb-open-ruby-rails-hack-night-every-monday-7pm-whenever-9ish-join-us/139567 "2008-06-05T01:09:25Z")

</div>

Hello, If you’re in or around Vancouver in British Columbia on Canada’s West Coast in the Americas you’re invited to join us for our kick off of a weekly informal Open Ruby Hack Night series starting Monday, June 9th…

---

## [Where is the ActiveRecord Oracle Adapter with 2.1?](https://www.ruby-forum.com/t/where-is-the-activerecord-oracle-adapter-with-2-1/139465)

<div class="topic-metadata">

**Author:** [@nwiger](https://www.ruby-forum.com/u/nwiger)\
**Replies:** 4\
**Last updated:** [June 5, 2008, 1:08am UTC](https://www.ruby-forum.com/t/where-is-the-activerecord-oracle-adapter-with-2-1/139465 "2008-06-05T01:08:44Z")

</div>

I tried this, which worked before: sudo gem install activerecord-oracle-adapter --source http://gems.rubyonrails.org –no-ri --no-rdoc But all I get is: ERROR: could not find activerecord-oracle-adapter locally or i…

---

## [Reload page after send\_data](https://www.ruby-forum.com/t/reload-page-after-send-data/139458)

<div class="topic-metadata">

**Author:** [@jasoo24](https://www.ruby-forum.com/u/jasoo24)\
**Replies:** 2\
**Last updated:** [June 5, 2008, 12:43am UTC](https://www.ruby-forum.com/t/reload-page-after-send-data/139458 "2008-06-05T00:43:39Z")

</div>

Hello, I would like to reload a page after sending a file to the user through send\_data. So far, I have been unable to figure out how to do this and would greatly appreciate some help. In my view, I have: \<%= button…

---

## [CSS normalization](https://www.ruby-forum.com/t/css-normalization/139524)

<div class="topic-metadata">

**Author:** [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Replies:** 3\
**Last updated:** [June 4, 2008, 10:59pm UTC](https://www.ruby-forum.com/t/css-normalization/139524 "2008-06-04T22:59:01Z")

</div>

Railsters: Our ambitious artists, and their tools, tend to deliver CSS in this format: screen.css - everything in here ie6.css - copy of everything, with a few tiny tweaks ie7.css - copy of everything, with a few tin…

---

## [Gem\_original\_require](https://www.ruby-forum.com/t/gem-original-require/139548)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 2\
**Last updated:** [June 4, 2008, 10:33pm UTC](https://www.ruby-forum.com/t/gem-original-require/139548 "2008-06-04T22:33:33Z")

</div>

Hi all, my computer decide to take a dirt nap today so I am trying to relaod rails on another machine and I am getting this error message which I can’t make heads or tails about: no such file to load – postgres RAIL…

---

## [Setting session user into functional tests](https://www.ruby-forum.com/t/setting-session-user-into-functional-tests/139544)

<div class="topic-metadata">

**Author:** [@Bruno\_GuimarSSSSes\_S](https://www.ruby-forum.com/u/Bruno_GuimarSSSSes_S)\
**Replies:** 1\
**Last updated:** [June 4, 2008, 9:52pm UTC](https://www.ruby-forum.com/t/setting-session-user-into-functional-tests/139544 "2008-06-04T21:52:21Z")

</div>

I am using restful authentication. So, some controllers requires a session with a user logged in. Now, I am trying to write functional tests for those controllers. I wanna set a session user (in ‘setup’ for example)…

---

## [Search works in dev but not in prod?](https://www.ruby-forum.com/t/search-works-in-dev-but-not-in-prod/139434)

<div class="topic-metadata">

**Author:** [@amanda](https://www.ruby-forum.com/u/amanda)\
**Replies:** 8\
**Last updated:** [June 4, 2008, 9:23pm UTC](https://www.ruby-forum.com/t/search-works-in-dev-but-not-in-prod/139434 "2008-06-04T21:23:54Z")

</div>

Is there any reason for a search page that searches through events for a keyword and then displays those that contain the keyword to not give any results in production when it does in development? I’ve made sure I’m s…

---

## [Why code works in development and not production](https://www.ruby-forum.com/t/why-code-works-in-development-and-not-production/139541)

<div class="topic-metadata">

**Author:** [@amanda](https://www.ruby-forum.com/u/amanda)\
**Replies:** 4\
**Last updated:** [June 4, 2008, 9:07pm UTC](https://www.ruby-forum.com/t/why-code-works-in-development-and-not-production/139541 "2008-06-04T21:07:58Z")

</div>

I’ve had a few problems with my site working perfectly in development then in production not doing what it’s supposed to or having errors. I’ve tried to find information about why these things could happen but haven’t…

---

## [Sorting an array of Hash on two fields one of it is optional](https://www.ruby-forum.com/t/sorting-an-array-of-hash-on-two-fields-one-of-it-is-optional/139205)

<div class="topic-metadata">

**Author:** [@sgudibanda](https://www.ruby-forum.com/u/sgudibanda)\
**Replies:** 2\
**Last updated:** [June 4, 2008, 8:14pm UTC](https://www.ruby-forum.com/t/sorting-an-array-of-hash-on-two-fields-one-of-it-is-optional/139205 "2008-06-04T20:14:22Z")

</div>

Hi, I need to sort an array of Hash - an array whose elements are hash variable - a hash of name and email. Name is an optional field , ie it can be nil but email is always not NULL. How do I sort the array of these …

---

## [Is SQL Server not supported in RoR on the Mac?](https://www.ruby-forum.com/t/is-sql-server-not-supported-in-ror-on-the-mac/187412)

<div class="topic-metadata">

**Author:** [@biot023](https://www.ruby-forum.com/u/biot023)\
**Replies:** 17\
**Last updated:** [June 4, 2008, 8:09pm UTC](https://www.ruby-forum.com/t/is-sql-server-not-supported-in-ror-on-the-mac/187412 "2008-06-04T20:09:23Z")

</div>

Hi – I’ve been having problems connecting to a SQL Server database that I thought might be related to the fact I was upgrading Rails to 2.0. However, I also was moving the project to my shiny new macbook. Anyway, afte…

---

## [FeedTools SLOWness](https://www.ruby-forum.com/t/feedtools-slowness/139534)

<div class="topic-metadata">

**Author:** [@polomasta](https://www.ruby-forum.com/u/polomasta)\
**Replies:** 0\
**Last updated:** [June 4, 2008, 7:25pm UTC](https://www.ruby-forum.com/t/feedtools-slowness/139534 "2008-06-04T19:25:23Z")

</div>

I am using FeedTools to grab an rss feed from a blog and display the last 10 items. Currently there are only 4 items in the feed and it is taking about 20 seconds to load the page. When I disable feedtools the page lo…

---

## [Any thoughts on building a project using an old version of rails?](https://www.ruby-forum.com/t/any-thoughts-on-building-a-project-using-an-old-version-of-rails/139473)

<div class="topic-metadata">

**Author:** [@alanterra](https://www.ruby-forum.com/u/alanterra)\
**Replies:** 2\
**Last updated:** [June 4, 2008, 6:31pm UTC](https://www.ruby-forum.com/t/any-thoughts-on-building-a-project-using-an-old-version-of-rails/139473 "2008-06-04T18:31:58Z")

</div>

I am trying to build some sample projects from the book “Ajax on Rails.” These projects are built against Rails 1.1.5, I am using Rails 2.0.2. The directions are to copy the sample code to your code folder, add all t…

---

## [Date Format](https://www.ruby-forum.com/t/date-format/139480)

<div class="topic-metadata">

**Author:** [@wawa88](https://www.ruby-forum.com/u/wawa88)\
**Replies:** 4\
**Last updated:** [June 4, 2008, 6:20pm UTC](https://www.ruby-forum.com/t/date-format/139480 "2008-06-04T18:20:22Z")

</div>

Now i facing the date format in my database. I am using mysql as my database then the datetime format is 2008-06-04 15:17:55. But my datetime format is like this Fri May 23 16:43:28 +0800 2008. So when i execute it sa…

---

## [Rake db:migrate error](https://www.ruby-forum.com/t/rake-db-migrate-error/139521)

<div class="topic-metadata">

**Author:** [@metaltree](https://www.ruby-forum.com/u/metaltree)\
**Replies:** 2\
**Last updated:** [June 4, 2008, 6:18pm UTC](https://www.ruby-forum.com/t/rake-db-migrate-error/139521 "2008-06-04T18:18:20Z")

</div>

When I run rake db:migrate, I get the following error message. How to solve this? C:\\testror\\depot\>rake db:migrate --trace (in C:/testror/depot) \*\* Invoke db:migrate (first\_time) \*\* Invoke environment (first\_time) …

---

## [Routers are handled incorrectly on production](https://www.ruby-forum.com/t/routers-are-handled-incorrectly-on-production/139523)

<div class="topic-metadata">

**Author:** [@chovy](https://www.ruby-forum.com/u/chovy)\
**Replies:** 0\
**Last updated:** [June 4, 2008, 6:15pm UTC](https://www.ruby-forum.com/t/routers-are-handled-incorrectly-on-production/139523 "2008-06-04T18:15:22Z")

</div>

Has anyone found their routes are handled differently on production? #works fine http://local:3000/admin/orders/new #returns 404.html http://domain.com/admin/orders/new production.log: Processing AdminController#or…

---

## [Unobtrusive remote links and forms](https://www.ruby-forum.com/t/unobtrusive-remote-links-and-forms/139522)

<div class="topic-metadata">

**Author:** [@phatmann](https://www.ruby-forum.com/u/phatmann)\
**Replies:** 0\
**Last updated:** [June 4, 2008, 6:04pm UTC](https://www.ruby-forum.com/t/unobtrusive-remote-links-and-forms/139522 "2008-06-04T18:04:00Z")

</div>

For quite a while now it has bothered me that link\_to\_remote and remote\_form\_for are not unobtrusive. That is, they insert Javascript right into the HTML, and link\_to\_remote does not automatically fall back to a norma…

---

## [\[ANN\] Ylastic - Manage your AWS environment](https://www.ruby-forum.com/t/ann-ylastic-manage-your-aws-environment/139516)

<div class="topic-metadata">

**Author:** [@thetrystero](https://www.ruby-forum.com/u/thetrystero)\
**Replies:** 0\
**Last updated:** [June 4, 2008, 5:22pm UTC](https://www.ruby-forum.com/t/ann-ylastic-manage-your-aws-environment/139516 "2008-06-04T17:22:21Z")

</div>

We are very excited to announce Ylastic - A single unified interface to manage your AWS environment. You will be able to manage EC2, S3, SQS and SDB from one application, along with lots of other goodies - alerts, dai…

---

## [Migration - Drop FK and generate new column](https://www.ruby-forum.com/t/migration-drop-fk-and-generate-new-column/139514)

<div class="topic-metadata">

**Author:** [@Rodrigo\_MuiSSSSo](https://www.ruby-forum.com/u/Rodrigo_MuiSSSSo)\
**Replies:** 0\
**Last updated:** [June 4, 2008, 5:17pm UTC](https://www.ruby-forum.com/t/migration-drop-fk-and-generate-new-column/139514 "2008-06-04T17:17:36Z")

</div>

Guys, I need to drop some references in 4 tables and create columns that contain the data from the tables that are going to be decommissioned. Was I clear? :s I was thinking in some migrations to perform the followin…

---

## [Unwanted RESTful routes](https://www.ruby-forum.com/t/unwanted-restful-routes/139329)

<div class="topic-metadata">

**Author:** [@daz](https://www.ruby-forum.com/u/daz)\
**Replies:** 5\
**Last updated:** [June 4, 2008, 5:07pm UTC](https://www.ruby-forum.com/t/unwanted-restful-routes/139329 "2008-06-04T17:07:34Z")

</div>

Hi, In my app, I’ve got a Page model and in my routes.rb have the line: map.resources :pages This gives me all of the nice urls for all of the CRUD actions. However, for showing pages, I didn’t like the urls pages/5 …

---

## [Paranthesis Warnings filling production apache logs](https://www.ruby-forum.com/t/paranthesis-warnings-filling-production-apache-logs/139501)

<div class="topic-metadata">

**Author:** [@slain](https://www.ruby-forum.com/u/slain)\
**Replies:** 4\
**Last updated:** [June 4, 2008, 4:43pm UTC](https://www.ruby-forum.com/t/paranthesis-warnings-filling-production-apache-logs/139501 "2008-06-04T16:43:16Z")

</div>

So I guess I can disable the warnings by changing the warning level, but it is mind boggling that I would need to. I would expect this type of a) not be even shown for how I am using it, and b) that it wouldn’t show …

---

## [Template in a Template](https://www.ruby-forum.com/t/template-in-a-template/139470)

<div class="topic-metadata">

**Author:** [@Matthew\_Hauck](https://www.ruby-forum.com/u/Matthew_Hauck)\
**Replies:** 3\
**Last updated:** [June 4, 2008, 3:18pm UTC](https://www.ruby-forum.com/t/template-in-a-template/139470 "2008-06-04T15:18:48Z")

</div>

Greetings! Okay, here is my situation: I have a template with a 3-column layout. The first column is printed out in the template, and the following two columns are generated by the controllers. It is often the case th…

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

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