# Rails

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

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

---

## [Require gem only for specific controller](https://www.ruby-forum.com/t/require-gem-only-for-specific-controller/182712)

<div class="topic-metadata">

**Author:** [@nicpon](https://www.ruby-forum.com/u/nicpon)\
**Replies:** 0\
**Last updated:** [February 1, 2010, 8:00pm UTC](https://www.ruby-forum.com/t/require-gem-only-for-specific-controller/182712 "2010-02-01T20:00:56Z")

</div>

Hello, Is there a way to require a gem only when specific controller is accessed. I have one plugng that doesn’t like co-existing with a gem(active scaffold and will\_paginate). I have two controllers that use will\_pa…

---

## [Find\_each leaks (a lot)?](https://www.ruby-forum.com/t/find-each-leaks-a-lot/182710)

<div class="topic-metadata">

**Author:** [@PierreW](https://www.ruby-forum.com/u/PierreW)\
**Replies:** 0\
**Last updated:** [February 1, 2010, 7:54pm UTC](https://www.ruby-forum.com/t/find-each-leaks-a-lot/182710 "2010-02-01T19:54:35Z")

</div>

Hi guys, I need to load a big amount of records from a table (around 20000). So I am using find\_each. In the RDoc it says: “When processing large numbers of records, it‘s often a good idea to do so in batches to prev…

---

## [Deploying issues with plesk.. usergroups, permissions and mysql database creation](https://www.ruby-forum.com/t/deploying-issues-with-plesk-usergroups-permissions-and-mysql-database-creation/182702)

<div class="topic-metadata">

**Author:** [@rubybox](https://www.ruby-forum.com/u/rubybox)\
**Replies:** 3\
**Last updated:** [February 1, 2010, 6:48pm UTC](https://www.ruby-forum.com/t/deploying-issues-with-plesk-usergroups-permissions-and-mysql-database-creation/182702 "2010-02-01T18:48:57Z")

</div>

I have several ruby newbie problems with my deployment First issue… user rights and group permissions with ruby enterprise using PLESK To deploy i did create a git bare repo on my server inside /var/git/ myapp.git …

---

## [Problems with system("...") method in Rails](https://www.ruby-forum.com/t/problems-with-system-method-in-rails/182690)

<div class="topic-metadata">

**Author:** [@christoph\_j](https://www.ruby-forum.com/u/christoph_j)\
**Replies:** 4\
**Last updated:** [February 1, 2010, 5:21pm UTC](https://www.ruby-forum.com/t/problems-with-system-method-in-rails/182690 "2010-02-01T17:21:44Z")

</div>

Hi there, since two days or so my application doesn’t seem to execute the system method. I use it for generating thumbnails like: def create\_thumb(field,image\_name) thumb\_name = "..." path = "..." # call Image…

---

## [Developer Wanted](https://www.ruby-forum.com/t/developer-wanted/182696)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [February 1, 2010, 5:18pm UTC](https://www.ruby-forum.com/t/developer-wanted/182696 "2010-02-01T17:18:13Z")

</div>

My agency is looking for a Ruby on Rails developer in the Louisville, KY area. Any input would be appreciated.

---

## [I can't make i18n work on rails](https://www.ruby-forum.com/t/i-cant-make-i18n-work-on-rails/182065)

<div class="topic-metadata">

**Author:** [@wisemaster](https://www.ruby-forum.com/u/wisemaster)\
**Replies:** 5\
**Last updated:** [February 1, 2010, 4:38pm UTC](https://www.ruby-forum.com/t/i-cant-make-i18n-work-on-rails/182065 "2010-02-01T16:38:58Z")

</div>

Hi, I’m following this guide Rails Internationalization (I18n) API — Ruby on Rails Guides but I can’t make it works. it says: “Rails adds all .rb and .yml files from the config/locales directory to your translations …

---

## [Has\_many, through with multiple nested models?](https://www.ruby-forum.com/t/has-many-through-with-multiple-nested-models/182362)

<div class="topic-metadata">

**Author:** [@lunaclaire](https://www.ruby-forum.com/u/lunaclaire)\
**Replies:** 1\
**Last updated:** [February 1, 2010, 4:13pm UTC](https://www.ruby-forum.com/t/has-many-through-with-multiple-nested-models/182362 "2010-02-01T16:13:21Z")

</div>

First the data model, then the question: running Rails 2.2.3, I have class Forum \< ActiveRecord::Base has\_many :topics, :dependent =\> :destroy, :order =\> ‘created\_at desc’ end class User \< ActiveRec…

---

## [Which version of RoR is covered in the O Rielly Book - RoR Up & Running](https://www.ruby-forum.com/t/which-version-of-ror-is-covered-in-the-o-rielly-book-ror-up-running/182635)

<div class="topic-metadata">

**Author:** [@dhanukanaveen](https://www.ruby-forum.com/u/dhanukanaveen)\
**Replies:** 2\
**Last updated:** [February 1, 2010, 3:45pm UTC](https://www.ruby-forum.com/t/which-version-of-ror-is-covered-in-the-o-rielly-book-ror-up-running/182635 "2010-02-01T15:45:01Z")

</div>

Hi, I found it difficult to work according to this book with the latest RoR release. Please guide as to which RoR release to use. Thanks… Best Wishes, Naveen D…

---

## [Suggestion: Merging Rails application templates with generator functionality](https://www.ruby-forum.com/t/suggestion-merging-rails-application-templates-with-generator-functionality/182678)

<div class="topic-metadata">

**Author:** [@Kristian](https://www.ruby-forum.com/u/Kristian)\
**Replies:** 1\
**Last updated:** [February 1, 2010, 3:26pm UTC](https://www.ruby-forum.com/t/suggestion-merging-rails-application-templates-with-generator-functionality/182678 "2010-02-01T15:26:58Z")

</div>

Been working a bit lately on implementing Rails app. templates and generators. It is clear there is a lot of overlap and that features from generators could be used in app. templates and vice versa. I will try to port…

---

## [Records monthwise?](https://www.ruby-forum.com/t/records-monthwise/182673)

<div class="topic-metadata">

**Author:** [@hemantborole](https://www.ruby-forum.com/u/hemantborole)\
**Replies:** 2\
**Last updated:** [February 1, 2010, 3:12pm UTC](https://www.ruby-forum.com/t/records-monthwise/182673 "2010-02-01T15:12:46Z")

</div>

Hi Champs, I hope this is not a newbie question.:slight\_smile: I have an leave table with columns start\_date and end\_date. Employees can apply leave for any date. Now i want to display the number of days of leave he…

---

## [Populate dropdown](https://www.ruby-forum.com/t/populate-dropdown/182665)

<div class="topic-metadata">

**Author:** [@M\_I\_R](https://www.ruby-forum.com/u/M_I_R)\
**Replies:** 3\
**Last updated:** [February 1, 2010, 1:15pm UTC](https://www.ruby-forum.com/t/populate-dropdown/182665 "2010-02-01T13:15:15Z")

</div>

Hi, I am new for RoR i am using f.select for dropdown and want to populate it from database table i have a function in cities model which retrieve all cities and i am doing the follwoing to populate the dropdown f.s…

---

## [Problem in Routes](https://www.ruby-forum.com/t/problem-in-routes/182675)

<div class="topic-metadata">

**Author:** [@charanya](https://www.ruby-forum.com/u/charanya)\
**Replies:** 2\
**Last updated:** [February 1, 2010, 12:58pm UTC](https://www.ruby-forum.com/t/problem-in-routes/182675 "2010-02-01T12:58:23Z")

</div>

Hi All I had been using Rails 2.1.2 and in routes.rb i had a route defined like map.namespace :mysite do |mysite| mysite.questions ‘/questions.:format’, :controller =\> ‘mysite\_questions’, :action =\> ‘index’ end An…

---

## [:include question](https://www.ruby-forum.com/t/include-question/182670)

<div class="topic-metadata">

**Author:** [@asoto](https://www.ruby-forum.com/u/asoto)\
**Replies:** 4\
**Last updated:** [February 1, 2010, 11:49am UTC](https://www.ruby-forum.com/t/include-question/182670 "2010-02-01T11:49:13Z")

</div>

Hello all! Here is the gist with my problem: http://gist.github.com/291533 I need to get all records with one query. Is it possible? Thanks

---

## [Ror developers](https://www.ruby-forum.com/t/ror-developers/182627)

<div class="topic-metadata">

**Author:** [@securians](https://www.ruby-forum.com/u/securians)\
**Replies:** 1\
**Last updated:** [February 1, 2010, 10:56am UTC](https://www.ruby-forum.com/t/ror-developers/182627 "2010-02-01T10:56:12Z")

</div>

Ruby on Rails or RoR, is an open source web application framework for the Ruby programming language. We build quality Ruby On Rails web applications for start-ups and established businesses since early 2006. We focus …

---

## [Payroll cum HR management application](https://www.ruby-forum.com/t/payroll-cum-hr-management-application/182672)

<div class="topic-metadata">

**Author:** [@tom-mac](https://www.ruby-forum.com/u/tom-mac)\
**Replies:** 0\
**Last updated:** [February 1, 2010, 10:47am UTC](https://www.ruby-forum.com/t/payroll-cum-hr-management-application/182672 "2010-02-01T10:47:04Z")

</div>

Hi Could anyone please suggest a good Payroll cum HR management open source rails application? Thanks Tom

---

## [Custom query](https://www.ruby-forum.com/t/custom-query/182666)

<div class="topic-metadata">

**Author:** [@M\_I\_R](https://www.ruby-forum.com/u/M_I_R)\
**Replies:** 2\
**Last updated:** [February 1, 2010, 10:37am UTC](https://www.ruby-forum.com/t/custom-query/182666 "2010-02-01T10:37:48Z")

</div>

Hi, i want to select only product id and product name from a table how will i manage please help

---

## [Installing existing project as plugin](https://www.ruby-forum.com/t/installing-existing-project-as-plugin/182663)

<div class="topic-metadata">

**Author:** [@rubybox](https://www.ruby-forum.com/u/rubybox)\
**Replies:** 0\
**Last updated:** [February 1, 2010, 9:26am UTC](https://www.ruby-forum.com/t/installing-existing-project-as-plugin/182663 "2010-02-01T09:26:22Z")

</div>

Dear Everyone, I have 1 opensource project im very interested in. I would like to install this project as a plugin since it does not support a /theme folder to override the app views, js, stylesheets, etc. And this o…

---

## [\[JOBS\] Entry-to-mid level Rails developer wanted in Adelaide or Sydney, Australia!](https://www.ruby-forum.com/t/jobs-entry-to-mid-level-rails-developer-wanted-in-adelaide-or-sydney-australia/182662)

<div class="topic-metadata">

**Author:** [@Sebastian\_von\_Conra](https://www.ruby-forum.com/u/Sebastian_von_Conra)\
**Replies:** 0\
**Last updated:** [February 1, 2010, 9:18am UTC](https://www.ruby-forum.com/t/jobs-entry-to-mid-level-rails-developer-wanted-in-adelaide-or-sydney-australia/182662 "2010-02-01T09:18:46Z")

</div>

Hi, My name is Sebastian von Conrad and I’m not a recruiter; I’m a software developer with e-channel search, an industry leading search engine marketing agency with offices in Adelaide and Sydney. We’ve been in busin…

---

## [Paginator](https://www.ruby-forum.com/t/paginator/182638)

<div class="topic-metadata">

**Author:** [@manish\_belsare](https://www.ruby-forum.com/u/manish_belsare)\
**Replies:** 1\
**Last updated:** [February 1, 2010, 9:18am UTC](https://www.ruby-forum.com/t/paginator/182638 "2010-02-01T09:18:11Z")

</div>

hey i m getting an error wen i do da paginating stuff…can u help meh? n it says ActionController does not contain ‘super’ method… bt books say its valid…y? Error: uninitialized constant ApplicationController::Paginat…

---

## [Linguistics problem](https://www.ruby-forum.com/t/linguistics-problem/182660)

<div class="topic-metadata">

**Author:** [@saboor](https://www.ruby-forum.com/u/saboor)\
**Replies:** 0\
**Last updated:** [February 1, 2010, 8:18am UTC](https://www.ruby-forum.com/t/linguistics-problem/182660 "2010-02-01T08:18:28Z")

</div>

hi, i am using linguistics, i have installed the linguistics gem when i run my application it come up with error that no such file to load – linguistics so kindly suggest me some solution. thanks

---

## [Saving to the DB uses a lot of RAM?](https://www.ruby-forum.com/t/saving-to-the-db-uses-a-lot-of-ram/182566)

<div class="topic-metadata">

**Author:** [@PierreW](https://www.ruby-forum.com/u/PierreW)\
**Replies:** 6\
**Last updated:** [February 1, 2010, 5:14am UTC](https://www.ruby-forum.com/t/saving-to-the-db-uses-a-lot-of-ram/182566 "2010-02-01T05:14:07Z")

</div>

Hi guys, I must be missing something obvious… array\_of\_stuff = \[ contains a lot of fairly small AR objects \] RAM at 30MB array\_of\_stuff.each do |foo| foo.save end array\_of\_stuff = nil RAM at 60+MB The iteration it…

---

## [Acts\_as\_nested\_set, delete(node) method?](https://www.ruby-forum.com/t/acts-as-nested-set-delete-node-method/182452)

<div class="topic-metadata">

**Author:** [@sushi2k](https://www.ruby-forum.com/u/sushi2k)\
**Replies:** 2\
**Last updated:** [February 1, 2010, 4:41am UTC](https://www.ruby-forum.com/t/acts-as-nested-set-delete-node-method/182452 "2010-02-01T04:41:18Z")

</div>

Hello, I’m using acts\_as\_nested\_set, and I can create root-nodes and add childs to it. No problem. But what can I do, to delete a certain node and all of it’s children? And of course in a way that it’s consistent, thi…

---

## [Removing scaffold?](https://www.ruby-forum.com/t/removing-scaffold/182643)

<div class="topic-metadata">

**Author:** [@drsharp](https://www.ruby-forum.com/u/drsharp)\
**Replies:** 3\
**Last updated:** [February 1, 2010, 2:22am UTC](https://www.ruby-forum.com/t/removing-scaffold/182643 "2010-02-01T02:22:02Z")

</div>

Hi, I just created a new scaffold in my app using the nifty-scaffold plugin. However, I messed up the syntax and forgot the model name, so it ended up being called “Title:string”. I now can’t run any tasks from the t…

---

## [Amazon s3 rails file download issue](https://www.ruby-forum.com/t/amazon-s3-rails-file-download-issue/182571)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 6\
**Last updated:** [February 1, 2010, 2:17am UTC](https://www.ruby-forum.com/t/amazon-s3-rails-file-download-issue/182571 "2010-02-01T02:17:56Z")

</div>

I am trying to get a file from the amazon bucket but it says “string contains null byte”. any idea how to get the file to download like a regular file? The file is there at the location. f = Heypub.value @bucket se…

---

## [Link\_to\_function error](https://www.ruby-forum.com/t/link-to-function-error/182491)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 1\
**Last updated:** [February 1, 2010, 2:10am UTC](https://www.ruby-forum.com/t/link-to-function-error/182491 "2010-02-01T02:10:55Z")

</div>

I have a link\_to\_function on one page to go to this edit screen with this link\_to\_function. \<%= link\_to\_function ‘cancel’ do |page| page\[:“work\_show\_#{work.id}”\].hide end %\> When I click on the edit button it says, …

---

## [Calendar date picker plugin](https://www.ruby-forum.com/t/calendar-date-picker-plugin/182632)

<div class="topic-metadata">

**Author:** [@Rajinder\_Y](https://www.ruby-forum.com/u/Rajinder_Y)\
**Replies:** 4\
**Last updated:** [February 1, 2010, 1:45am UTC](https://www.ruby-forum.com/t/calendar-date-picker-plugin/182632 "2010-02-01T01:45:20Z")

</div>

Hi I’m new to rails and trying to find a calendar picker plugin. I’ve come across ‘calendardateselect’, but I can’t seem to figure out step 4 =P The other one I tired is ‘activecalendar’ (does anyone know if this pro…

---

## [Append/Prepend to a template from controller method](https://www.ruby-forum.com/t/append-prepend-to-a-template-from-controller-method/182617)

<div class="topic-metadata">

**Author:** [@ktheory](https://www.ruby-forum.com/u/ktheory)\
**Replies:** 3\
**Last updated:** [January 31, 2010, 11:42pm UTC](https://www.ruby-forum.com/t/append-prepend-to-a-template-from-controller-method/182617 "2010-01-31T23:42:05Z")

</div>

I want a method in app/controllers/application.rb that can prepend/append text to whatever template gets rendered. Of course I can’t call render twice w/o getting a double render error, so is this possible? I want to…

---

## [Advice for image folders in an i18n app](https://www.ruby-forum.com/t/advice-for-image-folders-in-an-i18n-app/182645)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 0\
**Last updated:** [January 31, 2010, 10:42pm UTC](https://www.ruby-forum.com/t/advice-for-image-folders-in-an-i18n-app/182645 "2010-01-31T22:42:46Z")

</div>

Hey all. I’m starting my first i18n app and pondering how to organise my images and stylesheets. I can think of a couple of ways but thought that this problem has probably already been solved many times by people mu…

---

## [jQuery, RoR, validating fields against a database](https://www.ruby-forum.com/t/jquery-ror-validating-fields-against-a-database/182641)

<div class="topic-metadata">

**Author:** [@ralphshnelvar](https://www.ruby-forum.com/u/ralphshnelvar)\
**Replies:** 7\
**Last updated:** [January 31, 2010, 10:06pm UTC](https://www.ruby-forum.com/t/jquery-ror-validating-fields-against-a-database/182641 "2010-01-31T22:06:04Z")

</div>

I have a list of fields in a form that need to be validated against a database. I would prefer to have the validation occur every time the field loses focus (onblur event) rather than when the user does a submit. Doe…

---

## [Can't install sqlite3-ruby gem to work with rails 3](https://www.ruby-forum.com/t/cant-install-sqlite3-ruby-gem-to-work-with-rails-3/182636)

<div class="topic-metadata">

**Author:** [@rodrigo3n](https://www.ruby-forum.com/u/rodrigo3n)\
**Replies:** 2\
**Last updated:** [January 31, 2010, 8:51pm UTC](https://www.ruby-forum.com/t/cant-install-sqlite3-ruby-gem-to-work-with-rails-3/182636 "2010-01-31T20:51:23Z")

</div>

Hello everyone , I just installed Rails 3 and I’m aiming to play with it. But when I try to install the sqlite3-ruby gem I get this message. I use Ubuntu Karmic, have sqlite installed and use Ruby Enterprise Edition…

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

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