# Rails

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

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

---

## [Does :class\_name for belongs\_to have to be a string and why?](https://www.ruby-forum.com/t/does-class-name-for-belongs-to-have-to-be-a-string-and-why/180701)

<div class="topic-metadata">

**Author:** [@Xanothos](https://www.ruby-forum.com/u/Xanothos)\
**Replies:** 3\
**Last updated:** [December 27, 2009, 6:09am UTC](https://www.ruby-forum.com/t/does-class-name-for-belongs-to-have-to-be-a-string-and-why/180701 "2009-12-27T06:09:17Z")

</div>

Seemingly, when I use a symbol, I get an ActiveRecord error stating ‘Can’t convert symbol into String.’ Why can’t I use a symbol here? Possibly this is a deeper misunderstanding of symbols in general on my part. #Ac…

---

## [Plenty of warnings - low quality of code](https://www.ruby-forum.com/t/plenty-of-warnings-low-quality-of-code/180699)

<div class="topic-metadata">

**Author:** [@Hadmut](https://www.ruby-forum.com/u/Hadmut)\
**Replies:** 1\
**Last updated:** [December 26, 2009, 6:30pm UTC](https://www.ruby-forum.com/t/plenty-of-warnings-low-quality-of-code/180699 "2009-12-26T18:30:29Z")

</div>

Hi, whenever I use rails (on Ubuntu) with ruby -w option, I get lots of warnings, e.g. …/vendor/rails/activerecord/lib/active\_record/validations.rb:313: warning: \*' interpreted as argument prefix .../vendor/rails/act…

---

## [NoMethodError](https://www.ruby-forum.com/t/nomethoderror/96932)

<div class="topic-metadata">

**Author:** [@sharon](https://www.ruby-forum.com/u/sharon)\
**Replies:** 4\
**Last updated:** [December 26, 2009, 6:01pm UTC](https://www.ruby-forum.com/t/nomethoderror/96932 "2009-12-26T18:01:52Z")

</div>

Hi, IÂ?ve just downloaded and installed Ruby on Rails, on a windows xp machine. Then I tried the cookbook tutorial, and get NoMethodError in Recipe#New when I try http://localhost:3000/recipe/new/. I could not figur…

---

## [Validation](https://www.ruby-forum.com/t/validation/180649)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 1\
**Last updated:** [December 26, 2009, 6:00pm UTC](https://www.ruby-forum.com/t/validation/180649 "2009-12-26T18:00:11Z")

</div>

My understanding is that for a rails (or active record) app, the data validation occurs in the model? While my first inclination is to prevent the rss feed from showing up twice in the “subscriptions” model, this is …

---

## [Error al usar acento en el nombre de la tabla de la BD](https://www.ruby-forum.com/t/error-al-usar-acento-en-el-nombre-de-la-tabla-de-la-bd/180363)

<div class="topic-metadata">

**Author:** [@salma](https://www.ruby-forum.com/u/salma)\
**Replies:** 5\
**Last updated:** [December 26, 2009, 3:10pm UTC](https://www.ruby-forum.com/t/error-al-usar-acento-en-el-nombre-de-la-tabla-de-la-bd/180363 "2009-12-26T15:10:08Z")

</div>

Hola, Soy nueva en este foro y tambiÃ©n en rails. Lo que pretendo es hacer una aplicaciÃ³n rails en espaÃ±ol, he hecho todos los arreglos para que la aplicaciÃ³n este en UTF8. El problema que estoy teniendo es no pod…

---

## [No such file to load -- ferret](https://www.ruby-forum.com/t/no-such-file-to-load-ferret/180665)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 11\
**Last updated:** [December 26, 2009, 10:01am UTC](https://www.ruby-forum.com/t/no-such-file-to-load-ferret/180665 "2009-12-26T10:01:55Z")

</div>

Hi there, I’m just trying to deploy my app to my vhost, and i’m getting an error on the phusion passenger page: no such file to load – ferret now everything worked fine in development. DO i need to reinstall the plu…

---

## [Newbe question on view for a 1:n model](https://www.ruby-forum.com/t/newbe-question-on-view-for-a-1-n-model/180683)

<div class="topic-metadata">

**Author:** [@trapper](https://www.ruby-forum.com/u/trapper)\
**Replies:** 1\
**Last updated:** [December 26, 2009, 9:18am UTC](https://www.ruby-forum.com/t/newbe-question-on-view-for-a-1-n-model/180683 "2009-12-26T09:18:00Z")

</div>

I want do build a view for a 1:n model for funtion new. Rendering the form for the attributes of the independent (1) record is done automatically. But how to create the variable number of inputs for the dependent (n) …

---

## [Setting Fixed Time Zone (without time savings)](https://www.ruby-forum.com/t/setting-fixed-time-zone-without-time-savings/180558)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 6\
**Last updated:** [December 26, 2009, 8:46am UTC](https://www.ruby-forum.com/t/setting-fixed-time-zone-without-time-savings/180558 "2009-12-26T08:46:24Z")

</div>

Hi, all Ruby 1.8.6 Rails 2.3.2 Environment.rb config.time\_zone = ‘Buenos Aires’ This zone is usually GMT -3:00hs but in this moment os the year it gives GMT -2.00 hs because the world time saving conventions…but……

---

## [When/why/should I unit test validations?](https://www.ruby-forum.com/t/when-why-should-i-unit-test-validations/180646)

<div class="topic-metadata">

**Author:** [@oldbug](https://www.ruby-forum.com/u/oldbug)\
**Replies:** 3\
**Last updated:** [December 25, 2009, 9:17pm UTC](https://www.ruby-forum.com/t/when-why-should-i-unit-test-validations/180646 "2009-12-25T21:17:30Z")

</div>

I run into this question each time I add a validation to my model. Should I add a unit test for that validation? On the one hand, I’ve heard/read the philosophy: “Q: What should I test? A: Only the stuff you care abo…

---

## [Problems unpacking log4r](https://www.ruby-forum.com/t/problems-unpacking-log4r/180630)

<div class="topic-metadata">

**Author:** [@yoram](https://www.ruby-forum.com/u/yoram)\
**Replies:** 1\
**Last updated:** [December 25, 2009, 6:52pm UTC](https://www.ruby-forum.com/t/problems-unpacking-log4r/180630 "2009-12-25T18:52:15Z")

</div>

I was just starting to use log4r and everything was going peachy until I tired to unpack it into my local vendor/gems. The next time I tried to load my rails environment, I got: config.gem: Unpacked gem log4r-1.1.2 in…

---

## [Simple string comparasons](https://www.ruby-forum.com/t/simple-string-comparasons/180672)

<div class="topic-metadata">

**Author:** [@brianp](https://www.ruby-forum.com/u/brianp)\
**Replies:** 1\
**Last updated:** [December 25, 2009, 5:53pm UTC](https://www.ruby-forum.com/t/simple-string-comparasons/180672 "2009-12-25T17:53:11Z")

</div>

Hey Everyone I’m caught up on some data output. this is what i currently have: Make: \<%=h vehicle.make %\> Model: \<%=h vehicle.model %\> Year: \<%=h vehicle.year %\> Mileage: \<%=h vehicle.mileage %\> \<% if …

---

## [Rails lightbox question](https://www.ruby-forum.com/t/rails-lightbox-question/180677)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 0\
**Last updated:** [December 25, 2009, 5:13pm UTC](https://www.ruby-forum.com/t/rails-lightbox-question/180677 "2009-12-25T17:13:43Z")

</div>

I have a page that has ajax checkboxes, I use the rjs to re render the partial showing the checkbox statuses. How do I render a lighbox window for additional info with the rjs file? – You received this message beca…

---

## [Help with Navigation](https://www.ruby-forum.com/t/help-with-navigation/180619)

<div class="topic-metadata">

**Author:** [@scrozier](https://www.ruby-forum.com/u/scrozier)\
**Replies:** 3\
**Last updated:** [December 25, 2009, 4:58pm UTC](https://www.ruby-forum.com/t/help-with-navigation/180619 "2009-12-25T16:58:24Z")

</div>

I’m currently using CSS to style my navigational menu. I also have jquery at my disposal. The basic structure is like this: Active Menu Item …

---

## [Showing graphs on browser with gruff lib](https://www.ruby-forum.com/t/showing-graphs-on-browser-with-gruff-lib/180631)

<div class="topic-metadata">

**Author:** [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Replies:** 1\
**Last updated:** [December 24, 2009, 4:46pm UTC](https://www.ruby-forum.com/t/showing-graphs-on-browser-with-gruff-lib/180631 "2009-12-24T16:46:30Z")

</div>

Hi, I am using “gruff” lib for creating the graphs. I have got the success to create the graph, but my problem is I don’t want to store it, I want that they should be displyed on the browser it self. I have tried th…

---

## [Where did this value in a form come from?](https://www.ruby-forum.com/t/where-did-this-value-in-a-form-come-from/180626)

<div class="topic-metadata">

**Author:** [@ralphshnelvar](https://www.ruby-forum.com/u/ralphshnelvar)\
**Replies:** 7\
**Last updated:** [December 24, 2009, 4:37pm UTC](https://www.ruby-forum.com/t/where-did-this-value-in-a-form-come-from/180626 "2009-12-24T16:37:33Z")

</div>

Newb here. I have a form and a value that is being displayed … and I have no idea where the value came from. I have done a \<%= debugger; ‘’ %\> in the form and, indeed, the debugger stops at the statement. I have tr…

---

## [Xmmp4r and backgroundrb](https://www.ruby-forum.com/t/xmmp4r-and-backgroundrb/180616)

<div class="topic-metadata">

**Author:** [@murraj](https://www.ruby-forum.com/u/murraj)\
**Replies:** 1\
**Last updated:** [December 24, 2009, 4:53am UTC](https://www.ruby-forum.com/t/xmmp4r-and-backgroundrb/180616 "2009-12-24T04:53:02Z")

</div>

Hello all, Subject: Not able to return object from backgroundrb worker I am trying to use xmpp4r and backgroundrb for my chat application. I am able to create a connectnion with XMPP4r through a worker in backgroundd…

---

## [Variable f rather than frame f in debugger](https://www.ruby-forum.com/t/variable-f-rather-than-frame-f-in-debugger/180625)

<div class="topic-metadata">

**Author:** [@ralphshnelvar](https://www.ruby-forum.com/u/ralphshnelvar)\
**Replies:** 1\
**Last updated:** [December 24, 2009, 12:24am UTC](https://www.ruby-forum.com/t/variable-f-rather-than-frame-f-in-debugger/180625 "2009-12-24T00:24:54Z")

</div>

Newb here. I have a parameter (i.e. do |f|) f in new.html.erb I am inside the debugger and I issue an f and the debugger comes back with Missing a frame number argument. How do I get access to the variable f ins…

---

## [Undefined method \`count' for Array](https://www.ruby-forum.com/t/undefined-method-count-for-array/145718)

<div class="topic-metadata">

**Author:** [@phil](https://www.ruby-forum.com/u/phil)\
**Replies:** 11\
**Last updated:** [December 23, 2009, 6:04pm UTC](https://www.ruby-forum.com/t/undefined-method-count-for-array/145718 "2009-12-23T18:04:44Z")

</div>

I am experiencing something quite weird… it must come from my environment, but I am not sure how to track it down. I have this bit of code: User.all.count In my dev environment I get this; script/console Loading de…

---

## [Html parser / assertions in a model](https://www.ruby-forum.com/t/html-parser-assertions-in-a-model/180615)

<div class="topic-metadata">

**Author:** [@roslind](https://www.ruby-forum.com/u/roslind)\
**Replies:** 2\
**Last updated:** [December 23, 2009, 5:36pm UTC](https://www.ruby-forum.com/t/html-parser-assertions-in-a-model/180615 "2009-12-23T17:36:31Z")

</div>

I am using http.get in a model to parse html code returned from a Oracle server. My first try was to use assertions (assert and assert\_select) to test and parse the html code. But I have problems including the methods…

---

## [Migration from the "Restful Authentication" to "Authlogic"](https://www.ruby-forum.com/t/migration-from-the-restful-authentication-to-authlogic/180617)

<div class="topic-metadata">

**Author:** [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Replies:** 0\
**Last updated:** [December 23, 2009, 1:50pm UTC](https://www.ruby-forum.com/t/migration-from-the-restful-authentication-to-authlogic/180617 "2009-12-23T13:50:36Z")

</div>

Hi, I am using Authlogic for authentication. Previously our application having a “Restful Authentication”. We have users who are created by using the “Restful Authentication”. My problem is these users will not able …

---

## [Rails 2.3.3 session issue in production](https://www.ruby-forum.com/t/rails-2-3-3-session-issue-in-production/180613)

<div class="topic-metadata">

**Author:** [@hirodusk](https://www.ruby-forum.com/u/hirodusk)\
**Replies:** 1\
**Last updated:** [December 23, 2009, 10:02am UTC](https://www.ruby-forum.com/t/rails-2-3-3-session-issue-in-production/180613 "2009-12-23T10:02:58Z")

</div>

I have a problem that cropped up recently, on a site I built a while ago. The site has a shopping cart system, that relies on a session variable to store the ‘cart’ object. The code works fine locally in development m…

---

## [Worker plugin](https://www.ruby-forum.com/t/worker-plugin/180611)

<div class="topic-metadata">

**Author:** [@mayur\_sk](https://www.ruby-forum.com/u/mayur_sk)\
**Replies:** 2\
**Last updated:** [December 22, 2009, 11:50pm UTC](https://www.ruby-forum.com/t/worker-plugin/180611 "2009-12-22T23:50:03Z")

</div>

i am new to ruby on rails, it will be of great help if you can let me know how do i install worker plug in.

---

## [Improving privacy on my app](https://www.ruby-forum.com/t/improving-privacy-on-my-app/180527)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 2\
**Last updated:** [December 22, 2009, 9:47pm UTC](https://www.ruby-forum.com/t/improving-privacy-on-my-app/180527 "2009-12-22T21:47:40Z")

</div>

Hi everyone, I’m looking to get a helping hand with the following issue. On my application, you can log in and view a friends profile. If you are not friends with them, you see a page called ‘stranger’ which is a sca…

---

## [Year Wierdness](https://www.ruby-forum.com/t/year-wierdness/180606)

<div class="topic-metadata">

**Author:** [@rilindo](https://www.ruby-forum.com/u/rilindo)\
**Replies:** 4\
**Last updated:** [December 22, 2009, 9:40pm UTC](https://www.ruby-forum.com/t/year-wierdness/180606 "2009-12-22T21:40:03Z")

</div>

Why is Rails displaying date like: Sat Jan 01 13:31:00 UTC 2000 When the date is clearly correct in the database: reverseblade\_development=\> select \* from blogs; id | postdate | posttitle | post | created\_a…

---

## [Display ActiveRecord runtime info in the view](https://www.ruby-forum.com/t/display-activerecord-runtime-info-in-the-view/180534)

<div class="topic-metadata">

**Author:** [@bartocc](https://www.ruby-forum.com/u/bartocc)\
**Replies:** 1\
**Last updated:** [December 22, 2009, 9:08pm UTC](https://www.ruby-forum.com/t/display-activerecord-runtime-info-in-the-view/180534 "2009-12-22T21:08:27Z")

</div>

Hi list, In Rails logs, at the end of each request, the log states something like Completed in 37ms (View: 1, DB: 8) Is there a simple way to access the “DB: 8” info in the view ? Thanks Julien – You received thi…

---

## [Paypal Integration](https://www.ruby-forum.com/t/paypal-integration/180580)

<div class="topic-metadata">

**Author:** [@sharankruthi](https://www.ruby-forum.com/u/sharankruthi)\
**Replies:** 1\
**Last updated:** [December 22, 2009, 9:03pm UTC](https://www.ruby-forum.com/t/paypal-integration/180580 "2009-12-22T21:03:10Z")

</div>

If we link paypal express gateway in our ror code, we can get address details as @address = details\_response.address @name = @address\[‘name’\] From that we can get the name of the user Is it possible to get first nam…

---

## [Rails/JRuby WAR Heap Space Issue](https://www.ruby-forum.com/t/rails-jruby-war-heap-space-issue/180602)

<div class="topic-metadata">

**Author:** [@MichaelF](https://www.ruby-forum.com/u/MichaelF)\
**Replies:** 4\
**Last updated:** [December 22, 2009, 8:45pm UTC](https://www.ruby-forum.com/t/rails-jruby-war-heap-space-issue/180602 "2009-12-22T20:45:02Z")

</div>

I am using JRuby / Rails / Glassfish Gem to run an app on Tomcat. When someone submits a large file as an uploaded file I see the following in the log: Processing ScholarshipsController#create (for 174.120.167.34 at …

---

## [Global variable problem in production environment](https://www.ruby-forum.com/t/global-variable-problem-in-production-environment/180528)

<div class="topic-metadata">

**Author:** [@nandan](https://www.ruby-forum.com/u/nandan)\
**Replies:** 2\
**Last updated:** [December 22, 2009, 8:32pm UTC](https://www.ruby-forum.com/t/global-variable-problem-in-production-environment/180528 "2009-12-22T20:32:44Z")

</div>

plz help me anyone we are writing some value to global varible in application\_helper file and accessing the same in views and layouts the value of global varible changes dynamically whenever user logs in (Example if u…

---

## [PDF Writer and Ruby 1.9](https://www.ruby-forum.com/t/pdf-writer-and-ruby-1-9/180598)

<div class="topic-metadata">

**Author:** [@stephen](https://www.ruby-forum.com/u/stephen)\
**Replies:** 2\
**Last updated:** [December 22, 2009, 7:54pm UTC](https://www.ruby-forum.com/t/pdf-writer-and-ruby-1-9/180598 "2009-12-22T19:54:41Z")

</div>

Does anyone know the status of this project? It seems to have been abandoned since March of 2008 with a promise of a 1.2 version that will include 1.9 compatibility… Thanks Stephen – You received this message beca…

---

## [Mysql error on server](https://www.ruby-forum.com/t/mysql-error-on-server/157026)

<div class="topic-metadata">

**Author:** [@jabauer](https://www.ruby-forum.com/u/jabauer)\
**Replies:** 11\
**Last updated:** [December 22, 2009, 7:32pm UTC](https://www.ruby-forum.com/t/mysql-error-on-server/157026 "2009-12-22T19:32:27Z")

</div>

I just updated to Rails 2.2.2 from 1.2.6 yesterday. Today I reinstalled the mysql gem. Now when I try to run script/server the server starts, but when I try to access my database in a browser window get the followi…

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

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