# Rails

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

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

---

## [\[Job Opening\] Seeking Experienced Rails Developers](https://www.ruby-forum.com/t/job-opening-seeking-experienced-rails-developers/117268)

<div class="topic-metadata">

**Author:** [@Azri\_Careers](https://www.ruby-forum.com/u/Azri_Careers)\
**Replies:** 0\
**Last updated:** [October 15, 2007, 2:59pm UTC](https://www.ruby-forum.com/t/job-opening-seeking-experienced-rails-developers/117268 "2007-10-15T14:59:13Z")

</div>

Hi Rails Developers, Azri (www.azri.biz) is looking for Application Developer (Ruby on Rails) in India to join a small international team working on cutting edge web-based collaboration systems. Azri Solutions Pvt L…

---

## [Can Rails/Ruby logging filter more than just passwords?](https://www.ruby-forum.com/t/can-rails-ruby-logging-filter-more-than-just-passwords/117266)

<div class="topic-metadata">

**Author:** [@fjan](https://www.ruby-forum.com/u/fjan)\
**Replies:** 0\
**Last updated:** [October 15, 2007, 2:54pm UTC](https://www.ruby-forum.com/t/can-rails-ruby-logging-filter-more-than-just-passwords/117266 "2007-10-15T14:54:31Z")

</div>

I have a rails app that gets polled every so often by a ‘heartbeat’ server just to see if it’s still alive. This means that a fair percentage of my production log is filled with requests from the heartbeat server. Fo…

---

## [What is the right command for file cose](https://www.ruby-forum.com/t/what-is-the-right-command-for-file-cose/117242)

<div class="topic-metadata">

**Author:** [@vidyagayathri](https://www.ruby-forum.com/u/vidyagayathri)\
**Replies:** 2\
**Last updated:** [October 15, 2007, 2:36pm UTC](https://www.ruby-forum.com/t/what-is-the-right-command-for-file-cose/117242 "2007-10-15T14:36:21Z")

</div>

Hi All, I want to know, which is the right command to close the file, f.close is the right command, or any, please let me know

---

## [How to remove "~" in those files](https://www.ruby-forum.com/t/how-to-remove-in-those-files/117246)

<div class="topic-metadata">

**Author:** [@vidyagayathri](https://www.ruby-forum.com/u/vidyagayathri)\
**Replies:** 1\
**Last updated:** [October 15, 2007, 2:35pm UTC](https://www.ruby-forum.com/t/how-to-remove-in-those-files/117246 "2007-10-15T14:35:45Z")

</div>

Hi all, How to remove at end of the record “~”, i am trying this, but i couldn’t remove, please let me know if any body knows. for example , i have 2 files name sample1, sample2, for sample1 records:(this is one file…

---

## [Creating Javascript array from RAILS model data](https://www.ruby-forum.com/t/creating-javascript-array-from-rails-model-data/117252)

<div class="topic-metadata">

**Author:** [@Ed\_Jones](https://www.ruby-forum.com/u/Ed_Jones)\
**Replies:** 1\
**Last updated:** [October 15, 2007, 1:50pm UTC](https://www.ruby-forum.com/t/creating-javascript-array-from-rails-model-data/117252 "2007-10-15T13:50:37Z")

</div>

Hi and thanks! I think this should be simple: I need to initialize and then ajax update a Javascript array; taking the data from a rails model. I wrote an iterator that created a string–which looked just like my worki…

---

## [Models and multiple tables relationships](https://www.ruby-forum.com/t/models-and-multiple-tables-relationships/117233)

<div class="topic-metadata">

**Author:** [@eafonsof](https://www.ruby-forum.com/u/eafonsof)\
**Replies:** 1\
**Last updated:** [October 15, 2007, 1:48pm UTC](https://www.ruby-forum.com/t/models-and-multiple-tables-relationships/117233 "2007-10-15T13:48:52Z")

</div>

Hi there. I’ve been researching and thinking for quite a while now but I’m not getting a solution in terms of models and/or table relationship to represent and manipulate the data the way I need. I thought I could bri…

---

## [Automatically populating list box items using Ajax](https://www.ruby-forum.com/t/automatically-populating-list-box-items-using-ajax/109073)

<div class="topic-metadata">

**Author:** [@unnikrishnanes](https://www.ruby-forum.com/u/unnikrishnanes)\
**Replies:** 6\
**Last updated:** [October 15, 2007, 1:38pm UTC](https://www.ruby-forum.com/t/automatically-populating-list-box-items-using-ajax/109073 "2007-10-15T13:38:06Z")

</div>

I have page where I have 2 list box , one for countries and one for states. and I have tables for country and state. What I want is when I click on any country name , in the next list box it should display all the st…

---

## [About layout containing frame tag](https://www.ruby-forum.com/t/about-layout-containing-frame-tag/117181)

<div class="topic-metadata">

**Author:** [@daociyiyou](https://www.ruby-forum.com/u/daociyiyou)\
**Replies:** 1\
**Last updated:** [October 15, 2007, 12:51pm UTC](https://www.ruby-forum.com/t/about-layout-containing-frame-tag/117181 "2007-10-15T12:51:33Z")

</div>

Hello: I have used and tags in my store.rhtml which conrresponds to store controller,the code fragment like this : \<html\> \<head\> \<title\> \</title\> \</head\> \<body\> \<frameset\> \<frame src=?\> …

---

## [Trouble mith mongrel and ferret](https://www.ruby-forum.com/t/trouble-mith-mongrel-and-ferret/116342)

<div class="topic-metadata">

**Author:** [@remington](https://www.ruby-forum.com/u/remington)\
**Replies:** 2\
**Last updated:** [October 15, 2007, 12:48pm UTC](https://www.ruby-forum.com/t/trouble-mith-mongrel-and-ferret/116342 "2007-10-15T12:48:32Z")

</div>

Hi there, i just got a new server and I’m having some trouble with the mongrel server and the ferret gem. The server is running debian etch. I installed ruby 1.8.5 with the dev package, rails 1.2.3. I also installed …

---

## [Problem with submit form](https://www.ruby-forum.com/t/problem-with-submit-form/117210)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 9\
**Last updated:** [October 15, 2007, 12:45pm UTC](https://www.ruby-forum.com/t/problem-with-submit-form/117210 "2007-10-15T12:45:37Z")

</div>

I have the general submit form with info like address, email, name, etc. However I seem to stumbled into a problem, everytime I access that page, rails validates if the fields are empty or not. I have this code … de…

---

## [ActiveSupport\_1.4.3.7843 not available to gem](https://www.ruby-forum.com/t/activesupport-1-4-3-7843-not-available-to-gem/117102)

<div class="topic-metadata">

**Author:** [@Gary\_Fleshman](https://www.ruby-forum.com/u/Gary_Fleshman)\
**Replies:** 2\
**Last updated:** [October 15, 2007, 12:05pm UTC](https://www.ruby-forum.com/t/activesupport-1-4-3-7843-not-available-to-gem/117102 "2007-10-15T12:05:48Z")

</div>

On Oct 1, use of: sudo gem install rails --source http://gems.rubyonrails.org → resulted in installation of rails-1.2.3.7707 (which I have enjoyed thoroughly since) This morning was different. Use of: sudo gem inst…

---

## [Very simple code throwing "uninitialized constant" error](https://www.ruby-forum.com/t/very-simple-code-throwing-uninitialized-constant-error/117243)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [October 15, 2007, 10:22am UTC](https://www.ruby-forum.com/t/very-simple-code-throwing-uninitialized-constant-error/117243 "2007-10-15T10:22:47Z")

</div>

This code works on an older version of Ruby and Rails but not with Ruby 1.8.6 and Rails 1.2.5. The code is so simple that I can’t figure out where the problem is. profile\_controller.rb class ProfileController \< Appli…

---

## [Rake aborted.... No rake file found](https://www.ruby-forum.com/t/rake-aborted-no-rake-file-found/116419)

<div class="topic-metadata">

**Author:** [@ruchita](https://www.ruby-forum.com/u/ruchita)\
**Replies:** 16\
**Last updated:** [October 15, 2007, 8:19am UTC](https://www.ruby-forum.com/t/rake-aborted-no-rake-file-found/116419 "2007-10-15T08:19:00Z")

</div>

Hi all, I am facing a problem while freezing rails gems. When i am running the command rake rails:freeze:edge TAG=rel\_1-1-6… it is giving the error rake aborted! rake rails:freeze:edge TAG=rel\_1-1-6 No Rakefile fou…

---

## [Routing error in 1.2.3, do I need realpath() in all apps?](https://www.ruby-forum.com/t/routing-error-in-1-2-3-do-i-need-realpath-in-all-apps/117232)

<div class="topic-metadata">

**Author:** [@fxp](https://www.ruby-forum.com/u/fxp)\
**Replies:** 0\
**Last updated:** [October 15, 2007, 4:43am UTC](https://www.ruby-forum.com/t/routing-error-in-1-2-3-do-i-need-realpath-in-all-apps/117232 "2007-10-15T04:43:58Z")

</div>

I have my applications hosted on a shared server which is running rails 1.2.3, and I’m having a routing problem. Whenever I try to access one of actions I get this error: “Routing Error no route found to match “/item…

---

## [Question about grabbing feeds](https://www.ruby-forum.com/t/question-about-grabbing-feeds/117234)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [October 15, 2007, 4:42am UTC](https://www.ruby-forum.com/t/question-about-grabbing-feeds/117234 "2007-10-15T04:42:00Z")

</div>

Hi all, I was building an application for grabbing feeds from various resources. But sometimes when I run the app, I found that there would be “Execution Time Error.” I think this is due to my having too many feeds …

---

## [Debugging deployment](https://www.ruby-forum.com/t/debugging-deployment/117230)

<div class="topic-metadata">

**Author:** [@mike](https://www.ruby-forum.com/u/mike)\
**Replies:** 2\
**Last updated:** [October 15, 2007, 3:51am UTC](https://www.ruby-forum.com/t/debugging-deployment/117230 "2007-10-15T03:51:07Z")

</div>

Hi, I just started deploying my app on a Joyent dedicated hosting account (mongrel+apache) and i’m getting an error only on the deployed app. Where do the errors get logged in this situation? Mike

---

## [Object#type is deprecated; use Object#class](https://www.ruby-forum.com/t/object-type-is-deprecated-use-object-class/117227)

<div class="topic-metadata">

**Author:** [@Virginian](https://www.ruby-forum.com/u/Virginian)\
**Replies:** 2\
**Last updated:** [October 15, 2007, 3:11am UTC](https://www.ruby-forum.com/t/object-type-is-deprecated-use-object-class/117227 "2007-10-15T03:11:19Z")

</div>

Thanks in advance for being patient with this rails newbie When I do the STI example in AWDWR i get a warning: Object#type is deprecated; use Object#class What does this mean? How should I change the following code? …

---

## [Many-to-many relationship the REST way](https://www.ruby-forum.com/t/many-to-many-relationship-the-rest-way/117225)

<div class="topic-metadata">

**Author:** [@davosian](https://www.ruby-forum.com/u/davosian)\
**Replies:** 5\
**Last updated:** [October 15, 2007, 2:59am UTC](https://www.ruby-forum.com/t/many-to-many-relationship-the-rest-way/117225 "2007-10-15T02:59:37Z")

</div>

I have two models, Player and Event. A player can subscribe to several events and a event has several participants (players). Therefore, it is a many-to-many relationship. My question now is how do I have to implement…

---

## [Sort & scrollable table](https://www.ruby-forum.com/t/sort-scrollable-table/117221)

<div class="topic-metadata">

**Author:** [@hallikpapa](https://www.ruby-forum.com/u/hallikpapa)\
**Replies:** 2\
**Last updated:** [October 15, 2007, 2:57am UTC](https://www.ruby-forum.com/t/sort-scrollable-table/117221 "2007-10-15T02:57:27Z")

</div>

So I have a show.rhtml that displays XML data generated from perl. The column headers are the element tags in the XML, enclosing the data. I have two questions How would I make the columns sortable when a user click…

---

## [Testing Rails 2.0 Http Authentication](https://www.ruby-forum.com/t/testing-rails-2-0-http-authentication/117228)

<div class="topic-metadata">

**Author:** [@bparanj](https://www.ruby-forum.com/u/bparanj)\
**Replies:** 0\
**Last updated:** [October 15, 2007, 2:41am UTC](https://www.ruby-forum.com/t/testing-rails-2-0-http-authentication/117228 "2007-10-15T02:41:31Z")

</div>

I am able to check that admin pages are protected. Does anyone know how to login using http authentication in functional tests so that all scenarios for successful login can be tested? TIA.

---

## [How can I extend ActionController](https://www.ruby-forum.com/t/how-can-i-extend-actioncontroller/114751)

<div class="topic-metadata">

**Author:** [@SSSS\_SSSSSSSSSSSS\_S](https://www.ruby-forum.com/u/SSSS_SSSSSSSSSSSS_S)\
**Replies:** 1\
**Last updated:** [October 15, 2007, 2:14am UTC](https://www.ruby-forum.com/t/how-can-i-extend-actioncontroller/114751 "2007-10-15T02:14:36Z")

</div>

I’m coding with a Rails plugin, which need to extend ActionController so that action callback can be made when a view-generated hyper-link is clicked. But when i wrote some code like these: module MyController def c…

---

## [Flash notice](https://www.ruby-forum.com/t/flash-notice/117195)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 6\
**Last updated:** [October 14, 2007, 10:35pm UTC](https://www.ruby-forum.com/t/flash-notice/117195 "2007-10-14T22:35:59Z")

</div>

Has anyone noticed that flash notice dosent appear at all in firefox2 running with ubuntu? Is there a more cleaner and universal solution rather than flash notice?

---

## [Mongrel\_rails and mongrel\_cluster start error](https://www.ruby-forum.com/t/mongrel-rails-and-mongrel-cluster-start-error/117215)

<div class="topic-metadata">

**Author:** [@adrien](https://www.ruby-forum.com/u/adrien)\
**Replies:** 2\
**Last updated:** [October 14, 2007, 10:35pm UTC](https://www.ruby-forum.com/t/mongrel-rails-and-mongrel-cluster-start-error/117215 "2007-10-14T22:35:24Z")

</div>

Hello everyone, I cannot get mongrel\_rails or mongrel\_cluster working fine. When I try to to launch one of them, I always get the same error: mongrel\_rails start -p 8080 -e production -c /var/www/domain.com/ www/curr…

---

## [Mongrel\_rails and mongrel\_cluster start error](https://www.ruby-forum.com/t/mongrel-rails-and-mongrel-cluster-start-error/196487)

<div class="topic-metadata">

**Author:** [@adrien](https://www.ruby-forum.com/u/adrien)\
**Replies:** 1\
**Last updated:** [October 14, 2007, 10:35pm UTC](https://www.ruby-forum.com/t/mongrel-rails-and-mongrel-cluster-start-error/196487 "2007-10-14T22:35:24Z")

</div>

Hello everyone, I cannot get mongrel\_rails or mongrel\_cluster working fine. When I try to to launch one of them, I always get the same error: mongrel\_rails start -p 8080 -e production -c /var/www/domain.com/ www/curr…

---

## [Group Models Into Folders](https://www.ruby-forum.com/t/group-models-into-folders/117206)

<div class="topic-metadata">

**Author:** [@jakob\_bliz](https://www.ruby-forum.com/u/jakob_bliz)\
**Replies:** 2\
**Last updated:** [October 14, 2007, 10:28pm UTC](https://www.ruby-forum.com/t/group-models-into-folders/117206 "2007-10-14T22:28:09Z")

</div>

Hi! I have a lot of models in my app/models directory… I thought that it would be nice to group them into sub folders… like app/models/foo/.rb and app/models/bar/.rb How to do this? When I just move them into folde…

---

## [Weekday or hour fields](https://www.ruby-forum.com/t/weekday-or-hour-fields/117211)

<div class="topic-metadata">

**Author:** [@dyavorski](https://www.ruby-forum.com/u/dyavorski)\
**Replies:** 1\
**Last updated:** [October 14, 2007, 9:29pm UTC](https://www.ruby-forum.com/t/weekday-or-hour-fields/117211 "2007-10-14T21:29:12Z")

</div>

Hi all I am trying to build a table that one of its columns is a week day and another is an hour in the day. The create\_table syntax enables one only to determine a datetime or time column which contain too much data …

---

## [Template error when deploying to host with frozen gems](https://www.ruby-forum.com/t/template-error-when-deploying-to-host-with-frozen-gems/117205)

<div class="topic-metadata">

**Author:** [@rbibby](https://www.ruby-forum.com/u/rbibby)\
**Replies:** 0\
**Last updated:** [October 14, 2007, 7:35pm UTC](https://www.ruby-forum.com/t/template-error-when-deploying-to-host-with-frozen-gems/117205 "2007-10-14T19:35:03Z")

</div>

Hi, I’m having some issues with deploying my app to my host server (Dimension Servers). I froze the gems (Instant Rails 1.2.3) on my local server and have the app running flawlessly boh on my machine and on a few ot…

---

## [Javascript script not loaded in partial (Ajax gurus... ?Â°](https://www.ruby-forum.com/t/javascript-script-not-loaded-in-partial-ajax-gurus-a/117204)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 0\
**Last updated:** [October 14, 2007, 7:30pm UTC](https://www.ruby-forum.com/t/javascript-script-not-loaded-in-partial-ajax-gurus-a/117204 "2007-10-14T19:30:27Z")

</div>

an Ajax request to my FranchiseController updates my page correctly page.replace\_html ‘table\_list\_item’, :partial =\> ‘item\_franchise’ page.show ‘show\_list\_item’ performed correctly in my \_item\_franchise partial view,…

---

## [Customize URL](https://www.ruby-forum.com/t/customize-url/116970)

<div class="topic-metadata">

**Author:** [@luigi](https://www.ruby-forum.com/u/luigi)\
**Replies:** 12\
**Last updated:** [October 14, 2007, 5:35pm UTC](https://www.ruby-forum.com/t/customize-url/116970 "2007-10-14T17:35:42Z")

</div>

Hi, in my ruby application I manage a MySQL db. The url are generated by the classic command line link\_to or url\_for. For image I use the command: \<img src="\<%= url\_for(:action=\>“picture”, :id=\>@pictures.id)-%\>" … s…

---

## [Conditions =\> Or instead of AND](https://www.ruby-forum.com/t/conditions-or-instead-of-and/117175)

<div class="topic-metadata">

**Author:** [@jamal](https://www.ruby-forum.com/u/jamal)\
**Replies:** 2\
**Last updated:** [October 14, 2007, 5:21pm UTC](https://www.ruby-forum.com/t/conditions-or-instead-of-and/117175 "2007-10-14T17:21:41Z")

</div>

Hello, I have in my User model. belongs :groups I want to put condition on it so it end of like this SELECT \* FROM groups WHERE (groups.user\_id = 2 OR (groups.user\_id is NULL) …so I thought this would do that belo…

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

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