# Rails

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

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

---

## [Updating the Informix adapter for ActiveRecord](https://www.ruby-forum.com/t/updating-the-informix-adapter-for-activerecord/182414)

<div class="topic-metadata">

**Author:** [@Gerardo\_S](https://www.ruby-forum.com/u/Gerardo_S)\
**Replies:** 0\
**Last updated:** [January 27, 2010, 6:09pm UTC](https://www.ruby-forum.com/t/updating-the-informix-adapter-for-activerecord/182414 "2010-01-27T18:09:35Z")

</div>

What is the repository for the ActiveRecord adapters? I’ll need to update the Informix adapter. Thanks in advance.

---

## [How to retrieve the \*referring\* action/controller](https://www.ruby-forum.com/t/how-to-retrieve-the-referring-action-controller/182392)

<div class="topic-metadata">

**Author:** [@tharrisx](https://www.ruby-forum.com/u/tharrisx)\
**Replies:** 2\
**Last updated:** [January 27, 2010, 5:43pm UTC](https://www.ruby-forum.com/t/how-to-retrieve-the-referring-action-controller/182392 "2010-01-27T17:43:22Z")

</div>

Hi there, I’m posting because I didn’t find the answer using search engines: How do I get the name of the action and/or controller that have sent the user to the current page? (I know one can access the current actio…

---

## [I need some help](https://www.ruby-forum.com/t/i-need-some-help/182388)

<div class="topic-metadata">

**Author:** [@kevid](https://www.ruby-forum.com/u/kevid)\
**Replies:** 3\
**Last updated:** [January 27, 2010, 5:13pm UTC](https://www.ruby-forum.com/t/i-need-some-help/182388 "2010-01-27T17:13:16Z")

</div>

I can’t start webrick from the command line. always have this error below. Some one help, please. C:\\Users\\imedia1\\applica\>ruby script/server =\> Booting WEBrick =\> Rails 2.3.5 application starting on http://0.0.0.0:3…

---

## [Include NULL values using :group option?](https://www.ruby-forum.com/t/include-null-values-using-group-option/182357)

<div class="topic-metadata">

**Author:** [@polg](https://www.ruby-forum.com/u/polg)\
**Replies:** 2\
**Last updated:** [January 27, 2010, 5:02pm UTC](https://www.ruby-forum.com/t/include-null-values-using-group-option/182357 "2010-01-27T17:02:46Z")

</div>

I’m trying to use the :group option in an ActiveRecord association. I wrote the code as follows: class User \< ActiveRecord::Base has\_many :messages, :group =\> “thread”, :order =\> “created\_at desc” end It works fine …

---

## [Example or Tutorial of Rails & XML](https://www.ruby-forum.com/t/example-or-tutorial-of-rails-xml/182358)

<div class="topic-metadata">

**Author:** [@Seirie](https://www.ruby-forum.com/u/Seirie)\
**Replies:** 5\
**Last updated:** [January 27, 2010, 4:16pm UTC](https://www.ruby-forum.com/t/example-or-tutorial-of-rails-xml/182358 "2010-01-27T16:16:07Z")

</div>

Hey guys. Does anyone know where I can find a good tutorial or example on how exactly to work with XML in Rails. Now, I know the different technologies you can use (REXML, Builder, etc) and I know how do use these to …

---

## [How to select a reporting tool](https://www.ruby-forum.com/t/how-to-select-a-reporting-tool/182404)

<div class="topic-metadata">

**Author:** [@mayur\_sk](https://www.ruby-forum.com/u/mayur_sk)\
**Replies:** 0\
**Last updated:** [January 27, 2010, 4:03pm UTC](https://www.ruby-forum.com/t/how-to-select-a-reporting-tool/182404 "2010-01-27T16:03:18Z")

</div>

Hi, i am fairly new to RoR and i have been working on a project; which is fairly large project with 200 tables in it . and i have to working on reporting. Can you please suggest what are the criteria that i have to us…

---

## [Time taken by page to load](https://www.ruby-forum.com/t/time-taken-by-page-to-load/182234)

<div class="topic-metadata">

**Author:** [@hemantborole](https://www.ruby-forum.com/u/hemantborole)\
**Replies:** 8\
**Last updated:** [January 27, 2010, 3:40pm UTC](https://www.ruby-forum.com/t/time-taken-by-page-to-load/182234 "2010-01-27T15:40:00Z")

</div>

Champs, Is there any way to find out that how much time a page had taken to load itself ? Googled for it but no luck… :’(

---

## [Failsafe errors since upgrading to 2.3](https://www.ruby-forum.com/t/failsafe-errors-since-upgrading-to-2-3/163598)

<div class="topic-metadata">

**Author:** [@AtsoK](https://www.ruby-forum.com/u/AtsoK)\
**Replies:** 9\
**Last updated:** [January 27, 2010, 2:51pm UTC](https://www.ruby-forum.com/t/failsafe-errors-since-upgrading-to-2-3/163598 "2010-01-27T14:51:15Z")

</div>

Since upgrading to 2.3, this error shows up dozens of times a day, and I have no idea what’s causing it. Anyone have any ideas? Processing ApplicationController#index (for 62.75.252.249 at 2009-03-22 13:23:08) \[GET\] …

---

## [Dynamically set named\_scope based on current\_user](https://www.ruby-forum.com/t/dynamically-set-named-scope-based-on-current-user/182356)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 2\
**Last updated:** [January 27, 2010, 2:25pm UTC](https://www.ruby-forum.com/t/dynamically-set-named-scope-based-on-current-user/182356 "2010-01-27T14:25:57Z")

</div>

Hey all, I keep getting the following error: You have a nil object when you didn’t expect it! You might have expected an instance of Array. The error occurred while evaluating nil.size Based on the current user, whe…

---

## [Mongrels Hanging in mysql\_adapter.rb](https://www.ruby-forum.com/t/mongrels-hanging-in-mysql-adapter-rb/182336)

<div class="topic-metadata">

**Author:** [@serty](https://www.ruby-forum.com/u/serty)\
**Replies:** 1\
**Last updated:** [January 27, 2010, 2:11pm UTC](https://www.ruby-forum.com/t/mongrels-hanging-in-mysql-adapter-rb/182336 "2010-01-27T14:11:54Z")

</div>

Hi everyone, I have been trying to solve this problem for quite some time now and I really don’t have any further clue to investigate. I am running a mongrel\_cluster 1.0.5-2 (mongrel verison : 1.1.5-5) on a ubuntu bo…

---

## [Around\_filter and with\_scope](https://www.ruby-forum.com/t/around-filter-and-with-scope/182391)

<div class="topic-metadata">

**Author:** [@eugenio](https://www.ruby-forum.com/u/eugenio)\
**Replies:** 1\
**Last updated:** [January 27, 2010, 1:06pm UTC](https://www.ruby-forum.com/t/around-filter-and-with-scope/182391 "2010-01-27T13:06:20Z")

</div>

i got two controller (with restful actions) where my code is quite ugly and not very dry. every action looks quite like this: if @logged\_user.has\_role?(“admin”) User.find(params\[:id) else @logged\_user.group.user.fin…

---

## [Updating column (migration)](https://www.ruby-forum.com/t/updating-column-migration/182299)

<div class="topic-metadata">

**Author:** [@eggie5](https://www.ruby-forum.com/u/eggie5)\
**Replies:** 2\
**Last updated:** [January 27, 2010, 12:16pm UTC](https://www.ruby-forum.com/t/updating-column-migration/182299 "2010-01-27T12:16:00Z")

</div>

I have a column in a postgres database that keeps track of a date, but for some reason I set it up to use a timestamp, ie. my migration says t.datetime :start\_date but I want to switch this to the date type for my exi…

---

## [Globalization using tzinfo](https://www.ruby-forum.com/t/globalization-using-tzinfo/182389)

<div class="topic-metadata">

**Author:** [@pavanagrawal](https://www.ruby-forum.com/u/pavanagrawal)\
**Replies:** 0\
**Last updated:** [January 27, 2010, 11:50am UTC](https://www.ruby-forum.com/t/globalization-using-tzinfo/182389 "2010-01-27T11:50:14Z")

</div>

Hi Gurus, I want to globalize my project using tzinfo. I want to: use tzinfo to globalize my app. the app is already developed, so what is the accurate solution to implement it using minimal and centralize change. I …

---

## [Calling a models function via a link](https://www.ruby-forum.com/t/calling-a-models-function-via-a-link/182379)

<div class="topic-metadata">

**Author:** [@brianp](https://www.ruby-forum.com/u/brianp)\
**Replies:** 2\
**Last updated:** [January 27, 2010, 11:16am UTC](https://www.ruby-forum.com/t/calling-a-models-function-via-a-link/182379 "2010-01-27T11:16:51Z")

</div>

Hey, If i have a function in my model: def mark\_sold self.update\_attribute(:market\_status, ‘sold’) end Is it possible for this to be called via an on page link? Then I’d like to ajax it so a user could just scroll …

---

## [Test that a string is not displayed in view](https://www.ruby-forum.com/t/test-that-a-string-is-not-displayed-in-view/182353)

<div class="topic-metadata">

**Author:** [@Learn\_by\_D](https://www.ruby-forum.com/u/Learn_by_D)\
**Replies:** 4\
**Last updated:** [January 27, 2010, 10:02am UTC](https://www.ruby-forum.com/t/test-that-a-string-is-not-displayed-in-view/182353 "2010-01-27T10:02:30Z")

</div>

How can I test that a view does not display a particular string any where? E.g., the particular string is “I should not be here”. In my controller test, I have: assert\_select “div”, /I should not be here/, false bu…

---

## [Oh no! I have a "Spec" model](https://www.ruby-forum.com/t/oh-no-i-have-a-spec-model/182360)

<div class="topic-metadata">

**Author:** [@Learn\_by\_D](https://www.ruby-forum.com/u/Learn_by_D)\
**Replies:** 8\
**Last updated:** [January 27, 2010, 6:13am UTC](https://www.ruby-forum.com/t/oh-no-i-have-a-spec-model/182360 "2010-01-27T06:13:06Z")

</div>

I am trying to use cucumber but my application has a “Spec” model (I followed the RailsSpace book). So now I am getting an error when running cucumber (below). I think because cucumber does not like a model named “S…

---

## [Rails 3 validation error messages](https://www.ruby-forum.com/t/rails-3-validation-error-messages/182226)

<div class="topic-metadata">

**Author:** [@Sven\_F](https://www.ruby-forum.com/u/Sven_F)\
**Replies:** 7\
**Last updated:** [January 27, 2010, 5:03am UTC](https://www.ruby-forum.com/t/rails-3-validation-error-messages/182226 "2010-01-27T05:03:28Z")

</div>

\[José, Mateo, I’ll move this to the list\] Ok, so we’ve had this short non-discussion on rails-core :slight\_smile: It seems that Rails 3 validation error messages will be back to the state of pre 2.3.3 at least for a s…

---

## [Captcha](https://www.ruby-forum.com/t/captcha/182228)

<div class="topic-metadata">

**Author:** [@tom-mac](https://www.ruby-forum.com/u/tom-mac)\
**Replies:** 2\
**Last updated:** [January 27, 2010, 4:45am UTC](https://www.ruby-forum.com/t/captcha/182228 "2010-01-27T04:45:49Z")

</div>

Hi I would like to know which is the latest captcha gem or plugin in rails. I need to implement one in my registration page Is there any screencasts available for the same Thanks in advance Tom

---

## [Nested resource with nested models -- nested models not saved in child classes](https://www.ruby-forum.com/t/nested-resource-with-nested-models-nested-models-not-saved-in-child-classes/182355)

<div class="topic-metadata">

**Author:** [@princenamor](https://www.ruby-forum.com/u/princenamor)\
**Replies:** 0\
**Last updated:** [January 27, 2010, 12:03am UTC](https://www.ruby-forum.com/t/nested-resource-with-nested-models-nested-models-not-saved-in-child-classes/182355 "2010-01-27T00:03:12Z")

</div>

I have a nested model, Experiment, with accepts\_nested\_attributes\_for :sources, and I was creating it and its sources in a single form using forms\_for and fields\_for. (Also, some JS to add/remove sources.) Matrix has…

---

## [Newbie question: Integrating Authlogic plug-in more deeply](https://www.ruby-forum.com/t/newbie-question-integrating-authlogic-plug-in-more-deeply/182325)

<div class="topic-metadata">

**Author:** [@Souschef](https://www.ruby-forum.com/u/Souschef)\
**Replies:** 19\
**Last updated:** [January 26, 2010, 11:57pm UTC](https://www.ruby-forum.com/t/newbie-question-integrating-authlogic-plug-in-more-deeply/182325 "2010-01-26T23:57:20Z")

</div>

I have training app with “Projects” set up with nested “Tasks”. I have integrate authlogic gem so that the app supports “Login/off” & “Register/Modify Profile” per ryanb’s railscast. I am now trying to use authlogic …

---

## [Anyway to change the button label for file upoading?](https://www.ruby-forum.com/t/anyway-to-change-the-button-label-for-file-upoading/182346)

<div class="topic-metadata">

**Author:** [@pitosalas](https://www.ruby-forum.com/u/pitosalas)\
**Replies:** 4\
**Last updated:** [January 26, 2010, 10:49pm UTC](https://www.ruby-forum.com/t/anyway-to-change-the-button-label-for-file-upoading/182346 "2010-01-26T22:49:55Z")

</div>

In other words, file\_field\_tag, gets me a box with a button labeled (variously) browse… or choose file… depending on the browser. Is there any way to control that to be some other text, or where it’s placed relative t…

---

## [Regarding form\_for and fields-for content variable](https://www.ruby-forum.com/t/regarding-form-for-and-fields-for-content-variable/182317)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 3\
**Last updated:** [January 26, 2010, 10:41pm UTC](https://www.ruby-forum.com/t/regarding-form-for-and-fields-for-content-variable/182317 "2010-01-26T22:41:07Z")

</div>

I am trying to understand what I am working with when I deal with Rails forms\_for and fields\_for constructors. Given model has\_many associations belongs\_to dependency and dependency has\_many associations belongs\_to …

---

## [Simple nested form question](https://www.ruby-forum.com/t/simple-nested-form-question/182351)

<div class="topic-metadata">

**Author:** [@tomtt](https://www.ruby-forum.com/u/tomtt)\
**Replies:** 0\
**Last updated:** [January 26, 2010, 10:18pm UTC](https://www.ruby-forum.com/t/simple-nested-form-question/182351 "2010-01-26T22:18:12Z")

</div>

hi, im having a 1\<\>N, Bol\<\>BolLines model, and trying to use nested urls, but the form is confusing me…maybe someone can enlighten me: url: http://192.168.0.111:3000/bols/6/bol\_lines/new \<% form\_for @bol\_line do |f| …

---

## [Accepts\_nested\_attributes\_for :has\_many :through =\> 'bug?'](https://www.ruby-forum.com/t/accepts-nested-attributes-for-has-many-through-bug/182285)

<div class="topic-metadata">

**Author:** [@mark](https://www.ruby-forum.com/u/mark)\
**Replies:** 2\
**Last updated:** [January 26, 2010, 10:18pm UTC](https://www.ruby-forum.com/t/accepts-nested-attributes-for-has-many-through-bug/182285 "2010-01-26T22:18:12Z")

</div>

Hey guys & ladies! I’ve got the following relationship which i’m trying to get accepts\_nested\_attributes to work with. But when i submit my form, it looks as if its expecting a Company object, rather than an array of …

---

## [Why does UserSession.find return nil when using user\_credentials = single\_access\_token?](https://www.ruby-forum.com/t/why-does-usersession-find-return-nil-when-using-user-credentials-single-access-token/182347)

<div class="topic-metadata">

**Author:** [@coolaj86](https://www.ruby-forum.com/u/coolaj86)\
**Replies:** 1\
**Last updated:** [January 26, 2010, 8:15pm UTC](https://www.ruby-forum.com/t/why-does-usersession-find-return-nil-when-using-user-credentials-single-access-token/182347 "2010-01-26T20:15:16Z")

</div>

I believe that I’ve set up everything such that single\_access\_token should be sufficient to pull a user’s session. The scenario is: Bob uses Firefox and creates an account on LoginUI (http:// www.coolaj86.info/loginu…

---

## [Earn $8000 salary. Do Data Entry jobs from home part time=11](https://www.ruby-forum.com/t/earn-8000-salary-do-data-entry-jobs-from-home-part-time-11/197120)

<div class="topic-metadata">

**Author:** [@Preeto\_Jaan](https://www.ruby-forum.com/u/Preeto_Jaan)\
**Replies:** 0\
**Last updated:** [January 26, 2010, 7:16pm UTC](https://www.ruby-forum.com/t/earn-8000-salary-do-data-entry-jobs-from-home-part-time-11/197120 "2010-01-26T19:16:07Z")

</div>

Earn $8000 salary. Do Data Entry jobs from home part time. http://www.briteads.blogspot.com

---

## [Earn $8000 salary. Do Data Entry jobs from home part time=10](https://www.ruby-forum.com/t/earn-8000-salary-do-data-entry-jobs-from-home-part-time-10/182341)

<div class="topic-metadata">

**Author:** [@Preeto\_Jaan](https://www.ruby-forum.com/u/Preeto_Jaan)\
**Replies:** 0\
**Last updated:** [January 26, 2010, 7:08pm UTC](https://www.ruby-forum.com/t/earn-8000-salary-do-data-entry-jobs-from-home-part-time-10/182341 "2010-01-26T19:08:31Z")

</div>

Earn $8000 salary. Do Data Entry jobs from home part time. http://www.briteads.blogspot.com

---

## [Cleanest way to give the body tag an id?](https://www.ruby-forum.com/t/cleanest-way-to-give-the-body-tag-an-id/182322)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 11\
**Last updated:** [January 26, 2010, 5:59pm UTC](https://www.ruby-forum.com/t/cleanest-way-to-give-the-body-tag-an-id/182322 "2010-01-26T17:59:33Z")

</div>

I’m implementing a design where on every page the body has a different id, which sets some of the styling rules. There’s only a couple of distinct layouts which get re-used on every page. I can think of a few differ…

---

## [Validates\_numericality\_of , need to accept "-"](https://www.ruby-forum.com/t/validates-numericality-of-need-to-accept/182225)

<div class="topic-metadata">

**Author:** [@srikanth\_j](https://www.ruby-forum.com/u/srikanth_j)\
**Replies:** 13\
**Last updated:** [January 26, 2010, 5:50pm UTC](https://www.ruby-forum.com/t/validates-numericality-of-need-to-accept/182225 "2010-01-26T17:50:44Z")

</div>

Hi, I am using validates\_numericality\_of :phone\_number for validation of phone number. The phone number must also accept “-”. for Example, “044-42652144” Can any one please help how to do it, Thanks, Srikanth J

---

## [Difference between underscore, tableize and self.class.model](https://www.ruby-forum.com/t/difference-between-underscore-tableize-and-self-class-model/182330)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 0\
**Last updated:** [January 26, 2010, 5:26pm UTC](https://www.ruby-forum.com/t/difference-between-underscore-tableize-and-self-class-model/182330 "2010-01-26T17:26:10Z")

</div>

Hey all, Not sure what the difference between underscore and tableize, other than tableize also pluralizes. However, not sure how they can be used differently. Obviously, you can use tableize to reference table name i…

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

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