# Rails

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

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

---

## [Multi cache on Rails](https://www.ruby-forum.com/t/multi-cache-on-rails/183508)

<div class="topic-metadata">

**Author:** [@Gabriel\_Eisbruch](https://www.ruby-forum.com/u/Gabriel_Eisbruch)\
**Replies:** 0\
**Last updated:** [February 15, 2010, 8:53pm UTC](https://www.ruby-forum.com/t/multi-cache-on-rails/183508 "2010-02-15T20:53:20Z")

</div>

Hi, I want to cache a objets group into a memcached pool and other group (differents classes) in other memcached pool, is it possible? For example: i want to store properties into a local memcached and the sessions …

---

## [Forcing lower case in form helper label](https://www.ruby-forum.com/t/forcing-lower-case-in-form-helper-label/183444)

<div class="topic-metadata">

**Author:** [@ralphshnelvar](https://www.ruby-forum.com/u/ralphshnelvar)\
**Replies:** 6\
**Last updated:** [February 15, 2010, 8:18pm UTC](https://www.ruby-forum.com/t/forcing-lower-case-in-form-helper-label/183444 "2010-02-15T20:18:48Z")

</div>

f.label ‘something’ produces Something instead of something How can I force f.label to have a lower case initial letter?

---

## [Rails 3: Can Bundle.require be called after Application class is defined?](https://www.ruby-forum.com/t/rails-3-can-bundle-require-be-called-after-application-class-is-defined/183505)

<div class="topic-metadata">

**Author:** [@g0nzo](https://www.ruby-forum.com/u/g0nzo)\
**Replies:** 0\
**Last updated:** [February 15, 2010, 7:52pm UTC](https://www.ruby-forum.com/t/rails-3-can-bundle-require-be-called-after-application-class-is-defined/183505 "2010-02-15T19:52:28Z")

</div>

Hi, I’m trying to use shoulda in Rails 3 and there’s a small problem. I’m using branch “rails3” from shoulda repository - http://github.com/thoughtbot/shoulda/tree/rails3. The problem is that shoulda tries to auto lo…

---

## [Getting a 500 internal server error with apache](https://www.ruby-forum.com/t/getting-a-500-internal-server-error-with-apache/183477)

<div class="topic-metadata">

**Author:** [@gautam](https://www.ruby-forum.com/u/gautam)\
**Replies:** 3\
**Last updated:** [February 15, 2010, 7:41pm UTC](https://www.ruby-forum.com/t/getting-a-500-internal-server-error-with-apache/183477 "2010-02-15T19:41:55Z")

</div>

System: Ubuntu 9.10 Ruby 1.8 Rails 2.3.5 Apache 2.2 MySql I am getting a 500 Internal Server Error while using apache. Everything works fine when I use Webrick I have configured all the things using this guide h…

---

## [Using local system-wide gems when using gem bundler](https://www.ruby-forum.com/t/using-local-system-wide-gems-when-using-gem-bundler/183503)

<div class="topic-metadata">

**Author:** [@mhfs](https://www.ruby-forum.com/u/mhfs)\
**Replies:** 0\
**Last updated:** [February 15, 2010, 7:18pm UTC](https://www.ruby-forum.com/t/using-local-system-wide-gems-when-using-gem-bundler/183503 "2010-02-15T19:18:30Z")

</div>

Gem bundle is a great tool, but I’m breaking my head here to try to solve what seems to be a simple issue. Right now, we follow a very minimalist philosophy - if it is not needed, then don’t install it. For example, …

---

## [Help on html content modification](https://www.ruby-forum.com/t/help-on-html-content-modification/183467)

<div class="topic-metadata">

**Author:** [@newb](https://www.ruby-forum.com/u/newb)\
**Replies:** 1\
**Last updated:** [February 15, 2010, 6:55pm UTC](https://www.ruby-forum.com/t/help-on-html-content-modification/183467 "2010-02-15T18:55:05Z")

</div>

Dear all, i have a html file in my local path. In that html file i have below tag. Now what i need is i want to modify the above tag into i want to replace all the image path like above path. Is it possible to d…

---

## [Paperclip](https://www.ruby-forum.com/t/paperclip/183491)

<div class="topic-metadata">

**Author:** [@paradise](https://www.ruby-forum.com/u/paradise)\
**Replies:** 0\
**Last updated:** [February 15, 2010, 4:21pm UTC](https://www.ruby-forum.com/t/paperclip/183491 "2010-02-15T16:21:38Z")

</div>

Hi, Wondering is there a way in paperclip to rename images as the are being saved to image\_id+count ? my code in image.rb model has\_attached\_file :data, :styles =\> { :large =\> “371251\>", :small =\> "7272\>”}, :url …

---

## [What is the of backgroundRb](https://www.ruby-forum.com/t/what-is-the-of-backgroundrb/183488)

<div class="topic-metadata">

**Author:** [@salil](https://www.ruby-forum.com/u/salil)\
**Replies:** 0\
**Last updated:** [February 15, 2010, 2:34pm UTC](https://www.ruby-forum.com/t/what-is-the-of-backgroundrb/183488 "2010-02-15T14:34:03Z")

</div>

Hi All, I want to know what is the use of the backgroundRB. I have install all the gem related to it. I followed the instructions given in the http://backgroundrb.rubyforge.org and i successfully start background se…

---

## [Frustrating Problem - Acts As Tree](https://www.ruby-forum.com/t/frustrating-problem-acts-as-tree/183485)

<div class="topic-metadata">

**Author:** [@ntk](https://www.ruby-forum.com/u/ntk)\
**Replies:** 2\
**Last updated:** [February 15, 2010, 1:46pm UTC](https://www.ruby-forum.com/t/frustrating-problem-acts-as-tree/183485 "2010-02-15T13:46:02Z")

</div>

I am a ruby on Rails Novice and I am having an extremely frustrating problem - not sure whether acts\_as\_tree plug in is causing this or not (or me lacking a fundamental misunderstanding of rails) I have the following …

---

## [Help on how append html tag](https://www.ruby-forum.com/t/help-on-how-append-html-tag/183480)

<div class="topic-metadata">

**Author:** [@newb](https://www.ruby-forum.com/u/newb)\
**Replies:** 5\
**Last updated:** [February 15, 2010, 12:53pm UTC](https://www.ruby-forum.com/t/help-on-how-append-html-tag/183480 "2010-02-15T12:53:31Z")

</div>

Dear all, @doc = Hpricot(open("#{RAILS\_ROOT}" + “/public/server\_exe/#{list.file\_path}”)) i need to add element to my @doc hpricot instance… Please help me… how can i add the above img src element to the @doc hpric…

---

## [Designer - Introduction](https://www.ruby-forum.com/t/designer-introduction/183398)

<div class="topic-metadata">

**Author:** [@AS\_Creative\_D](https://www.ruby-forum.com/u/AS_Creative_D)\
**Replies:** 4\
**Last updated:** [February 15, 2010, 12:44pm UTC](https://www.ruby-forum.com/t/designer-introduction/183398 "2010-02-15T12:44:53Z")

</div>

Hi everyone, Just thought I’d introduce myself to some fellow Rails users. I’m a Web Designer based in Glasgow, Scotland and have over 6 years industry experience as a Senior Designer, having previously worked for a …

---

## [How do I get all records whose count of associations is above a certain number](https://www.ruby-forum.com/t/how-do-i-get-all-records-whose-count-of-associations-is-above-a-certain-number/183441)

<div class="topic-metadata">

**Author:** [@frank\_programmer](https://www.ruby-forum.com/u/frank_programmer)\
**Replies:** 7\
**Last updated:** [February 15, 2010, 12:37pm UTC](https://www.ruby-forum.com/t/how-do-i-get-all-records-whose-count-of-associations-is-above-a-certain-number/183441 "2010-02-15T12:37:37Z")

</div>

I have a model, let’s call it Player. It has many Trophies. How do I do a simple query in Rails in my controller that will return let’s say all Players that have more than 5 tropies? Sorry for the dumb question but I…

---

## [Verify presence\_of parameter](https://www.ruby-forum.com/t/verify-presence-of-parameter/183464)

<div class="topic-metadata">

**Author:** [@df-sean](https://www.ruby-forum.com/u/df-sean)\
**Replies:** 2\
**Last updated:** [February 15, 2010, 10:02am UTC](https://www.ruby-forum.com/t/verify-presence-of-parameter/183464 "2010-02-15T10:02:26Z")

</div>

I would like to verify a parameter is present before a search is posted. min\_age = params\[:min\_age\] max\_age = params\[:max\_age\] @users = User.find(:all, :conditions =\> \["years \>= ? AND years \<= ? " min\_age, max\_age\]) …

---

## [Has\_many :through eager loading only loading one record](https://www.ruby-forum.com/t/has-many-through-eager-loading-only-loading-one-record/183476)

<div class="topic-metadata">

**Author:** [@Jarrett](https://www.ruby-forum.com/u/Jarrett)\
**Replies:** 2\
**Last updated:** [February 15, 2010, 9:53am UTC](https://www.ruby-forum.com/t/has-many-through-eager-loading-only-loading-one-record/183476 "2010-02-15T09:53:39Z")

</div>

Hello, I’ve been using Rails for years, including has\_many :through and eager loading, but this one has me stumped. The problem is that Active Record is only eager-loading the first of many records. Here are the mode…

---

## [Bundle error running test on a simple app](https://www.ruby-forum.com/t/bundle-error-running-test-on-a-simple-app/183475)

<div class="topic-metadata">

**Author:** [@ricard.forniol](https://www.ruby-forum.com/u/ricard.forniol)\
**Replies:** 0\
**Last updated:** [February 15, 2010, 9:48am UTC](https://www.ruby-forum.com/t/bundle-error-running-test-on-a-simple-app/183475 "2010-02-15T09:48:23Z")

</div>

I have created a new app with --edge and created a scaffold and migrated the database. When I execute ‘rake test’ I get this error: .bundle/gems/bundler-0.9.5/lib/bundler/resolver.rb:161:in \`resolve’: Could not find …

---

## [Shared Hosting - Not able to added local gem path to rails](https://www.ruby-forum.com/t/shared-hosting-not-able-to-added-local-gem-path-to-rails/179290)

<div class="topic-metadata">

**Author:** [@nirbhab](https://www.ruby-forum.com/u/nirbhab)\
**Replies:** 1\
**Last updated:** [February 15, 2010, 9:11am UTC](https://www.ruby-forum.com/t/shared-hosting-not-able-to-added-local-gem-path-to-rails/179290 "2010-02-15T09:11:31Z")

</div>

Hi, I am using shared hosting. Local Gem ‘googlepagerank’ is there but rails is not able load the GEM. no such file to load – googlepagerank I have updated boot.rb with $:.push("/home/seotoolb/ruby/gems") and restar…

---

## [Moved from ruby 1.8.6 to 1.8.7 and "We're sorry, but something went wrong."](https://www.ruby-forum.com/t/moved-from-ruby-1-8-6-to-1-8-7-and-were-sorry-but-something-went-wrong/183465)

<div class="topic-metadata">

**Author:** [@AlwaysCharging](https://www.ruby-forum.com/u/AlwaysCharging)\
**Replies:** 1\
**Last updated:** [February 15, 2010, 6:10am UTC](https://www.ruby-forum.com/t/moved-from-ruby-1-8-6-to-1-8-7-and-were-sorry-but-something-went-wrong/183465 "2010-02-15T06:10:05Z")

</div>

I’m a windows user, and I was using ruby 1.8.6 installer over at RubyInstaller.org. All was working well, but I decided to give ruby 1.8.7 a try. I uninstalled 1.8.6, downloaded and installed ruby 1.8.7 from rubyins…

---

## [Activeresource and pagination](https://www.ruby-forum.com/t/activeresource-and-pagination/133123)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [February 15, 2010, 12:06am UTC](https://www.ruby-forum.com/t/activeresource-and-pagination/133123 "2010-02-15T00:06:48Z")

</div>

Hi, I am fairly new to rails and am trying to figure out the right way to do pagination with ActiveResource. I am considering just wrapping will\_paginate over everything but I before I do I was hoping to get some in…

---

## [How to describe negative find condition in has\_many](https://www.ruby-forum.com/t/how-to-describe-negative-find-condition-in-has-many/183456)

<div class="topic-metadata">

**Author:** [@cpr](https://www.ruby-forum.com/u/cpr)\
**Replies:** 2\
**Last updated:** [February 14, 2010, 10:55pm UTC](https://www.ruby-forum.com/t/how-to-describe-negative-find-condition-in-has-many/183456 "2010-02-14T22:55:16Z")

</div>

I have a Teams that has\_many Players. I need to get the list of Teams that have no active players (whether they have 0 players or they have a lot of players all of whom are non- active). Can’t figure out the conditio…

---

## [Sharing a method, model, module or?](https://www.ruby-forum.com/t/sharing-a-method-model-module-or/183440)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 3\
**Last updated:** [February 14, 2010, 10:38pm UTC](https://www.ruby-forum.com/t/sharing-a-method-model-module-or/183440 "2010-02-14T22:38:18Z")

</div>

I need some overview thinking help. I have Pictures model/controller but generally, I want to show pictures via a partial displayed in other controller views and I want to do things like choose the picture based upon …

---

## [nicEdti image upload plugin](https://www.ruby-forum.com/t/nicedti-image-upload-plugin/183458)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [February 14, 2010, 10:00pm UTC](https://www.ruby-forum.com/t/nicedti-image-upload-plugin/183458 "2010-02-14T22:00:50Z")

</div>

Hi everyone! Please, try out my plugin for image upload with nicEdit. GitHub - sergio-fry/Simple-nicEdit: Plugin: Easy way to start using wysiwyg editor for Rails Application (nicEdit). Reply to : http://groups.googl…

---

## [Can't mass-assign these protected attributes: tag\_attributes](https://www.ruby-forum.com/t/cant-mass-assign-these-protected-attributes-tag-attributes/183454)

<div class="topic-metadata">

**Author:** [@gregm](https://www.ruby-forum.com/u/gregm)\
**Replies:** 3\
**Last updated:** [February 14, 2010, 7:48pm UTC](https://www.ruby-forum.com/t/cant-mass-assign-these-protected-attributes-tag-attributes/183454 "2010-02-14T19:48:34Z")

</div>

Hi, I added a textarea to my edit student form, to be able to add tags to this student. I did the simple code below, and this is the error i get. I can’t see what i did wrong… #Error message Processing StudentsContr…

---

## [Sending XML requests](https://www.ruby-forum.com/t/sending-xml-requests/183426)

<div class="topic-metadata">

**Author:** [@tashfeen.ekram](https://www.ruby-forum.com/u/tashfeen.ekram)\
**Replies:** 1\
**Last updated:** [February 14, 2010, 4:06pm UTC](https://www.ruby-forum.com/t/sending-xml-requests/183426 "2010-02-14T16:06:28Z")

</div>

I was wondering if there is something built into rails that helps in making XML requests to a third aprty website? Any recommendations for gems that help with this? What about ordinary SOAP requests? Is Net::HTTP the …

---

## [Is ActioveResource suitable for use eBay/PayPal api's?](https://www.ruby-forum.com/t/is-actioveresource-suitable-for-use-ebay-paypal-apis/183442)

<div class="topic-metadata">

**Author:** [@aftershock](https://www.ruby-forum.com/u/aftershock)\
**Replies:** 1\
**Last updated:** [February 14, 2010, 2:48pm UTC](https://www.ruby-forum.com/t/is-actioveresource-suitable-for-use-ebay-paypal-apis/183442 "2010-02-14T14:48:52Z")

</div>

I’ve been having a play with eBay and PayPal API calls and am happily getting xml responses using Net::HTTP calls but now I’m wondering if I can use ActiveResource instead. I’ve created a very basic ActiveResource cla…

---

## [Bundler ignores :group =\> :production?](https://www.ruby-forum.com/t/bundler-ignores-group-production/183415)

<div class="topic-metadata">

**Author:** [@cwd](https://www.ruby-forum.com/u/cwd)\
**Replies:** 1\
**Last updated:** [February 14, 2010, 1:16pm UTC](https://www.ruby-forum.com/t/bundler-ignores-group-production/183415 "2010-02-14T13:16:59Z")

</div>

I’m using SQLite on my dev box and MySQL in production. I’m also running an old mysql adapter gem in production that worked around problems with the MySQL adapter and Ruby 1.9.1. That gem was hosted on github and hasn…

---

## [\[JOBS\] Remote assistance requested for RoR setup](https://www.ruby-forum.com/t/jobs-remote-assistance-requested-for-ror-setup/183423)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [February 14, 2010, 1:16pm UTC](https://www.ruby-forum.com/t/jobs-remote-assistance-requested-for-ror-setup/183423 "2010-02-14T13:16:59Z")

</div>

Hi folks, I’m a new Mac user and new to RoR, just simply trying to navigate my way through the Agile Web D. tutorial. I have been stuck for over a day now trying to get my Mac set up properly so that i can actually …

---

## [Checkbox -\> hide/show element](https://www.ruby-forum.com/t/checkbox-hide-show-element/183409)

<div class="topic-metadata">

**Author:** [@pgundlach](https://www.ruby-forum.com/u/pgundlach)\
**Replies:** 2\
**Last updated:** [February 14, 2010, 1:16pm UTC](https://www.ruby-forum.com/t/checkbox-hide-show-element/183409 "2010-02-14T13:16:59Z")

</div>

Hello, this is probably an easy question: I have a checkbox and a datetime field in a form. This is what I want to achieve: in default mode the checkbox is unchecked and the datetime field is hidden when the user ma…

---

## [Error mailer type control](https://www.ruby-forum.com/t/error-mailer-type-control/183421)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 3\
**Last updated:** [February 14, 2010, 7:34am UTC](https://www.ruby-forum.com/t/error-mailer-type-control/183421 "2010-02-14T07:34:04Z")

</div>

I am really not interested in getting error mails for crap like people scanning to see if I have some outdated version of phpmyadmin, roundcube, etc… the typical stuff hackers are will look for. So within my applicati…

---

## [Updating a variable in a partial using Javascript?](https://www.ruby-forum.com/t/updating-a-variable-in-a-partial-using-javascript/183438)

<div class="topic-metadata">

**Author:** [@AlwaysCharging](https://www.ruby-forum.com/u/AlwaysCharging)\
**Replies:** 0\
**Last updated:** [February 14, 2010, 6:57am UTC](https://www.ruby-forum.com/t/updating-a-variable-in-a-partial-using-javascript/183438 "2010-02-14T06:57:12Z")

</div>

Currently in a partial, I have the following: \<% @blogs.each do |blog| %\> \<% fields\_for “#{Time.now.to\_i}”, blog do |f| %\> How do I update the #{Time.now.to\_i} every time the user clicks? Currently, the Time only get…

---

## [Paperclip is making me crazy](https://www.ruby-forum.com/t/paperclip-is-making-me-crazy/183436)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 2\
**Last updated:** [February 14, 2010, 6:21am UTC](https://www.ruby-forum.com/t/paperclip-is-making-me-crazy/183436 "2010-02-14T06:21:29Z")

</div>

seems pretty simple, my model… has\_attached\_file :pic\_1, :styles =\> { :thumb =\> “120x90” }, :url =\> “/:attachment/:id\_:style.:extension”, :path =\> “:rails\_root/public/system/:attachment/:id\_:style.:extension” my view…

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

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