# Rails

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

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

---

## [Error installing some gems (Ruby 1.9.2)](https://www.ruby-forum.com/t/error-installing-some-gems-ruby-1-9-2/183716)

<div class="topic-metadata">

**Author:** [@Katherine](https://www.ruby-forum.com/u/Katherine)\
**Replies:** 4\
**Last updated:** [February 19, 2010, 3:43am UTC](https://www.ruby-forum.com/t/error-installing-some-gems-ruby-1-9-2/183716 "2010-02-19T03:43:21Z")

</div>

Hi I am testing Ruby 1.9.2 and Rails 3. Has anybody encountered this error: web katz$ gem install rspec-rails Thank you for installing rspec-rails-1.3.2 If you are upgrading, do this in each of your rails apps that…

---

## [Rails 3 version of ActiveRecord usable with Rails 2?](https://www.ruby-forum.com/t/rails-3-version-of-activerecord-usable-with-rails-2/183652)

<div class="topic-metadata">

**Author:** [@jeff](https://www.ruby-forum.com/u/jeff)\
**Replies:** 3\
**Last updated:** [February 19, 2010, 3:18am UTC](https://www.ruby-forum.com/t/rails-3-version-of-activerecord-usable-with-rails-2/183652 "2010-02-19T03:18:47Z")

</div>

Anybody know if the changes coming to Rails 3 that affect ActiveRecord can be applied to Rails 2.x projects as well? If it’s just the ActiveRecord gem that’s changing, then we should be able to use the new ActiveReco…

---

## [Plupload](https://www.ruby-forum.com/t/plupload/183711)

<div class="topic-metadata">

**Author:** [@stratboy](https://www.ruby-forum.com/u/stratboy)\
**Replies:** 0\
**Last updated:** [February 18, 2010, 11:03pm UTC](https://www.ruby-forum.com/t/plupload/183711 "2010-02-18T23:03:58Z")

</div>

Is possible use plupload with rails? How can i do? thanks

---

## [Rails newbie to 2.0: problem with "ruby script/generate scaffold"](https://www.ruby-forum.com/t/rails-newbie-to-2-0-problem-with-ruby-script-generate-scaffold/183709)

<div class="topic-metadata">

**Author:** [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Replies:** 0\
**Last updated:** [February 18, 2010, 10:34pm UTC](https://www.ruby-forum.com/t/rails-newbie-to-2-0-problem-with-ruby-script-generate-scaffold/183709 "2010-02-18T22:34:19Z")

</div>

Running: gem 1.3.5 Rails 2.3.5 MySQL 5.0.27-community-nt Created databases: rts\_development; rts\_test; Showed databases: information\_schema mysql rts\_development rts\_test Setup privileges on databases: grant…

---

## [Dates not being typecast properly, becoming nil?](https://www.ruby-forum.com/t/dates-not-being-typecast-properly-becoming-nil/183589)

<div class="topic-metadata">

**Author:** [@jemminger](https://www.ruby-forum.com/u/jemminger)\
**Replies:** 11\
**Last updated:** [February 18, 2010, 10:24pm UTC](https://www.ruby-forum.com/t/dates-not-being-typecast-properly-becoming-nil/183589 "2010-02-18T22:24:57Z")

</div>

I have a rails 2.3.5 app running on ruby 1.8.7 (2008-08-11 patchlevel 72) \[i686-darwin9\] locally, and everything is fine. I’m trying to deploy it to my server, running centos 5.4, ruby 1.8.7 (2009-12-24 patchlevel 248…

---

## [Restful route paths... has something changed?](https://www.ruby-forum.com/t/restful-route-paths-has-something-changed/183705)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [February 18, 2010, 10:05pm UTC](https://www.ruby-forum.com/t/restful-route-paths-has-something-changed/183705 "2010-02-18T22:05:38Z")

</div>

So I have this resources :forums do resources :topics end But when I try to do this: \<%= forum\_topics\_path(1, 2) %\> I get: /forums/1/topics.2 Why the dot? Expecting a slash This is rails3… so maybe I am doing i…

---

## [Ajax](https://www.ruby-forum.com/t/ajax/183692)

<div class="topic-metadata">

**Author:** [@manish\_belsare](https://www.ruby-forum.com/u/manish_belsare)\
**Replies:** 1\
**Last updated:** [February 18, 2010, 9:41pm UTC](https://www.ruby-forum.com/t/ajax/183692 "2010-02-18T21:41:25Z")

</div>

def new @answer = Answer.new respond\_to do |format| format.js do render :update do |page| page.hide “add\_answer\_link\_for\_post\_#{@post.id}” page.replace\_html “new\_answer\_form\_for\_post\_#{@post.id}”, :partial =\> “new…

---

## [Explicit named routes with has\_many error](https://www.ruby-forum.com/t/explicit-named-routes-with-has-many-error/183685)

<div class="topic-metadata">

**Author:** [@trev](https://www.ruby-forum.com/u/trev)\
**Replies:** 1\
**Last updated:** [February 18, 2010, 8:36pm UTC](https://www.ruby-forum.com/t/explicit-named-routes-with-has-many-error/183685 "2010-02-18T20:36:40Z")

</div>

I am very stuck on this problem. I know there is something simple I am missing, but I have been staring at it long enough to ask others at this point. The code: \_fixed.txt · GitHub Basically, I have an assets control…

---

## [ActiveResource and Paging](https://www.ruby-forum.com/t/activeresource-and-paging/183694)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [February 18, 2010, 8:11pm UTC](https://www.ruby-forum.com/t/activeresource-and-paging/183694 "2010-02-18T20:11:29Z")

</div>

I am using ActiveResource to access an API that is using paging. They are using the X-Records and X-Pages HTTP headers. Is there anyway to access these? Ideally, I could call MyClass.find(:all), and it would return…

---

## [Ajax](https://www.ruby-forum.com/t/ajax/183637)

<div class="topic-metadata">

**Author:** [@manish\_belsare](https://www.ruby-forum.com/u/manish_belsare)\
**Replies:** 4\
**Last updated:** [February 18, 2010, 7:56pm UTC](https://www.ruby-forum.com/t/ajax/183637 "2010-02-18T19:56:42Z")

</div>

Sir can u guide me in implementation of Ajax calls in Ruby and Rails? wen i m implementing a new page it gives th following op: “try { Element.hide(“add\_answer\_link\_for\_post\_-613772418”); Element.update(“new\_answer\_f…

---

## [Rake db:create](https://www.ruby-forum.com/t/rake-db-create/183686)

<div class="topic-metadata">

**Author:** [@m\_bhupendrain](https://www.ruby-forum.com/u/m_bhupendrain)\
**Replies:** 4\
**Last updated:** [February 18, 2010, 7:07pm UTC](https://www.ruby-forum.com/t/rake-db-create/183686 "2010-02-18T19:07:40Z")

</div>

Hi I have following problem using command C:\\myApp\\rake db:create. If any one can helpe me. thank you in advance regards (in C:/myApp) uninitialized constant Encoding C:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.…

---

## [Join and Refer In Tables](https://www.ruby-forum.com/t/join-and-refer-in-tables/183684)

<div class="topic-metadata">

**Author:** [@kampers](https://www.ruby-forum.com/u/kampers)\
**Replies:** 1\
**Last updated:** [February 18, 2010, 6:56pm UTC](https://www.ruby-forum.com/t/join-and-refer-in-tables/183684 "2010-02-18T18:56:06Z")

</div>

OK: I’ve read through this a million times and am still not getting it right. I have two tables (posts and authors), with a one(author) to many(posts) relationship, and the keys are not named id but user\_name in one a…

---

## [Modeling Users in Battle-Game App?](https://www.ruby-forum.com/t/modeling-users-in-battle-game-app/183687)

<div class="topic-metadata">

**Author:** [@audreylee88](https://www.ruby-forum.com/u/audreylee88)\
**Replies:** 0\
**Last updated:** [February 18, 2010, 6:38pm UTC](https://www.ruby-forum.com/t/modeling-users-in-battle-game-app/183687 "2010-02-18T18:38:59Z")

</div>

Dear List, I’d welcome some opinions on a modeling challenge I have. I’m working on a game-app. Each user in this app has many friends. Also the user has many enemies. These friends and enemies are user objects. So…

---

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

<div class="topic-metadata">

**Author:** [@sseung](https://www.ruby-forum.com/u/sseung)\
**Replies:** 4\
**Last updated:** [February 18, 2010, 6:15pm UTC](https://www.ruby-forum.com/t/rails-error/183677 "2010-02-18T18:15:53Z")

</div>

I was following a tutorial on ruby on rails and i get this error whenever i try to setup a rails project. Any idea whats wrong? C:\\Ruby19\> rails library C:/Ruby19/lib/ruby/gems/1.9.1/gems/activesupport-1.3.1/lib/acti…

---

## [Can't access my plugin views](https://www.ruby-forum.com/t/cant-access-my-plugin-views/183664)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 2\
**Last updated:** [February 18, 2010, 6:14pm UTC](https://www.ruby-forum.com/t/cant-access-my-plugin-views/183664 "2010-02-18T18:14:31Z")

</div>

I have created a plugin with a controller and views inside lib/app of the folder. I have added the controller’s folder to the LOAD\_PATH, but not the views. When using the plugin, the controller is loaded, but not the …

---

## [Testing Paperclip - post :create fails](https://www.ruby-forum.com/t/testing-paperclip-post-create-fails/183543)

<div class="topic-metadata">

**Author:** [@rtacconi](https://www.ruby-forum.com/u/rtacconi)\
**Replies:** 3\
**Last updated:** [February 18, 2010, 6:02pm UTC](https://www.ruby-forum.com/t/testing-paperclip-post-create-fails/183543 "2010-02-18T18:02:41Z")

</div>

I have a video model using Paperclip to store the file. The model: class Video \< ActiveRecord::Base belongs\_to :category before\_save :permalink validates\_presence\_of :title validates\_presence\_of :category validates…

---

## [Christian Weekend Hack a' thon](https://www.ruby-forum.com/t/christian-weekend-hack-a-thon/183683)

<div class="topic-metadata">

**Author:** [@Johnathan\_Pulos](https://www.ruby-forum.com/u/Johnathan_Pulos)\
**Replies:** 0\
**Last updated:** [February 18, 2010, 5:43pm UTC](https://www.ruby-forum.com/t/christian-weekend-hack-a-thon/183683 "2010-02-18T17:43:22Z")

</div>

Calling All Fellow Techies, Designers, and Developers, My name is Johnathan Pulos, and I am a Southern California Christian Web D… I have been thinking about creating an annual Southern California Christian Week…

---

## [Store data in database from GA API](https://www.ruby-forum.com/t/store-data-in-database-from-ga-api/183678)

<div class="topic-metadata">

**Author:** [@remco](https://www.ruby-forum.com/u/remco)\
**Replies:** 0\
**Last updated:** [February 18, 2010, 5:19pm UTC](https://www.ruby-forum.com/t/store-data-in-database-from-ga-api/183678 "2010-02-18T17:19:15Z")

</div>

Hi, I use the gem gattica to acces our unique visitor data. This works fine in my console. require ‘rubygems’ require ‘gattica’ gs = Gattica.new({:email =\> ‘XXXX’, :password =\> ‘XXXXX’}) accounts = gs.accounts gs.…

---

## [Controller Error](https://www.ruby-forum.com/t/controller-error/183542)

<div class="topic-metadata">

**Author:** [@prasath\_venkatraman](https://www.ruby-forum.com/u/prasath_venkatraman)\
**Replies:** 2\
**Last updated:** [February 18, 2010, 5:10pm UTC](https://www.ruby-forum.com/t/controller-error/183542 "2010-02-18T17:10:08Z")

</div>

Sorry for the newbie question i created a controller and a action for my rails but when i load on my browser am gettin a message like this We’re sorry, but something went wrong. We’ve been notified about this issue a…

---

## [Array in post data via http](https://www.ruby-forum.com/t/array-in-post-data-via-http/183654)

<div class="topic-metadata">

**Author:** [@tiwaripk](https://www.ruby-forum.com/u/tiwaripk)\
**Replies:** 1\
**Last updated:** [February 18, 2010, 4:58pm UTC](https://www.ruby-forum.com/t/array-in-post-data-via-http/183654 "2010-02-18T16:58:40Z")

</div>

How can I pass my array in post request using ruby ? My array contains 1000 integer values which needs to be passed to a controller function. Need help to do this using http post request.

---

## [Using validates\_uniqueness\_of with :update](https://www.ruby-forum.com/t/using-validates-uniqueness-of-with-update/183659)

<div class="topic-metadata">

**Author:** [@shiran](https://www.ruby-forum.com/u/shiran)\
**Replies:** 7\
**Last updated:** [February 18, 2010, 4:43pm UTC](https://www.ruby-forum.com/t/using-validates-uniqueness-of-with-update/183659 "2010-02-18T16:43:04Z")

</div>

Hi, I need to use validates\_uniqueness\_of only when inserting new records but not when update them. I use the following line of code, validates\_uniqueness\_of :type\_id, :scope =\> \[:user\_name\], :unless =\> :update, :me…

---

## [Amending partials](https://www.ruby-forum.com/t/amending-partials/183203)

<div class="topic-metadata">

**Author:** [@sam](https://www.ruby-forum.com/u/sam)\
**Replies:** 11\
**Last updated:** [February 18, 2010, 3:36pm UTC](https://www.ruby-forum.com/t/amending-partials/183203 "2010-02-18T15:36:54Z")

</div>

Hi there I’m new to ruby on rails and I need some help with amending a view i created using partials. I need to create a booking form that allows me to enter a business name, address and category and i created three …

---

## [Converting hash to option string](https://www.ruby-forum.com/t/converting-hash-to-option-string/183647)

<div class="topic-metadata">

**Author:** [@ralphshnelvar](https://www.ruby-forum.com/u/ralphshnelvar)\
**Replies:** 5\
**Last updated:** [February 18, 2010, 3:30pm UTC](https://www.ruby-forum.com/t/converting-hash-to-option-string/183647 "2010-02-18T15:30:27Z")

</div>

Is there a good way to programmatically convert {:a=\>‘b’, :c=\>‘d’} to ‘a=b c=d’ ? Rails seems to do this knid of thing “all over the place”. I see reverse\_merge and similar functions … but I wonder if this is cann…

---

## [RubySlide.com](https://www.ruby-forum.com/t/rubyslide-com/183671)

<div class="topic-metadata">

**Author:** [@flyerhzm](https://www.ruby-forum.com/u/flyerhzm)\
**Replies:** 0\
**Last updated:** [February 18, 2010, 3:21pm UTC](https://www.ruby-forum.com/t/rubyslide-com/183671 "2010-02-18T15:21:05Z")

</div>

RubySlide.com, inspired by RubyTu.be, gathers all the latest Ruby slides and presentations in one convenient place! http://www.rubyslide.com

---

## [How to capture not eval'ed ERB](https://www.ruby-forum.com/t/how-to-capture-not-evaled-erb/183661)

<div class="topic-metadata">

**Author:** [@stevo84](https://www.ruby-forum.com/u/stevo84)\
**Replies:** 0\
**Last updated:** [February 18, 2010, 1:34pm UTC](https://www.ruby-forum.com/t/how-to-capture-not-evaled-erb/183661 "2010-02-18T13:34:33Z")

</div>

Hello I need to capture a piece of erb by helper, modify it slighlty and render it back. Really simplified version below: def call\_tag(tagname, \*attrs, &block) content = capture(&block) concat render(:inline =\> proc…

---

## [Noob question : font problems](https://www.ruby-forum.com/t/noob-question-font-problems/183658)

<div class="topic-metadata">

**Author:** [@radu\_puspana](https://www.ruby-forum.com/u/radu_puspana)\
**Replies:** 1\
**Last updated:** [February 18, 2010, 1:06pm UTC](https://www.ruby-forum.com/t/noob-question-font-problems/183658 "2010-02-18T13:06:49Z")

</div>

hello dear friends, i came across some font problems, here is the link a billion thx in advance, radu

---

## [Problem in running console in production mode](https://www.ruby-forum.com/t/problem-in-running-console-in-production-mode/183657)

<div class="topic-metadata">

**Author:** [@hemantborole](https://www.ruby-forum.com/u/hemantborole)\
**Replies:** 2\
**Last updated:** [February 18, 2010, 11:40am UTC](https://www.ruby-forum.com/t/problem-in-running-console-in-production-mode/183657 "2010-02-18T11:40:56Z")

</div>

Hello guys, I have just now completed my application and decided to deploy it on sever. But the problem i faced is that i can not run ./script/console there… It gives me error as:- script/console:2:in \`require’: no s…

---

## [Combobox-distinct element](https://www.ruby-forum.com/t/combobox-distinct-element/183604)

<div class="topic-metadata">

**Author:** [@veena](https://www.ruby-forum.com/u/veena)\
**Replies:** 2\
**Last updated:** [February 18, 2010, 5:00am UTC](https://www.ruby-forum.com/t/combobox-distinct-element/183604 "2010-02-18T05:00:41Z")

</div>

plz help me in retrieving distinct element from db and populate in combobox? I hav created a model “location”.It has elements (state,district,province,…) I want to populate one combobox with distinct state and the ot…

---

## [Rspec + rcov + rails + sequel (false coverage report)](https://www.ruby-forum.com/t/rspec-rcov-rails-sequel-false-coverage-report/183644)

<div class="topic-metadata">

**Author:** [@destiney](https://www.ruby-forum.com/u/destiney)\
**Replies:** 0\
**Last updated:** [February 18, 2010, 3:00am UTC](https://www.ruby-forum.com/t/rspec-rcov-rails-sequel-false-coverage-report/183644 "2010-02-18T03:00:08Z")

</div>

Anyone use rcov (0.9.4) on a rails (2.3.5) app that is using Sequel (3.8.0)? The coverage report is including blank and comment lines as not being executed. It is also including the class definition line as being n…

---

## [Newbie RESTful routing problem, please help!](https://www.ruby-forum.com/t/newbie-restful-routing-problem-please-help/183597)

<div class="topic-metadata">

**Author:** [@tutiplain](https://www.ruby-forum.com/u/tutiplain)\
**Replies:** 3\
**Last updated:** [February 18, 2010, 1:43am UTC](https://www.ruby-forum.com/t/newbie-restful-routing-problem-please-help/183597 "2010-02-18T01:43:01Z")

</div>

Hello, on my last post a few weeks ago, all who replied seemed to agree that the problem I was having was in my routing configuration. I decided to read up a bit on rails routing using this article: I decided to try…

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

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