# Rails

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

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

---

## [REST path methods problem](https://www.ruby-forum.com/t/rest-path-methods-problem/93194)

<div class="topic-metadata">

**Author:** [@coolermaster](https://www.ruby-forum.com/u/coolermaster)\
**Replies:** 1\
**Last updated:** [April 29, 2007, 12:59am UTC](https://www.ruby-forum.com/t/rest-path-methods-problem/93194 "2007-04-29T00:59:58Z")

</div>

When I run: script/generate scaffold\_resource Tranche I get the following error: Showing app/views/tranches/index.rhtml where line #24 raised: undefined local variable or method \`new\_tranches\_path’ for #\<#\<Class: 0x…

---

## [Cannot install plugins](https://www.ruby-forum.com/t/cannot-install-plugins/93190)

<div class="topic-metadata">

**Author:** [@Will\_Merrell](https://www.ruby-forum.com/u/Will_Merrell)\
**Replies:** 0\
**Last updated:** [April 28, 2007, 11:50pm UTC](https://www.ruby-forum.com/t/cannot-install-plugins/93190 "2007-04-28T23:50:54Z")

</div>

I used to be able to install plugins, but for some reason the plugins system has stopped working for me. If I try to install something like comatose, I get the following: C:\\rails\\BAct\>ruby script/plugin source http:…

---

## [Simple if then question?](https://www.ruby-forum.com/t/simple-if-then-question/93184)

<div class="topic-metadata">

**Author:** [@NeoWip](https://www.ruby-forum.com/u/NeoWip)\
**Replies:** 3\
**Last updated:** [April 28, 2007, 11:36pm UTC](https://www.ruby-forum.com/t/simple-if-then-question/93184 "2007-04-28T23:36:53Z")

</div>

I need to do a if field value = 1 then method but I cannot seem to find the right way /sytax for it. I have a rule table which contains a selector\_id field. If set to 1 then do A else do B. No matter what type of syn…

---

## [WEBrick can't find new controllers](https://www.ruby-forum.com/t/webrick-cant-find-new-controllers/93187)

<div class="topic-metadata">

**Author:** [@mobill76](https://www.ruby-forum.com/u/mobill76)\
**Replies:** 0\
**Last updated:** [April 28, 2007, 9:58pm UTC](https://www.ruby-forum.com/t/webrick-cant-find-new-controllers/93187 "2007-04-28T21:58:47Z")

</div>

I’m sure this is something simple in my configuration. Simple for you, I hope. I’m trying to learn Rails via online tutorials. I run into a problem when I create a new controller ($ script/generate controller MyTest). …

---

## [Script/plugin and http-proxy with Authentication](https://www.ruby-forum.com/t/script-plugin-and-http-proxy-with-authentication/93181)

<div class="topic-metadata">

**Author:** [@k9ert](https://www.ruby-forum.com/u/k9ert)\
**Replies:** 0\
**Last updated:** [April 28, 2007, 8:28pm UTC](https://www.ruby-forum.com/t/script-plugin-and-http-proxy-with-authentication/93181 "2007-04-28T20:28:41Z")

</div>

Hi group, my gem ist working like a charm with http\_proxy (and friends) environment-variables as described here http://blog.pomozov.info/posts/the-end-of-gem-vs-proxy-war.html But I have a problem (on windows) with …

---

## [Automatic mail validation - is it possible?](https://www.ruby-forum.com/t/automatic-mail-validation-is-it-possible/93178)

<div class="topic-metadata">

**Author:** [@running\_idiot](https://www.ruby-forum.com/u/running_idiot)\
**Replies:** 1\
**Last updated:** [April 28, 2007, 8:03pm UTC](https://www.ruby-forum.com/t/automatic-mail-validation-is-it-possible/93178 "2007-04-28T20:03:40Z")

</div>

I have got one “small” question. I want to make a registration form, when new user would enter his mail and the mail would be validated before registration - as usual on many websites. And RoR has some “easy-way” for …

---

## [What does this mean?](https://www.ruby-forum.com/t/what-does-this-mean/92712)

<div class="topic-metadata">

**Author:** [@Magicloud](https://www.ruby-forum.com/u/Magicloud)\
**Replies:** 6\
**Last updated:** [April 28, 2007, 7:44pm UTC](https://www.ruby-forum.com/t/what-does-this-mean/92712 "2007-04-28T19:44:39Z")

</div>

Holds the template files for layouts to be used with views. This models the common header/footer method of wrapping views. In your views, define a layout using the layout :default and create a file named default.rhtm…

---

## [Popup hell - submit & close](https://www.ruby-forum.com/t/popup-hell-submit-close/93135)

<div class="topic-metadata">

**Author:** [@miked](https://www.ruby-forum.com/u/miked)\
**Replies:** 3\
**Last updated:** [April 28, 2007, 7:11pm UTC](https://www.ruby-forum.com/t/popup-hell-submit-close/93135 "2007-04-28T19:11:37Z")

</div>

Hi: I’ve created a popup I’m desperately trying to close. It’s just not working. I’ve got a simple form\_for with a submit tag. I put in an onclick method and that’s not doing it. Can anyone help? Here’s the submit…

---

## [Time zone mapping from TimeZone to TZInfo::Timezone](https://www.ruby-forum.com/t/time-zone-mapping-from-timezone-to-tzinfo-timezone/92461)

<div class="topic-metadata">

**Author:** [@morten](https://www.ruby-forum.com/u/morten)\
**Replies:** 1\
**Last updated:** [April 28, 2007, 6:05pm UTC](https://www.ruby-forum.com/t/time-zone-mapping-from-timezone-to-tzinfo-timezone/92461 "2007-04-28T18:05:32Z")

</div>

Hi. Using this: \<%= time\_zone\_select("account", "time\_zone" %\> I get a list of time zones options, like eg.: \<option value="Athens"\>(GMT+02:00) Athens\</option\> But as I’m using TZInfo::Timezone, I need to map ‘Athens…

---

## [Join Thetis - Groupware more than just a Groupware -](https://www.ruby-forum.com/t/join-thetis-groupware-more-than-just-a-groupware/93169)

<div class="topic-metadata">

**Author:** [@Shintaro](https://www.ruby-forum.com/u/Shintaro)\
**Replies:** 0\
**Last updated:** [April 28, 2007, 5:05pm UTC](https://www.ruby-forum.com/t/join-thetis-groupware-more-than-just-a-groupware/93169 "2007-04-28T17:05:28Z")

</div>

Hi, I’m developing a groupware “Thetis” by RonR, and released it as an Open-Source Software under New BSD Lisence. In it implemented almost all basic elements in the way as simply as possible. Please evaluate or take…

---

## [Text not wrapping](https://www.ruby-forum.com/t/text-not-wrapping/93168)

<div class="topic-metadata">

**Author:** [@miked](https://www.ruby-forum.com/u/miked)\
**Replies:** 1\
**Last updated:** [April 28, 2007, 5:00pm UTC](https://www.ruby-forum.com/t/text-not-wrapping/93168 "2007-04-28T17:00:02Z")

</div>

Hi: I’ve got a small message application I’m trying to build. For some reason, the message itself isn’t wrapping. I’ve tried a bunch of things I’m using a mix of CSS and one table at the end. For whatever reason, …

---

## [Where or where has my session gone?](https://www.ruby-forum.com/t/where-or-where-has-my-session-gone/93166)

<div class="topic-metadata">

**Author:** [@jseidel](https://www.ruby-forum.com/u/jseidel)\
**Replies:** 0\
**Last updated:** [April 28, 2007, 4:36pm UTC](https://www.ruby-forum.com/t/where-or-where-has-my-session-gone/93166 "2007-04-28T16:36:26Z")

</div>

I’m implementing the Encrypter class as described in Agile Web Development with Rails, and I’m having some problems getting it to work. 1 I need to get to the session where I’ve stored some related key data, but I ke…

---

## [Attachment\_fu - propagating attributes to thumbnails](https://www.ruby-forum.com/t/attachment-fu-propagating-attributes-to-thumbnails/92299)

<div class="topic-metadata">

**Author:** [@jstepper](https://www.ruby-forum.com/u/jstepper)\
**Replies:** 1\
**Last updated:** [April 28, 2007, 3:57pm UTC](https://www.ruby-forum.com/t/attachment-fu-propagating-attributes-to-thumbnails/92299 "2007-04-28T15:57:23Z")

</div>

I have a model using attachment\_fu (via has\_attachment) and I’m creating thumbnails for the attached images. I have an extra field ‘foo’ that I’m validating on create with validates\_presence\_of :foo. One problem aris…

---

## [Render\_to\_string in a model?](https://www.ruby-forum.com/t/render-to-string-in-a-model/92498)

<div class="topic-metadata">

**Author:** [@glenn](https://www.ruby-forum.com/u/glenn)\
**Replies:** 4\
**Last updated:** [April 28, 2007, 3:49pm UTC](https://www.ruby-forum.com/t/render-to-string-in-a-model/92498 "2007-04-28T15:49:23Z")

</div>

I have a batch job that will call script/runner, I would like in this call to create html formated email and save it to the database. This is easy enough in a controller with yournewhost.email = render\_to\_string :acti…

---

## [Help me on Ruby VS PHP comparison](https://www.ruby-forum.com/t/help-me-on-ruby-vs-php-comparison/93164)

<div class="topic-metadata">

**Author:** [@Sense\_and\_Value](https://www.ruby-forum.com/u/Sense_and_Value)\
**Replies:** 0\
**Last updated:** [April 28, 2007, 3:42pm UTC](https://www.ruby-forum.com/t/help-me-on-ruby-vs-php-comparison/93164 "2007-04-28T15:42:29Z")

</div>

As ip’m only entreprener and not develoer, i’ll request you some help on the following subject : Ruby VS PHP for my new web start-up. I’m compiling all information there, you can add your contribution and i’ll edit as…

---

## [\[ANN\] Radiant CMS 0.6 - Lapidary](https://www.ruby-forum.com/t/ann-radiant-cms-0-6-lapidary/102759)

<div class="topic-metadata">

**Author:** [@John\_WSLong](https://www.ruby-forum.com/u/John_WSLong)\
**Replies:** 6\
**Last updated:** [April 28, 2007, 3:29pm UTC](https://www.ruby-forum.com/t/ann-radiant-cms-0-6-lapidary/102759 "2007-04-28T15:29:20Z")

</div>

Looks like it’s time for another release of Radiant: http://radiantcms.org/download/ This is the first serious release of Radiant in well over 6 months. The big news in this release is that we have created a first-cla…

---

## [Capistrano w/ Plesk 8\* VPS setup problem](https://www.ruby-forum.com/t/capistrano-w-plesk-8-vps-setup-problem/93141)

<div class="topic-metadata">

**Author:** [@3nd3r](https://www.ruby-forum.com/u/3nd3r)\
**Replies:** 2\
**Last updated:** [April 28, 2007, 3:07pm UTC](https://www.ruby-forum.com/t/capistrano-w-plesk-8-vps-setup-problem/93141 "2007-04-28T15:07:34Z")

</div>

Good Day (for some : T) Here is my deploy.rb file configurations: set :application, “beeew” set :repository, “http://svn.beeew.com/trunk” set :domain, “pazap.com” set :deploy\_to, “/var/www/vhosts/beeew.com/httpdocs/…

---

## [Sending the selected option of a select via ajax](https://www.ruby-forum.com/t/sending-the-selected-option-of-a-select-via-ajax/93159)

<div class="topic-metadata">

**Author:** [@Pascal\_F](https://www.ruby-forum.com/u/Pascal_F)\
**Replies:** 0\
**Last updated:** [April 28, 2007, 2:35pm UTC](https://www.ruby-forum.com/t/sending-the-selected-option-of-a-select-via-ajax/93159 "2007-04-28T14:35:13Z")

</div>

Hi, i want to create a form which contains 3 select-boxes which content depend on each other. i created the first select box: \<% for project in @projects %\> \<%=project.name-%\> \<% end %\> the :id =\> ??? sh…

---

## [Help, do i need to validates\_length\_of these?](https://www.ruby-forum.com/t/help-do-i-need-to-validates-length-of-these/93131)

<div class="topic-metadata">

**Author:** [@mike](https://www.ruby-forum.com/u/mike)\
**Replies:** 3\
**Last updated:** [April 28, 2007, 1:30pm UTC](https://www.ruby-forum.com/t/help-do-i-need-to-validates-length-of-these/93131 "2007-04-28T13:30:49Z")

</div>

Hi, i’m using postgres and rails, and i’ve some fields, like first name, last name, etc, i’ve set it with the migration to a maximum of 50 chars, and i’ve limited in the view the possibility to insert more than 50 cha…

---

## [Called javascript method and ruby method with 1 button?](https://www.ruby-forum.com/t/called-javascript-method-and-ruby-method-with-1-button/92645)

<div class="topic-metadata">

**Author:** [@lalala](https://www.ruby-forum.com/u/lalala)\
**Replies:** 2\
**Last updated:** [April 28, 2007, 1:26pm UTC](https://www.ruby-forum.com/t/called-javascript-method-and-ruby-method-with-1-button/92645 "2007-04-28T13:26:10Z")

</div>

Hi I create a javascript method in rhtml with and I would like to have 1 button that will call my controller method and js() at the same time, so user will only need to click 1 button instead of 2 Is this possible …

---

## [What does option\_tags = nil mean?](https://www.ruby-forum.com/t/what-does-option-tags-nil-mean/93154)

<div class="topic-metadata">

**Author:** [@pingu](https://www.ruby-forum.com/u/pingu)\
**Replies:** 2\
**Last updated:** [April 28, 2007, 1:04pm UTC](https://www.ruby-forum.com/t/what-does-option-tags-nil-mean/93154 "2007-04-28T13:04:22Z")

</div>

Hi, in the context of: select\_tag(name, option\_tags = nil, options = {}) what does option\_tags = nil mean?, specifically setting it to nil, does it men its optional? Thanks

---

## [Best practice question: which way to run rails on webserver?](https://www.ruby-forum.com/t/best-practice-question-which-way-to-run-rails-on-webserver/93149)

<div class="topic-metadata">

**Author:** [@pgundlach](https://www.ruby-forum.com/u/pgundlach)\
**Replies:** 0\
**Last updated:** [April 28, 2007, 10:44am UTC](https://www.ruby-forum.com/t/best-practice-question-which-way-to-run-rails-on-webserver/93149 "2007-04-28T10:44:15Z")

</div>

Hi there, I’ve been using rails for some time on my webserver. First I used lighttpd with fastcgi and now I am using scgi. Both with an apache 2 as a main server using (mod-?)proxy to forward requests to the lighttpd…

---

## [Validation: :if =\> ... does not work](https://www.ruby-forum.com/t/validation-if-does-not-work/93150)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 0\
**Last updated:** [April 28, 2007, 10:24am UTC](https://www.ruby-forum.com/t/validation-if-does-not-work/93150 "2007-04-28T10:24:50Z")

</div>

Hi all I’ve got the following model: class Link \< ActiveRecord::Base attr\_accessible :url, :name, :description, :editors\_pick, :link\_category\_ids validates\_presence\_of :url validates\_uniqueness\_of :url validate…

---

## [WEBrick::HTTPStatus::LengthRequired Error](https://www.ruby-forum.com/t/webrick-lengthrequired-error/93147)

<div class="topic-metadata">

**Author:** [@yottameter](https://www.ruby-forum.com/u/yottameter)\
**Replies:** 0\
**Last updated:** [April 28, 2007, 8:56am UTC](https://www.ruby-forum.com/t/webrick-lengthrequired-error/93147 "2007-04-28T08:56:52Z")

</div>

\[2007-04-27 23:47:14\] ERROR HTTPRequest#fixup: WEBrick::HTTPStatus::LengthRequired occured. Anyone have any idea what is going on here?

---

## [A possible bug in Has\_many :through using :soucre](https://www.ruby-forum.com/t/a-possible-bug-in-has-many-through-using-soucre/84898)

<div class="topic-metadata">

**Author:** [@kuma](https://www.ruby-forum.com/u/kuma)\
**Replies:** 5\
**Last updated:** [April 28, 2007, 7:38am UTC](https://www.ruby-forum.com/t/a-possible-bug-in-has-many-through-using-soucre/84898 "2007-04-28T07:38:48Z")

</div>

I’ve been stumped on this for a few days and I’m not sure if it’s an error on my end or an actual bug. I have a system where I have workshops and users. Workshops have students, presenters, and troubleshooters. I…

---

## [Unit and functional tests for acts\_as\_authenticated](https://www.ruby-forum.com/t/unit-and-functional-tests-for-acts-as-authenticated/93145)

<div class="topic-metadata">

**Author:** [@yottameter](https://www.ruby-forum.com/u/yottameter)\
**Replies:** 0\
**Last updated:** [April 28, 2007, 6:09am UTC](https://www.ruby-forum.com/t/unit-and-functional-tests-for-acts-as-authenticated/93145 "2007-04-28T06:09:45Z")

</div>

I’ve installed the plugin acts\_as\_authenticated, and the document indicates that unit and functional tests are included, but I don’t see any. I’m able to login via test, and create my own, but I’d like the stock test…

---

## [Code autogenerating](https://www.ruby-forum.com/t/code-autogenerating/93125)

<div class="topic-metadata">

**Author:** [@madiba](https://www.ruby-forum.com/u/madiba)\
**Replies:** 1\
**Last updated:** [April 28, 2007, 4:33am UTC](https://www.ruby-forum.com/t/code-autogenerating/93125 "2007-04-28T04:33:40Z")

</div>

I’ve seen in my code lots of repeating code connected with view(new/edit/ delete. I’d like to write an autogenerator of code (I’m going to base on acts and scaffolding code). Where in rails directory hierarchy should…

---

## [Remote\_form\_for works only in IE, not Firefox](https://www.ruby-forum.com/t/remote-form-for-works-only-in-ie-not-firefox/93027)

<div class="topic-metadata">

**Author:** [@nuno](https://www.ruby-forum.com/u/nuno)\
**Replies:** 8\
**Last updated:** [April 28, 2007, 12:58am UTC](https://www.ruby-forum.com/t/remote-form-for-works-only-in-ie-not-firefox/93027 "2007-04-28T00:58:47Z")

</div>

Hi, I’ve a strange problem - When the params content of the controller is different (and incomplete) when posted by Firefox. \<% remote\_form\_for(:article, @article, :url =\> { :action =\> :edit }, :html =\> {:method=\> :PO…

---

## [Add ":complete =\> "eval(...)" in form\_remote\_tag](https://www.ruby-forum.com/t/add-complete-eval-in-form-remote-tag/93118)

<div class="topic-metadata">

**Author:** [@anakintang](https://www.ruby-forum.com/u/anakintang)\
**Replies:** 3\
**Last updated:** [April 28, 2007, 12:32am UTC](https://www.ruby-forum.com/t/add-complete-eval-in-form-remote-tag/93118 "2007-04-28T00:32:33Z")

</div>

All, I was trying to use “form\_remote\_tag” to submit a form Ajax and also I want some javascript code generated by the target view being executed when the Ajax call is complete. I used following code \<%= form\_remote\_…

---

## [Attachment\_fu content\_type problem](https://www.ruby-forum.com/t/attachment-fu-content-type-problem/93130)

<div class="topic-metadata">

**Author:** [@mslagell](https://www.ruby-forum.com/u/mslagell)\
**Replies:** 0\
**Last updated:** [April 27, 2007, 11:59pm UTC](https://www.ruby-forum.com/t/attachment-fu-content-type-problem/93130 "2007-04-27T23:59:27Z")

</div>

Hi all… Admittedly I’m new to Rails and trying to find my way but I’m having an issue with uploading documents with attachment\_fu. I have a form where I’m uploading multiple attachments (using AJAX to add file\_filed\_…

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

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