# Rails

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

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

---

## [Comparisons between mod\_ruby and FastCGI](https://www.ruby-forum.com/t/comparisons-between-mod-ruby-and-fastcgi/154404)

<div class="topic-metadata">

**Author:** [@matt](https://www.ruby-forum.com/u/matt)\
**Replies:** 5\
**Last updated:** [November 29, 2008, 8:56am UTC](https://www.ruby-forum.com/t/comparisons-between-mod-ruby-and-fastcgi/154404 "2008-11-29T08:56:34Z")

</div>

Hello all, I’m a new Ruby on Rails developer who is working on applications for several different clients using the Ruby on Rails framework. The question that I’ve got to pose all of you concerns the differences betw…

---

## [Yet another "NameError: uninitialized constant" problem](https://www.ruby-forum.com/t/yet-another-nameerror-uninitialized-constant-problem/154416)

<div class="topic-metadata">

**Author:** [@gfburke](https://www.ruby-forum.com/u/gfburke)\
**Replies:** 3\
**Last updated:** [November 29, 2008, 5:37am UTC](https://www.ruby-forum.com/t/yet-another-nameerror-uninitialized-constant-problem/154416 "2008-11-29T05:37:13Z")

</div>

I’ve searched for information about this and compared what I have to the solutions I can find, here and elsewhere. I found some good and useful information, yet my stuff still doesn’t work. I was hoping somebody here …

---

## [Charts with three coordinates](https://www.ruby-forum.com/t/charts-with-three-coordinates/154419)

<div class="topic-metadata">

**Author:** [@savitha](https://www.ruby-forum.com/u/savitha)\
**Replies:** 0\
**Last updated:** [November 29, 2008, 5:36am UTC](https://www.ruby-forum.com/t/charts-with-three-coordinates/154419 "2008-11-29T05:36:00Z")

</div>

Hi, Is there any suitable chart which can represent the x,y,z coordinates. I have the following need. X axis : Number of incidents. Y axis : Assignment group. Z axis : Incident by status. we are using the Ziya ch…

---

## [\[ANN\] WiceGrid Plugin](https://www.ruby-forum.com/t/ann-wicegrid-plugin/143544)

<div class="topic-metadata">

**Author:** [@yuleven](https://www.ruby-forum.com/u/yuleven)\
**Replies:** 3\
**Last updated:** [November 28, 2008, 10:03pm UTC](https://www.ruby-forum.com/t/ann-wicegrid-plugin/143544 "2008-11-28T22:03:07Z")

</div>

Hello, Our Rails team has published a Rails plugin that we use when we need a view table with pagination, ordering, and filtering by various columns. Filters are automatically generated according to the database col…

---

## [Name space and before filter](https://www.ruby-forum.com/t/name-space-and-before-filter/154396)

<div class="topic-metadata">

**Author:** [@scottnj](https://www.ruby-forum.com/u/scottnj)\
**Replies:** 3\
**Last updated:** [November 28, 2008, 8:38pm UTC](https://www.ruby-forum.com/t/name-space-and-before-filter/154396 "2008-11-28T20:38:58Z")

</div>

is it possible to have a before filter apply to all controllers in a name space, or do you have to do it separate for each individual controller. for example, an admin name space with a require\_admin before filter.

---

## [Beginner: helper vs model](https://www.ruby-forum.com/t/beginner-helper-vs-model/154403)

<div class="topic-metadata">

**Author:** [@dark-omen](https://www.ruby-forum.com/u/dark-omen)\
**Replies:** 2\
**Last updated:** [November 28, 2008, 8:35pm UTC](https://www.ruby-forum.com/t/beginner-helper-vs-model/154403 "2008-11-28T20:35:45Z")

</div>

Just learning the framework. I apologize if this is in the worng forum. I looked around for something like “Beginner’s Questions” but didn’t see it. I’m building a simple application which will let players register f…

---

## [Two root URLs](https://www.ruby-forum.com/t/two-root-urls/154374)

<div class="topic-metadata">

**Author:** [@ratcheer](https://www.ruby-forum.com/u/ratcheer)\
**Replies:** 2\
**Last updated:** [November 28, 2008, 7:06pm UTC](https://www.ruby-forum.com/t/two-root-urls/154374 "2008-11-28T19:06:54Z")

</div>

Is it possible to have to have the root url configured so that the user is directed to a different page depending if they are logged in or not whilst also keeping the url the same? E.g If the user is logged in, I wan…

---

## [Where are the environments constant defined?](https://www.ruby-forum.com/t/where-are-the-environments-constant-defined/154394)

<div class="topic-metadata">

**Author:** [@bobm](https://www.ruby-forum.com/u/bobm)\
**Replies:** 2\
**Last updated:** [November 28, 2008, 5:30pm UTC](https://www.ruby-forum.com/t/where-are-the-environments-constant-defined/154394 "2008-11-28T17:30:31Z")

</div>

Hi, constants defined in environment.rb are application wide. But how and where are they stored ? I mean which is the class or module to which they are attached ? Thanks

---

## [Installing from Git with current Rails version](https://www.ruby-forum.com/t/installing-from-git-with-current-rails-version/154377)

<div class="topic-metadata">

**Author:** [@vahagn](https://www.ruby-forum.com/u/vahagn)\
**Replies:** 8\
**Last updated:** [November 28, 2008, 4:52pm UTC](https://www.ruby-forum.com/t/installing-from-git-with-current-rails-version/154377 "2008-11-28T16:52:30Z")

</div>

Hi,- I’m trying without success to install a plugin from Git using the command: $ script/plugin install GitHub - pyrat/wee\_lightbox: A wee rails plugin for integrating classic lightboxes into your rails app. What I g…

---

## [Installing ruby and Rails from my machine on a remote machine (server)](https://www.ruby-forum.com/t/installing-ruby-and-rails-from-my-machine-on-a-remote-machine-server/154378)

<div class="topic-metadata">

**Author:** [@cool](https://www.ruby-forum.com/u/cool)\
**Replies:** 1\
**Last updated:** [November 28, 2008, 4:38pm UTC](https://www.ruby-forum.com/t/installing-ruby-and-rails-from-my-machine-on-a-remote-machine-server/154378 "2008-11-28T16:38:40Z")

</div>

Guys, I have access to one of my server which is in linux. Iam accessing it from my machine through command prompt. I want to install ruby and rails from my machine on that remote machine. How can i do that. Iam stu…

---

## [Beginner: "NameError - uninitialized constant" when I create a model object](https://www.ruby-forum.com/t/beginner-nameerror-uninitialized-constant-when-i-create-a-model-object/154385)

<div class="topic-metadata">

**Author:** [@packat](https://www.ruby-forum.com/u/packat)\
**Replies:** 3\
**Last updated:** [November 28, 2008, 4:32pm UTC](https://www.ruby-forum.com/t/beginner-nameerror-uninitialized-constant-when-i-create-a-model-object/154385 "2008-11-28T16:32:48Z")

</div>

My first Rails example using model and I got this NameError: NameError in VandaController#att uninitialized constant VandaController::Compute Same code works fine if I don’t create the Compute object. What did I do w…

---

## [Strange characters in rails](https://www.ruby-forum.com/t/strange-characters-in-rails/154391)

<div class="topic-metadata">

**Author:** [@giantiago](https://www.ruby-forum.com/u/giantiago)\
**Replies:** 0\
**Last updated:** [November 28, 2008, 3:59pm UTC](https://www.ruby-forum.com/t/strange-characters-in-rails/154391 "2008-11-28T15:59:46Z")

</div>

I wrote some time ago a post about how to deal with some strange characters (Brazilan Portuguese in my case) that appears mysteriously sometimes in our dear Rails apps. Note that is is a different problem that the Mul…

---

## [RESTful sublist (e.g. open invoices)](https://www.ruby-forum.com/t/restful-sublist-e-g-open-invoices/154387)

<div class="topic-metadata">

**Author:** [@alphaone](https://www.ruby-forum.com/u/alphaone)\
**Replies:** 0\
**Last updated:** [November 28, 2008, 3:51pm UTC](https://www.ruby-forum.com/t/restful-sublist-e-g-open-invoices/154387 "2008-11-28T15:51:10Z")

</div>

Hi, i’ve got a restful ressource named ‘invoice’. the index-method shows a paginated list of all invoices. now i want to get a new view for all open invoices. i don’t know how to achieve this in most-restful manner. …

---

## [Regarding localization](https://www.ruby-forum.com/t/regarding-localization/154382)

<div class="topic-metadata">

**Author:** [@napster](https://www.ruby-forum.com/u/napster)\
**Replies:** 0\
**Last updated:** [November 28, 2008, 3:15pm UTC](https://www.ruby-forum.com/t/regarding-localization/154382 "2008-11-28T15:15:54Z")

</div>

Im trying to implement localization language options with drop- down menu button… here my html code… Select a language \<%@lang\_view.each do|key,value|%\> \>\<%=k…

---

## [Redirect without creating a new action](https://www.ruby-forum.com/t/redirect-without-creating-a-new-action/154380)

<div class="topic-metadata">

**Author:** [@ratcheer](https://www.ruby-forum.com/u/ratcheer)\
**Replies:** 0\
**Last updated:** [November 28, 2008, 2:26pm UTC](https://www.ruby-forum.com/t/redirect-without-creating-a-new-action/154380 "2008-11-28T14:26:16Z")

</div>

Hi, I want to redirect /join to /signup Signup is defined as: map.signup ‘/signup’, :controller =\> ‘users’, :action =\> ‘new’ If i define join in the same way then the same content is displayed but it is technically a…

---

## [How to parse info from an xml response](https://www.ruby-forum.com/t/how-to-parse-info-from-an-xml-response/154341)

<div class="topic-metadata">

**Author:** [@dr\_gavin](https://www.ruby-forum.com/u/dr_gavin)\
**Replies:** 3\
**Last updated:** [November 28, 2008, 2:10pm UTC](https://www.ruby-forum.com/t/how-to-parse-info-from-an-xml-response/154341 "2008-11-28T14:10:11Z")

</div>

Hi all! In my app I want to detect what country a visitor is viewing from by their IP. Although it’s by no means perfect, the simplest option I’ve found is by using this site: http://api.hostip.info/ by passing the…

---

## [Interpreting a "no route matches" message](https://www.ruby-forum.com/t/interpreting-a-no-route-matches-message/154379)

<div class="topic-metadata">

**Author:** [@vahagn](https://www.ruby-forum.com/u/vahagn)\
**Replies:** 0\
**Last updated:** [November 28, 2008, 1:54pm UTC](https://www.ruby-forum.com/t/interpreting-a-no-route-matches-message/154379 "2008-11-28T13:54:58Z")

</div>

Hi, - I am trying to make the Highslide image viewer to work with with a Rails app and I have done everything (image tag markup, right files in right directories etc) according to their tutorial. However when I load t…

---

## [Emailing: lots of recipients + individual mails/attachments](https://www.ruby-forum.com/t/emailing-lots-of-recipients-individual-mails-attachments/154328)

<div class="topic-metadata">

**Author:** [@tharrisx](https://www.ruby-forum.com/u/tharrisx)\
**Replies:** 4\
**Last updated:** [November 28, 2008, 1:12pm UTC](https://www.ruby-forum.com/t/emailing-lots-of-recipients-individual-mails-attachments/154328 "2008-11-28T13:12:00Z")

</div>

Hi there! What emailing solution (plugin, gem, script) can you suggest for the following situation: mails to a lot of people (“mass” mailing) recipients can have 1 or more attachments (various formats) attachments ar…

---

## [Finding the size of ActiveRecord objects](https://www.ruby-forum.com/t/finding-the-size-of-activerecord-objects/154372)

<div class="topic-metadata">

**Author:** [@adam](https://www.ruby-forum.com/u/adam)\
**Replies:** 1\
**Last updated:** [November 28, 2008, 12:33pm UTC](https://www.ruby-forum.com/t/finding-the-size-of-activerecord-objects/154372 "2008-11-28T12:33:49Z")

</div>

Hi all, Is there a way to find the size of an ActiveRecord object on the disk? The idea is that a user has a certain amount of disk space allocated to them and they can create various objects until they run out of sp…

---

## [How to convert the hash to xml - "Not all elements respond to to\_xml"](https://www.ruby-forum.com/t/how-to-convert-the-hash-to-xml-not-all-elements-respond-to-to-xml/154358)

<div class="topic-metadata">

**Author:** [@hema\_mca](https://www.ruby-forum.com/u/hema_mca)\
**Replies:** 4\
**Last updated:** [November 28, 2008, 12:33pm UTC](https://www.ruby-forum.com/t/how-to-convert-the-hash-to-xml-not-all-elements-respond-to-to-xml/154358 "2008-11-28T12:33:28Z")

</div>

Hi, I have a problem… I am Working on Rails with Flex. I am getting a xml from the flex form… I need to get the xml and has to insert the record The xml I am getting in the form as… 100 “xyz” 12…

---

## [Problem with creating migration files](https://www.ruby-forum.com/t/problem-with-creating-migration-files/154207)

<div class="topic-metadata">

**Author:** [@indu](https://www.ruby-forum.com/u/indu)\
**Replies:** 6\
**Last updated:** [November 28, 2008, 11:39am UTC](https://www.ruby-forum.com/t/problem-with-creating-migration-files/154207 "2008-11-28T11:39:20Z")

</div>

Hello , I am a ROR beginner. I have a controller named “users” and the corresponding view,model created using the command “ruby script/generate scaffold user name:string”.By running the command rake db:migrate will c…

---

## [Auto\_complete and HTTP errors](https://www.ruby-forum.com/t/auto-complete-and-http-errors/154362)

<div class="topic-metadata">

**Author:** [@Cameron\_McCloud](https://www.ruby-forum.com/u/Cameron_McCloud)\
**Replies:** 8\
**Last updated:** [November 28, 2008, 11:25am UTC](https://www.ruby-forum.com/t/auto-complete-and-http-errors/154362 "2008-11-28T11:25:39Z")

</div>

Hi, I have a simple example in Rails 2.1.2, 2.2.2 using the auto\_complete plugin. It works wonderfully. However, I was wondering how it would handle errors. For example, if for some reason a person couldn’t be found,…

---

## [Will\_paginate issue](https://www.ruby-forum.com/t/will-paginate-issue/154290)

<div class="topic-metadata">

**Author:** [@petan](https://www.ruby-forum.com/u/petan)\
**Replies:** 7\
**Last updated:** [November 28, 2008, 11:25am UTC](https://www.ruby-forum.com/t/will-paginate-issue/154290 "2008-11-28T11:25:02Z")

</div>

Hi, I am trying paginate (will\_paginate) users posts. It is counting and showing the page links correctly, but still showing all the posts on one page. @entries = @user.entries.paginate :per\_page =\> 5, :page =\> para…

---

## [ActiveRecord::StatementInvalid NO\_GENERATED\_KEYS](https://www.ruby-forum.com/t/activerecord-statementinvalid-no-generated-keys/154357)

<div class="topic-metadata">

**Author:** [@on9west](https://www.ruby-forum.com/u/on9west)\
**Replies:** 1\
**Last updated:** [November 28, 2008, 10:39am UTC](https://www.ruby-forum.com/t/activerecord-statementinvalid-no-generated-keys/154357 "2008-11-28T10:39:14Z")

</div>

Dear all I type the following command in script/console and got the error “ActiveRecord::StatementInvalid: ActiveRecord::ActiveRecordError: JZ0NK: …Statement.NO\_GENERATED\_KEYS” It is quit strange that the title is ni…

---

## [Rails Logger](https://www.ruby-forum.com/t/rails-logger/154321)

<div class="topic-metadata">

**Author:** [@mariek](https://www.ruby-forum.com/u/mariek)\
**Replies:** 3\
**Last updated:** [November 28, 2008, 10:35am UTC](https://www.ruby-forum.com/t/rails-logger/154321 "2008-11-28T10:35:07Z")

</div>

how to make default rails logger accessible in my custom modules, because as I see now its available only for ActiveRecord and some other Rails modules.

---

## [How to Validate Child Object Virtual Attribute against Parent Object Field?](https://www.ruby-forum.com/t/how-to-validate-child-object-virtual-attribute-against-parent-object-field/154368)

<div class="topic-metadata">

**Author:** [@djfobbz](https://www.ruby-forum.com/u/djfobbz)\
**Replies:** 0\
**Last updated:** [November 28, 2008, 10:35am UTC](https://www.ruby-forum.com/t/how-to-validate-child-object-virtual-attribute-against-parent-object-field/154368 "2008-11-28T10:35:06Z")

</div>

Ok, I have the following: Account =\> has\_many =\> Users Users =\> belong\_to =\> Account When an Account is created, an ‘account\_code’ is also generated and stored within the Accounts table. Users must use this ‘account…

---

## [Add gem file into application "lib" folder](https://www.ruby-forum.com/t/add-gem-file-into-application-lib-folder/154366)

<div class="topic-metadata">

**Author:** [@jjp](https://www.ruby-forum.com/u/jjp)\
**Replies:** 0\
**Last updated:** [November 28, 2008, 10:35am UTC](https://www.ruby-forum.com/t/add-gem-file-into-application-lib-folder/154366 "2008-11-28T10:35:06Z")

</div>

Hi, I’m using a webhosting server which I don’t have permission to install gem files into usr/local/ruby/1.8/… so, i think maybe i can install the gem files into the "lib“ folder under my application folder. but my c…

---

## [Paperclip Plugin - Routing Error?](https://www.ruby-forum.com/t/paperclip-plugin-routing-error/154359)

<div class="topic-metadata">

**Author:** [@pete](https://www.ruby-forum.com/u/pete)\
**Replies:** 0\
**Last updated:** [November 28, 2008, 8:31am UTC](https://www.ruby-forum.com/t/paperclip-plugin-routing-error/154359 "2008-11-28T08:31:25Z")

</div>

Hi- I am using the plugin “paperclip”, this is my second time using it, the first time, I had no issues… This time, I added paperclip onto my model, no issues until I tried to render the images I uploaded. I see th…

---

## [Can't get form results from a mutiple select box](https://www.ruby-forum.com/t/cant-get-form-results-from-a-mutiple-select-box/135547)

<div class="topic-metadata">

**Author:** [@sithadmin](https://www.ruby-forum.com/u/sithadmin)\
**Replies:** 3\
**Last updated:** [November 28, 2008, 6:45am UTC](https://www.ruby-forum.com/t/cant-get-form-results-from-a-mutiple-select-box/135547 "2008-11-28T06:45:50Z")

</div>

Hey everyone, This seems really elementary and I have no clue what is wrong… I have a form that has two multiple select boxes (using some javascript to shift items from the left select box to the right box and vice ve…

---

## [Named Route question](https://www.ruby-forum.com/t/named-route-question/154346)

<div class="topic-metadata">

**Author:** [@giorgio](https://www.ruby-forum.com/u/giorgio)\
**Replies:** 5\
**Last updated:** [November 28, 2008, 6:21am UTC](https://www.ruby-forum.com/t/named-route-question/154346 "2008-11-28T06:21:35Z")

</div>

I have in my routes.rb map.resources :accounts This is fine for the standard crud routes. But then I add a method in the accounts\_controller def logout blah blah end I want to link to it so I do: \<%=link\_to ‘Logo…

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

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