# Rails

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

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

---

## [Windows Deployment - what to use](https://www.ruby-forum.com/t/windows-deployment-what-to-use/169665)

<div class="topic-metadata">

**Author:** [@JannaB](https://www.ruby-forum.com/u/JannaB)\
**Replies:** 0\
**Last updated:** [June 6, 2009, 3:41pm UTC](https://www.ruby-forum.com/t/windows-deployment-what-to-use/169665 "2009-06-06T15:41:57Z")

</div>

Unfortunately, I must deploy to a windows OS, and, from what I gather Capistrano just isn’t up to the task of that – not in terms of configuring it for windows. Essentially, I am running a rails app in JRuby using the…

---

## [Json - composite objects](https://www.ruby-forum.com/t/json-composite-objects/169663)

<div class="topic-metadata">

**Author:** [@karl](https://www.ruby-forum.com/u/karl)\
**Replies:** 0\
**Last updated:** [June 6, 2009, 2:49pm UTC](https://www.ruby-forum.com/t/json-composite-objects/169663 "2009-06-06T14:49:41Z")

</div>

hi everyone, i came across a very strange thing. i’m using ajax with jquery. when i build up the parameters as json i’m creating my data to pass like this : “{ picture: { photo: this.value, visible: 1, title: ‘’, des…

---

## [Starting an Ap: fast\_xs.bundle: \[BUG\] Bus Error](https://www.ruby-forum.com/t/starting-an-ap-fast-xs-bundle-bug-bus-error/169635)

<div class="topic-metadata">

**Author:** [@kaela](https://www.ruby-forum.com/u/kaela)\
**Replies:** 2\
**Last updated:** [June 6, 2009, 2:18pm UTC](https://www.ruby-forum.com/t/starting-an-ap-fast-xs-bundle-bug-bus-error/169635 "2009-06-06T14:18:03Z")

</div>

I’m running Ruby 1.8.7, Rails 2.3.2, and Gem 1.3.4 I’m a newb, so bare with me… I’m reading Simply Rails 2. The book tells me to enter: $ rails shovell Then, $ sudo gem install mongrel Then, $cd shovell $ruby sc…

---

## [Returning the value of a variable from controller to form or](https://www.ruby-forum.com/t/returning-the-value-of-a-variable-from-controller-to-form-or/169660)

<div class="topic-metadata">

**Author:** [@cp\_almora](https://www.ruby-forum.com/u/cp_almora)\
**Replies:** 1\
**Last updated:** [June 6, 2009, 1:34pm UTC](https://www.ruby-forum.com/t/returning-the-value-of-a-variable-from-controller-to-form-or/169660 "2009-06-06T13:34:31Z")

</div>

hello everybody Actually i am new to zend framework. I know that i can return a value of a variable from a form to the controller. Can I also return a value from the controller to any form or any model? If this is pos…

---

## [Sessions problem](https://www.ruby-forum.com/t/sessions-problem/169637)

<div class="topic-metadata">

**Author:** [@milandobrota](https://www.ruby-forum.com/u/milandobrota)\
**Replies:** 1\
**Last updated:** [June 6, 2009, 11:58am UTC](https://www.ruby-forum.com/t/sessions-problem/169637 "2009-06-06T11:58:31Z")

</div>

When I deploy the application and set session variables in controller, I get response in browser. test\_id = 2 and question\_id = 1Content-Type: text/html; charset=utf-8 Set-Cookie: \_paperclip\_session=78f6281e3953625432…

---

## [Where is reaper in Rails 2.3.2](https://www.ruby-forum.com/t/where-is-reaper-in-rails-2-3-2/169646)

<div class="topic-metadata">

**Author:** [@huang\_zhimin](https://www.ruby-forum.com/u/huang_zhimin)\
**Replies:** 2\
**Last updated:** [June 6, 2009, 10:51am UTC](https://www.ruby-forum.com/t/where-is-reaper-in-rails-2-3-2/169646 "2009-06-06T10:51:44Z")

</div>

I’m using capistrano to deploy my rails app to hostmonster, where using fastcgi. I see a lot of examples that the restart task in capistrano is ./script/process/reaper --action=restart --dispatcher=dispatch.fcgi but …

---

## [Reg:act\_as\_tree](https://www.ruby-forum.com/t/reg-act-as-tree/169654)

<div class="topic-metadata">

**Author:** [@charan](https://www.ruby-forum.com/u/charan)\
**Replies:** 0\
**Last updated:** [June 6, 2009, 10:34am UTC](https://www.ruby-forum.com/t/reg-act-as-tree/169654 "2009-06-06T10:34:12Z")

</div>

HI am using acts\_as\_tree and yui to generate tree structure, as per the DB is consern for acts\_as\_tree,the parent and child nodes are from one table… i have two different table like region table pk name 1 …

---

## [Error\_messages\_for not working](https://www.ruby-forum.com/t/error-messages-for-not-working/169653)

<div class="topic-metadata">

**Author:** [@Sahil\_D](https://www.ruby-forum.com/u/Sahil_D)\
**Replies:** 0\
**Last updated:** [June 6, 2009, 9:17am UTC](https://www.ruby-forum.com/t/error-messages-for-not-working/169653 "2009-06-06T09:17:32Z")

</div>

Hi, i am trying to save an object with 2 associated objects: Organisation has\_many :users has\_many :addresses def new @org = Organisation.new @user = @org.users.build @address = @org.addresses.build end view: \<%…

---

## [Rcov plugin overwrites its results?](https://www.ruby-forum.com/t/rcov-plugin-overwrites-its-results/169507)

<div class="topic-metadata">

**Author:** [@benol](https://www.ruby-forum.com/u/benol)\
**Replies:** 3\
**Last updated:** [June 6, 2009, 9:00am UTC](https://www.ruby-forum.com/t/rcov-plugin-overwrites-its-results/169507 "2009-06-06T09:00:05Z")

</div>

Hi, rake test:test:rcov This outputs to my console proper results. All test are run and coverage percentage differs when running functional/integration/unit tests. But at the and I get only one folder “coverage/test”…

---

## [Scaffolding question](https://www.ruby-forum.com/t/scaffolding-question/169642)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 7\
**Last updated:** [June 6, 2009, 6:20am UTC](https://www.ruby-forum.com/t/scaffolding-question/169642 "2009-06-06T06:20:41Z")

</div>

I’m starting to get involved with models in rails and so I need to make sure I understand exactly what I’m trying to do. Let’s look at a quick example: One table that I will be creating is a rushing\_offense table for …

---

## [Creating migrations](https://www.ruby-forum.com/t/creating-migrations/169625)

<div class="topic-metadata">

**Author:** [@JannaB](https://www.ruby-forum.com/u/JannaB)\
**Replies:** 5\
**Last updated:** [June 6, 2009, 5:45am UTC](https://www.ruby-forum.com/t/creating-migrations/169625 "2009-06-06T05:45:57Z")

</div>

I have a legacy db I need to write a project around. Can someone tell me how I can create my migrations from the table structure. Can this even be done, or must I create my migrations by hand? Thanks, Janna

---

## [New member, introducing msyelf](https://www.ruby-forum.com/t/new-member-introducing-msyelf/169557)

<div class="topic-metadata">

**Author:** [@jon](https://www.ruby-forum.com/u/jon)\
**Replies:** 1\
**Last updated:** [June 6, 2009, 4:08am UTC](https://www.ruby-forum.com/t/new-member-introducing-msyelf/169557 "2009-06-06T04:08:57Z")

</div>

hey all – ruby noob here, hope this doesn’t go against the norms, but i just wanted to introduce myself. recently wrapped up a masters in hci and dabbled a bit in ror during grad school - if you’re interested, i made…

---

## [Issue with serialized fields and testing](https://www.ruby-forum.com/t/issue-with-serialized-fields-and-testing/169643)

<div class="topic-metadata">

**Author:** [@supasta](https://www.ruby-forum.com/u/supasta)\
**Replies:** 0\
**Last updated:** [June 6, 2009, 3:49am UTC](https://www.ruby-forum.com/t/issue-with-serialized-fields-and-testing/169643 "2009-06-06T03:49:01Z")

</div>

Hi all, I have a work-around for my problem, but there’s clearly something I don’t quite understand going on here and I’d like to learn. I have a model that has a serialized field. In the unit test for that model I’m…

---

## [Transferring old RoR site.... Problems.... sigh](https://www.ruby-forum.com/t/transferring-old-ror-site-problems-sigh/169628)

<div class="topic-metadata">

**Author:** [@rustybucket](https://www.ruby-forum.com/u/rustybucket)\
**Replies:** 3\
**Last updated:** [June 6, 2009, 3:17am UTC](https://www.ruby-forum.com/t/transferring-old-ror-site-problems-sigh/169628 "2009-06-06T03:17:56Z")

</div>

Hello all, new to Rails here and am in the process of transferring an existing rails site to a new server. I’ve installed Rails 1.1.6 and Ruby 1.8.4 as well as mongrel and gems 0.8.10 The problem comes when I attempt…

---

## [Error loading fixture with serialized field - undefined method \`key?'](https://www.ruby-forum.com/t/error-loading-fixture-with-serialized-field-undefined-method-key/169467)

<div class="topic-metadata">

**Author:** [@chris](https://www.ruby-forum.com/u/chris)\
**Replies:** 2\
**Last updated:** [June 6, 2009, 1:26am UTC](https://www.ruby-forum.com/t/error-loading-fixture-with-serialized-field-undefined-method-key/169467 "2009-06-06T01:26:52Z")

</div>

Hi all, I’m hoping some kind person out there can help me understand what I’m doing wrong… I have a user model, which has two serialized fields- class User \< ActiveRecord::Base acts\_as\_authentic :validate\_email\_fiel…

---

## [Counting up in 5's or something similar](https://www.ruby-forum.com/t/counting-up-in-5s-or-something-similar/169618)

<div class="topic-metadata">

**Author:** [@Ruby\_on\_RailsS\_Talk](https://www.ruby-forum.com/u/Ruby_on_RailsS_Talk)\
**Replies:** 3\
**Last updated:** [June 5, 2009, 11:41pm UTC](https://www.ruby-forum.com/t/counting-up-in-5s-or-something-similar/169618 "2009-06-05T23:41:14Z")

</div>

Hi I’m sure I’ve read somewhere that you can count up in ‘jumps’ using ruby? I’ve got two times and I want to basically go up in 15 minute jumps without using the whole for loop thing. Any helpful ideas? All my ruby…

---

## [' X is not missing constant Y ' , problem after rails update](https://www.ruby-forum.com/t/x-is-not-missing-constant-y-problem-after-rails-update/92366)

<div class="topic-metadata">

**Author:** [@friofool](https://www.ruby-forum.com/u/friofool)\
**Replies:** 3\
**Last updated:** [June 5, 2009, 11:28pm UTC](https://www.ruby-forum.com/t/x-is-not-missing-constant-y-problem-after-rails-update/92366 "2009-06-05T23:28:40Z")

</div>

Hello, I’m just updating my rails version to 1.2.3 I get the ’ X is not missing constant Y’ message for all request in my existing applications. Exemple : app/controller/login/login.rb use a model in : app/models/…

---

## [Newbie help - Rails LoadError on Windows Xp](https://www.ruby-forum.com/t/newbie-help-rails-loaderror-on-windows-xp/169619)

<div class="topic-metadata">

**Author:** [@shbrat](https://www.ruby-forum.com/u/shbrat)\
**Replies:** 0\
**Last updated:** [June 5, 2009, 11:10pm UTC](https://www.ruby-forum.com/t/newbie-help-rails-loaderror-on-windows-xp/169619 "2009-06-05T23:10:22Z")

</div>

Hi all, I’m new to RoR and just installed Ruby on windows xp. I cant get rails to load. The command “rails -v” displays the following error: /Ruby/bin/rails:19:in \`load’: no such file to load – “/Ruby/lib/ruby/gems/1…

---

## [Slow/unpredictive response of post\_form from rails lib](https://www.ruby-forum.com/t/slow-unpredictive-response-of-post-form-from-rails-lib/169613)

<div class="topic-metadata">

**Author:** [@makuchaku](https://www.ruby-forum.com/u/makuchaku)\
**Replies:** 1\
**Last updated:** [June 5, 2009, 10:47pm UTC](https://www.ruby-forum.com/t/slow-unpredictive-response-of-post-form-from-rails-lib/169613 "2009-06-05T22:47:43Z")

</div>

Hi friends, I’m facing a very strange problem… I consume a webservice from within my rails app. I’ve written a thin wrapper around the webservice using Net::HTTP.post\_form However, when calling the API from within my…

---

## [Loading partial after page loads](https://www.ruby-forum.com/t/loading-partial-after-page-loads/169611)

<div class="topic-metadata">

**Author:** [@scott](https://www.ruby-forum.com/u/scott)\
**Replies:** 1\
**Last updated:** [June 5, 2009, 10:36pm UTC](https://www.ruby-forum.com/t/loading-partial-after-page-loads/169611 "2009-06-05T22:36:13Z")

</div>

For performance reasons, I need to render a partial asyncronously (after the page loads). I’ve already isolated the code into a partial, but I haven’t figured out how to render it after the page loads. Do I have to …

---

## [Geometry columns](https://www.ruby-forum.com/t/geometry-columns/169519)

<div class="topic-metadata">

**Author:** [@magic\_hat](https://www.ruby-forum.com/u/magic_hat)\
**Replies:** 4\
**Last updated:** [June 5, 2009, 9:20pm UTC](https://www.ruby-forum.com/t/geometry-columns/169519 "2009-06-05T21:20:43Z")

</div>

Hi all. I’m building an app with postgres, postgis and rails. Rails seems to be choking when I try to do stuff that involves manipulating the geometry column. For example: self.the\_geom=ActiveRecord::Base.connection.e…

---

## [Google graphs with searchlogic](https://www.ruby-forum.com/t/google-graphs-with-searchlogic/169604)

<div class="topic-metadata">

**Author:** [@intern\_ruby](https://www.ruby-forum.com/u/intern_ruby)\
**Replies:** 0\
**Last updated:** [June 5, 2009, 9:14pm UTC](https://www.ruby-forum.com/t/google-graphs-with-searchlogic/169604 "2009-06-05T21:14:13Z")

</div>

Hello, I am having issues while integrating Searchlogic with google graphs for dynamic search conditions. Please help. Thanks. Yati

---

## [Namespacing views simply and effectively?](https://www.ruby-forum.com/t/namespacing-views-simply-and-effectively/169541)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 1\
**Last updated:** [June 5, 2009, 9:13pm UTC](https://www.ruby-forum.com/t/namespacing-views-simply-and-effectively/169541 "2009-06-05T21:13:43Z")

</div>

So, to help arrange the files in my application directory, I used a tip from this blog post: http://m.onkey.org/2007/12/9/namespaced-models Essentially, I moved all my controller, model and sweeper files into folders…

---

## [Using image as input type in submit\_to\_remote](https://www.ruby-forum.com/t/using-image-as-input-type-in-submit-to-remote/168642)

<div class="topic-metadata">

**Author:** [@gautam\_chekuri](https://www.ruby-forum.com/u/gautam_chekuri)\
**Replies:** 1\
**Last updated:** [June 5, 2009, 8:20pm UTC](https://www.ruby-forum.com/t/using-image-as-input-type-in-submit-to-remote/168642 "2009-06-05T20:20:51Z")

</div>

Hi all, After searching for a way to set the input type of a submit tag to image when using submit\_to\_remote I realized that the method call given below, while seemingly valid, wasn’t working since the method button\_…

---

## [How to search an item using tags and an integer value?](https://www.ruby-forum.com/t/how-to-search-an-item-using-tags-and-an-integer-value/169600)

<div class="topic-metadata">

**Author:** [@aupayo](https://www.ruby-forum.com/u/aupayo)\
**Replies:** 0\
**Last updated:** [June 5, 2009, 8:05pm UTC](https://www.ruby-forum.com/t/how-to-search-an-item-using-tags-and-an-integer-value/169600 "2009-06-05T20:05:36Z")

</div>

Hello, I’m trying to perform a search into some items, those items have tags and some integer values. The problem is that I don’t know how can I easily develope a search using both criteria: the tags and an integer v…

---

## [Need help with routes](https://www.ruby-forum.com/t/need-help-with-routes/169568)

<div class="topic-metadata">

**Author:** [@adsouzp](https://www.ruby-forum.com/u/adsouzp)\
**Replies:** 2\
**Last updated:** [June 5, 2009, 8:01pm UTC](https://www.ruby-forum.com/t/need-help-with-routes/169568 "2009-06-05T20:01:30Z")

</div>

I will try to word this as simple as possible… I made a scaffold called ‘cover’ then migrated the table. Of course the index, show, edit, and new .html.erb files work correctly when they are called BUT, when I created…

---

## [Is this a use case for has\_many :through?](https://www.ruby-forum.com/t/is-this-a-use-case-for-has-many-through/169581)

<div class="topic-metadata">

**Author:** [@coolmenu](https://www.ruby-forum.com/u/coolmenu)\
**Replies:** 4\
**Last updated:** [June 5, 2009, 7:52pm UTC](https://www.ruby-forum.com/t/is-this-a-use-case-for-has-many-through/169581 "2009-06-05T19:52:40Z")

</div>

I’m building a blog application that allows users to create and edit blog posts. I want to add the ability for a user to check a box on the post page that enables an alert on the post that sends an email to the user …

---

## [Best way to do filtering/refinements?](https://www.ruby-forum.com/t/best-way-to-do-filtering-refinements/169590)

<div class="topic-metadata">

**Author:** [@yannimac](https://www.ruby-forum.com/u/yannimac)\
**Replies:** 3\
**Last updated:** [June 5, 2009, 7:47pm UTC](https://www.ruby-forum.com/t/best-way-to-do-filtering-refinements/169590 "2009-06-05T19:47:59Z")

</div>

I have a Store model that has\_many Products. I need to allow the users to filter on certain conditions in the products. For example, products at the store that cost more than $50. I am planning on getting the param…

---

## [ActionController::InvalidAuthenticityToken & :before](https://www.ruby-forum.com/t/actioncontroller-invalidauthenticitytoken-before/169508)

<div class="topic-metadata">

**Author:** [@mk27](https://www.ruby-forum.com/u/mk27)\
**Replies:** 4\
**Last updated:** [June 5, 2009, 6:22pm UTC](https://www.ruby-forum.com/t/actioncontroller-invalidauthenticitytoken-before/169508 "2009-06-05T18:22:21Z")

</div>

I have a form that submits search criteria and while it is processing I wanted to use a js function to indicate: \<% form\_remote\_tag :update =\> ‘mainbody’, :url =\> {:action =\> ‘search’}, :before =\> “wait\_message(‘mainb…

---

## [Rails 2.3.2](https://www.ruby-forum.com/t/rails-2-3-2/169565)

<div class="topic-metadata">

**Author:** [@petan](https://www.ruby-forum.com/u/petan)\
**Replies:** 6\
**Last updated:** [June 5, 2009, 5:08pm UTC](https://www.ruby-forum.com/t/rails-2-3-2/169565 "2009-06-05T17:08:50Z")

</div>

Hi all, I am using rails v.2.3.2 and if I put following line to my ApplicationController: include LoginSystem and I moved my login\_system.rb to lib folder: module LoginSystem protected def is\_logged\_in? @logged\_i…

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

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