# Rails

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

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

---

## [Some functions using Acts\_as\_authenticated](https://www.ruby-forum.com/t/some-functions-using-acts-as-authenticated/124771)

<div class="topic-metadata">

**Author:** [@Waleed\_H](https://www.ruby-forum.com/u/Waleed_H)\
**Replies:** 1\
**Last updated:** [January 2, 2008, 10:34pm UTC](https://www.ruby-forum.com/t/some-functions-using-acts-as-authenticated/124771 "2008-01-02T22:34:14Z")

</div>

Hello, I am new to rails and I have installed Acts\_as\_authenticated also it is working fine but I would like add two methods allow my users when they registered via Acts\_as\_authenticated plugin , they can update thei…

---

## [Time\_zone\_select](https://www.ruby-forum.com/t/time-zone-select/124758)

<div class="topic-metadata">

**Author:** [@ss\_1982](https://www.ruby-forum.com/u/ss_1982)\
**Replies:** 1\
**Last updated:** [January 2, 2008, 10:17pm UTC](https://www.ruby-forum.com/t/time-zone-select/124758 "2008-01-02T22:17:51Z")

</div>

Hi, I am using the tzinfo gem and plugins to manage time zone support in my app. In one of the views I have the following select \<%= time\_zone\_select ‘user’, ‘time\_zone’, TZInfo::Timezone.all.sort, :model =\> TZInfo:…

---

## [Localization plugin issue?](https://www.ruby-forum.com/t/localization-plugin-issue/124797)

<div class="topic-metadata">

**Author:** [@myst\_tt](https://www.ruby-forum.com/u/myst_tt)\
**Replies:** 2\
**Last updated:** [January 2, 2008, 10:04pm UTC](https://www.ruby-forum.com/t/localization-plugin-issue/124797 "2008-01-02T22:04:55Z")

</div>

Hello, there: I am using “Localization plugin” to help my app support both English and Chinese. http://wiki.rubyonrails.org/rails/pages/Localization+Plugin However, I dont find the way to switch the language version …

---

## [\[ADV\] Updated PDF of Advanced Rails Recipes](https://www.ruby-forum.com/t/adv-updated-pdf-of-advanced-rails-recipes/124820)

<div class="topic-metadata">

**Author:** [@clarkware](https://www.ruby-forum.com/u/clarkware)\
**Replies:** 0\
**Last updated:** [January 2, 2008, 9:47pm UTC](https://www.ruby-forum.com/t/adv-updated-pdf-of-advanced-rails-recipes/124820 "2008-01-02T21:47:51Z")

</div>

Hi Folks, We’ve just uploaded a new revision of the Advanced Rails Recipes PDF: http://pragprog.com/titles/fr\_arr To get your updated PDF, simply sign in to your account (http:// Manage) and ask the system to regener…

---

## [REXML::Comment:Class](https://www.ruby-forum.com/t/rexml-class/124785)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 3\
**Last updated:** [January 2, 2008, 9:17pm UTC](https://www.ruby-forum.com/t/rexml-class/124785 "2008-01-02T21:17:20Z")

</div>

I have this field in my app where a logged in user can enter a comment, but when I click on the link bringing me to that page I get the following error message: undefined method \`table\_name’ for REXML::Comment:Class I…

---

## [AJAX: send JSONified ruby-array back to client problem](https://www.ruby-forum.com/t/ajax-send-jsonified-ruby-array-back-to-client-problem/124818)

<div class="topic-metadata">

**Author:** [@jeanluca](https://www.ruby-forum.com/u/jeanluca)\
**Replies:** 0\
**Last updated:** [January 2, 2008, 9:15pm UTC](https://www.ruby-forum.com/t/ajax-send-jsonified-ruby-array-back-to-client-problem/124818 "2008-01-02T21:15:40Z")

</div>

Hi All I’m trying to send a ruby-array back to a browser (its an AJAX call and I’m converting the array using to\_json) Here is the controller/action part: respond\_to do |format| … format.js { # AJAX call a = \[{}\] …

---

## [Habtm user interface; unexpected behaviour (calling update instead of method?)](https://www.ruby-forum.com/t/habtm-user-interface-unexpected-behaviour-calling-update-instead-of-method/124639)

<div class="topic-metadata">

**Author:** [@kaeptnhaddock](https://www.ruby-forum.com/u/kaeptnhaddock)\
**Replies:** 3\
**Last updated:** [January 2, 2008, 9:10pm UTC](https://www.ruby-forum.com/t/habtm-user-interface-unexpected-behaviour-calling-update-instead-of-method/124639 "2008-01-02T21:10:19Z")

</div>

I’m trying to get a user-interface going, where the user can choose which users he/she would like to add to a group. edit.html.erb for the Group displays a list of users currently assigned to the group we’re editing, …

---

## [How to secure controller functions per user](https://www.ruby-forum.com/t/how-to-secure-controller-functions-per-user/124752)

<div class="topic-metadata">

**Author:** [@bingobob](https://www.ruby-forum.com/u/bingobob)\
**Replies:** 3\
**Last updated:** [January 2, 2008, 9:08pm UTC](https://www.ruby-forum.com/t/how-to-secure-controller-functions-per-user/124752 "2008-01-02T21:08:34Z")

</div>

I’ve got an app running that uses acts as attachment. Works well and i’ve secured an admin area and an owners area. Trouble is I now need to secure each action to ensure that people can’t just alter a url to edit anot…

---

## [Auto-subclassing/Factory question](https://www.ruby-forum.com/t/auto-subclassing-factory-question/124817)

<div class="topic-metadata">

**Author:** [@MonkeyLice](https://www.ruby-forum.com/u/MonkeyLice)\
**Replies:** 0\
**Last updated:** [January 2, 2008, 9:08pm UTC](https://www.ruby-forum.com/t/auto-subclassing-factory-question/124817 "2008-01-02T21:08:34Z")

</div>

I’ve got an application that tracks different types of Tasks and the differing tasks have subclasses like PersonalTask and WorkTask. These are stored in the database along with their “type” (type is a column in the d…

---

## [Where is the mythical activerecord-sybase-adapter](https://www.ruby-forum.com/t/where-is-the-mythical-activerecord-sybase-adapter/122713)

<div class="topic-metadata">

**Author:** [@athind](https://www.ruby-forum.com/u/athind)\
**Replies:** 3\
**Last updated:** [January 2, 2008, 9:04pm UTC](https://www.ruby-forum.com/t/where-is-the-mythical-activerecord-sybase-adapter/122713 "2008-01-02T21:04:43Z")

</div>

Hello, I just migrated to Rails 2.0.1 and now it demands a “activerecord- sybase-adapter” to work with my sybase db. ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.1/lib/active\_record/ connection\_adapters/abstract/conn…

---

## [Best way to serve from 2 ports?](https://www.ruby-forum.com/t/best-way-to-serve-from-2-ports/124814)

<div class="topic-metadata">

**Author:** [@jfrankov](https://www.ruby-forum.com/u/jfrankov)\
**Replies:** 0\
**Last updated:** [January 2, 2008, 8:57pm UTC](https://www.ruby-forum.com/t/best-way-to-serve-from-2-ports/124814 "2008-01-02T20:57:56Z")

</div>

I’ve got two separate services running from the same RoR codebase- one mongrel on port 6000, one on 6010. Until now I’ve had two checkouts of the app, one for each mongrel, mostly to keep the logs separate, but this s…

---

## [Form for several objects](https://www.ruby-forum.com/t/form-for-several-objects/124811)

<div class="topic-metadata">

**Author:** [@eyp](https://www.ruby-forum.com/u/eyp)\
**Replies:** 1\
**Last updated:** [January 2, 2008, 8:42pm UTC](https://www.ruby-forum.com/t/form-for-several-objects/124811 "2008-01-02T20:42:09Z")

</div>

Hello, I have an application I did using RoR 1.1.6, now I wanna migrate it to 2.0.2 but I found a problem. Before I had a form like this: \<%= start\_form\_tag :action =\> ‘update’, :id =\> @user %\> \<%= error\_messages\_for…

---

## [Problem with Log-In functionality in Rails 2.0.2](https://www.ruby-forum.com/t/problem-with-log-in-functionality-in-rails-2-0-2/124809)

<div class="topic-metadata">

**Author:** [@myowntribe](https://www.ruby-forum.com/u/myowntribe)\
**Replies:** 0\
**Last updated:** [January 2, 2008, 8:19pm UTC](https://www.ruby-forum.com/t/problem-with-log-in-functionality-in-rails-2-0-2/124809 "2008-01-02T20:19:11Z")

</div>

Hi, I am facing problem with the Login functionality after upgrading to Rails 2.0.2 When I login, I get a No Method Error: NoMethodError in LoginController#login You have a nil object when you didn’t expect it! You…

---

## [Shared Model Code](https://www.ruby-forum.com/t/shared-model-code/124792)

<div class="topic-metadata">

**Author:** [@scott](https://www.ruby-forum.com/u/scott)\
**Replies:** 2\
**Last updated:** [January 2, 2008, 7:51pm UTC](https://www.ruby-forum.com/t/shared-model-code/124792 "2008-01-02T19:51:42Z")

</div>

Where does one stick shared model code? I have a method that I want to share between models. What file should I define that method in if I want to keep DRY? Thanks, -scott

---

## [I m new to ruby](https://www.ruby-forum.com/t/i-m-new-to-ruby/124802)

<div class="topic-metadata">

**Author:** [@livesketches](https://www.ruby-forum.com/u/livesketches)\
**Replies:** 1\
**Last updated:** [January 2, 2008, 7:41pm UTC](https://www.ruby-forum.com/t/i-m-new-to-ruby/124802 "2008-01-02T19:41:05Z")

</div>

I m getting this problem while in scaffolding and when i trying to fetch the data from database while my model is communicating very well with database. Please help me. Error: No route matches “/album\_list” with {:me…

---

## [Feliz 2008 para todos!](https://www.ruby-forum.com/t/feliz-2008-para-todos/124798)

<div class="topic-metadata">

**Author:** [@malvadomx](https://www.ruby-forum.com/u/malvadomx)\
**Replies:** 0\
**Last updated:** [January 2, 2008, 7:12pm UTC](https://www.ruby-forum.com/t/feliz-2008-para-todos/124798 "2008-01-02T19:12:57Z")

</div>

Feliz 2008 para todos! São os votos de Sergio L.

---

## [Edit a form](https://www.ruby-forum.com/t/edit-a-form/124800)

<div class="topic-metadata">

**Author:** [@ankit2584](https://www.ruby-forum.com/u/ankit2584)\
**Replies:** 0\
**Last updated:** [January 2, 2008, 7:12pm UTC](https://www.ruby-forum.com/t/edit-a-form/124800 "2008-01-02T19:12:54Z")

</div>

Hello, I have two functions edit and update in my controller. edit is used to display the person’s details and when the update button is clicked the update function should be executed. The problem is after clicking t…

---

## [Restarting server all the time in development mode (Rails 2)](https://www.ruby-forum.com/t/restarting-server-all-the-time-in-development-mode-rails-2/124779)

<div class="topic-metadata">

**Author:** [@gustav](https://www.ruby-forum.com/u/gustav)\
**Replies:** 2\
**Last updated:** [January 2, 2008, 6:54pm UTC](https://www.ruby-forum.com/t/restarting-server-all-the-time-in-development-mode-rails-2/124779 "2008-01-02T18:54:41Z")

</div>

Hi, It seems like I have to restart the server for any additions of controllers, models etc. to have any effect since upgrading to Rails 2.0, otherwise I get a routing error. Anyone know how to fix this, and why this…

---

## [What is your suggestion?](https://www.ruby-forum.com/t/what-is-your-suggestion/124493)

<div class="topic-metadata">

**Author:** [@mokkai](https://www.ruby-forum.com/u/mokkai)\
**Replies:** 4\
**Last updated:** [January 2, 2008, 6:35pm UTC](https://www.ruby-forum.com/t/what-is-your-suggestion/124493 "2008-01-02T18:35:10Z")

</div>

what is the best database adapter for rails frame work ? what is the advancestage and disadvanstage of that ?

---

## [Filter run twice with sub classes](https://www.ruby-forum.com/t/filter-run-twice-with-sub-classes/124791)

<div class="topic-metadata">

**Author:** [@uncle](https://www.ruby-forum.com/u/uncle)\
**Replies:** 0\
**Last updated:** [January 2, 2008, 6:17pm UTC](https://www.ruby-forum.com/t/filter-run-twice-with-sub-classes/124791 "2008-01-02T18:17:27Z")

</div>

class User::Signin::BaseController \< User::BaseController before\_filter :before\_filter\_setup\_user def before\_filter\_setup\_user puts “hi” end def index end end class User::Signin::BasicController \< User::Signin::B…

---

## [Rest urls on safari](https://www.ruby-forum.com/t/rest-urls-on-safari/124782)

<div class="topic-metadata">

**Author:** [@jney](https://www.ruby-forum.com/u/jney)\
**Replies:** 2\
**Last updated:** [January 2, 2008, 6:12pm UTC](https://www.ruby-forum.com/t/rest-urls-on-safari/124782 "2008-01-02T18:12:11Z")

</div>

hello, i’ve got a form whith action = /users/search when i submit it on firefox url will be http://localhost:3000/users/search?q=bobby. but on safari it is http://localhost:3000/users/search?=users&q=bobby. how can …

---

## [Problem when editing record in polymorphic relation](https://www.ruby-forum.com/t/problem-when-editing-record-in-polymorphic-relation/124777)

<div class="topic-metadata">

**Author:** [@venu](https://www.ruby-forum.com/u/venu)\
**Replies:** 6\
**Last updated:** [January 2, 2008, 4:34pm UTC](https://www.ruby-forum.com/t/problem-when-editing-record-in-polymorphic-relation/124777 "2008-01-02T16:34:55Z")

</div>

I have the following three models created applying the polymorphic concept class SoftwareCi \< ActiveRecord::Base has\_one :ci, :as =\> :content end class HardwareCi \< ActiveRecord::Base has\_one :ci, :as =\> :content e…

---

## [Views and If Else conditions](https://www.ruby-forum.com/t/views-and-if-else-conditions/124756)

<div class="topic-metadata">

**Author:** [@Haris\_G](https://www.ruby-forum.com/u/Haris_G)\
**Replies:** 4\
**Last updated:** [January 2, 2008, 4:33pm UTC](https://www.ruby-forum.com/t/views-and-if-else-conditions/124756 "2008-01-02T16:33:26Z")

</div>

Hello all, How do I use nested if conditions in my views? I have something like if(res.birthdate\_status == “0”) { if(res.gender == “M” || res.gender==“F”) print , //print a comma print res.age } – Regards Hari…

---

## [Alternative to Rails Heartbeat](https://www.ruby-forum.com/t/alternative-to-rails-heartbeat/83302)

<div class="topic-metadata">

**Author:** [@alanwatts](https://www.ruby-forum.com/u/alanwatts)\
**Replies:** 4\
**Last updated:** [January 2, 2008, 4:19pm UTC](https://www.ruby-forum.com/t/alternative-to-rails-heartbeat/83302 "2008-01-02T16:19:57Z")

</div>

Hi: Sorry newbie question again… I just came across a cool app called heartbeat…Its like a web application control panel or executing rake + capistrano tasks via web… unfortunately it seems like they are not developi…

---

## [How to have confirmation dialog?](https://www.ruby-forum.com/t/how-to-have-confirmation-dialog/124754)

<div class="topic-metadata">

**Author:** [@Kei\_Simone](https://www.ruby-forum.com/u/Kei_Simone)\
**Replies:** 1\
**Last updated:** [January 2, 2008, 3:30pm UTC](https://www.ruby-forum.com/t/how-to-have-confirmation-dialog/124754 "2008-01-02T15:30:21Z")

</div>

Hi, I am using the scaffold to help me build up most of a simple app However I need a confirmation dialog. I googled somethin abt Prototype however i am not too sure how to use it. I may need to enter the user’s inp…

---

## [Adding to params hash](https://www.ruby-forum.com/t/adding-to-params-hash/124353)

<div class="topic-metadata">

**Author:** [@spokra](https://www.ruby-forum.com/u/spokra)\
**Replies:** 12\
**Last updated:** [January 2, 2008, 3:23pm UTC](https://www.ruby-forum.com/t/adding-to-params-hash/124353 "2008-01-02T15:23:35Z")

</div>

my form is passing back turing\_confirmation, I have the turing in a session variable. is this the correct way to get the turing into the params hash? params\[:accounts\]\[‘turing’\] = session\[‘turing’\] Model =========…

---

## [How to reset a particular field of form?](https://www.ruby-forum.com/t/how-to-reset-a-particular-field-of-form/124760)

<div class="topic-metadata">

**Author:** [@vapor](https://www.ruby-forum.com/u/vapor)\
**Replies:** 2\
**Last updated:** [January 2, 2008, 3:10pm UTC](https://www.ruby-forum.com/t/how-to-reset-a-particular-field-of-form/124760 "2008-01-02T15:10:29Z")

</div>

In RJS, how can I reset particular field (password) of form, but not login? And also how can I bring cursor to input field when page is loaded? I currently have to click in the login field before typing. Thanks.

---

## [Custom paginate help](https://www.ruby-forum.com/t/custom-paginate-help/124775)

<div class="topic-metadata">

**Author:** [@taro](https://www.ruby-forum.com/u/taro)\
**Replies:** 0\
**Last updated:** [January 2, 2008, 2:58pm UTC](https://www.ruby-forum.com/t/custom-paginate-help/124775 "2008-01-02T14:58:56Z")

</div>

I’m trying to create a paginated view pages (rails 1.2.5). According to my sources, the paginate controller method accepts a symbol for a model name, but I’d rather pass in an array of the same models, because I’m tr…

---

## [Nil object error](https://www.ruby-forum.com/t/nil-object-error/124762)

<div class="topic-metadata">

**Author:** [@Haris\_G](https://www.ruby-forum.com/u/Haris_G)\
**Replies:** 2\
**Last updated:** [January 2, 2008, 2:09pm UTC](https://www.ruby-forum.com/t/nil-object-error/124762 "2008-01-02T14:09:40Z")

</div>

Hello all, Im getting a nil object error. here under are the details of my app. My index.rhtml file is \<% @result.each do |res| %\> \<%= res.first\_name %\> \<%= res.register.language\_speak %\> \<% end %\> My mod…

---

## [Multiple :url in remote\_form\_for](https://www.ruby-forum.com/t/multiple-url-in-remote-form-for/124694)

<div class="topic-metadata">

**Author:** [@Javier\_Q](https://www.ruby-forum.com/u/Javier_Q)\
**Replies:** 6\
**Last updated:** [January 2, 2008, 1:56pm UTC](https://www.ruby-forum.com/t/multiple-url-in-remote-form-for/124694 "2008-01-02T13:56:41Z")

</div>

Hi. I’m developing a Ruby Application. I would like to perform several actions, that is, call more than one action in 1 controller when someone clicks the submit\_tag using ajax, rjs, etc. Right now it is working perfe…

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

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