# Rails

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

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

---

## [Code Review Tool](https://www.ruby-forum.com/t/code-review-tool/154079)

<div class="topic-metadata">

**Author:** [@karthikeyan](https://www.ruby-forum.com/u/karthikeyan)\
**Replies:** 12\
**Last updated:** [November 28, 2008, 5:47am UTC](https://www.ruby-forum.com/t/code-review-tool/154079 "2008-11-28T05:47:41Z")

</div>

Hi, I am looking for a code review tool for my ROR application. Can you suggest something? Thanks in advance…

---

## [Rails Beginner.. NoMethodError](https://www.ruby-forum.com/t/rails-beginner-nomethoderror/154352)

<div class="topic-metadata">

**Author:** [@on9west](https://www.ruby-forum.com/u/on9west)\
**Replies:** 1\
**Last updated:** [November 28, 2008, 5:32am UTC](https://www.ruby-forum.com/t/rails-beginner-nomethoderror/154352 "2008-11-28T05:32:29Z")

</div>

Dear all I encounter error when I login my Web application NoMethodError in AdminController#login undefined method \`get\_title’ for #Class:0x63ac78 Here is part of my code controller/admin\_controller.rb def login s…

---

## [Ruby on Rails Collaboration](https://www.ruby-forum.com/t/ruby-on-rails-collaboration/154351)

<div class="topic-metadata">

**Author:** [@MrSWatson](https://www.ruby-forum.com/u/MrSWatson)\
**Replies:** 0\
**Last updated:** [November 28, 2008, 5:16am UTC](https://www.ruby-forum.com/t/ruby-on-rails-collaboration/154351 "2008-11-28T05:16:42Z")

</div>

Hello everyone, I am looking for a ruby on rails newbie that wants to learn RoR from the ground up. I want someone who is interested in having a profession in RoR. Thank you, “Don’t let schooling interfere with your…

---

## [Unit testing](https://www.ruby-forum.com/t/unit-testing/154292)

<div class="topic-metadata">

**Author:** [@sumanth\_tt](https://www.ruby-forum.com/u/sumanth_tt)\
**Replies:** 3\
**Last updated:** [November 28, 2008, 2:47am UTC](https://www.ruby-forum.com/t/unit-testing/154292 "2008-11-28T02:47:36Z")

</div>

Hello, Can somebody help me writing a unit test for existing method of a model. I am using 2 tables like users, articles and Method is like def get\_the\_user\_bought\_item(user\_id\_list) users\_list = User.find\_by\_sql(\[…

---

## [A topic on a category of a subforum really belongs\_to what?](https://www.ruby-forum.com/t/a-topic-on-a-category-of-a-subforum-really-belongs-to-what/154294)

<div class="topic-metadata">

**Author:** [@toltec](https://www.ruby-forum.com/u/toltec)\
**Replies:** 3\
**Last updated:** [November 27, 2008, 11:54pm UTC](https://www.ruby-forum.com/t/a-topic-on-a-category-of-a-subforum-really-belongs-to-what/154294 "2008-11-27T23:54:03Z")

</div>

Suppose you have a forum with many sub-forums, and each sub-forum has many categories (or sub-sub-forums), and each category may or may not have many sub-categories (or sub-sub-sub-forums). Will a topic belong to the …

---

## [Neither from\_xml nor from\_Json work in rails 2.1](https://www.ruby-forum.com/t/neither-from-xml-nor-from-json-work-in-rails-2-1/154336)

<div class="topic-metadata">

**Author:** [@Tim\_U](https://www.ruby-forum.com/u/Tim_U)\
**Replies:** 5\
**Last updated:** [November 27, 2008, 11:27pm UTC](https://www.ruby-forum.com/t/neither-from-xml-nor-from-json-work-in-rails-2-1/154336 "2008-11-27T23:27:29Z")

</div>

If you have the need to do a lot of XML processing you are better off staying away from rails completely. The State of SOAP on rails is a mess to the point of being practically unusable. The XML and json deserializa…

---

## [Strategy for dealing with large db tables](https://www.ruby-forum.com/t/strategy-for-dealing-with-large-db-tables/154313)

<div class="topic-metadata">

**Author:** [@arfon](https://www.ruby-forum.com/u/arfon)\
**Replies:** 1\
**Last updated:** [November 27, 2008, 8:57pm UTC](https://www.ruby-forum.com/t/strategy-for-dealing-with-large-db-tables/154313 "2008-11-27T20:57:20Z")

</div>

I’m looking at building a Rails application which will have some pretty large tables with upwards of 500 million rows. To keep things snappy I’m currently looking into how a large table can be split to more manageabl…

---

## [Where to initialize session variables?](https://www.ruby-forum.com/t/where-to-initialize-session-variables/154327)

<div class="topic-metadata">

**Author:** [@Jej](https://www.ruby-forum.com/u/Jej)\
**Replies:** 1\
**Last updated:** [November 27, 2008, 8:05pm UTC](https://www.ruby-forum.com/t/where-to-initialize-session-variables/154327 "2008-11-27T20:05:34Z")

</div>

Hi all, I would like to initialize some session variables when the user visits the app for the first time. Currently I do it in an application before\_filter (escaped if the session already exists), but that occurs fo…

---

## [Filtered display](https://www.ruby-forum.com/t/filtered-display/154253)

<div class="topic-metadata">

**Author:** [@musty](https://www.ruby-forum.com/u/musty)\
**Replies:** 2\
**Last updated:** [November 27, 2008, 7:24pm UTC](https://www.ruby-forum.com/t/filtered-display/154253 "2008-11-27T19:24:18Z")

</div>

Hello all. I’ve set up an inventory app and I want to be able to have the index file display ether everything in inventory or only items on order. So I want to populate @spares with the appropriate content then pass i…

---

## [ActiveRecord::RecordNotFound](https://www.ruby-forum.com/t/activerecord-recordnotfound/154324)

<div class="topic-metadata">

**Author:** [@amarime](https://www.ruby-forum.com/u/amarime)\
**Replies:** 1\
**Last updated:** [November 27, 2008, 6:24pm UTC](https://www.ruby-forum.com/t/activerecord-recordnotfound/154324 "2008-11-27T18:24:26Z")

</div>

Hi group! i’m new to ruby and trying to include the FusionCharts in my project error Couldn’t find FactoryMaster without an ID here’s my code: def detailed headers\[“content-type”\]=“text/html”; @factory\_id = params\[…

---

## [Trying to understand file loading, dependencies, etc. in rails](https://www.ruby-forum.com/t/trying-to-understand-file-loading-dependencies-etc-in-rails/154322)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [November 27, 2008, 6:23pm UTC](https://www.ruby-forum.com/t/trying-to-understand-file-loading-dependencies-etc-in-rails/154322 "2008-11-27T18:23:50Z")

</div>

I’m developing on Windows, using InstantRails and i’ve run into a problem. My development workflow, till now, has been as follows: start the server: ruby script/server --debug run my application by invoking a control…

---

## [Help in writing unit test cases](https://www.ruby-forum.com/t/help-in-writing-unit-test-cases/154215)

<div class="topic-metadata">

**Author:** [@sumanth](https://www.ruby-forum.com/u/sumanth)\
**Replies:** 5\
**Last updated:** [November 27, 2008, 6:22pm UTC](https://www.ruby-forum.com/t/help-in-writing-unit-test-cases/154215 "2008-11-27T18:22:39Z")

</div>

Hi, I’ve been working on ROR just for 4 months. I am naive in writing test cases. I heard that one has to start with unit tests. So, I am confused to where and how to start with. Any materials available or any guides…

---

## [Autodidacticism Collaboration with RoR](https://www.ruby-forum.com/t/autodidacticism-collaboration-with-ror/154293)

<div class="topic-metadata">

**Author:** [@MrSWatson](https://www.ruby-forum.com/u/MrSWatson)\
**Replies:** 16\
**Last updated:** [November 27, 2008, 5:18pm UTC](https://www.ruby-forum.com/t/autodidacticism-collaboration-with-ror/154293 "2008-11-27T17:18:05Z")

</div>

Hello everyone, Does anyone want to learn Ruby on Rails from the ground up together? No phone calls. Only email and instant message. Thank you,

---

## [Why can't I 'count' the results from a model 'find'?](https://www.ruby-forum.com/t/why-cant-i-count-the-results-from-a-model-find/154157)

<div class="topic-metadata">

**Author:** [@theogb](https://www.ruby-forum.com/u/theogb)\
**Replies:** 3\
**Last updated:** [November 27, 2008, 5:13pm UTC](https://www.ruby-forum.com/t/why-cant-i-count-the-results-from-a-model-find/154157 "2008-11-27T17:13:44Z")

</div>

Hi, I’m running the following code in my show() method: @articles = Article.find(:all, :conditions =\> \["issue\_id = ?", @issue.id\], :order =\> ‘column,position’) if (params\[:article\_id\]) @article\_id = par…

---

## [BackgrounDrb how to do logging within thread\_pool.defer function?](https://www.ruby-forum.com/t/backgroundrb-how-to-do-logging-within-thread-pool-defer-function/154318)

<div class="topic-metadata">

**Author:** [@goodwill](https://www.ruby-forum.com/u/goodwill)\
**Replies:** 0\
**Last updated:** [November 27, 2008, 5:02pm UTC](https://www.ruby-forum.com/t/backgroundrb-how-to-do-logging-within-thread-pool-defer-function/154318 "2008-11-27T17:02:11Z")

</div>

As title, it seems the original logger function can’t write the result. I checked development.log, backgroundrb\_.log and backgroundrb\_debug\_.log all with no luck.

---

## [Rails Join problem](https://www.ruby-forum.com/t/rails-join-problem/154316)

<div class="topic-metadata">

**Author:** [@VPVPVP](https://www.ruby-forum.com/u/VPVPVP)\
**Replies:** 0\
**Last updated:** [November 27, 2008, 4:43pm UTC](https://www.ruby-forum.com/t/rails-join-problem/154316 "2008-11-27T16:43:57Z")

</div>

Hi, i’m trying to use the GeoKit plugin to calculate the distance between 2 points. So the idea is, i do a search for an article, and the results i want to order by distance. So i have a form where I enter the article…

---

## [Git .gitignore vs exclude file](https://www.ruby-forum.com/t/git-gitignore-vs-exclude-file/154312)

<div class="topic-metadata">

**Author:** [@rubyfreak](https://www.ruby-forum.com/u/rubyfreak)\
**Replies:** 2\
**Last updated:** [November 27, 2008, 4:33pm UTC](https://www.ruby-forum.com/t/git-gitignore-vs-exclude-file/154312 "2008-11-27T16:33:24Z")

</div>

I am a bit confused about the different purpose of each. I think the .gitignore file belongs in the root of my project and is project specific, but that also seems to be the reason for the .git/ info/exclude file wha…

---

## [Problem populating a model with external data](https://www.ruby-forum.com/t/problem-populating-a-model-with-external-data/154265)

<div class="topic-metadata">

**Author:** [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Replies:** 3\
**Last updated:** [November 27, 2008, 4:09pm UTC](https://www.ruby-forum.com/t/problem-populating-a-model-with-external-data/154265 "2008-11-27T16:09:53Z")

</div>

I’m trying to populate a table with the names and attributes of files in public\\data\\csv. The ultimate target is a currently empty Sqlite3 database which yields the following dump: CREATE TABLE “csv\_items” (“id” INTE…

---

## [I got a problem when I run "gem clean"](https://www.ruby-forum.com/t/i-got-a-problem-when-i-run-gem-clean/154307)

<div class="topic-metadata">

**Author:** [@cfc](https://www.ruby-forum.com/u/cfc)\
**Replies:** 1\
**Last updated:** [November 27, 2008, 3:39pm UTC](https://www.ruby-forum.com/t/i-got-a-problem-when-i-run-gem-clean/154307 "2008-11-27T15:39:59Z")

</div>

I bought a new Mac (:P) in these days, and I found that Leopard built- in rails 1.2.6 But it’s rails 2.2.2 right now, so I upgraded Rubygems before I upgraded rails… and after I upgraded Rubygems and Rails… I run “ge…

---

## [Catching non-RSS/Atom feeds when using Feed-Normalizer](https://www.ruby-forum.com/t/catching-non-rss-atom-feeds-when-using-feed-normalizer/153976)

<div class="topic-metadata">

**Author:** [@chunkyslink](https://www.ruby-forum.com/u/chunkyslink)\
**Replies:** 1\
**Last updated:** [November 27, 2008, 2:08pm UTC](https://www.ruby-forum.com/t/catching-non-rss-atom-feeds-when-using-feed-normalizer/153976 "2008-11-27T14:08:13Z")

</div>

A production app is using FeedNormalizer in an rss daemon. The worker opens a ‘Source’ (the apps naming convention for an RSS feed), parses it using FeedNormalizer, and does the business on the items in the feed; feed…

---

## [I need a Ruby on Rails Practition with Commerc ial Experience for Â£40-50k London Perm](https://www.ruby-forum.com/t/i-need-a-ruby-on-rails-practition-with-commerc-ial-experience-for-a-40-50k-london-perm/154291)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [November 27, 2008, 1:53pm UTC](https://www.ruby-forum.com/t/i-need-a-ruby-on-rails-practition-with-commerc-ial-experience-for-a-40-50k-london-perm/154291 "2008-11-27T13:53:00Z")

</div>

James 02085452111

---

## [Creating array of hashes](https://www.ruby-forum.com/t/creating-array-of-hashes/196851)

<div class="topic-metadata">

**Author:** [@hema\_mca](https://www.ruby-forum.com/u/hema_mca)\
**Replies:** 1\
**Last updated:** [November 27, 2008, 12:53pm UTC](https://www.ruby-forum.com/t/creating-array-of-hashes/196851 "2008-11-27T12:53:47Z")

</div>

I have a problem, please check the code Fields = Array.new Fields \[0\] = “sno” Fields \[1\] = “username” Fields \[2\] = “designation” Fields \[3\] = “salary” Fields \[4\] = “dob” Fields \[5\] = “email” Fields \[6\] = “doj” T…

---

## [When/where does Rails convert "params" used to populate a model object from a form, into their corre](https://www.ruby-forum.com/t/when-where-does-rails-convert-params-used-to-populate-a-model-object-from-a-form-into-their-corre/154258)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 4\
**Last updated:** [November 27, 2008, 11:44am UTC](https://www.ruby-forum.com/t/when-where-does-rails-convert-params-used-to-populate-a-model-object-from-a-form-into-their-corre/154258 "2008-11-27T11:44:40Z")

</div>

Hi, When/where does Rails convert “params” used to populate a model object from a form, into their correct types in the model object??? (i.e. from “string”) What part of rails does this? I have a form upload and in…

---

## [Create pdf using ruby on rails](https://www.ruby-forum.com/t/create-pdf-using-ruby-on-rails/154287)

<div class="topic-metadata">

**Author:** [@hema\_mca](https://www.ruby-forum.com/u/hema_mca)\
**Replies:** 0\
**Last updated:** [November 27, 2008, 11:21am UTC](https://www.ruby-forum.com/t/create-pdf-using-ruby-on-rails/154287 "2008-11-27T11:21:14Z")

</div>

I have a problem, please check the code Fields = Array.new Fields \[0\] = “sno” Fields \[1\] = “username” Fields \[2\] = “designation” Fields \[3\] = “salary” Fields \[4\] = “dob” Fields \[5\] = “email” Fields \[6\] = “doj” T…

---

## [How to append the two hashes in ruby on rails](https://www.ruby-forum.com/t/how-to-append-the-two-hashes-in-ruby-on-rails/154083)

<div class="topic-metadata">

**Author:** [@hema\_mca](https://www.ruby-forum.com/u/hema_mca)\
**Replies:** 10\
**Last updated:** [November 27, 2008, 11:17am UTC](https://www.ruby-forum.com/t/how-to-append-the-two-hashes-in-ruby-on-rails/154083 "2008-11-27T11:17:08Z")

</div>

Hi All, I need to add the hashes is there any way to add actually my data is in the given format data = \[ {“first” =\> 1 ,“second” =\> 2}, {“first” =\> 2 ,“second” =\> 3}, {“first” =\> 3 ,“second” =\> 4} \] I want to a…

---

## [SOAP4R seems to conflict with actionwebservice](https://www.ruby-forum.com/t/soap4r-seems-to-conflict-with-actionwebservice/154286)

<div class="topic-metadata">

**Author:** [@Tim\_U](https://www.ruby-forum.com/u/Tim_U)\
**Replies:** 0\
**Last updated:** [November 27, 2008, 10:43am UTC](https://www.ruby-forum.com/t/soap4r-seems-to-conflict-with-actionwebservice/154286 "2008-11-27T10:43:41Z")

</div>

I am getting the following error when any test fails “uninitialized constant SOAP::SOAPNamespaceTag” If any exception is raised it raised this exception instead. Very strange. I have googled around a bit and some pe…

---

## [Developing REST API](https://www.ruby-forum.com/t/developing-rest-api/154285)

<div class="topic-metadata">

**Author:** [@remco](https://www.ruby-forum.com/u/remco)\
**Replies:** 0\
**Last updated:** [November 27, 2008, 10:19am UTC](https://www.ruby-forum.com/t/developing-rest-api/154285 "2008-11-27T10:19:55Z")

</div>

Hi, I am a newbie to rails and i have a question about developing an API. i have a product xml-feed with a title, price, category and link, wich are use by affiliates. 1)The idea is that the affiliates can decide in…

---

## [Autodidacticism Collaboration with RoR](https://www.ruby-forum.com/t/autodidacticism-collaboration-with-ror/154261)

<div class="topic-metadata">

**Author:** [@MrSWatson](https://www.ruby-forum.com/u/MrSWatson)\
**Replies:** 1\
**Last updated:** [November 27, 2008, 9:50am UTC](https://www.ruby-forum.com/t/autodidacticism-collaboration-with-ror/154261 "2008-11-27T09:50:18Z")

</div>

Hello, I am a newbie learning Ruby on Rails. In my perspective, it is better to learn with groups than one single person. If anyone is interested learning Ruby on Rails from the ground up please contact me. PS: I on…

---

## [You have a nil object when you didn't expect it!](https://www.ruby-forum.com/t/you-have-a-nil-object-when-you-didnt-expect-it/154266)

<div class="topic-metadata">

**Author:** [@jsimone](https://www.ruby-forum.com/u/jsimone)\
**Replies:** 10\
**Last updated:** [November 27, 2008, 9:22am UTC](https://www.ruby-forum.com/t/you-have-a-nil-object-when-you-didnt-expect-it/154266 "2008-11-27T09:22:01Z")

</div>

I get the following: NoMethodError in Shoppingcart#my\_shopping\_cart Showing app/views/shoppingcart/my\_shopping\_cart.rhtml where line #33 raised: You have a nil object when you didn’t expect it! The error occurred wh…

---

## [Method\_missing change in activerecord 2.2?](https://www.ruby-forum.com/t/method-missing-change-in-activerecord-2-2/154278)

<div class="topic-metadata">

**Author:** [@nofxx](https://www.ruby-forum.com/u/nofxx)\
**Replies:** 2\
**Last updated:** [November 27, 2008, 9:04am UTC](https://www.ruby-forum.com/t/method-missing-change-in-activerecord-2-2/154278 "2008-11-27T09:04:26Z")

</div>

Ouch man, after going all my app to 2.2 , only fun… The last darn thing I forgot to test, an old legacy table I need to connect sometimes… broke… To resume it, which change in ar could have broken this? http://snipp…

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

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