# Rails

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

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

---

## [Validates\_length\_of INCONSISTENT BEHAVIOR](https://www.ruby-forum.com/t/validates-length-of-inconsistent-behavior/107590)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 2\
**Last updated:** [June 24, 2007, 7:38am UTC](https://www.ruby-forum.com/t/validates-length-of-inconsistent-behavior/107590 "2007-06-24T07:38:39Z")

</div>

In one app (Beast app example) the User class has a login validation : validates\_length\_of :login, :minimum =\> 2 the users table has been created … with one record login ‘kadoudal’ create\_table “users”, :forc…

---

## [Action mailer details](https://www.ruby-forum.com/t/action-mailer-details/107624)

<div class="topic-metadata">

**Author:** [@raj\_ma](https://www.ruby-forum.com/u/raj_ma)\
**Replies:** 0\
**Last updated:** [June 24, 2007, 6:51am UTC](https://www.ruby-forum.com/t/action-mailer-details/107624 "2007-06-24T06:51:40Z")

</div>

I am not aware waht details go here and where to obtain them, please help ActionMailer config: ActionMailer::Base.delivery\_method = :smtp ActionMailer::Base.server\_settings = { :address =\> “your.smtp.server”, :port …

---

## [Rails:freeze:gems breaks rails/info/properties](https://www.ruby-forum.com/t/railsgems-breaks-rails-info-properties/107612)

<div class="topic-metadata">

**Author:** [@desertpenguin](https://www.ruby-forum.com/u/desertpenguin)\
**Replies:** 3\
**Last updated:** [June 24, 2007, 6:34am UTC](https://www.ruby-forum.com/t/railsgems-breaks-rails-info-properties/107612 "2007-06-24T06:34:42Z")

</div>

For some reason, running rake rails:freeze:gems breaks the default info page at rails/info/properties. rake unfreeze\_rails fixes the problem. Any ideas what causes this? (I am considering freezing my app before I dep…

---

## [RoR Forum Application](https://www.ruby-forum.com/t/ror-forum-application/107556)

<div class="topic-metadata">

**Author:** [@randall](https://www.ruby-forum.com/u/randall)\
**Replies:** 3\
**Last updated:** [June 24, 2007, 4:04am UTC](https://www.ruby-forum.com/t/ror-forum-application/107556 "2007-06-24T04:04:58Z")

</div>

Hello, I am working on a Ruby on Rails application that will have a forum and am looking for some guidance. I am currently able to add topics to forum sections or groups. Where I am struggling is to in the ability …

---

## [Passing multiple parameters within a form](https://www.ruby-forum.com/t/passing-multiple-parameters-within-a-form/107548)

<div class="topic-metadata">

**Author:** [@richard](https://www.ruby-forum.com/u/richard)\
**Replies:** 6\
**Last updated:** [June 24, 2007, 4:03am UTC](https://www.ruby-forum.com/t/passing-multiple-parameters-within-a-form/107548 "2007-06-24T04:03:18Z")

</div>

I’m trying to pass multiple parameters to the resulting action called by a form. I know you can do: \<%= form\_tag( { :action =\> ‘search’, :id =\> params\[:id\]}, :method =\> “GET” ) %\> To pass the id value, but if I add …

---

## [Nested rest URL =\> passing param from select](https://www.ruby-forum.com/t/nested-rest-url-passing-param-from-select/107515)

<div class="topic-metadata">

**Author:** [@temesta](https://www.ruby-forum.com/u/temesta)\
**Replies:** 1\
**Last updated:** [June 24, 2007, 3:33am UTC](https://www.ruby-forum.com/t/nested-rest-url-passing-param-from-select/107515 "2007-06-24T03:33:36Z")

</div>

Hi, I’m trying to create a select box with an onchange event. When onchange is fired, I want to redirect to a nested rest url. The problem is that I don’t know how to pass the selected value to the url: Any suggest…

---

## [Optional Image Upload](https://www.ruby-forum.com/t/optional-image-upload/107613)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [June 24, 2007, 2:25am UTC](https://www.ruby-forum.com/t/optional-image-upload/107613 "2007-06-24T02:25:41Z")

</div>

Attachment\_fu is making an assumption that image will always be uploaded. This is causing problem in my application where the field is optional. Does anyone know how to make the image upload optional without blowing u…

---

## [Validation email for new users... thoughts on best way?](https://www.ruby-forum.com/t/validation-email-for-new-users-thoughts-on-best-way/107593)

<div class="topic-metadata">

**Author:** [@jz176](https://www.ruby-forum.com/u/jz176)\
**Replies:** 1\
**Last updated:** [June 24, 2007, 2:03am UTC](https://www.ruby-forum.com/t/validation-email-for-new-users-thoughts-on-best-way/107593 "2007-06-24T02:03:01Z")

</div>

im looking to implement validation emails for new users i.e the basic you create an account and must reply to the email we sent you to confirm… after some searching im not finding any solid information as to the gene…

---

## [Form\_for for multiple methods](https://www.ruby-forum.com/t/form-for-for-multiple-methods/107539)

<div class="topic-metadata">

**Author:** [@freewolf](https://www.ruby-forum.com/u/freewolf)\
**Replies:** 1\
**Last updated:** [June 24, 2007, 1:54am UTC](https://www.ruby-forum.com/t/form-for-for-multiple-methods/107539 "2007-06-24T01:54:51Z")

</div>

Is there a way to set up a form\_for helper to work with multiple methods. I want to submit the form data into two different tables. Blessed Be Phillip

---

## [Need some help with mongrel and performance problems](https://www.ruby-forum.com/t/need-some-help-with-mongrel-and-performance-problems/107569)

<div class="topic-metadata">

**Author:** [@jochen\_kaechelin](https://www.ruby-forum.com/u/jochen_kaechelin)\
**Replies:** 4\
**Last updated:** [June 23, 2007, 11:15pm UTC](https://www.ruby-forum.com/t/need-some-help-with-mongrel-and-performance-problems/107569 "2007-06-23T23:15:51Z")

</div>

I run a Debian/Etch witch Apache 2.2.3 and self installed Rails 1.2.3. apache2 configuration: \<Proxy balancer://beta\> BalancerMember http://192.168.178.200:8100 BalancerMember http://192.168.178.200:8101 BalancerMem…

---

## [Scriptacolous autocomplete mysterious indents?](https://www.ruby-forum.com/t/scriptacolous-autocomplete-mysterious-indents/107604)

<div class="topic-metadata">

**Author:** [@mixplate](https://www.ruby-forum.com/u/mixplate)\
**Replies:** 0\
**Last updated:** [June 23, 2007, 10:51pm UTC](https://www.ruby-forum.com/t/scriptacolous-autocomplete-mysterious-indents/107604 "2007-06-23T22:51:51Z")

</div>

cant seem to figure why when i select a item from a drop down list using auto complete, the text gets added to the text field with an indent. anyone ever experience this?

---

## [Tracking link clicks](https://www.ruby-forum.com/t/tracking-link-clicks/107603)

<div class="topic-metadata">

**Author:** [@bxsitecover](https://www.ruby-forum.com/u/bxsitecover)\
**Replies:** 0\
**Last updated:** [June 23, 2007, 10:41pm UTC](https://www.ruby-forum.com/t/tracking-link-clicks/107603 "2007-06-23T22:41:49Z")

</div>

Can anyone point me to a tutorial about this? Or if you know how I would be greatful if you let me know. Thanks

---

## [What about symfony](https://www.ruby-forum.com/t/what-about-symfony/107598)

<div class="topic-metadata">

**Author:** [@Thierry](https://www.ruby-forum.com/u/Thierry)\
**Replies:** 1\
**Last updated:** [June 23, 2007, 10:33pm UTC](https://www.ruby-forum.com/t/what-about-symfony/107598 "2007-06-23T22:33:48Z")

</div>

what about symfony i work with php and i really like symfony is there any reason for me to switch to ruby on rails they look pretty similar to me… (im posting here to get a very biased view and if anyone knows it sh…

---

## [How do I set up a test without using fixture in this case](https://www.ruby-forum.com/t/how-do-i-set-up-a-test-without-using-fixture-in-this-case/107597)

<div class="topic-metadata">

**Author:** [@nelson](https://www.ruby-forum.com/u/nelson)\
**Replies:** 1\
**Last updated:** [June 23, 2007, 10:24pm UTC](https://www.ruby-forum.com/t/how-do-i-set-up-a-test-without-using-fixture-in-this-case/107597 "2007-06-23T22:24:46Z")

</div>

Let’s say I have 3 records in SampleModel: id: 1 created\_at: 5/3/2007 id: 2 created\_at: 6/3/2007 id: 3 created\_at: 7/3/2007 I have a controller action that should only return records that were created after 6/3/2…

---

## [Production vs. staging servers](https://www.ruby-forum.com/t/production-vs-staging-servers/107562)

<div class="topic-metadata">

**Author:** [@Faisal\_N\_Jawdat](https://www.ruby-forum.com/u/Faisal_N_Jawdat)\
**Replies:** 4\
**Last updated:** [June 23, 2007, 10:14pm UTC](https://www.ruby-forum.com/t/production-vs-staging-servers/107562 "2007-06-23T22:14:45Z")

</div>

In Rails I have the development/test/production split, but… From an operational point of view I want a production server and a staging server, with the staging server mirroring the setup of the production server as mu…

---

## [Cleaning up a UGLY method](https://www.ruby-forum.com/t/cleaning-up-a-ugly-method/107596)

<div class="topic-metadata">

**Author:** [@gnuvince](https://www.ruby-forum.com/u/gnuvince)\
**Replies:** 1\
**Last updated:** [June 23, 2007, 9:52pm UTC](https://www.ruby-forum.com/t/cleaning-up-a-ugly-method/107596 "2007-06-23T21:52:42Z")

</div>

I’ve been playing with a horrid method that I am using to sort my Projects by the average importance of their tasks. it hits the database quite a bit and is very ugly… does anyone have any suggestions? rails is still …

---

## [Getting the timezone (the GMT offset) from DateTime](https://www.ruby-forum.com/t/getting-the-timezone-the-gmt-offset-from-datetime/106997)

<div class="topic-metadata">

**Author:** [@ramontayag](https://www.ruby-forum.com/u/ramontayag)\
**Replies:** 4\
**Last updated:** [June 23, 2007, 8:06pm UTC](https://www.ruby-forum.com/t/getting-the-timezone-the-gmt-offset-from-datetime/106997 "2007-06-23T20:06:25Z")

</div>

Hi everyone! How do you get the timezone (in the format: +0800) from a time object? Please see Parked at Loopia Thank you, Ramon T.

---

## [Viewing some links!](https://www.ruby-forum.com/t/viewing-some-links/107586)

<div class="topic-metadata">

**Author:** [@feduz](https://www.ruby-forum.com/u/feduz)\
**Replies:** 2\
**Last updated:** [June 23, 2007, 7:19pm UTC](https://www.ruby-forum.com/t/viewing-some-links/107586 "2007-06-23T19:19:11Z")

</div>

Hello everyone hope u r doing greate… Im a almost three weeks old in RoR and ive a simple problem which i could find an answer for! Ill tell first a bit about the project im trying to do: Im making a tool for a Team …

---

## [Attribute alias](https://www.ruby-forum.com/t/attribute-alias/107576)

<div class="topic-metadata">

**Author:** [@jonas](https://www.ruby-forum.com/u/jonas)\
**Replies:** 5\
**Last updated:** [June 23, 2007, 5:51pm UTC](https://www.ruby-forum.com/t/attribute-alias/107576 "2007-06-23T17:51:15Z")

</div>

Is it possible to use attribute aliases? I got an attribute called “user\_name”, a plugin uses the attribute “login” instead. Can I make “login” an alias for “user\_name”?

---

## [Caching my Flickr photos](https://www.ruby-forum.com/t/caching-my-flickr-photos/107581)

<div class="topic-metadata">

**Author:** [@JolSSSS](https://www.ruby-forum.com/u/JolSSSS)\
**Replies:** 0\
**Last updated:** [June 23, 2007, 5:43pm UTC](https://www.ruby-forum.com/t/caching-my-flickr-photos/107581 "2007-06-23T17:43:13Z")

</div>

Hi, I wonder if it is possible to cache my flickr pictures fetched with the API (rflickr)? I want to show my albums first, and then when I click an album I want to do a render partial and show the photos of that part…

---

## [Help with View/Model](https://www.ruby-forum.com/t/help-with-view-model/107564)

<div class="topic-metadata">

**Author:** [@bxsitecover](https://www.ruby-forum.com/u/bxsitecover)\
**Replies:** 1\
**Last updated:** [June 23, 2007, 5:01pm UTC](https://www.ruby-forum.com/t/help-with-view-model/107564 "2007-06-23T17:01:07Z")

</div>

Say you have a model and you scaffold it. You can now create, update, delete, show your item. Say I have a limitless amount of records to display. I want to keep it like that in the backend, but On my frontend I wo…

---

## [Nested Dynamic Routes](https://www.ruby-forum.com/t/nested-dynamic-routes/107489)

<div class="topic-metadata">

**Author:** [@liquid](https://www.ruby-forum.com/u/liquid)\
**Replies:** 7\
**Last updated:** [June 23, 2007, 4:28pm UTC](https://www.ruby-forum.com/t/nested-dynamic-routes/107489 "2007-06-23T16:28:06Z")

</div>

Hi, I have a url scheme where I would like to include a public and private interface, and I have a nested resource for it. The two schemes are /my/books/pages /:username/books/pages I would like to sperate the book…

---

## [Raising a more approprriate error when rescuing RoutingError](https://www.ruby-forum.com/t/raising-a-more-approprriate-error-when-rescuing-routingerror/107573)

<div class="topic-metadata">

**Author:** [@kampers](https://www.ruby-forum.com/u/kampers)\
**Replies:** 0\
**Last updated:** [June 23, 2007, 3:10pm UTC](https://www.ruby-forum.com/t/raising-a-more-approprriate-error-when-rescuing-routingerror/107573 "2007-06-23T15:10:01Z")

</div>

Hello, I’d like to rescue ActionController::RoutingError and, depending on context, raise a more appropriate error. A slightly contrived example: I’ve been seeing a lot of requests for .php files. There’s no PHP on m…

---

## [Links broken in Email, encode or other alternatives?](https://www.ruby-forum.com/t/links-broken-in-email-encode-or-other-alternatives/107459)

<div class="topic-metadata">

**Author:** [@rafael](https://www.ruby-forum.com/u/rafael)\
**Replies:** 3\
**Last updated:** [June 23, 2007, 2:50pm UTC](https://www.ruby-forum.com/t/links-broken-in-email-encode-or-other-alternatives/107459 "2007-06-23T14:50:56Z")

</div>

Hi everybody, may sombody has a solution for this problem? When I send links like that: http://www.example.org/user/welcome?user\[id\]=22&key=2a965027574e6bd0418f5b9b72c875a49d464fc5 This Link is not clickable, the lin…

---

## [Restful Polymorphic Post Path](https://www.ruby-forum.com/t/restful-polymorphic-post-path/107553)

<div class="topic-metadata">

**Author:** [@steve\_odom](https://www.ruby-forum.com/u/steve_odom)\
**Replies:** 1\
**Last updated:** [June 23, 2007, 1:58pm UTC](https://www.ruby-forum.com/t/restful-polymorphic-post-path/107553 "2007-06-23T13:58:50Z")

</div>

Hi, I’m trying to create a link\_to\_remote whereby it takes me to the CREATE action of a polymorphic model (points). Ex: \<%= link\_to\_remote “up”, :url =\> comment\_points\_path(item), :method =\> :post %\> That takes me t…

---

## [\[ANN\] SugarStats.com Launched - Online Diabetes Management s](https://www.ruby-forum.com/t/ann-sugarstats-com-launched-online-diabetes-management-s/107419)

<div class="topic-metadata">

**Author:** [@marstoni](https://www.ruby-forum.com/u/marstoni)\
**Replies:** 6\
**Last updated:** [June 23, 2007, 1:16pm UTC](https://www.ruby-forum.com/t/ann-sugarstats-com-launched-online-diabetes-management-s/107419 "2007-06-23T13:16:28Z")

</div>

Hey all, Just wanted to announce after months of development and beta testing we’re launching our new Rails based app for diabetics: http://www.sugarstats.com It’s definitely not you’re “typical” Rails based Web 2.0 …

---

## [Bottom Up ORM / scaffolding](https://www.ruby-forum.com/t/bottom-up-orm-scaffolding/166834)

<div class="topic-metadata">

**Author:** [@ElKlaaso](https://www.ruby-forum.com/u/ElKlaaso)\
**Replies:** 3\
**Last updated:** [June 23, 2007, 12:39pm UTC](https://www.ruby-forum.com/t/bottom-up-orm-scaffolding/166834 "2007-06-23T12:39:41Z")

</div>

Hi, I am a total newbie to ruby on rails, but have been investigating it and ruby and ruby on rails seem to have a LOT of things i really like about a programming language… liked most of it… except 1 thing… And that …

---

## [Validation Through Multiple Models from one Form](https://www.ruby-forum.com/t/validation-through-multiple-models-from-one-form/107438)

<div class="topic-metadata">

**Author:** [@freewolf](https://www.ruby-forum.com/u/freewolf)\
**Replies:** 1\
**Last updated:** [June 23, 2007, 9:19am UTC](https://www.ruby-forum.com/t/validation-through-multiple-models-from-one-form/107438 "2007-06-23T09:19:23Z")

</div>

Hey All, I have a form that submits data to multiple models. I have class Man \< ActiveRecord::Base has\_many :notes has\_many :contacts validates\_associated :contacts, :notes validates\_presence\_of :first\_name v…

---

## [Display/View result of user sql stmt after find\_by\_sql](https://www.ruby-forum.com/t/display-view-result-of-user-sql-stmt-after-find-by-sql/103783)

<div class="topic-metadata">

**Author:** [@kiran](https://www.ruby-forum.com/u/kiran)\
**Replies:** 6\
**Last updated:** [June 23, 2007, 8:04am UTC](https://www.ruby-forum.com/t/display-view-result-of-user-sql-stmt-after-find-by-sql/103783 "2007-06-23T08:04:20Z")

</div>

I am trying to support free-form SQL in an internal website and just take the string and pass it to find\_by\_sql. It works fine. But, to show the result I am using the attributes method of the ActiveRecord:Base class …

---

## [Rfacebook Functional Testing](https://www.ruby-forum.com/t/rfacebook-functional-testing/107560)

<div class="topic-metadata">

**Author:** [@guest](https://www.ruby-forum.com/u/guest)\
**Replies:** 0\
**Last updated:** [June 23, 2007, 6:58am UTC](https://www.ruby-forum.com/t/rfacebook-functional-testing/107560 "2007-06-23T06:58:15Z")

</div>

Hey, Does anyone know the best way to simulate a facebook login from a funcational test? I have the require\_facebook\_login in a before\_filter in my app controller, and this cause a 302 error when I run any functional…

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

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