# Rails

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

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

---

## [New rails budgeting application](https://www.ruby-forum.com/t/new-rails-budgeting-application/105019)

<div class="topic-metadata">

**Author:** [@geirfreysson](https://www.ruby-forum.com/u/geirfreysson)\
**Replies:** 0\
**Last updated:** [May 24, 2007, 11:53pm UTC](https://www.ruby-forum.com/t/new-rails-budgeting-application/105019 "2007-05-24T23:53:29Z")

</div>

Hello everyone. A love affair with Rails and a habit of overspending led me to develop a money budgeting application called Walletproof. We just launched at: http://www.walletproof.com The speil: Walletproof is a pe…

---

## [Time.to\_f](https://www.ruby-forum.com/t/time-to-f/105015)

<div class="topic-metadata">

**Author:** [@gabordemeter](https://www.ruby-forum.com/u/gabordemeter)\
**Replies:** 2\
**Last updated:** [May 24, 2007, 10:47pm UTC](https://www.ruby-forum.com/t/time-to-f/105015 "2007-05-24T22:47:24Z")

</div>

Hi everyone! I’m looking at the following code: total=total+time\_in\[“time”\].to\_f What exactly is to\_f because I cannot find it in the API? Thanks, Gabor

---

## [Virtual host using Instant Rails 1.7](https://www.ruby-forum.com/t/virtual-host-using-instant-rails-1-7/105013)

<div class="topic-metadata">

**Author:** [@udai](https://www.ruby-forum.com/u/udai)\
**Replies:** 0\
**Last updated:** [May 24, 2007, 10:27pm UTC](https://www.ruby-forum.com/t/virtual-host-using-instant-rails-1-7/105013 "2007-05-24T22:27:08Z")

</div>

I have developed an application called demo using Instant Rails 1.7. How do I host this application say in development mode (as a virtual host)? I already ran the two examples cookbook and typo packaged in the zip fi…

---

## [Restful authentication (routes, resources etc)](https://www.ruby-forum.com/t/restful-authentication-routes-resources-etc/105006)

<div class="topic-metadata">

**Author:** [@johnlester](https://www.ruby-forum.com/u/johnlester)\
**Replies:** 4\
**Last updated:** [May 24, 2007, 10:01pm UTC](https://www.ruby-forum.com/t/restful-authentication-routes-resources-etc/105006 "2007-05-24T22:01:16Z")

</div>

Can anyone explain how restful authentication works? I have the plugin working to an extent. The only thing I can’t do is logout. I’m assuming there are additional steps involved with adding methods to the users an…

---

## [Haproxy vs. apache2 proxybalancer](https://www.ruby-forum.com/t/haproxy-vs-apache2-proxybalancer/104864)

<div class="topic-metadata">

**Author:** [@morten](https://www.ruby-forum.com/u/morten)\
**Replies:** 5\
**Last updated:** [May 24, 2007, 9:39pm UTC](https://www.ruby-forum.com/t/haproxy-vs-apache2-proxybalancer/104864 "2007-05-24T21:39:15Z")

</div>

Hi, I’m thinking of switching to using RubyWorks rather than keep rolling/ maintaining my own stack. Until now, I’ve used Apache2 Proxy balancer for my mongrel cluster. I see that RubyWorks ships HAProxy instead. Any…

---

## [Mongrel zooms to 75% memory (750MB!) randomly](https://www.ruby-forum.com/t/mongrel-zooms-to-75-memory-750mb-randomly/104983)

<div class="topic-metadata">

**Author:** [@uncle](https://www.ruby-forum.com/u/uncle)\
**Replies:** 6\
**Last updated:** [May 24, 2007, 9:03pm UTC](https://www.ruby-forum.com/t/mongrel-zooms-to-75-memory-750mb-randomly/104983 "2007-05-24T21:03:06Z")

</div>

I have a rails app ubuntu feisty apache 2.2 mod proxy 4 mongrels in a cluster 1g ram About once a day, the memory usage (as reported by top) of one of the mongrels will zip from the normal 4% to 75% and never come ba…

---

## [Form\_for for nested objects](https://www.ruby-forum.com/t/form-for-for-nested-objects/133522)

<div class="topic-metadata">

**Author:** [@Jerome\_D](https://www.ruby-forum.com/u/Jerome_D)\
**Replies:** 1\
**Last updated:** [May 24, 2007, 8:57pm UTC](https://www.ruby-forum.com/t/form-for-for-nested-objects/133522 "2007-05-24T20:57:03Z")

</div>

Hi, I have the following data model: Person (name, …) Address (street, city) Person has\_ony Address I would like to edit the Person and its Address in one single form. Using form\_for, I can add the person fields. Us…

---

## [Using form\_for for nested objects](https://www.ruby-forum.com/t/using-form-for-for-nested-objects/104989)

<div class="topic-metadata">

**Author:** [@Jerome\_D](https://www.ruby-forum.com/u/Jerome_D)\
**Replies:** 1\
**Last updated:** [May 24, 2007, 8:33pm UTC](https://www.ruby-forum.com/t/using-form-for-for-nested-objects/104989 "2007-05-24T20:33:56Z")

</div>

Hi, I have the following data model: Person (name, …) Address (street, city) Person has\_ony Address I would like to edit the Person and its Address in one single form. Using form\_for, I can add the person fields. Us…

---

## [How do I find records with no associated objects?](https://www.ruby-forum.com/t/how-do-i-find-records-with-no-associated-objects/104939)

<div class="topic-metadata">

**Author:** [@squeegy](https://www.ruby-forum.com/u/squeegy)\
**Replies:** 4\
**Last updated:** [May 24, 2007, 8:26pm UTC](https://www.ruby-forum.com/t/how-do-i-find-records-with-no-associated-objects/104939 "2007-05-24T20:26:03Z")

</div>

I have a “Product has\_many :sales” relationship in my app, and I need to find all Product objects that have no associated Sale objects. Normally I could just find on a null foreign key, but that wont work with a has\_…

---

## [Rails 2.0 RESTful Routes action/id dichotomy](https://www.ruby-forum.com/t/rails-2-0-restful-routes-action-id-dichotomy/104915)

<div class="topic-metadata">

**Author:** [@dasil003](https://www.ruby-forum.com/u/dasil003)\
**Replies:** 7\
**Last updated:** [May 24, 2007, 7:44pm UTC](https://www.ruby-forum.com/t/rails-2-0-restful-routes-action-id-dichotomy/104915 "2007-05-24T19:44:49Z")

</div>

I don’t have edge rails installed, otherwise I would just test it out. But in Rails 2.0 they are doing away with the semi-colon for several reasons. I think this is great, but it brings an interesting issue to the f…

---

## [Javascript and auto\_complete\_for](https://www.ruby-forum.com/t/javascript-and-auto-complete-for/104917)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 4\
**Last updated:** [May 24, 2007, 7:32pm UTC](https://www.ruby-forum.com/t/javascript-and-auto-complete-for/104917 "2007-05-24T19:32:46Z")

</div>

I have updated my development version to 1.2.3 (where my production is still on 1.1.6) and the Macintosh OS 9 clients using Netscape 7.02 can no longer use auto\_complete\_for where it works fine on 1.1.6 which suggests…

---

## [How can two persons work on same rails application from diff](https://www.ruby-forum.com/t/how-can-two-persons-work-on-same-rails-application-from-diff/104921)

<div class="topic-metadata">

**Author:** [@solanky](https://www.ruby-forum.com/u/solanky)\
**Replies:** 13\
**Last updated:** [May 24, 2007, 7:31pm UTC](https://www.ruby-forum.com/t/how-can-two-persons-work-on-same-rails-application-from-diff/104921 "2007-05-24T19:31:46Z")

</div>

Hi Everybody, First I want to clear that I am new to Rails as well as to open source (working on Microsoft technologies since last 2 years) so I am sorry if some persons can think my question stupid. I am working with…

---

## [Urgent help with before filter](https://www.ruby-forum.com/t/urgent-help-with-before-filter/104981)

<div class="topic-metadata">

**Author:** [@lix](https://www.ruby-forum.com/u/lix)\
**Replies:** 2\
**Last updated:** [May 24, 2007, 6:49pm UTC](https://www.ruby-forum.com/t/urgent-help-with-before-filter/104981 "2007-05-24T18:49:49Z")

</div>

hi, i’ve a little problem…i’ve a before filter in the application.rb which exclude 4 actions, now i’ve to add another, called :index, but this would work for all indexes, how can i set to exclude only that index (sett…

---

## [Exception to session timeouts?](https://www.ruby-forum.com/t/exception-to-session-timeouts/104946)

<div class="topic-metadata">

**Author:** [@rmehta](https://www.ruby-forum.com/u/rmehta)\
**Replies:** 2\
**Last updated:** [May 24, 2007, 6:09pm UTC](https://www.ruby-forum.com/t/exception-to-session-timeouts/104946 "2007-05-24T18:09:44Z")

</div>

Hi, I am using the session timeout plugin to expire the sessions after a certain period of time. But the problem is that for that I have to give the expiry time and the action to perform on expiry in application cont…

---

## [Importing database from legacy aplication](https://www.ruby-forum.com/t/importing-database-from-legacy-aplication/104883)

<div class="topic-metadata">

**Author:** [@seertaak](https://www.ruby-forum.com/u/seertaak)\
**Replies:** 1\
**Last updated:** [May 24, 2007, 5:59pm UTC](https://www.ruby-forum.com/t/importing-database-from-legacy-aplication/104883 "2007-05-24T17:59:47Z")

</div>

Hi. I’m rebuilding from scratch a legacy application from php/mysql to rails/mysql. At some point I’m going to have to import the data from the legacy application. One of the reasons for rebuilding is the badly imple…

---

## [Admin pages and site pages](https://www.ruby-forum.com/t/admin-pages-and-site-pages/103121)

<div class="topic-metadata">

**Author:** [@ungaro](https://www.ruby-forum.com/u/ungaro)\
**Replies:** 1\
**Last updated:** [May 24, 2007, 5:24pm UTC](https://www.ruby-forum.com/t/admin-pages-and-site-pages/103121 "2007-05-24T17:24:16Z")

</div>

very basic question, but i couldn’t understand how to do it in rails: i want to code a website and its administration interface in RoR. how do i create a controller in admin subfolder? Can these controller share actio…

---

## [Next release?](https://www.ruby-forum.com/t/next-release/104988)

<div class="topic-metadata">

**Author:** [@Tyler\_McMullen](https://www.ruby-forum.com/u/Tyler_McMullen)\
**Replies:** 0\
**Last updated:** [May 24, 2007, 5:18pm UTC](https://www.ruby-forum.com/t/next-release/104988 "2007-05-24T17:18:30Z")

</div>

So, this might not be the place to ask this… I may need to ask over on Core, but I figured I’d give this a shot first. I’m going to be starting on a new application about 2 weeks from today, and the plan is to have it…

---

## [Current\_user.friends.posts](https://www.ruby-forum.com/t/current-user-friends-posts/104943)

<div class="topic-metadata">

**Author:** [@Alex\_Kroman](https://www.ruby-forum.com/u/Alex_Kroman)\
**Replies:** 4\
**Last updated:** [May 24, 2007, 5:03pm UTC](https://www.ruby-forum.com/t/current-user-friends-posts/104943 "2007-05-24T17:03:21Z")

</div>

Hi all, I have a pretty simple set of models. current\_user has a bunch of friends and each friend makes a lot of posts. I want to do something like current\_user.friends.posts but the posts method is missing. I’ve c…

---

## [Get info from Mysql tables](https://www.ruby-forum.com/t/get-info-from-mysql-tables/104982)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [May 24, 2007, 4:33pm UTC](https://www.ruby-forum.com/t/get-info-from-mysql-tables/104982 "2007-05-24T16:33:16Z")

</div>

I was wondering about a way to get meta-datas from Mysql table especially : table comments columns comments characters set Thanks

---

## [Reverse proxy holding onto port, complicated](https://www.ruby-forum.com/t/reverse-proxy-holding-onto-port-complicated/104977)

<div class="topic-metadata">

**Author:** [@uncle](https://www.ruby-forum.com/u/uncle)\
**Replies:** 0\
**Last updated:** [May 24, 2007, 3:34pm UTC](https://www.ruby-forum.com/t/reverse-proxy-holding-onto-port-complicated/104977 "2007-05-24T15:34:43Z")

</div>

I have a rails app that is behind a firewall and I need to be able to ssh into the box, so I do this… create a reverse tunnel from the rails system to my system using ssh -R ssh from my system to the rails system thr…

---

## [Deploying with capistrano + cvs not latest version](https://www.ruby-forum.com/t/deploying-with-capistrano-cvs-not-latest-version/104976)

<div class="topic-metadata">

**Author:** [@mark](https://www.ruby-forum.com/u/mark)\
**Replies:** 0\
**Last updated:** [May 24, 2007, 3:10pm UTC](https://www.ruby-forum.com/t/deploying-with-capistrano-cvs-not-latest-version/104976 "2007-05-24T15:10:50Z")

</div>

Hi, newbie to capistrano, please be gentle. I have got a capistrano deployment working in the following environment: local is Mac, pure rails app server is RedHat ES, MySQL, Apache, mongrel, mongrel cluster SCM is c…

---

## [Can an hidden\_field changed be detected by observe\_form?](https://www.ruby-forum.com/t/can-an-hidden-field-changed-be-detected-by-observe-form/104972)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 0\
**Last updated:** [May 24, 2007, 2:03pm UTC](https://www.ruby-forum.com/t/can-an-hidden-field-changed-be-detected-by-observe-form/104972 "2007-05-24T14:03:11Z")

</div>

in a view, I am changing programmatically an hidden field ‘category\_id’ (simulating a click) \<%= link\_to\_function("Baby-sitting", nil, :class =\> "enfants") do |page| page \< … \<%= hidden\_field\_tag :category\_id, @…

---

## [\[Commercial\] Rails developer, New Delhi](https://www.ruby-forum.com/t/commercial-rails-developer-new-delhi/104971)

<div class="topic-metadata">

**Author:** [@rahuldewan](https://www.ruby-forum.com/u/rahuldewan)\
**Replies:** 0\
**Last updated:** [May 24, 2007, 1:53pm UTC](https://www.ruby-forum.com/t/commercial-rails-developer-new-delhi/104971 "2007-05-24T13:53:13Z")

</div>

Hi, We’re looking for a Rails developer for our office in New Delhi. The project we’re working on is an electronics consumer portal based out of Switzerland, apart from other projects. All of these have very high vis…

---

## [How to show by id?](https://www.ruby-forum.com/t/how-to-show-by-id/104963)

<div class="topic-metadata">

**Author:** [@jamal](https://www.ruby-forum.com/u/jamal)\
**Replies:** 1\
**Last updated:** [May 24, 2007, 1:08pm UTC](https://www.ruby-forum.com/t/how-to-show-by-id/104963 "2007-05-24T13:08:09Z")

</div>

Hello there, I have a small question how to get id from this URL? http://domain.com/blog/subjectio+awd+2 This route doesn’t seems to work as I want it? map.connect ‘blog/:name-:id’, :controller =\> “blog”, :action =\>…

---

## [Postgres gem for postgresql82 macports](https://www.ruby-forum.com/t/postgres-gem-for-postgresql82-macports/104957)

<div class="topic-metadata">

**Author:** [@Jean-Christophe\_M](https://www.ruby-forum.com/u/Jean-Christophe_M)\
**Replies:** 6\
**Last updated:** [May 24, 2007, 1:01pm UTC](https://www.ruby-forum.com/t/postgres-gem-for-postgresql82-macports/104957 "2007-05-24T13:01:08Z")

</div>

Hi, Just to tell I succeeded in compiling the postgres gem for the postgresql82 macports with the line: sudo gem install postgres – --with-pgsql-include=/opt/local/include/ postgresql82/ --with-pgsql-lib-dir=/opt/loc…

---

## [Access named routes outside controller or view](https://www.ruby-forum.com/t/access-named-routes-outside-controller-or-view/104968)

<div class="topic-metadata">

**Author:** [@reynar](https://www.ruby-forum.com/u/reynar)\
**Replies:** 0\
**Last updated:** [May 24, 2007, 12:40pm UTC](https://www.ruby-forum.com/t/access-named-routes-outside-controller-or-view/104968 "2007-05-24T12:40:13Z")

</div>

Hi, Could anyone advise if it’s possible to access named routes in regular class within a rails application. I am working on a system to define menu structure with a rails app. Rather than using something like :contr…

---

## [Unit Tests](https://www.ruby-forum.com/t/unit-tests/104954)

<div class="topic-metadata">

**Author:** [@giorgio](https://www.ruby-forum.com/u/giorgio)\
**Replies:** 4\
**Last updated:** [May 24, 2007, 12:01pm UTC](https://www.ruby-forum.com/t/unit-tests/104954 "2007-05-24T12:01:02Z")

</div>

Hi, If you have (say) 50 unit tests how do you run them all and check that there are no failures. I have a script that runs all the tests but it is difficult to spot failures in the mass of output… Giorgio

---

## [How to make sure that session never expires](https://www.ruby-forum.com/t/how-to-make-sure-that-session-never-expires/104925)

<div class="topic-metadata">

**Author:** [@cujigar](https://www.ruby-forum.com/u/cujigar)\
**Replies:** 5\
**Last updated:** [May 24, 2007, 11:43am UTC](https://www.ruby-forum.com/t/how-to-make-sure-that-session-never-expires/104925 "2007-05-24T11:43:59Z")

</div>

I want users logged in to my site to always be logged in, unless they click logout. Like a permanent “Remember Me” feature. But session cookie expires when the browser is closed. where can i configure that session coo…

---

## [Embedding PDFs within rails page](https://www.ruby-forum.com/t/embedding-pdfs-within-rails-page/104951)

<div class="topic-metadata">

**Author:** [@ichikawa](https://www.ruby-forum.com/u/ichikawa)\
**Replies:** 1\
**Last updated:** [May 24, 2007, 9:58am UTC](https://www.ruby-forum.com/t/embedding-pdfs-within-rails-page/104951 "2007-05-24T09:58:24Z")

</div>

guys, hope, you well. In my rails page I want to embed a PDF in my page where there are other dynamic created informations. I use the following code: \<% path="#{RAILS\_ROOT}/manual/test.pdf" %\> But it can not open…

---

## [Creating a tempfile that should be used by 2 controllers](https://www.ruby-forum.com/t/creating-a-tempfile-that-should-be-used-by-2-controllers/104866)

<div class="topic-metadata">

**Author:** [@fred\_o](https://www.ruby-forum.com/u/fred_o)\
**Replies:** 4\
**Last updated:** [May 24, 2007, 9:23am UTC](https://www.ruby-forum.com/t/creating-a-tempfile-that-should-be-used-by-2-controllers/104866 "2007-05-24T09:23:08Z")

</div>

Hi, To summarize I have an application with two pages: one is a form and a controller is attached to it. Crontoller generates a file given the information entered in the form; the other is a download-page and also ha…

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

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