# Rails

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

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

---

## [Port 3000 on apache](https://www.ruby-forum.com/t/port-3000-on-apache/126970)

<div class="topic-metadata">

**Author:** [@xobani](https://www.ruby-forum.com/u/xobani)\
**Replies:** 6\
**Last updated:** [January 24, 2008, 2:48pm UTC](https://www.ruby-forum.com/t/port-3000-on-apache/126970 "2008-01-24T14:48:03Z")

</div>

this may be more of a web server question… i can see: http://localhost http://localhost:3000 http://127.0.0.1 http://127.0.0.1:3000 http://192.168.16.128 (localhost ip address) http://hostname (localhost name) i …

---

## [Can i get the id of a new object before saving it/as i save?](https://www.ruby-forum.com/t/can-i-get-the-id-of-a-new-object-before-saving-it-as-i-save/127037)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 3\
**Last updated:** [January 24, 2008, 2:30pm UTC](https://www.ruby-forum.com/t/can-i-get-the-id-of-a-new-object-before-saving-it-as-i-save/127037 "2008-01-24T14:30:37Z")

</div>

I have a batch-add page for users that needs to auto-generate a unique login name for each user. What i want to do is set their login name to be “#{first\_name}\_#{id}”. The problem is - i can’t see the id until i sav…

---

## ["form\_tag xx\_path" issue](https://www.ruby-forum.com/t/form-tag-xx-path-issue/127038)

<div class="topic-metadata">

**Author:** [@myst\_tt](https://www.ruby-forum.com/u/myst_tt)\
**Replies:** 0\
**Last updated:** [January 24, 2008, 1:54pm UTC](https://www.ruby-forum.com/t/form-tag-xx-path-issue/127038 "2008-01-24T13:54:09Z")

</div>

Hello, there: I create the following controller and view to handle login and logou, but the form\_tag always said “undefined local variable or method \`session\_path’ for #ActionView::Base:0xb590e7e0” when I try open th…

---

## [Controllers don't seemed to be released at the end of a request](https://www.ruby-forum.com/t/controllers-dont-seemed-to-be-released-at-the-end-of-a-request/126953)

<div class="topic-metadata">

**Author:** [@baldmountain](https://www.ruby-forum.com/u/baldmountain)\
**Replies:** 3\
**Last updated:** [January 24, 2008, 1:25pm UTC](https://www.ruby-forum.com/t/controllers-dont-seemed-to-be-released-at-the-end-of-a-request/126953 "2008-01-24T13:25:46Z")

</div>

Controllers seem to be leaked in 1.2.6 but not in 2.0.2. I created an empty rails app with nothing but the following controller: class HomeController \< ApplicationController def index @contents = \[\] 1.upto(2000) { @…

---

## [Remote\_form\_for and](https://www.ruby-forum.com/t/remote-form-for-and/126995)

<div class="topic-metadata">

**Author:** [@andreh](https://www.ruby-forum.com/u/andreh)\
**Replies:** 9\
**Last updated:** [January 24, 2008, 12:55pm UTC](https://www.ruby-forum.com/t/remote-form-for-and/126995 "2008-01-24T12:55:00Z")

</div>

Hi there(i’m new to rails, so please be patient =D), i’m facing some problems with forms and ajax =/ hope someone can help me, because i was searching here and on the api docs, but no luck then I believe that i’m miss…

---

## [Google Sketchup](https://www.ruby-forum.com/t/google-sketchup/127031)

<div class="topic-metadata">

**Author:** [@subho](https://www.ruby-forum.com/u/subho)\
**Replies:** 0\
**Last updated:** [January 24, 2008, 12:21pm UTC](https://www.ruby-forum.com/t/google-sketchup/127031 "2008-01-24T12:21:27Z")

</div>

Hi, Can anybody tell me if its possible to send mail by developing somekind of plugin from Google Sketchup 3D modeller? If yes how? Thanks in advance, Subhash

---

## [Validating date\_select invalid dates](https://www.ruby-forum.com/t/validating-date-select-invalid-dates/122109)

<div class="topic-metadata">

**Author:** [@Thiago\_G](https://www.ruby-forum.com/u/Thiago_G)\
**Replies:** 1\
**Last updated:** [January 24, 2008, 12:13pm UTC](https://www.ruby-forum.com/t/validating-date-select-invalid-dates/122109 "2008-01-24T12:13:48Z")

</div>

Hi, I’m trying to validate a invalid date like Feb 31, 1976 but I’m getting a really weird error msg and I can’t figure out how to fix it. I thought that using validates\_multiparameter\_assignments it would handle any…

---

## [Positions open for exciting rails products](https://www.ruby-forum.com/t/positions-open-for-exciting-rails-products/127025)

<div class="topic-metadata">

**Author:** [@Rolson\_DSsouza](https://www.ruby-forum.com/u/Rolson_DSsouza)\
**Replies:** 0\
**Last updated:** [January 24, 2008, 11:06am UTC](https://www.ruby-forum.com/t/positions-open-for-exciting-rails-products/127025 "2008-01-24T11:06:15Z")

</div>

We have positions open in Bangalore, India for ruby on rails developers for product development opportunities. We are a decade old company having 3 facilities globally. We are currently working on products based on ru…

---

## [Inserting data using form\_for](https://www.ruby-forum.com/t/inserting-data-using-form-for/127027)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 0\
**Last updated:** [January 24, 2008, 10:26am UTC](https://www.ruby-forum.com/t/inserting-data-using-form-for/127027 "2008-01-24T10:26:41Z")

</div>

I was playing around with: http://strawr.googlecode.com/svn/trunk/app/views/feeds/show.rhtml and changed a few things so that it’s like so: thufir@arrakis ~/strawr $ thufir@arrakis ~/strawr $ cat app/views/feeds/show…

---

## [Access form submitted values inside model class](https://www.ruby-forum.com/t/access-form-submitted-values-inside-model-class/127023)

<div class="topic-metadata">

**Author:** [@Penuel](https://www.ruby-forum.com/u/Penuel)\
**Replies:** 0\
**Last updated:** [January 24, 2008, 10:11am UTC](https://www.ruby-forum.com/t/access-form-submitted-values-inside-model-class/127023 "2008-01-24T10:11:26Z")

</div>

Hi All, I am sure some one of you might have faced this. I am trying to validate the user submitted values inside a model class. I use the validates\_presence\_of and validates\_uniqueness\_of methods inside the model cl…

---

## [Ruby on Rails and Health 2.0](https://www.ruby-forum.com/t/ruby-on-rails-and-health-2-0/127020)

<div class="topic-metadata">

**Author:** [@DrSManuel\_Serrano](https://www.ruby-forum.com/u/DrSManuel_Serrano)\
**Replies:** 0\
**Last updated:** [January 24, 2008, 9:56am UTC](https://www.ruby-forum.com/t/ruby-on-rails-and-health-2-0/127020 "2008-01-24T09:56:44Z")

</div>

This is Dr Manuel Serrano, President of the Education, Health and Society Foundation and Director of the Expert Patient Programme in Spain (www.eppspain.org). Just in Spain we reach 1.700.000 people through the Coalic…

---

## [Class definition missing error](https://www.ruby-forum.com/t/class-definition-missing-error/126971)

<div class="topic-metadata">

**Author:** [@jrochkind](https://www.ruby-forum.com/u/jrochkind)\
**Replies:** 1\
**Last updated:** [January 24, 2008, 9:42am UTC](https://www.ruby-forum.com/t/class-definition-missing-error/126971 "2008-01-24T09:42:26Z")

</div>

In my Rails app, I am occasionally getting a class definition missing error. I see this error in my logs, and every once in a while run into it myself, but not in a way I can reproduce. The error looks like: /data/web…

---

## [Model and Attribute original Value](https://www.ruby-forum.com/t/model-and-attribute-original-value/126555)

<div class="topic-metadata">

**Author:** [@nigel.bris](https://www.ruby-forum.com/u/nigel.bris)\
**Replies:** 3\
**Last updated:** [January 24, 2008, 9:41am UTC](https://www.ruby-forum.com/t/model-and-attribute-original-value/126555 "2008-01-24T09:41:23Z")

</div>

Hi Everyone, Is there a way to when you find a record to keep the original value of the attributes. This would allow to see if an attribute has changed at save time and then do something. I am sure there is an cool wa…

---

## [Self-referential HABTM SQL mal-formed when updating record](https://www.ruby-forum.com/t/self-referential-habtm-sql-mal-formed-when-updating-record/126975)

<div class="topic-metadata">

**Author:** [@Sazima](https://www.ruby-forum.com/u/Sazima)\
**Replies:** 1\
**Last updated:** [January 24, 2008, 9:35am UTC](https://www.ruby-forum.com/t/self-referential-habtm-sql-mal-formed-when-updating-record/126975 "2008-01-24T09:35:51Z")

</div>

Guys, Anyone ever had this kind of problem with ActiveScaffold? Cheers, Sazima What steps will reproduce the problem? Create self-referential HABTM application (like the common “user has friends” example) Try …

---

## [Weird shopping cart behaviour!](https://www.ruby-forum.com/t/weird-shopping-cart-behaviour/126964)

<div class="topic-metadata">

**Author:** [@xguardiola](https://www.ruby-forum.com/u/xguardiola)\
**Replies:** 1\
**Last updated:** [January 24, 2008, 9:22am UTC](https://www.ruby-forum.com/t/weird-shopping-cart-behaviour/126964 "2008-01-24T09:22:32Z")

</div>

Dear all, I have a general form (which I generate via form\_tag) for a ‘subscription’. Inside this form the user can add ‘elements’ to his subscription. I do this with an an additional Ajax form: \<% form\_remote\_tag :…

---

## [How to use a javascript funtion](https://www.ruby-forum.com/t/how-to-use-a-javascript-funtion/126899)

<div class="topic-metadata">

**Author:** [@mokkai](https://www.ruby-forum.com/u/mokkai)\
**Replies:** 4\
**Last updated:** [January 24, 2008, 8:36am UTC](https://www.ruby-forum.com/t/how-to-use-a-javascript-funtion/126899 "2008-01-24T08:36:18Z")

</div>

how to use a javascript funtion which should run when i am clicking any link or submit in whole form? except in onclick tag (or) on submit tag

---

## [Newlines in text\_area](https://www.ruby-forum.com/t/newlines-in-text-area/126832)

<div class="topic-metadata">

**Author:** [@flnative](https://www.ruby-forum.com/u/flnative)\
**Replies:** 4\
**Last updated:** [January 24, 2008, 7:51am UTC](https://www.ruby-forum.com/t/newlines-in-text-area/126832 "2008-01-24T07:51:50Z")

</div>

Hi @ all I would like to enter a text with a text\_area into the database. It runs excellent. But when I want to show the entered text in the show view, all newlines (paragraphs) are deleted and the text is only one b…

---

## [Render Variable?](https://www.ruby-forum.com/t/render-variable/126927)

<div class="topic-metadata">

**Author:** [@mohit\_ranka](https://www.ruby-forum.com/u/mohit_ranka)\
**Replies:** 3\
**Last updated:** [January 24, 2008, 7:39am UTC](https://www.ruby-forum.com/t/render-variable/126927 "2008-01-24T07:39:26Z")

</div>

Hi All, I have a string variable that contains other ruby variables. I intend to render the string variable and replace the other ruby variables in it with their values.Is it possible? To clarify my question, here is…

---

## [Exception Handling Approach - This is what I'm doing](https://www.ruby-forum.com/t/exception-handling-approach-this-is-what-im-doing/127015)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 1\
**Last updated:** [January 24, 2008, 7:20am UTC](https://www.ruby-forum.com/t/exception-handling-approach-this-is-what-im-doing/127015 "2008-01-24T07:20:44Z")

</div>

Hi - Any feedback from people re how they handle exception handling in RoR? Here’s what I’m doing… I’ve ended up doing the following so far, some of which are adjustments to Jamis B.'some “Exception Notification” p…

---

## [Rewrite nested path](https://www.ruby-forum.com/t/rewrite-nested-path/126993)

<div class="topic-metadata">

**Author:** [@jney](https://www.ruby-forum.com/u/jney)\
**Replies:** 9\
**Last updated:** [January 24, 2008, 5:51am UTC](https://www.ruby-forum.com/t/rewrite-nested-path/126993 "2008-01-24T05:51:54Z")

</div>

Hi there, I got 2 controllers : Products & ProductReviews. When they are nested, it looks ugly: /products/:product\_id/product\_reviews I want it looks better : /products/:product\_id/reviews So i wrote this route, bu…

---

## [Configure routes.rb](https://www.ruby-forum.com/t/configure-routes-rb/126997)

<div class="topic-metadata">

**Author:** [@TheDuckman](https://www.ruby-forum.com/u/TheDuckman)\
**Replies:** 3\
**Last updated:** [January 24, 2008, 5:46am UTC](https://www.ruby-forum.com/t/configure-routes-rb/126997 "2008-01-24T05:46:03Z")

</div>

Just wondering if this is possible and how to configure routes.rb Let’s say in routes.rb I have: map.resources :products this would allow me to use: new\_product\_path and the url would be /product/new edit\_product\_pa…

---

## [Switch database adapter](https://www.ruby-forum.com/t/switch-database-adapter/127003)

<div class="topic-metadata">

**Author:** [@jurincie](https://www.ruby-forum.com/u/jurincie)\
**Replies:** 3\
**Last updated:** [January 24, 2008, 4:44am UTC](https://www.ruby-forum.com/t/switch-database-adapter/127003 "2008-01-24T04:44:02Z")

</div>

newbie question: I am starting a new application via: $ rails myapp when I startup the webrick server via: $ server/script webrick and then goto http://localhost:3000/ and click on: “About your applications enviro…

---

## [Discussion on Frequently Asked Questions](https://www.ruby-forum.com/t/discussion-on-frequently-asked-questions/126996)

<div class="topic-metadata">

**Author:** [@jasonwold](https://www.ruby-forum.com/u/jasonwold)\
**Replies:** 0\
**Last updated:** [January 24, 2008, 12:39am UTC](https://www.ruby-forum.com/t/discussion-on-frequently-asked-questions/126996 "2008-01-24T00:39:36Z")

</div>

Another great editor that I have grown fond of when it comes to RoR development is e-texteditor. (http://e-texteditor.com) for the Windows environment. This editor is Mac’s TextMate equivalent. JW

---

## [Model Advice](https://www.ruby-forum.com/t/model-advice/126931)

<div class="topic-metadata">

**Author:** [@pete](https://www.ruby-forum.com/u/pete)\
**Replies:** 7\
**Last updated:** [January 24, 2008, 12:27am UTC](https://www.ruby-forum.com/t/model-advice/126931 "2008-01-24T00:27:19Z")

</div>

Hi- I have a single controller that’s associated with a single model. I would now like to create a whole bunch more models to use the same controller, is this a bad idea? If I use the scaffold generator (which takes…

---

## [Looking for a Junior Ruby Developer](https://www.ruby-forum.com/t/looking-for-a-junior-ruby-developer/126945)

<div class="topic-metadata">

**Author:** [@soumya](https://www.ruby-forum.com/u/soumya)\
**Replies:** 1\
**Last updated:** [January 24, 2008, 12:15am UTC](https://www.ruby-forum.com/t/looking-for-a-junior-ruby-developer/126945 "2008-01-24T00:15:02Z")

</div>

Hello, I am looking to recruit a junior level Ruby Developer for my company. Here is the link to the job descripton: If anyone is interested or knows someone who maybe interested, please contact me at removed\_email…

---

## [Am I Putting my Helper in the Wrong Place?](https://www.ruby-forum.com/t/am-i-putting-my-helper-in-the-wrong-place/126902)

<div class="topic-metadata">

**Author:** [@mgiorno](https://www.ruby-forum.com/u/mgiorno)\
**Replies:** 2\
**Last updated:** [January 24, 2008, 12:13am UTC](https://www.ruby-forum.com/t/am-i-putting-my-helper-in-the-wrong-place/126902 "2008-01-24T00:13:17Z")

</div>

Hi, This will probably be an easy one as I must be overlooking something obvious. I’m trying to set up a helper method that file find the first photo belonging to a product ( photo.sort should == 1). def product\_lis…

---

## [Reverse\_proxy\_fix experience](https://www.ruby-forum.com/t/reverse-proxy-fix-experience/126982)

<div class="topic-metadata">

**Author:** [@MrLipid](https://www.ruby-forum.com/u/MrLipid)\
**Replies:** 1\
**Last updated:** [January 23, 2008, 11:12pm UTC](https://www.ruby-forum.com/t/reverse-proxy-fix-experience/126982 "2008-01-23T23:12:48Z")

</div>

Anyone used reverse\_proxy\_fix? I’d like to be able to attach more than one Rails app on a subdomain and this looks like a reasonable approach. Read more here.

---

## [Adv. Rails Recipes - Problem w/ DRY forms](https://www.ruby-forum.com/t/adv-rails-recipes-problem-w-dry-forms/126969)

<div class="topic-metadata">

**Author:** [@newrubygirl](https://www.ruby-forum.com/u/newrubygirl)\
**Replies:** 1\
**Last updated:** [January 23, 2008, 10:11pm UTC](https://www.ruby-forum.com/t/adv-rails-recipes-problem-w-dry-forms/126969 "2008-01-23T22:11:07Z")

</div>

Hello. I’m following the example in the Advanced Rails Recipes book for Keeping Forms DRY and Flexible - #22. I think the last little hurdle that I have is applying my CSS style to the field labels. This is in the p…

---

## [Query](https://www.ruby-forum.com/t/query/126965)

<div class="topic-metadata">

**Author:** [@dotty](https://www.ruby-forum.com/u/dotty)\
**Replies:** 4\
**Last updated:** [January 23, 2008, 9:49pm UTC](https://www.ruby-forum.com/t/query/126965 "2008-01-23T21:49:02Z")

</div>

Hello everyone, I’m learning RoR by creating a small web app that I use for work. I have the main model with which is Project(s) which has many Task(s) (of course belongs to Project) then a few other controller/models…

---

## [Allow\_concurrency](https://www.ruby-forum.com/t/allow-concurrency/126957)

<div class="topic-metadata">

**Author:** [@Nicholas\_W](https://www.ruby-forum.com/u/Nicholas_W)\
**Replies:** 0\
**Last updated:** [January 23, 2008, 7:19pm UTC](https://www.ruby-forum.com/t/allow-concurrency/126957 "2008-01-23T19:19:49Z")

</div>

I see that allow\_concurrency is set to false by default. What are the risks and what can I eventually gain by setting it to true in terms of application speed ? TIA, ngw

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

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