# Rails

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

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

---

## [True expression still evaluates false](https://www.ruby-forum.com/t/true-expression-still-evaluates-false/114626)

<div class="topic-metadata">

**Author:** [@chris](https://www.ruby-forum.com/u/chris)\
**Replies:** 1\
**Last updated:** [September 19, 2007, 7:01am UTC](https://www.ruby-forum.com/t/true-expression-still-evaluates-false/114626 "2007-09-19T07:01:36Z")

</div>

What am I missing about this? I have an expression, which looks to me to be true, but it still evaluates to false. Here’s the code: def self.get\_stars\_from\_id\_array( ids, ruleset\_id ) templates = Array.new ids.each…

---

## [Who has attachment fu?](https://www.ruby-forum.com/t/who-has-attachment-fu/114396)

<div class="topic-metadata">

**Author:** [@pieterjongsma](https://www.ruby-forum.com/u/pieterjongsma)\
**Replies:** 2\
**Last updated:** [September 19, 2007, 6:25am UTC](https://www.ruby-forum.com/t/who-has-attachment-fu/114396 "2007-09-19T06:25:35Z")

</div>

Hi, I tried to install attachment\_fu yesterday. However, I kept getting the error ‘Plugin not found’. So I ask you, do you have the attachment\_fu files or do you know an alternate download location for them? Thanks …

---

## [Seeking help for small open source project (flash cards, lan](https://www.ruby-forum.com/t/seeking-help-for-small-open-source-project-flash-cards-lan/114950)

<div class="topic-metadata">

**Author:** [@flight16](https://www.ruby-forum.com/u/flight16)\
**Replies:** 0\
**Last updated:** [September 19, 2007, 5:19am UTC](https://www.ruby-forum.com/t/seeking-help-for-small-open-source-project-flash-cards-lan/114950 "2007-09-19T05:19:31Z")

</div>

Basically… an ultra-flexible web-based PC/mobile flash card application with spaced repetition and rich history. Check out the link below to understand why I think this requires a new project, along with a brief synp…

---

## [Link\_to method of different controller](https://www.ruby-forum.com/t/link-to-method-of-different-controller/114948)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 3\
**Last updated:** [September 19, 2007, 4:43am UTC](https://www.ruby-forum.com/t/link-to-method-of-different-controller/114948 "2007-09-19T04:43:29Z")

</div>

I want to link to a method of a different controller. I thought I new how to do this but the code that I have is not working: \<%= link\_to ‘Welcome Page’, { :action =\> ‘index’, :controller =\> ‘music\_controller’ } %\> A…

---

## [Future of Ruby, Interpreters, Threads, Concurrency, VMS (JRu](https://www.ruby-forum.com/t/future-of-ruby-interpreters-threads-concurrency-vms-jru/114945)

<div class="topic-metadata">

**Author:** [@bgrant](https://www.ruby-forum.com/u/bgrant)\
**Replies:** 0\
**Last updated:** [September 19, 2007, 3:43am UTC](https://www.ruby-forum.com/t/future-of-ruby-interpreters-threads-concurrency-vms-jru/114945 "2007-09-19T03:43:24Z")

</div>

I recently published an article to my blog that my be of interest to those having problems with concurrency in their Ruby and Rails applications. The article url: http://www.rubyonrailsblog.com/2007/9/19/rubys-future…

---

## [Obscure Migration fixture difficulty](https://www.ruby-forum.com/t/obscure-migration-fixture-difficulty/114930)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 2\
**Last updated:** [September 19, 2007, 2:57am UTC](https://www.ruby-forum.com/t/obscure-migration-fixture-difficulty/114930 "2007-09-19T02:57:45Z")

</div>

Hi all. I would very much appreciate it if someone could point out to me what these two migration/fixture entries produce a different time display in the default Rails list action. Fixture YML entries: —\> entity\_99…

---

## [Css and js in plugins](https://www.ruby-forum.com/t/css-and-js-in-plugins/114931)

<div class="topic-metadata">

**Author:** [@giorgio](https://www.ruby-forum.com/u/giorgio)\
**Replies:** 1\
**Last updated:** [September 19, 2007, 1:56am UTC](https://www.ruby-forum.com/t/css-and-js-in-plugins/114931 "2007-09-19T01:56:18Z")

</div>

Hi, I want to package some stuff as a plugin for convenience and it works fine. The only trouble is that there is some javascript and a css that are required and I have been copying them manually to the public folder…

---

## [Public rSpec Code](https://www.ruby-forum.com/t/public-rspec-code/114937)

<div class="topic-metadata">

**Author:** [@knb](https://www.ruby-forum.com/u/knb)\
**Replies:** 2\
**Last updated:** [September 19, 2007, 1:08am UTC](https://www.ruby-forum.com/t/public-rspec-code/114937 "2007-09-19T01:08:12Z")

</div>

Does anyone know of any publicly available rails projects fully tested with rSpec? I’d love to have a look at some solid test code written with the rSpec framework. kb

---

## [Nginx not listening on 80](https://www.ruby-forum.com/t/nginx-not-listening-on-80/114934)

<div class="topic-metadata">

**Author:** [@bakki](https://www.ruby-forum.com/u/bakki)\
**Replies:** 2\
**Last updated:** [September 19, 2007, 12:53am UTC](https://www.ruby-forum.com/t/nginx-not-listening-on-80/114934 "2007-09-19T00:53:11Z")

</div>

I compiled nginx on Debian Etch with: ./configure –sbin-path=/usr/local/sbin/nginx –conf-path=/etc/nginx/nginx.conf –pid-path=/var/run/nginx/nginx.pid –error-log-path=/var/log/nginx/error.log –http-log-path=/v…

---

## [Script/console is hanging, Observer issue...?](https://www.ruby-forum.com/t/script-console-is-hanging-observer-issue/114919)

<div class="topic-metadata">

**Author:** [@tonyfromky](https://www.ruby-forum.com/u/tonyfromky)\
**Replies:** 1\
**Last updated:** [September 19, 2007, 12:53am UTC](https://www.ruby-forum.com/t/script-console-is-hanging-observer-issue/114919 "2007-09-19T00:53:01Z")

</div>

After weeks of working fine, yesterday script/console started hanging upon startup, right after printing “Loading Development Environment.” I waited several minutes and control-C’d, and got this: ^C/usr/local/lib/ruby…

---

## [ANN: \[Yet Another \] AJAXy Petstore](https://www.ruby-forum.com/t/ann-yet-another-ajaxy-petstore/114740)

<div class="topic-metadata">

**Author:** [@alexeyv](https://www.ruby-forum.com/u/alexeyv)\
**Replies:** 1\
**Last updated:** [September 18, 2007, 11:56pm UTC](https://www.ruby-forum.com/t/ann-yet-another-ajaxy-petstore/114740 "2007-09-18T23:56:07Z")

</div>

Hi all, It’s obvious (isn’t it?) that the world needed another Petstore.If it’s not, then let’s just say that for some esoteric reasons (to do with training and the JRuby project), some people in ThoughtWorks decided…

---

## [rSpec / Nested Routes / Mocks](https://www.ruby-forum.com/t/rspec-nested-routes-mocks/114936)

<div class="topic-metadata">

**Author:** [@knb](https://www.ruby-forum.com/u/knb)\
**Replies:** 2\
**Last updated:** [September 18, 2007, 11:55pm UTC](https://www.ruby-forum.com/t/rspec-nested-routes-mocks/114936 "2007-09-18T23:55:07Z")

</div>

I’m having a terrible time trying to test a nested route with rSpec. I can’t seem to tell rSpec to expect the call @item.user. The following error message plagues me not matter how I try to fuss with the mock: Spec:…

---

## [Help with multiple returns in SOAP](https://www.ruby-forum.com/t/help-with-multiple-returns-in-soap/114938)

<div class="topic-metadata">

**Author:** [@Tomasz\_Tomczyk](https://www.ruby-forum.com/u/Tomasz_Tomczyk)\
**Replies:** 0\
**Last updated:** [September 18, 2007, 11:40pm UTC](https://www.ruby-forum.com/t/help-with-multiple-returns-in-soap/114938 "2007-09-18T23:40:05Z")

</div>

Can anyone tell me how to push ActionWebService to create proper WSDL for multiple returns? My code looks like this: class UserApi \< ActionWebService::API::Base api\_method :getuserinfo, :expects =\> \[{:username =\> :s…

---

## [Select tag and fieldWithErrors](https://www.ruby-forum.com/t/select-tag-and-fieldwitherrors/87696)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [September 18, 2007, 11:37pm UTC](https://www.ruby-forum.com/t/select-tag-and-fieldwitherrors/87696 "2007-09-18T23:37:12Z")

</div>

I’ve been trying to work out the rails way of handling this. I have my form which contains: \<%= select(:user, :state\_id, @states) %\> The only problem is that the fieldWithErrors div won’t get added if nothing is sele…

---

## [Where would i put a home-made exception class in rails?](https://www.ruby-forum.com/t/where-would-i-put-a-home-made-exception-class-in-rails/114914)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 2\
**Last updated:** [September 18, 2007, 11:09pm UTC](https://www.ruby-forum.com/t/where-would-i-put-a-home-made-exception-class-in-rails/114914 "2007-09-18T23:09:05Z")

</div>

I’m a bit unsure about the structure of rails…if i make my own class for something, eg an exception class extending StandardError, where does that class live? thanks max

---

## [Help with RESTful named url options](https://www.ruby-forum.com/t/help-with-restful-named-url-options/114932)

<div class="topic-metadata">

**Author:** [@ryan](https://www.ruby-forum.com/u/ryan)\
**Replies:** 0\
**Last updated:** [September 18, 2007, 10:53pm UTC](https://www.ruby-forum.com/t/help-with-restful-named-url-options/114932 "2007-09-18T22:53:58Z")

</div>

I’ve found quite a few posts on the subject, but no satisfactory answers. Maybe Rails just doesn’t support this yet. How do I create a url with a named RESTful route that also has parameters? I want to write this: l…

---

## [\[ANN\] Sphincter 1.1.0 Released](https://www.ruby-forum.com/t/ann-sphincter-1-1-0-released/112002)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 6\
**Last updated:** [September 18, 2007, 10:23pm UTC](https://www.ruby-forum.com/t/ann-sphincter-1-1-0-released/112002 "2007-09-18T22:23:52Z")

</div>

Sphincter version 1.1.0 has been released! http://seattlerb.org/Sphincter Sphincter uses Dmytro Shteflyuk’s sphinx Ruby API and automatic configuration to make totally rad ActiveRecord searching. Well, you still ha…

---

## [Setting default value in text\_field/password\_field](https://www.ruby-forum.com/t/setting-default-value-in-text-field-password-field/114917)

<div class="topic-metadata">

**Author:** [@will](https://www.ruby-forum.com/u/will)\
**Replies:** 2\
**Last updated:** [September 18, 2007, 10:19pm UTC](https://www.ruby-forum.com/t/setting-default-value-in-text-field-password-field/114917 "2007-09-18T22:19:52Z")

</div>

I am trying to set a default value in a text\_field form. I know how to do this in html, but is there a way to do this with form\_for Here is my code \<% form\_for :user do |f| -%\> First Name \<%= f.text\_field :firstna…

---

## [Where is wrong with contoller test?](https://www.ruby-forum.com/t/where-is-wrong-with-contoller-test/114615)

<div class="topic-metadata">

**Author:** [@OnRails](https://www.ruby-forum.com/u/OnRails)\
**Replies:** 5\
**Last updated:** [September 18, 2007, 10:13pm UTC](https://www.ruby-forum.com/t/where-is-wrong-with-contoller-test/114615 "2007-09-18T22:13:51Z")

</div>

Hi, everybody! I got a strange question when I did a controller test as below On controller.rb: def send\_welcome\_message(person) some codes; end the controller\_test.rb: def test\_send\_welcome\_message post :send\_we…

---

## [Auto-incrementing column](https://www.ruby-forum.com/t/auto-incrementing-column/114886)

<div class="topic-metadata">

**Author:** [@JonathanB](https://www.ruby-forum.com/u/JonathanB)\
**Replies:** 2\
**Last updated:** [September 18, 2007, 9:03pm UTC](https://www.ruby-forum.com/t/auto-incrementing-column/114886 "2007-09-18T21:03:42Z")

</div>

Ok, I have an table column that needs to auto-increment, but isn’t the primary key (although I guess it could be). The format for the column is “SR001234” and it needs to autoincrement like so: SR001234 SR001235 SR0…

---

## [Sanitize IN Controller](https://www.ruby-forum.com/t/sanitize-in-controller/114897)

<div class="topic-metadata">

**Author:** [@mindtonic](https://www.ruby-forum.com/u/mindtonic)\
**Replies:** 4\
**Last updated:** [September 18, 2007, 8:57pm UTC](https://www.ruby-forum.com/t/sanitize-in-controller/114897 "2007-09-18T20:57:41Z")

</div>

Does anyone have a suggestion for a good method to Sanitize user input before it is used by a controller? I am aware of the sanitize method, but it is part of ActionView and not available to my controllers. This seem…

---

## [Nginx-Mongrel almost working; just need a little help](https://www.ruby-forum.com/t/nginx-mongrel-almost-working-just-need-a-little-help/114908)

<div class="topic-metadata">

**Author:** [@eeby](https://www.ruby-forum.com/u/eeby)\
**Replies:** 2\
**Last updated:** [September 18, 2007, 8:45pm UTC](https://www.ruby-forum.com/t/nginx-mongrel-almost-working-just-need-a-little-help/114908 "2007-09-18T20:45:35Z")

</div>

Hello Rails experts. I’m trying to set up Nginx with Mongrel cluster for my Rails app. I got Nginx and Mongrel cluster to each work. I got Nginx to serve static files no problem. It displays the Rails intro page, for …

---

## [Edge Rails documentation?](https://www.ruby-forum.com/t/edge-rails-documentation/114856)

<div class="topic-metadata">

**Author:** [@dparkmit](https://www.ruby-forum.com/u/dparkmit)\
**Replies:** 4\
**Last updated:** [September 18, 2007, 8:42pm UTC](https://www.ruby-forum.com/t/edge-rails-documentation/114856 "2007-09-18T20:42:37Z")

</div>

Hi All, I just started using Edge Rails. Where can I find the documentation for it? I know that there are some new features and changed features. Would love to learn more. Thanks!

---

## [Where is the interpreter (in Instant Rails)?](https://www.ruby-forum.com/t/where-is-the-interpreter-in-instant-rails/114850)

<div class="topic-metadata">

**Author:** [@rex](https://www.ruby-forum.com/u/rex)\
**Replies:** 1\
**Last updated:** [September 18, 2007, 8:38pm UTC](https://www.ruby-forum.com/t/where-is-the-interpreter-in-instant-rails/114850 "2007-09-18T20:38:34Z")

</div>

Hello, I just installed Instant Rails on my Windows XP box. I would like to test out the Ruby interpreter on the command line. However, when I run C:\\InstantRails\\ruby\\bin\\ruby.exe from the Windows command prompt, it …

---

## [Re: Custom Validation](https://www.ruby-forum.com/t/re-custom-validation/114920)

<div class="topic-metadata">

**Author:** [@mslagell](https://www.ruby-forum.com/u/mslagell)\
**Replies:** 0\
**Last updated:** [September 18, 2007, 8:29pm UTC](https://www.ruby-forum.com/t/re-custom-validation/114920 "2007-09-18T20:29:30Z")

</div>

Thanks Dan. This is just what I was looking for! ----- Original Message ---- From: Dan F. removed\_email\_address@domain.invalid To: removed\_email\_address@domain.invalid Sent: Tuesday, September 18, 2007 2:13:18 PM S…

---

## [Why Ruby has 2 APIs(Ruby Core API&Ruby Standard API)?](https://www.ruby-forum.com/t/why-ruby-has-2-apis-ruby-core-api-ruby-standard-api/114913)

<div class="topic-metadata">

**Author:** [@rubynut](https://www.ruby-forum.com/u/rubynut)\
**Replies:** 3\
**Last updated:** [September 18, 2007, 8:26pm UTC](https://www.ruby-forum.com/t/why-ruby-has-2-apis-ruby-core-api-ruby-standard-api/114913 "2007-09-18T20:26:30Z")

</div>

first question as titled. otherwise, what’s their relationship?? i had confuse about it. and what’s the building package and class (do need to “require”, like java.lang.\* in Java )? how do i know it?

---

## [Custom Validation](https://www.ruby-forum.com/t/custom-validation/114915)

<div class="topic-metadata">

**Author:** [@mslagell](https://www.ruby-forum.com/u/mslagell)\
**Replies:** 1\
**Last updated:** [September 18, 2007, 8:14pm UTC](https://www.ruby-forum.com/t/custom-validation/114915 "2007-09-18T20:14:28Z")

</div>

Hello all, I’m trying to figure out how to validate a zip code in my user model. I can validate it’s all nuneric and five digits but I would like to validate it against a zip code table. I know I need to create a zip…

---

## [\[PATCH\] Automatically set :only\_path option to false when :h](https://www.ruby-forum.com/t/patch-automatically-set-only-path-option-to-false-when-h/114912)

<div class="topic-metadata">

**Author:** [@kayros](https://www.ruby-forum.com/u/kayros)\
**Replies:** 0\
**Last updated:** [September 18, 2007, 7:17pm UTC](https://www.ruby-forum.com/t/patch-automatically-set-only-path-option-to-false-when-h/114912 "2007-09-18T19:17:15Z")

</div>

Hello, I’ve just posted a patch to the Trac. It intends to simplify the use of url helpers such as link\_to when you use the :host option. When you’re using a helper such as link\_to and that you provide a :host option…

---

## [Help with MySQL and YAML](https://www.ruby-forum.com/t/help-with-mysql-and-yaml/114909)

<div class="topic-metadata">

**Author:** [@rubynut](https://www.ruby-forum.com/u/rubynut)\
**Replies:** 1\
**Last updated:** [September 18, 2007, 7:11pm UTC](https://www.ruby-forum.com/t/help-with-mysql-and-yaml/114909 "2007-09-18T19:11:14Z")

</div>

i have a MySQL instance running on port 3307, how to change the default port setting??in database.yml? and where to get the all setting options(host, password, adapter etc.) in database.yml?is there a cocument?

---

## [Integrating a CMS with an Existing Rails App. . .?](https://www.ruby-forum.com/t/integrating-a-cms-with-an-existing-rails-app/113388)

<div class="topic-metadata">

**Author:** [@gberz3](https://www.ruby-forum.com/u/gberz3)\
**Replies:** 7\
**Last updated:** [September 18, 2007, 6:58pm UTC](https://www.ruby-forum.com/t/integrating-a-cms-with-an-existing-rails-app/113388 "2007-09-18T18:58:11Z")

</div>

Hi All, I’m looking for the best way to integrate a CMS with an existing rails site. Basically I want to leave all of the existing database driven content untouched and ONLY MANAGE STATIC PAGES with a CMS. Is it po…

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

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