# Rails

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

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

---

## [Ruby on Rails Job Opportunity](https://www.ruby-forum.com/t/ruby-on-rails-job-opportunity/134605)

<div class="topic-metadata">

**Author:** [@Josh.B](https://www.ruby-forum.com/u/Josh.B)\
**Replies:** 0\
**Last updated:** [April 12, 2008, 8:49pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-job-opportunity/134605 "2008-04-12T20:49:48Z")

</div>

I apologize in advance if this is neither the time nor place for a Ruby on Rails job posting, but here goes: Promethean Ventures, LLC is a small, Chicago based startup. Our current project involves putting the finish…

---

## [Help with logic in controller](https://www.ruby-forum.com/t/help-with-logic-in-controller/134602)

<div class="topic-metadata">

**Author:** [@atmorell](https://www.ruby-forum.com/u/atmorell)\
**Replies:** 2\
**Last updated:** [April 12, 2008, 8:31pm UTC](https://www.ruby-forum.com/t/help-with-logic-in-controller/134602 "2008-04-12T20:31:02Z")

</div>

Hello, This is a method that I have written to show personal messages. If the message that is requested is sent “to” the logged in user I will do another check and set status to opened if necessary. I can’t figure ou…

---

## [Getting Started problem](https://www.ruby-forum.com/t/getting-started-problem/134603)

<div class="topic-metadata">

**Author:** [@sam](https://www.ruby-forum.com/u/sam)\
**Replies:** 1\
**Last updated:** [April 12, 2008, 8:17pm UTC](https://www.ruby-forum.com/t/getting-started-problem/134603 "2008-04-12T20:17:00Z")

</div>

I want to try Ruby on Rails. I know nothing about Ruby or Rails. I followed the installation instructions for Windows on Ruby on Rails — A web-app framework that includes everything needed to create database-backed w…

---

## [Loading time](https://www.ruby-forum.com/t/loading-time/134598)

<div class="topic-metadata">

**Author:** [@sigma](https://www.ruby-forum.com/u/sigma)\
**Replies:** 0\
**Last updated:** [April 12, 2008, 6:02pm UTC](https://www.ruby-forum.com/t/loading-time/134598 "2008-04-12T18:02:52Z")

</div>

Hi all Is there a posibility to display the page loading time in RoR? Such as “Loaded in: 0.123 ms” Greets

---

## [Acts\_as\_tree undefined method?](https://www.ruby-forum.com/t/acts-as-tree-undefined-method/134569)

<div class="topic-metadata">

**Author:** [@Ilya](https://www.ruby-forum.com/u/Ilya)\
**Replies:** 1\
**Last updated:** [April 12, 2008, 5:59pm UTC](https://www.ruby-forum.com/t/acts-as-tree-undefined-method/134569 "2008-04-12T17:59:54Z")

</div>

i have acts\_as\_tree installed as plugin under rails 2.0.2 and also its defined in class TreeItems, but when i put this in my view Furniture \<% TreeItem.root.category.children do |cat\_children| %\> \<%=h cat\_…

---

## [RoR + Google Gears on Windows Mobile](https://www.ruby-forum.com/t/ror-google-gears-on-windows-mobile/134593)

<div class="topic-metadata">

**Author:** [@martin](https://www.ruby-forum.com/u/martin)\
**Replies:** 0\
**Last updated:** [April 12, 2008, 5:19pm UTC](https://www.ruby-forum.com/t/ror-google-gears-on-windows-mobile/134593 "2008-04-12T17:19:50Z")

</div>

Hi, I would like to build an on-/offline web application. I was thinking on using RoR and Google Gears to do this. Any ideas if this works on Windows Mobile? I know there is a Gears implementation for WM, so there sh…

---

## [Senior Ruby on Rails Developer Positions](https://www.ruby-forum.com/t/senior-ruby-on-rails-developer-positions/134550)

<div class="topic-metadata">

**Author:** [@DerekSRecruiterSB](https://www.ruby-forum.com/u/DerekSRecruiterSB)\
**Replies:** 4\
**Last updated:** [April 12, 2008, 4:59pm UTC](https://www.ruby-forum.com/t/senior-ruby-on-rails-developer-positions/134550 "2008-04-12T16:59:10Z")

</div>

Dear Ruby on Rails Developers, My name is Derek Grant, I am an international recruiter. We are currently doing a search for a virtual company that offers stay at home work, very impressive compensation, dual 30" inch…

---

## [Add to migration not working (Rails 2.0.2)](https://www.ruby-forum.com/t/add-to-migration-not-working-rails-2-0-2/130498)

<div class="topic-metadata">

**Author:** [@daveamos](https://www.ruby-forum.com/u/daveamos)\
**Replies:** 8\
**Last updated:** [April 12, 2008, 4:42pm UTC](https://www.ruby-forum.com/t/add-to-migration-not-working-rails-2-0-2/130498 "2008-04-12T16:42:44Z")

</div>

Hi there, I just generated a migration to add a column to a table, and the change didn’t seem to take. I did: script/generate migration add\_starts\_at\_to\_gameweek starts\_at:datetime which generated the file, no proble…

---

## [RJS scroll to DOM object](https://www.ruby-forum.com/t/rjs-scroll-to-dom-object/134584)

<div class="topic-metadata">

**Author:** [@chunkyslink](https://www.ruby-forum.com/u/chunkyslink)\
**Replies:** 3\
**Last updated:** [April 12, 2008, 2:45pm UTC](https://www.ruby-forum.com/t/rjs-scroll-to-dom-object/134584 "2008-04-12T14:45:17Z")

</div>

Is there an rjs helper for zooming or scrolling to a DOM object, e.g. page.view\_object “object”? I’ve tried using named anchors in combination with link\_to\_function, but unless I’m doing something wrong, the onclick s…

---

## [Recording a web-app UI session](https://www.ruby-forum.com/t/recording-a-web-app-ui-session/134543)

<div class="topic-metadata">

**Author:** [@autotestman](https://www.ruby-forum.com/u/autotestman)\
**Replies:** 1\
**Last updated:** [April 12, 2008, 2:32pm UTC](https://www.ruby-forum.com/t/recording-a-web-app-ui-session/134543 "2008-04-12T14:32:59Z")

</div>

There are tools like Quick Test Pro out there that record UI sessions in a web browser app. I have built a Ruby framework that contains classes for each UI object and performs validations. Now I want to record the use…

---

## [Textmate-like autocomplete](https://www.ruby-forum.com/t/textmate-like-autocomplete/134590)

<div class="topic-metadata">

**Author:** [@dacbo](https://www.ruby-forum.com/u/dacbo)\
**Replies:** 0\
**Last updated:** [April 12, 2008, 2:14pm UTC](https://www.ruby-forum.com/t/textmate-like-autocomplete/134590 "2008-04-12T14:14:10Z")

</div>

I’m using autocomplete fields in my app and it would be nice to have functionality like in textmate where it finds the closest match even if you don’t type it exactly right. For example, to find report\_controller.rb …

---

## [Routing subdomain request](https://www.ruby-forum.com/t/routing-subdomain-request/134585)

<div class="topic-metadata">

**Author:** [@FunFun](https://www.ruby-forum.com/u/FunFun)\
**Replies:** 0\
**Last updated:** [April 12, 2008, 12:53pm UTC](https://www.ruby-forum.com/t/routing-subdomain-request/134585 "2008-04-12T12:53:13Z")

</div>

Give how to do this trick: Users were tables with one of the fields and table subdomain Blogs class Blog \<ActiveRecord:: Base has\_many: comments belongs\_to: user class User \<ActiveRecord:: Base has\_many: blogs Th…

---

## [Open Source Project Written in Rails 2.0](https://www.ruby-forum.com/t/open-source-project-written-in-rails-2-0/134578)

<div class="topic-metadata">

**Author:** [@T\_K](https://www.ruby-forum.com/u/T_K)\
**Replies:** 1\
**Last updated:** [April 12, 2008, 10:54am UTC](https://www.ruby-forum.com/t/open-source-project-written-in-rails-2-0/134578 "2008-04-12T10:54:37Z")

</div>

Hi, I’m learning Rails 2.0 and would like to see some code that take advantage of Rails 2.0 features. I checked blog softwares like typo, chameleon and simplelog, but they don’t seem to use new features in Rails. I’…

---

## [Possible to add request IP column in session table?](https://www.ruby-forum.com/t/possible-to-add-request-ip-column-in-session-table/134564)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 1\
**Last updated:** [April 12, 2008, 10:35am UTC](https://www.ruby-forum.com/t/possible-to-add-request-ip-column-in-session-table/134564 "2008-04-12T10:35:17Z")

</div>

Is there a way to add a column in the session table (using MySQL) to record the requester’s IP address? Or possibly extend the session code to write to another table or log file that I could use to correlate session a…

---

## [How i setup my developed rails application on facebook?](https://www.ruby-forum.com/t/how-i-setup-my-developed-rails-application-on-facebook/134387)

<div class="topic-metadata">

**Author:** [@yagnesh](https://www.ruby-forum.com/u/yagnesh)\
**Replies:** 2\
**Last updated:** [April 12, 2008, 7:46am UTC](https://www.ruby-forum.com/t/how-i-setup-my-developed-rails-application-on-facebook/134387 "2008-04-12T07:46:04Z")

</div>

Hi guys. I already made the application in Ruby on rails. How i put that application using rfacebook and mysql database on facebook? I have joyent server also. If u any have idea,send me the reply. also i m facing …

---

## [Blogs - Mephisto, Typo and](https://www.ruby-forum.com/t/blogs-mephisto-typo-and/133867)

<div class="topic-metadata">

**Author:** [@Col\_W](https://www.ruby-forum.com/u/Col_W)\
**Replies:** 8\
**Last updated:** [April 12, 2008, 3:38am UTC](https://www.ruby-forum.com/t/blogs-mephisto-typo-and/133867 "2008-04-12T03:38:19Z")

</div>

what? I don’t want to start a “my blogging software is better than yours” thing here, but what are the alternatives to the big two? As far as I can see neithyer has been updated since 2006. Why? is it because they ar…

---

## [Annoying find thingy](https://www.ruby-forum.com/t/annoying-find-thingy/134549)

<div class="topic-metadata">

**Author:** [@Col\_W](https://www.ruby-forum.com/u/Col_W)\
**Replies:** 4\
**Last updated:** [April 12, 2008, 2:10am UTC](https://www.ruby-forum.com/t/annoying-find-thingy/134549 "2008-04-12T02:10:02Z")

</div>

I want to know which thingy is centered on a given city. Both thingy and city have a lat and a lng attribute, ad lat and lng are both floats in the mysql database. knowing how clever ActiveRecord::Base is I wanted to…

---

## [Apache Log full of "OPTIONS \* HTTP/1.0" 200](https://www.ruby-forum.com/t/apache-log-full-of-options-http-1-0-200/134560)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 0\
**Last updated:** [April 12, 2008, 1:03am UTC](https://www.ruby-forum.com/t/apache-log-full-of-options-http-1-0-200/134560 "2008-04-12T01:03:03Z")

</div>

Possibly not a Rails related deal, but I want to rule that out as the case or not. I have 4 web servers, two of which run Rails applications, all four of which run Lasso applications (this is relevant shortly). For t…

---

## [Polymorphic associations wrong when used with inherited class?](https://www.ruby-forum.com/t/polymorphic-associations-wrong-when-used-with-inherited-class/134558)

<div class="topic-metadata">

**Author:** [@jaredmoody](https://www.ruby-forum.com/u/jaredmoody)\
**Replies:** 1\
**Last updated:** [April 12, 2008, 12:47am UTC](https://www.ruby-forum.com/t/polymorphic-associations-wrong-when-used-with-inherited-class/134558 "2008-04-12T00:47:37Z")

</div>

Consider the following: class Event belongs\_to :event\_object, :polymorphic =\> true end class Asset \< ActiveRecord::Base end class EventedAsset \< Asset has\_one :event, :as =\> :event\_object end EventedAsset.find(:…

---

## [Newly sourced plugin very slow to install](https://www.ruby-forum.com/t/newly-sourced-plugin-very-slow-to-install/134559)

<div class="topic-metadata">

**Author:** [@stickstone](https://www.ruby-forum.com/u/stickstone)\
**Replies:** 0\
**Last updated:** [April 12, 2008, 12:44am UTC](https://www.ruby-forum.com/t/newly-sourced-plugin-very-slow-to-install/134559 "2008-04-12T00:44:29Z")

</div>

I have a plugin that I’ve written and stored on GoogleCode (http://bcardarella.googlecode.com/svn/trunk/plugins/checkbox\_select if anybody wants to check it out) Anyway, I added my svn repository as a source with: sc…

---

## [Problem with Multi-Level Partials and observe\_field Updates](https://www.ruby-forum.com/t/problem-with-multi-level-partials-and-observe-field-updates/134557)

<div class="topic-metadata">

**Author:** [@Philip\_N](https://www.ruby-forum.com/u/Philip_N)\
**Replies:** 0\
**Last updated:** [April 12, 2008, 12:00am UTC](https://www.ruby-forum.com/t/problem-with-multi-level-partials-and-observe-field-updates/134557 "2008-04-12T00:00:12Z")

</div>

Folks, I’m building a complex data entry / edit screen (to a customer spec) and am having problems with part of it. I render a partial for line items in an order - \<%= render :partial =\> ‘order\_product’, :collection…

---

## [Validating an ActiveRecord object and its has\_many :through associations](https://www.ruby-forum.com/t/validating-an-activerecord-object-and-its-has-many-through-associations/134533)

<div class="topic-metadata">

**Author:** [@John\_M\_L](https://www.ruby-forum.com/u/John_M_L)\
**Replies:** 2\
**Last updated:** [April 11, 2008, 11:37pm UTC](https://www.ruby-forum.com/t/validating-an-activerecord-object-and-its-has-many-through-associations/134533 "2008-04-11T23:37:56Z")

</div>

Considering an object with several has\_many :through =\> associations, what is the ‘best’ way to handle validations? As an example: class Student \< ActiveRecord::Base some attrbutes like :name :grade relationships has…

---

## [Sortable\_element - issue with passing parameter with the method called from the :url =\> :action](https://www.ruby-forum.com/t/sortable-element-issue-with-passing-parameter-with-the-method-called-from-the-url-action/134529)

<div class="topic-metadata">

**Author:** [@MaddyTheGoose](https://www.ruby-forum.com/u/MaddyTheGoose)\
**Replies:** 2\
**Last updated:** [April 11, 2008, 11:12pm UTC](https://www.ruby-forum.com/t/sortable-element-issue-with-passing-parameter-with-the-method-called-from-the-url-action/134529 "2008-04-11T23:12:46Z")

</div>

Is it possible to pass a parameter with the method call attached to the :action of sortable\_element? I’ve put together the code below which doesn’t work but it demonstrates the desired behavior. in the view (well, in …

---

## [New to ruby, Need help](https://www.ruby-forum.com/t/new-to-ruby-need-help/134407)

<div class="topic-metadata">

**Author:** [@drsharp](https://www.ruby-forum.com/u/drsharp)\
**Replies:** 3\
**Last updated:** [April 11, 2008, 11:03pm UTC](https://www.ruby-forum.com/t/new-to-ruby-need-help/134407 "2008-04-11T23:03:24Z")

</div>

I’m attempting to make a simple program, just combine two images and output a .jpg file. Here’s what I have: class PicController \< ApplicationController require ‘RMagick’ def index im1 = Magick::Image.read(‘1.jpg’)…

---

## [Refreshing the view from the controller](https://www.ruby-forum.com/t/refreshing-the-view-from-the-controller/134453)

<div class="topic-metadata">

**Author:** [@sithadmin](https://www.ruby-forum.com/u/sithadmin)\
**Replies:** 6\
**Last updated:** [April 11, 2008, 10:56pm UTC](https://www.ruby-forum.com/t/refreshing-the-view-from-the-controller/134453 "2008-04-11T22:56:23Z")

</div>

Hello, I was wondering if it was possible to do this… I have a really long task that is written in the controller. I’d like to update the user viewing the webpage by printing out things like “initializing…” then afte…

---

## [Can RoR replace a Clipper app?](https://www.ruby-forum.com/t/can-ror-replace-a-clipper-app/134450)

<div class="topic-metadata">

**Author:** [@walter\_j](https://www.ruby-forum.com/u/walter_j)\
**Replies:** 5\
**Last updated:** [April 11, 2008, 10:27pm UTC](https://www.ruby-forum.com/t/can-ror-replace-a-clipper-app/134450 "2008-04-11T22:27:52Z")

</div>

I developed a clipper app years ago, and am considering updating it. I’m considering Ruby on Rails for this project, but would like advice before jumping in regarding the capabilities of Ruby. Would Mysql be a good r…

---

## [Simple active record modeling question](https://www.ruby-forum.com/t/simple-active-record-modeling-question/134540)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [April 11, 2008, 9:28pm UTC](https://www.ruby-forum.com/t/simple-active-record-modeling-question/134540 "2008-04-11T21:28:55Z")

</div>

Let’s say that I’m trying to model a baseball Game, capturing the names of the home and away teams within the Game class. Game has both a (has\_a) home\_team and an away\_team. one could write the Game class like this: c…

---

## [Request routing plugin and subdomain share process](https://www.ruby-forum.com/t/request-routing-plugin-and-subdomain-share-process/134476)

<div class="topic-metadata">

**Author:** [@Mongdar](https://www.ruby-forum.com/u/Mongdar)\
**Replies:** 5\
**Last updated:** [April 11, 2008, 9:07pm UTC](https://www.ruby-forum.com/t/request-routing-plugin-and-subdomain-share-process/134476 "2008-04-11T21:07:05Z")

</div>

Hi Rails Guru, I am using the request routing plugin to implement subdomain on my app. To do this, I use cpanel and created bunch of subdomain, all pointing at the same public folder under one rails app. However, when …

---

## [Expiring cache outside controller (e.g. in rake tasks)](https://www.ruby-forum.com/t/expiring-cache-outside-controller-e-g-in-rake-tasks/134534)

<div class="topic-metadata">

**Author:** [@jurglic](https://www.ruby-forum.com/u/jurglic)\
**Replies:** 0\
**Last updated:** [April 11, 2008, 7:46pm UTC](https://www.ruby-forum.com/t/expiring-cache-outside-controller-e-g-in-rake-tasks/134534 "2008-04-11T19:46:31Z")

</div>

Hello, I need to expire cache outside controller, in my rake tasks. I want to use standard methods expire\_fragment,etc… but I can’t manage to use them outside controllers. I tried including ActiveController::Caching:…

---

## [\[ANN\] Cross Site Sniper 0.3.1](https://www.ruby-forum.com/t/ann-cross-site-sniper-0-3-1/134532)

<div class="topic-metadata">

**Author:** [@jonlog](https://www.ruby-forum.com/u/jonlog)\
**Replies:** 0\
**Last updated:** [April 11, 2008, 7:40pm UTC](https://www.ruby-forum.com/t/ann-cross-site-sniper-0-3-1/134532 "2008-04-11T19:40:40Z")

</div>

I’ve just release version 0.3.1 of Cross Site Sniper. This is a minor bug fix update. Cross Site Sniper is a Ruby on Rails plugin that automatically html escapes all string and text fields of ActiveRecord objects. Dat…

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

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