# Rails

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

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

---

## [Testing request.request\_uri](https://www.ruby-forum.com/t/testing-request-request-uri/125899)

<div class="topic-metadata">

**Author:** [@taro](https://www.ruby-forum.com/u/taro)\
**Replies:** 1\
**Last updated:** [January 13, 2008, 3:08pm UTC](https://www.ruby-forum.com/t/testing-request-request-uri/125899 "2008-01-13T15:08:30Z")

</div>

I’ve got several methods that has the following line: redirect\_to request.request\_uri How do I test whether the method correctly redirected to the previous uri?

---

## [Creating variable](https://www.ruby-forum.com/t/creating-variable/196569)

<div class="topic-metadata">

**Author:** [@zaid](https://www.ruby-forum.com/u/zaid)\
**Replies:** 1\
**Last updated:** [January 13, 2008, 2:05pm UTC](https://www.ruby-forum.com/t/creating-variable/196569 "2008-01-13T14:05:46Z")

</div>

Good morning, I am beginning to develop a ruby part of a web. I I have the driver code “book” and I spend their ID in the variable Book.current\_book.id, but gives me the following error. undefined method \`current\_boo…

---

## [Serious issue with 1.1.6 and 2.0.1](https://www.ruby-forum.com/t/serious-issue-with-1-1-6-and-2-0-1/125881)

<div class="topic-metadata">

**Author:** [@Abhishek\_shukla](https://www.ruby-forum.com/u/Abhishek_shukla)\
**Replies:** 1\
**Last updated:** [January 13, 2008, 1:37pm UTC](https://www.ruby-forum.com/t/serious-issue-with-1-1-6-and-2-0-1/125881 "2008-01-13T13:37:01Z")

</div>

Hello friends, As my current application is running on 1.1.6 which now i want to shift it to 2.0.1, but i am facing lot of problem, as my application is also very big, so suggest me what easiest way i can do to shift…

---

## [Apache + Mongrel + Static files](https://www.ruby-forum.com/t/apache-mongrel-static-files/123545)

<div class="topic-metadata">

**Author:** [@2dc](https://www.ruby-forum.com/u/2dc)\
**Replies:** 8\
**Last updated:** [January 13, 2008, 12:42pm UTC](https://www.ruby-forum.com/t/apache-mongrel-static-files/123545 "2008-01-13T12:42:55Z")

</div>

Hi! I deployed my first rails application on my own server (I’m using Apache 2.2.6 + Mongrel). It’s working perfectly and I’m very happy. The only one problem is that it is very slow to render the layout at the firs…

---

## [Too many files in instant rails](https://www.ruby-forum.com/t/too-many-files-in-instant-rails/125814)

<div class="topic-metadata">

**Author:** [@gadys](https://www.ruby-forum.com/u/gadys)\
**Replies:** 1\
**Last updated:** [January 13, 2008, 12:38pm UTC](https://www.ruby-forum.com/t/too-many-files-in-instant-rails/125814 "2008-01-13T12:38:16Z")

</div>

Hi I’ve put instant rails on my Disk on key and because of the amount of files it takes 1.5 giga of space. I’m guessing i probably don’t need all those files. which one can i delete to lower the files count ? (help, …

---

## [Help with special characters in PDF Writer](https://www.ruby-forum.com/t/help-with-special-characters-in-pdf-writer/125884)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 0\
**Last updated:** [January 13, 2008, 11:28am UTC](https://www.ruby-forum.com/t/help-with-special-characters-in-pdf-writer/125884 "2008-01-13T11:28:08Z")

</div>

How can I put these (Ã¡,Ã©,Ã­,Ã³,Ãº,Ã±,â‚¬) in PDF Writer?

---

## [Create plug from RoR application](https://www.ruby-forum.com/t/create-plug-from-ror-application/196568)

<div class="topic-metadata">

**Author:** [@zaid](https://www.ruby-forum.com/u/zaid)\
**Replies:** 0\
**Last updated:** [January 13, 2008, 10:25am UTC](https://www.ruby-forum.com/t/create-plug-from-ror-application/196568 "2008-01-13T10:25:45Z")

</div>

Hello. I have an application that rails intependientemente works. But now Have asked me to run as a plugin. And I would like to know if anyone can help me. Because I do not know if it’s a Work trivial or need to cha…

---

## [Collection\_Select not showing Selected option](https://www.ruby-forum.com/t/collection-select-not-showing-selected-option/125852)

<div class="topic-metadata">

**Author:** [@deadSkip](https://www.ruby-forum.com/u/deadSkip)\
**Replies:** 1\
**Last updated:** [January 13, 2008, 9:10am UTC](https://www.ruby-forum.com/t/collection-select-not-showing-selected-option/125852 "2008-01-13T09:10:21Z")

</div>

Hi, I’m having some problem with getting collection\_select to return the current value when editing a record. According to everything I’ve seen, there was an issue but it’s been fixed, but I can’t figure out why it is…

---

## [BufferedLogger + formatting](https://www.ruby-forum.com/t/bufferedlogger-formatting/125678)

<div class="topic-metadata">

**Author:** [@nootch](https://www.ruby-forum.com/u/nootch)\
**Replies:** 2\
**Last updated:** [January 13, 2008, 6:12am UTC](https://www.ruby-forum.com/t/bufferedlogger-formatting/125678 "2008-01-13T06:12:13Z")

</div>

I understand that rails 2.x introduced the buffered logger for performance and this is great. It also removed, as far as I can tell, the formatting that was available in the previous logger. Has anyone endeavored to i…

---

## [Ideas in acts\_as\_tag](https://www.ruby-forum.com/t/ideas-in-acts-as-tag/125871)

<div class="topic-metadata">

**Author:** [@eagoweb](https://www.ruby-forum.com/u/eagoweb)\
**Replies:** 0\
**Last updated:** [January 13, 2008, 3:58am UTC](https://www.ruby-forum.com/t/ideas-in-acts-as-tag/125871 "2008-01-13T03:58:25Z")

</div>

Hello, I am trying to implement acts\_as\_taggable, but here are my needs: i have some categories 1 - category1 2 - category2 There are products on these categories I want to define per category obligatory fields, so …

---

## [After scaffolding no data is shown](https://www.ruby-forum.com/t/after-scaffolding-no-data-is-shown/125792)

<div class="topic-metadata">

**Author:** [@imehesz](https://www.ruby-forum.com/u/imehesz)\
**Replies:** 6\
**Last updated:** [January 13, 2008, 3:21am UTC](https://www.ruby-forum.com/t/after-scaffolding-no-data-is-shown/125792 "2008-01-13T03:21:00Z")

</div>

hello, i’m a newbie . . . after a few installation problems finally i got ruby and the rails running. however, i did the scaffolding on a sample database (i created 2 records) and on the main page i see 2 edit and 2 …

---

## [Sym linking problem](https://www.ruby-forum.com/t/sym-linking-problem/125798)

<div class="topic-metadata">

**Author:** [@stranger](https://www.ruby-forum.com/u/stranger)\
**Replies:** 1\
**Last updated:** [January 13, 2008, 2:59am UTC](https://www.ruby-forum.com/t/sym-linking-problem/125798 "2008-01-13T02:59:23Z")

</div>

Hi everyone, I am hosting with hostmonster.com. As per their tutorials I have created a Rails folder in my root directory and created apps in it. Now I need to create a sub domain and sym link the public/ f…

---

## [Using depreciated methods & things moved to plugins (ex. act\_as\_tree)](https://www.ruby-forum.com/t/using-depreciated-methods-things-moved-to-plugins-ex-act-as-tree/125772)

<div class="topic-metadata">

**Author:** [@melvinram](https://www.ruby-forum.com/u/melvinram)\
**Replies:** 6\
**Last updated:** [January 13, 2008, 2:34am UTC](https://www.ruby-forum.com/t/using-depreciated-methods-things-moved-to-plugins-ex-act-as-tree/125772 "2008-01-13T02:34:16Z")

</div>

As a Rails newbie, I am not sure how to feel about methods that have been moved into plugins. Why are they moved into plugins in the first place? Should I use the plugin if it wasn’t good enough to keep in the core co…

---

## [Help with pdf writer and show controller](https://www.ruby-forum.com/t/help-with-pdf-writer-and-show-controller/125821)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 1\
**Last updated:** [January 12, 2008, 11:31pm UTC](https://www.ruby-forum.com/t/help-with-pdf-writer-and-show-controller/125821 "2008-01-12T23:31:51Z")

</div>

This is my show controller for repair\_tickets: def show @repair\_ticket = RepairTicket.find(params\[:id\]) logger.debug(@rp\_parts) respond\_to do |format| format.html # show.html.erb format.xml { render :xml =\> @re…

---

## [Filtering the data displayed in a list](https://www.ruby-forum.com/t/filtering-the-data-displayed-in-a-list/125856)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [January 12, 2008, 10:28pm UTC](https://www.ruby-forum.com/t/filtering-the-data-displayed-in-a-list/125856 "2008-01-12T22:28:03Z")

</div>

Hi all, I’d appreciate some guidance in the right way to filter the data displayed in a list. I have two models, school and centre (centre belongs\_to school and school has\_many centres). In the list action for centre…

---

## [Basic || condition question perhaps](https://www.ruby-forum.com/t/basic-condition-question-perhaps/125850)

<div class="topic-metadata">

**Author:** [@tomn](https://www.ruby-forum.com/u/tomn)\
**Replies:** 5\
**Last updated:** [January 12, 2008, 10:09pm UTC](https://www.ruby-forum.com/t/basic-condition-question-perhaps/125850 "2008-01-12T22:09:12Z")

</div>

I can’t figure out what is going wrong. In a helper I have this line: elsif player.send(next\_period) == (‘none’ || ‘bench’ ) html\_holder \<\< " O" This works for “none” but doesn’t seem to work for “bench”. I have do…

---

## [Umm... pretty much lost](https://www.ruby-forum.com/t/umm-pretty-much-lost/125808)

<div class="topic-metadata">

**Author:** [@kopf1988](https://www.ruby-forum.com/u/kopf1988)\
**Replies:** 6\
**Last updated:** [January 12, 2008, 9:49pm UTC](https://www.ruby-forum.com/t/umm-pretty-much-lost/125808 "2008-01-12T21:49:46Z")

</div>

I believe I should have done everything correct here. I have a user\_controller. I am trying to add a login method, so I add: GET /users/login def login if request.post? and params\[:user\] @user = User.new(params\[:user…

---

## [Nginx Reverse Proxy--What is http://mongel?](https://www.ruby-forum.com/t/nginx-reverse-proxy-what-is-http-mongel/107850)

<div class="topic-metadata">

**Author:** [@Matt\_Culbreth](https://www.ruby-forum.com/u/Matt_Culbreth)\
**Replies:** 1\
**Last updated:** [January 12, 2008, 8:48pm UTC](https://www.ruby-forum.com/t/nginx-reverse-proxy-what-is-http-mongel/107850 "2008-01-12T20:48:56Z")

</div>

Hello Group, I’ve got my Rails app deployed as a Mongrel cluster behind an Nginx reverse proxy. It’s working great except for one small issue: if I have code that does a redirect\_to , the browser is redirecting to h…

---

## [\[ANN\] ActiveBudget - Track your money and learn Rails](https://www.ruby-forum.com/t/ann-activebudget-track-your-money-and-learn-rails/105908)

<div class="topic-metadata">

**Author:** [@jmckible](https://www.ruby-forum.com/u/jmckible)\
**Replies:** 12\
**Last updated:** [January 12, 2008, 8:40pm UTC](https://www.ruby-forum.com/t/ann-activebudget-track-your-money-and-learn-rails/105908 "2008-01-12T20:40:14Z")

</div>

I’ve worked as a freelance Rails developer for the past 6 months. Switching from a cushy salary to hourly work forced me to reevaluate my finances. Developing a budget came easily to me, but tracking my spending was …

---

## [Can't test application controller methods in functional tests?](https://www.ruby-forum.com/t/cant-test-application-controller-methods-in-functional-tests/125851)

<div class="topic-metadata">

**Author:** [@taro](https://www.ruby-forum.com/u/taro)\
**Replies:** 0\
**Last updated:** [January 12, 2008, 8:32pm UTC](https://www.ruby-forum.com/t/cant-test-application-controller-methods-in-functional-tests/125851 "2008-01-12T20:32:59Z")

</div>

I have two methods in application controller that I want to test from ForumController: class ApplicationController \< ActionController::Base … def logout session\[:username\] = nil session\[:admin\] = nil redirect\_to(…

---

## [Passing Model ID in Upload](https://www.ruby-forum.com/t/passing-model-id-in-upload/125847)

<div class="topic-metadata">

**Author:** [@matthew](https://www.ruby-forum.com/u/matthew)\
**Replies:** 0\
**Last updated:** [January 12, 2008, 8:27pm UTC](https://www.ruby-forum.com/t/passing-model-id-in-upload/125847 "2008-01-12T20:27:08Z")

</div>

Greetings. I am trying to create an image upload page for my site, and I am having a little trouble figuring out how to set things up correctly. I have a model for user’s, each with a unique ID, and I would like to h…

---

## [Country\_select, how edit the list?](https://www.ruby-forum.com/t/country-select-how-edit-the-list/125743)

<div class="topic-metadata">

**Author:** [@Mrpolygon](https://www.ruby-forum.com/u/Mrpolygon)\
**Replies:** 2\
**Last updated:** [January 12, 2008, 8:24pm UTC](https://www.ruby-forum.com/t/country-select-how-edit-the-list/125743 "2008-01-12T20:24:48Z")

</div>

Hi! I have created an abstract submission form for a world wide congress using Ruby on rails. Every thing works fine except that today I got an email from some one from Taiwan that didn’t like that her country was a p…

---

## [Saving a model with a through association](https://www.ruby-forum.com/t/saving-a-model-with-a-through-association/125740)

<div class="topic-metadata">

**Author:** [@jh100000](https://www.ruby-forum.com/u/jh100000)\
**Replies:** 2\
**Last updated:** [January 12, 2008, 8:00pm UTC](https://www.ruby-forum.com/t/saving-a-model-with-a-through-association/125740 "2008-01-12T20:00:46Z")

</div>

I can’t seem to find any logical way of handling this situation I have created. Heres the problem I have worked myself into. On the create/update of a model, say post, one of the things it has associated with it is a…

---

## [Filtering the display in a list](https://www.ruby-forum.com/t/filtering-the-display-in-a-list/125843)

<div class="topic-metadata">

**Author:** [@macfizz](https://www.ruby-forum.com/u/macfizz)\
**Replies:** 0\
**Last updated:** [January 12, 2008, 7:14pm UTC](https://www.ruby-forum.com/t/filtering-the-display-in-a-list/125843 "2008-01-12T19:14:18Z")

</div>

Hi all, I’d appreciate some guidance in the right way to filter the data displayed in a list. I have two models, school and centre (centre belongs\_to school and school has\_many centres). In the list action for centre…

---

## [Developer Esteam Release](https://www.ruby-forum.com/t/developer-esteam-release/125839)

<div class="topic-metadata">

**Author:** [@clinthill](https://www.ruby-forum.com/u/clinthill)\
**Replies:** 0\
**Last updated:** [January 12, 2008, 6:45pm UTC](https://www.ruby-forum.com/t/developer-esteam-release/125839 "2008-01-12T18:45:06Z")

</div>

I have developed a new kind of developer community. A place where developers can submit ideas and build esteem and problems build steam with each idea. I would really enjoy participation. Have a look! http://developer…

---

## [Getting params from one view into another](https://www.ruby-forum.com/t/getting-params-from-one-view-into-another/125815)

<div class="topic-metadata">

**Author:** [@jackster](https://www.ruby-forum.com/u/jackster)\
**Replies:** 3\
**Last updated:** [January 12, 2008, 6:44pm UTC](https://www.ruby-forum.com/t/getting-params-from-one-view-into-another/125815 "2008-01-12T18:44:11Z")

</div>

Hi Ruby Forum, I have a situation that I have never run into before. I need to pass a param from one view into a different section of my controller. I’m having a bit of trouble passing a variable from my view into ano…

---

## [Root router](https://www.ruby-forum.com/t/root-router/125838)

<div class="topic-metadata">

**Author:** [@giga](https://www.ruby-forum.com/u/giga)\
**Replies:** 0\
**Last updated:** [January 12, 2008, 6:43pm UTC](https://www.ruby-forum.com/t/root-router/125838 "2008-01-12T18:43:57Z")

</div>

I have 2 domains: “myap.com” and “myap.net”. Is it possible to configure routes.rb: if domain is “myap.com” then map.root =\> “com” if domain is “myap.net” then map.root =\> “net”

---

## [How to do that with PDF Writer? (text inside a box)](https://www.ruby-forum.com/t/how-to-do-that-with-pdf-writer-text-inside-a-box/125834)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 1\
**Last updated:** [January 12, 2008, 6:07pm UTC](https://www.ruby-forum.com/t/how-to-do-that-with-pdf-writer-text-inside-a-box/125834 "2008-01-12T18:07:11Z")

</div>

How can I make appear text inside a box, something like this: ----------------- - text inside - -----------------

---

## [Methodaccess from GeneralMailer to ApplicationController](https://www.ruby-forum.com/t/methodaccess-from-generalmailer-to-applicationcontroller/125835)

<div class="topic-metadata">

**Author:** [@lpp-rob](https://www.ruby-forum.com/u/lpp-rob)\
**Replies:** 1\
**Last updated:** [January 12, 2008, 6:02pm UTC](https://www.ruby-forum.com/t/methodaccess-from-generalmailer-to-applicationcontroller/125835 "2008-01-12T18:02:14Z")

</div>

Hallo, i defined a method (foo) in my application.rb, which inherits from ActionController::Base) how do i access this method from my GeneralMailer \< ActionMailer::Base? thx

---

## [REST Design Question](https://www.ruby-forum.com/t/rest-design-question/125812)

<div class="topic-metadata">

**Author:** [@pankaj](https://www.ruby-forum.com/u/pankaj)\
**Replies:** 1\
**Last updated:** [January 12, 2008, 5:29pm UTC](https://www.ruby-forum.com/t/rest-design-question/125812 "2008-01-12T17:29:44Z")

</div>

I have 2 models Roles and Rights with many to many Relationship. Without Rest: Controller: Action Roles: list,edit,create,destroy,map\_rights Rights: list,edit,create,destroy,list\_by\_role NOTE: map rights function wi…

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

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