# Rails

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

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

---

## [How I install RJS as plugin?](https://www.ruby-forum.com/t/how-i-install-rjs-as-plugin/88796)

<div class="topic-metadata">

**Author:** [@jack.tang](https://www.ruby-forum.com/u/jack.tang)\
**Replies:** 2\
**Last updated:** [March 14, 2007, 4:17pm UTC](https://www.ruby-forum.com/t/how-i-install-rjs-as-plugin/88796 "2007-03-14T16:17:12Z")

</div>

Hi list, How can I install RJS as plugin in my application, I followed the directions in http://www.codyfauser.com/2005/12/05/rjs-templates-plugin-subversion-repository. But it seems out-date. Can you tell me how to …

---

## [Get method names?](https://www.ruby-forum.com/t/get-method-names/88515)

<div class="topic-metadata">

**Author:** [@sineserz](https://www.ruby-forum.com/u/sineserz)\
**Replies:** 7\
**Last updated:** [March 14, 2007, 4:05pm UTC](https://www.ruby-forum.com/t/get-method-names/88515 "2007-03-14T16:05:52Z")

</div>

hi all I developed user management with roles and rights, what i need now is to build user management interface, to give roles and rights to user. Is it possible to call controller and get all methods in a controller? …

---

## [Net/http with rss](https://www.ruby-forum.com/t/net-http-with-rss/88791)

<div class="topic-metadata">

**Author:** [@chamnap](https://www.ruby-forum.com/u/chamnap)\
**Replies:** 2\
**Last updated:** [March 14, 2007, 3:48pm UTC](https://www.ruby-forum.com/t/net-http-with-rss/88791 "2007-03-14T15:48:03Z")

</div>

Hello I have one problem. I cannot use the library net/http to download the rss file. Why when I use it with rss file, it display nothing, but with other files, it works normally. Does anyone know how to do this? I do…

---

## [Open digg.com time-out](https://www.ruby-forum.com/t/open-digg-com-time-out/88617)

<div class="topic-metadata">

**Author:** [@rosoft2001](https://www.ruby-forum.com/u/rosoft2001)\
**Replies:** 2\
**Last updated:** [March 14, 2007, 3:25pm UTC](https://www.ruby-forum.com/t/open-digg-com-time-out/88617 "2007-03-14T15:25:05Z")

</div>

with require ‘open-uri’ I get a time-out error for: open(“http://www.digg.com”) and any other digg.com pages (like for Digg Top Stories) If I use any other url everything works fine. (and http://www.digg.com is ava…

---

## [Form with subforms](https://www.ruby-forum.com/t/form-with-subforms/88642)

<div class="topic-metadata">

**Author:** [@Sven\_Magnus](https://www.ruby-forum.com/u/Sven_Magnus)\
**Replies:** 7\
**Last updated:** [March 14, 2007, 3:17pm UTC](https://www.ruby-forum.com/t/form-with-subforms/88642 "2007-03-14T15:17:43Z")

</div>

Hi, I’m looking for a way to implement subforms. For example, a form where you can add clients, and at the same time enter contactpersons for this client. I’ve been looking around, reading ebooks, etc, but can’t seem…

---

## [FastCGI and Apache with MPM worker](https://www.ruby-forum.com/t/fastcgi-and-apache-with-mpm-worker/88800)

<div class="topic-metadata">

**Author:** [@HSWebers](https://www.ruby-forum.com/u/HSWebers)\
**Replies:** 0\
**Last updated:** [March 14, 2007, 2:58pm UTC](https://www.ruby-forum.com/t/fastcgi-and-apache-with-mpm-worker/88800 "2007-03-14T14:58:53Z")

</div>

Is this correct? FastCGI (mod\_fcgid) moves the work out of Apache, which makes it possible to use Apache 2.2 with MPM worker. Or are there other problems concerning thread-safeness? Thanks.

---

## [Model extension](https://www.ruby-forum.com/t/model-extension/88795)

<div class="topic-metadata">

**Author:** [@kyku](https://www.ruby-forum.com/u/kyku)\
**Replies:** 0\
**Last updated:** [March 14, 2007, 1:58pm UTC](https://www.ruby-forum.com/t/model-extension/88795 "2007-03-14T13:58:23Z")

</div>

Hello all, I’m working on optimising database accesses in my Rails application. I’m having a master model and a logging model. For each master there may be many logging objects, so the master has\_many logging objects …

---

## [Keeping search selections](https://www.ruby-forum.com/t/keeping-search-selections/88785)

<div class="topic-metadata">

**Author:** [@nyxx](https://www.ruby-forum.com/u/nyxx)\
**Replies:** 2\
**Last updated:** [March 14, 2007, 1:51pm UTC](https://www.ruby-forum.com/t/keeping-search-selections/88785 "2007-03-14T13:51:40Z")

</div>

Hey people, I was wondering if there’s an easy way in rails to have select dropdowns keep the option that was selected before a search is performed. According to someone I work with it is possible to do this in an eas…

---

## [Performance of Rails and mySQL](https://www.ruby-forum.com/t/performance-of-rails-and-mysql/88754)

<div class="topic-metadata">

**Author:** [@asa](https://www.ruby-forum.com/u/asa)\
**Replies:** 2\
**Last updated:** [March 14, 2007, 1:25pm UTC](https://www.ruby-forum.com/t/performance-of-rails-and-mysql/88754 "2007-03-14T13:25:42Z")

</div>

I am trying to figure out how best to optimize a rails view that I am serving from DreamHost. Development Log: Controler Load (18.165430)… SQL… Completed in 22.34315 (0 reqs/sec) | Rendering: 2.35181 (10%) | DB: 18.…

---

## [Using a lightbox as login form](https://www.ruby-forum.com/t/using-a-lightbox-as-login-form/88730)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [March 14, 2007, 12:45pm UTC](https://www.ruby-forum.com/t/using-a-lightbox-as-login-form/88730 "2007-03-14T12:45:26Z")

</div>

I’ve been trying to use a lightbox as a login for users. If the user successfully logs in, an RJS should be rendered to close the lightbox and update some elements on the page. If the login fails, the lightbox is upda…

---

## [Jobs Vs Opportunity - The Movie](https://www.ruby-forum.com/t/jobs-vs-opportunity-the-movie/102719)

<div class="topic-metadata">

**Author:** [@mike](https://www.ruby-forum.com/u/mike)\
**Replies:** 0\
**Last updated:** [March 14, 2007, 12:29pm UTC](https://www.ruby-forum.com/t/jobs-vs-opportunity-the-movie/102719 "2007-03-14T12:29:23Z")

</div>

Jobs Vs Opportunity - The Movie www.thewealththeory.com/beyond-freedom This is excellent! If you haven’t already watched it, check it out now.

---

## [New Site and Rails 2.0 Question](https://www.ruby-forum.com/t/new-site-and-rails-2-0-question/88775)

<div class="topic-metadata">

**Author:** [@sombrero](https://www.ruby-forum.com/u/sombrero)\
**Replies:** 3\
**Last updated:** [March 14, 2007, 11:33am UTC](https://www.ruby-forum.com/t/new-site-and-rails-2-0-question/88775 "2007-03-14T11:33:54Z")

</div>

Hi guys, We just built a new site on Ruby R. 1.1.2 (we tried Rails 1.2 but we couldn’t seem to get to use the session-anyone has any experience with this)? Would love to hear what you guys think. The site is called w…

---

## [Difference between \<%= end %\> \<%= end -%\>](https://www.ruby-forum.com/t/difference-between-end-end/88673)

<div class="topic-metadata">

**Author:** [@rita](https://www.ruby-forum.com/u/rita)\
**Replies:** 3\
**Last updated:** [March 14, 2007, 11:28am UTC](https://www.ruby-forum.com/t/difference-between-end-end/88673 "2007-03-14T11:28:44Z")

</div>

Hi, I am reffering to "Agile Web D. with Rails 2nd ed B1 21.pdf" As per this book, \<% 3.downto(1) do |count| -%\> \<%= count %\>...\<br /\> \<% end -%\> Merry Christmas! The minus sign in end will supress the newline. This …

---

## [How to specify a layout for an Action?](https://www.ruby-forum.com/t/how-to-specify-a-layout-for-an-action/88777)

<div class="topic-metadata">

**Author:** [@xain](https://www.ruby-forum.com/u/xain)\
**Replies:** 2\
**Last updated:** [March 14, 2007, 11:19am UTC](https://www.ruby-forum.com/t/how-to-specify-a-layout-for-an-action/88777 "2007-03-14T11:19:50Z")

</div>

I need Login action to use a special layout. How can I do that?

---

## [Question:"no route found to match"](https://www.ruby-forum.com/t/question-no-route-found-to-match/88692)

<div class="topic-metadata">

**Author:** [@zico](https://www.ruby-forum.com/u/zico)\
**Replies:** 5\
**Last updated:** [March 14, 2007, 11:09am UTC](https://www.ruby-forum.com/t/question-no-route-found-to-match/88692 "2007-03-14T11:09:11Z")

</div>

hi. in my routes.rb, I have such url map.file ':user/:file it works well with following url: jay/web jay/web2 but it encounters error with: jay/web2.0 it displays : no route found to match “/post/web2.o” with {…

---

## [Using helper methods in models?](https://www.ruby-forum.com/t/using-helper-methods-in-models/88720)

<div class="topic-metadata">

**Author:** [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Replies:** 1\
**Last updated:** [March 14, 2007, 11:02am UTC](https://www.ruby-forum.com/t/using-helper-methods-in-models/88720 "2007-03-14T11:02:08Z")

</div>

In my models I define the to\_s method so I can just do this in my views: “#{@some\_model}” The problem is when I want to format the output of attributes in that method. For example I want to format the attribute price …

---

## [Blocker bug in Rails](https://www.ruby-forum.com/t/blocker-bug-in-rails/88783)

<div class="topic-metadata">

**Author:** [@dvancoevorden](https://www.ruby-forum.com/u/dvancoevorden)\
**Replies:** 0\
**Last updated:** [March 14, 2007, 10:40am UTC](https://www.ruby-forum.com/t/blocker-bug-in-rails/88783 "2007-03-14T10:40:03Z")

</div>

Hi all For some time we’ve tried to upgrade our FIRMS application from Rails 1.1.6 to Rails 1.2.x. Our recent experience has been a lot of NameError’s as described in http://dev.rubyonrails.org/ticket/6720 http://de…

---

## [RoR Newbie Needs Helps With Webcams](https://www.ruby-forum.com/t/ror-newbie-needs-helps-with-webcams/88746)

<div class="topic-metadata">

**Author:** [@DLo](https://www.ruby-forum.com/u/DLo)\
**Replies:** 1\
**Last updated:** [March 14, 2007, 10:37am UTC](https://www.ruby-forum.com/t/ror-newbie-needs-helps-with-webcams/88746 "2007-03-14T10:37:02Z")

</div>

I’m looking to do a project where a webcam will be connected to a computer, take a snapshot of an item and then store the picture either in a Postgres DB or locally on the server. Has anyone done this before? Where c…

---

## [FILE\_FIELD issue](https://www.ruby-forum.com/t/file-field-issue/88709)

<div class="topic-metadata">

**Author:** [@KSRajesh](https://www.ruby-forum.com/u/KSRajesh)\
**Replies:** 1\
**Last updated:** [March 14, 2007, 8:39am UTC](https://www.ruby-forum.com/t/file-field-issue/88709 "2007-03-14T08:39:46Z")

</div>

My rhtml looks like this (extract) File \<%= file\_field(:document, 'file') %\> Description: \<%= text\_area(:document, 'description', {:rows=\>8, :cols=\>40}) %\> Category: \<%= select(:document…

---

## [Serving images with send\_file performance issue](https://www.ruby-forum.com/t/serving-images-with-send-file-performance-issue/88656)

<div class="topic-metadata">

**Author:** [@robbie](https://www.ruby-forum.com/u/robbie)\
**Replies:** 4\
**Last updated:** [March 14, 2007, 8:25am UTC](https://www.ruby-forum.com/t/serving-images-with-send-file-performance-issue/88656 "2007-03-14T08:25:45Z")

</div>

I’ve got an app serving images on the filesystem from outside the /public directory so I can authenticate users first. I’m serving the images and thumbnails up using send\_file, (1 large 60k image and 9 6k thumbnails) …

---

## [Capistrano Deploy: svn: Error in child process: exec of 'ssh](https://www.ruby-forum.com/t/capistrano-deploy-svn-error-in-child-process-exec-of-ssh/88221)

<div class="topic-metadata">

**Author:** [@vixiom](https://www.ruby-forum.com/u/vixiom)\
**Replies:** 1\
**Last updated:** [March 14, 2007, 8:09am UTC](https://www.ruby-forum.com/t/capistrano-deploy-svn-error-in-child-process-exec-of-ssh/88221 "2007-03-14T08:09:43Z")

</div>

I have rails/svn/capistrano setup and when I ‘cap setup’ it runs fine but ‘cap deploy’ gives this error cap deploy executing task executing task update \*\* transaction: start executing task update\_code querying lat…

---

## [Block comment in rhtml file](https://www.ruby-forum.com/t/block-comment-in-rhtml-file/88529)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [March 14, 2007, 5:26am UTC](https://www.ruby-forum.com/t/block-comment-in-rhtml-file/88529 "2007-03-14T05:26:33Z")

</div>

Hi all, Is there tags for block comment in rhtml, so that I can comment out a block of code (mainly for testing/debuging)? html comment can't prevent ERb code from processed \<%# text inside become comment %\> only com…

---

## [Rails 1.1.6 and Ruby 1.8.6](https://www.ruby-forum.com/t/rails-1-1-6-and-ruby-1-8-6/88761)

<div class="topic-metadata">

**Author:** [@michael.dauria](https://www.ruby-forum.com/u/michael.dauria)\
**Replies:** 2\
**Last updated:** [March 14, 2007, 5:22am UTC](https://www.ruby-forum.com/t/rails-1-1-6-and-ruby-1-8-6/88761 "2007-03-14T05:22:33Z")

</div>

Does anyone know if i may run into an issue if i upgrade my current Ruby from 1.8.5 to 1.8.6 with Rails 1.1.6? I have a project that i am not ready to bring up to Rails 1.2.x… I tried looking over the changelogs but …

---

## [Has\_and\_belongs\_to\_many -- has anyone made this easier yet?](https://www.ruby-forum.com/t/has-and-belongs-to-many-has-anyone-made-this-easier-yet/88759)

<div class="topic-metadata">

**Author:** [@Tyler\_MacDonald](https://www.ruby-forum.com/u/Tyler_MacDonald)\
**Replies:** 2\
**Last updated:** [March 14, 2007, 4:42am UTC](https://www.ruby-forum.com/t/has-and-belongs-to-many-has-anyone-made-this-easier-yet/88759 "2007-03-14T04:42:29Z")

</div>

Not that this isnt REALLY EASY already… it is!!! I was just wondering if someone had already waved their magic wand on this problem. :slight\_smile: I’ve got users and groups… both has\_and\_belongs\_to\_many eachother. I …

---

## [Mongrel on Windows Server 2003 Results in 500 Errors](https://www.ruby-forum.com/t/mongrel-on-windows-server-2003-results-in-500-errors/88609)

<div class="topic-metadata">

**Author:** [@Codemonk](https://www.ruby-forum.com/u/Codemonk)\
**Replies:** 2\
**Last updated:** [March 14, 2007, 4:00am UTC](https://www.ruby-forum.com/t/mongrel-on-windows-server-2003-results-in-500-errors/88609 "2007-03-14T04:00:25Z")

</div>

Ok, here is the situation: I need to run a mongrel server on windows server 2003. The application it will be serving is an application that is frozen to rails 1.1.6. We’re using mongrel 1.0 as the web server. Every 1…

---

## [Hash from Flex](https://www.ruby-forum.com/t/hash-from-flex/88559)

<div class="topic-metadata">

**Author:** [@kvark](https://www.ruby-forum.com/u/kvark)\
**Replies:** 3\
**Last updated:** [March 14, 2007, 3:40am UTC](https://www.ruby-forum.com/t/hash-from-flex/88559 "2007-03-14T03:40:22Z")

</div>

Hi, Im new to rails and trying to pass a hash, from my flex application to my rails app. My flex application calls a rails service def updateScorecards(id, scorecard) puts “im in update scorecards2” puts pp scorec…

---

## [Problem with link\_to](https://www.ruby-forum.com/t/problem-with-link-to/88731)

<div class="topic-metadata">

**Author:** [@zavulon](https://www.ruby-forum.com/u/zavulon)\
**Replies:** 9\
**Last updated:** [March 14, 2007, 3:31am UTC](https://www.ruby-forum.com/t/problem-with-link-to/88731 "2007-03-14T03:31:39Z")

</div>

Hi all, I’m modifying the HTML design to fit into my Rails app, and have the following problem… In HTML, there’s a code that says: Some text stuff here I’m trying to convert it to Rails code, and have the following…

---

## [Looking for Reliable RoR Hosting](https://www.ruby-forum.com/t/looking-for-reliable-ror-hosting/88753)

<div class="topic-metadata">

**Author:** [@twerth](https://www.ruby-forum.com/u/twerth)\
**Replies:** 7\
**Last updated:** [March 14, 2007, 3:20am UTC](https://www.ruby-forum.com/t/looking-for-reliable-ror-hosting/88753 "2007-03-14T03:20:19Z")

</div>

We’re currently hosting on Media Temple, but their Grid Servers are letting us down. We’ve had an average of two calls per week to them w/ reliability issues - they just keep going down for 20-30 minutes at a time. S…

---

## [Wizard pages](https://www.ruby-forum.com/t/wizard-pages/88743)

<div class="topic-metadata">

**Author:** [@ginger72](https://www.ruby-forum.com/u/ginger72)\
**Replies:** 1\
**Last updated:** [March 14, 2007, 2:44am UTC](https://www.ruby-forum.com/t/wizard-pages/88743 "2007-03-14T02:44:17Z")

</div>

Hi, I am implementing a wizard entry form and ran across the job board on 37signals, which I think could come in quite handy. The URLs are encoded the following way: We Work Remotely: Remote jobs in design, programmi…

---

## [How to filter by image files in file chooser](https://www.ruby-forum.com/t/how-to-filter-by-image-files-in-file-chooser/88752)

<div class="topic-metadata">

**Author:** [@dan\_kuwachi](https://www.ruby-forum.com/u/dan_kuwachi)\
**Replies:** 0\
**Last updated:** [March 14, 2007, 1:17am UTC](https://www.ruby-forum.com/t/how-to-filter-by-image-files-in-file-chooser/88752 "2007-03-14T01:17:10Z")

</div>

Currently i’m uploading files and i have a file chooser… \<%= file\_field(‘upload’, ‘filename’) %\> Is it possible when the file chooser comes up to filter by image type? Because I only want the users to upload, jpgs, g…

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

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