# Rails

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

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

---

## [Requesting a Special Section for "Merb" on this Forum](https://www.ruby-forum.com/t/requesting-a-special-section-for-merb-on-this-forum/149480)

<div class="topic-metadata">

**Author:** [@webreservoir](https://www.ruby-forum.com/u/webreservoir)\
**Replies:** 1\
**Last updated:** [September 25, 2008, 10:24am UTC](https://www.ruby-forum.com/t/requesting-a-special-section-for-merb-on-this-forum/149480 "2008-09-25T10:24:19Z")

</div>

Hi, Its nice to have different sections mentioned below on this forum. (1) Ruby (2) JRuby (3) IronRuby (3) Ruby on Rails (5) RForum (6) Mongrel (7) FxRuby (8) Etc… I Request for a special section for " Merb " H…

---

## [Are all gems freezable?](https://www.ruby-forum.com/t/are-all-gems-freezable/149482)

<div class="topic-metadata">

**Author:** [@ramontayag](https://www.ruby-forum.com/u/ramontayag)\
**Replies:** 0\
**Last updated:** [September 25, 2008, 10:16am UTC](https://www.ruby-forum.com/t/are-all-gems-freezable/149482 "2008-09-25T10:16:05Z")

</div>

Hi everyone, Are all gems freezable? I’ve got all the gems my application requires in my vendor folder. However, when I start it in a computer without some of those gems installed, I get errors. The error goes away…

---

## [Question about exception](https://www.ruby-forum.com/t/question-about-exception/149483)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 1\
**Last updated:** [September 25, 2008, 10:16am UTC](https://www.ruby-forum.com/t/question-about-exception/149483 "2008-09-25T10:16:05Z")

</div>

Hi In the controller I have the function def convert\_sd\_ticket\_to\_incident ServiceDeskTicket.close\_ticket(sd\_id,created\_by\_id,modified\_by\_id) Incident.convert\_sd\_ticket\_to\_incident(sd\_id,created\_by\_id,modified\_by\_id) …

---

## [How to create a Light Box Albumn](https://www.ruby-forum.com/t/how-to-create-a-light-box-albumn/149388)

<div class="topic-metadata">

**Author:** [@NormBoy](https://www.ruby-forum.com/u/NormBoy)\
**Replies:** 2\
**Last updated:** [September 25, 2008, 10:13am UTC](https://www.ruby-forum.com/t/how-to-create-a-light-box-albumn/149388 "2008-09-25T10:13:44Z")

</div>

Hi I am using lightbox on my first rails project. I have got lightbox working via the plugin. It show ups individual pictures with the background effect. The problem I am having is creating a albumn of pictures so i…

---

## [MYSQL GEM not found at rubyforge](https://www.ruby-forum.com/t/mysql-gem-not-found-at-rubyforge/149417)

<div class="topic-metadata">

**Author:** [@temesta](https://www.ruby-forum.com/u/temesta)\
**Replies:** 2\
**Last updated:** [September 25, 2008, 9:45am UTC](https://www.ruby-forum.com/t/mysql-gem-not-found-at-rubyforge/149417 "2008-09-25T09:45:34Z")

</div>

Hi, I just noticed this warning: WARNING: You’re using the Ruby-based MySQL library that ships with Rails. This library is not suited for production. Please install the C-based MySQL library instead (gem install mysq…

---

## [Thetis ver.0.9.4\_5 \<Open-source Groupware/CMS\> Released!](https://www.ruby-forum.com/t/thetis-ver-0-9-4-5-open-source-groupware-cms-released/149479)

<div class="topic-metadata">

**Author:** [@Shintaro](https://www.ruby-forum.com/u/Shintaro)\
**Replies:** 0\
**Last updated:** [September 25, 2008, 8:48am UTC](https://www.ruby-forum.com/t/thetis-ver-0-9-4-5-open-source-groupware-cms-released/149479 "2008-09-25T08:48:05Z")

</div>

Hi all, We have just released Thetis ver.0.9.4\_5, the newest version of the world strongest Open-source Groupware/CMS based on RoR. Of course it is absolute FREE, under the terms of Modified BSD License. Try our …

---

## [Threading in Rails](https://www.ruby-forum.com/t/threading-in-rails/149399)

<div class="topic-metadata">

**Author:** [@Jaikishan\_J](https://www.ruby-forum.com/u/Jaikishan_J)\
**Replies:** 6\
**Last updated:** [September 25, 2008, 8:46am UTC](https://www.ruby-forum.com/t/threading-in-rails/149399 "2008-09-25T08:46:19Z")

</div>

Hello, I was wondering if someone can point me how to invoke threads from an action in a controller. Basically, in an action, I want to do some tasks asynchronously for which user need not wait. – Thanks, Jaikisha…

---

## [Generating ROR application through sql server](https://www.ruby-forum.com/t/generating-ror-application-through-sql-server/146787)

<div class="topic-metadata">

**Author:** [@hema\_mca](https://www.ruby-forum.com/u/hema_mca)\
**Replies:** 3\
**Last updated:** [September 25, 2008, 7:27am UTC](https://www.ruby-forum.com/t/generating-ror-application-through-sql-server/146787 "2008-09-25T07:27:13Z")

</div>

Hi! I am working on Linux…(UBUNTU) I connected to the sql server(remote machine) through FreeTDS and i generated the ROR application for example in my database i have the table Elections… i done as rails my\_app th…

---

## [Simple\_captcha does not work in test environment](https://www.ruby-forum.com/t/simple-captcha-does-not-work-in-test-environment/196814)

<div class="topic-metadata">

**Author:** [@sadathiru](https://www.ruby-forum.com/u/sadathiru)\
**Replies:** 0\
**Last updated:** [September 25, 2008, 7:22am UTC](https://www.ruby-forum.com/t/simple-captcha-does-not-work-in-test-environment/196814 "2008-09-25T07:22:31Z")

</div>

Hi, I have been using simple\_captcha and it works fine and make myself happy. When I moved my app to test environment, It does not throwing message when the letters in the image does not match with the user entered t…

---

## [Copying the complete data to another model](https://www.ruby-forum.com/t/copying-the-complete-data-to-another-model/149475)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 0\
**Last updated:** [September 25, 2008, 7:06am UTC](https://www.ruby-forum.com/t/copying-the-complete-data-to-another-model/149475 "2008-09-25T07:06:10Z")

</div>

Hi I have the main model ServiceDeskTicket and its associated models like ServiceDeskAttachment, ServiceDeskKnowledgeBase, ServiceDeskCI etc… Now i want to convert ServiceDeskTicket to an Incident.As a part of that I…

---

## [Custom path/url helpers for resources](https://www.ruby-forum.com/t/custom-path-url-helpers-for-resources/149471)

<div class="topic-metadata">

**Author:** [@Christopher\_JSBott](https://www.ruby-forum.com/u/Christopher_JSBott)\
**Replies:** 0\
**Last updated:** [September 25, 2008, 6:04am UTC](https://www.ruby-forum.com/t/custom-path-url-helpers-for-resources/149471 "2008-09-25T06:04:07Z")

</div>

Hello, map.resources :user, :member =\> { :do\_something =\> :get } That will generate do\_something\_user\_path and do\_something\_user\_url. What if I don’t like those names and instead want something like do\_something\_for\_…

---

## [Rspec, HAML with view testing](https://www.ruby-forum.com/t/rspec-haml-with-view-testing/149463)

<div class="topic-metadata">

**Author:** [@regealey](https://www.ruby-forum.com/u/regealey)\
**Replies:** 0\
**Last updated:** [September 25, 2008, 2:58am UTC](https://www.ruby-forum.com/t/rspec-haml-with-view-testing/149463 "2008-09-25T02:58:07Z")

</div>

Hi all, Has anyone experienced the following problem testing rspec against haml views Attempting to run a view spec (partial) app/view/users/\_foo.html.haml it “should render it” do render :partial =\> “users/foo”, …

---

## [Rspec, HAML, view testing](https://www.ruby-forum.com/t/rspec-haml-view-testing/149455)

<div class="topic-metadata">

**Author:** [@regealey](https://www.ruby-forum.com/u/regealey)\
**Replies:** 0\
**Last updated:** [September 25, 2008, 12:38am UTC](https://www.ruby-forum.com/t/rspec-haml-view-testing/149455 "2008-09-25T00:38:49Z")

</div>

Hi all, Has anybody experience the following problem running testing rspec against haml views Attempting to run a view spec app/view/users/\_foo.html.haml it “should render it” do render :partial =\> “users/foo”, :l…

---

## [Performance Monitoring tool for Rails!](https://www.ruby-forum.com/t/performance-monitoring-tool-for-rails/149452)

<div class="topic-metadata">

**Author:** [@Dinooz](https://www.ruby-forum.com/u/Dinooz)\
**Replies:** 0\
**Last updated:** [September 25, 2008, 12:16am UTC](https://www.ruby-forum.com/t/performance-monitoring-tool-for-rails/149452 "2008-09-25T00:16:33Z")

</div>

Short Term Loans | Boutell.co.uk | Borrow £50 - £2500 Instantly \] and a RRD round robin database \[ RRDtool - About RRDtool \]. So I decided to create my own protocol to in a simple text file used as a log file, this fi…

---

## [Actionmailer setting on windows](https://www.ruby-forum.com/t/actionmailer-setting-on-windows/149450)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [September 25, 2008, 12:15am UTC](https://www.ruby-forum.com/t/actionmailer-setting-on-windows/149450 "2008-09-25T00:15:23Z")

</div>

What are the values supposed to be for this on a windows box? @@sendmail\_settings = { :location =\> ‘/usr/sbin/sendmail’, :arguments =\> ‘-i -t’

---

## [Thinking\_sphinx indexing problem on production](https://www.ruby-forum.com/t/thinking-sphinx-indexing-problem-on-production/149401)

<div class="topic-metadata">

**Author:** [@tkbeili](https://www.ruby-forum.com/u/tkbeili)\
**Replies:** 2\
**Last updated:** [September 24, 2008, 11:47pm UTC](https://www.ruby-forum.com/t/thinking-sphinx-indexing-problem-on-production/149401 "2008-09-24T23:47:55Z")

</div>

Hello, I have been using Sphinx with Thinking\_sphinx plugin which works well on local development environment, but once I move it to production (shared host) I get this error and I’m not sure why removed\_email\_addres…

---

## [Memached failing in 2.1 - not loading classes](https://www.ruby-forum.com/t/memached-failing-in-2-1-not-loading-classes/149444)

<div class="topic-metadata">

**Author:** [@seanhussey](https://www.ruby-forum.com/u/seanhussey)\
**Replies:** 1\
**Last updated:** [September 24, 2008, 11:19pm UTC](https://www.ruby-forum.com/t/memached-failing-in-2-1-not-loading-classes/149444 "2008-09-24T23:19:40Z")

</div>

Hi everyone, We’re setting up memcached with Rails 2.1 and we’re hitting an error with some classes. For instance: Rails.cache.fetch(‘all\_categories’) {Category.all} ArgumentError: undefined class/module Category f…

---

## [Merb Camp](https://www.ruby-forum.com/t/merb-camp/149445)

<div class="topic-metadata">

**Author:** [@lambosv21](https://www.ruby-forum.com/u/lambosv21)\
**Replies:** 0\
**Last updated:** [September 24, 2008, 11:03pm UTC](https://www.ruby-forum.com/t/merb-camp/149445 "2008-09-24T23:03:03Z")

</div>

Been cruisin through here as a guest for a few months now and have seen some great discussions about pros/cons for merb and rails. I have been learning about ruby for about 6 months now and merb for about 3, so I tho…

---

## [Caches\_page :if not executing (but caches\_action :if) does](https://www.ruby-forum.com/t/caches-page-if-not-executing-but-caches-action-if-does/149375)

<div class="topic-metadata">

**Author:** [@scottrutherford](https://www.ruby-forum.com/u/scottrutherford)\
**Replies:** 3\
**Last updated:** [September 24, 2008, 10:58pm UTC](https://www.ruby-forum.com/t/caches-page-if-not-executing-but-caches-action-if-does/149375 "2008-09-24T22:58:23Z")

</div>

Hi folks - Seeing a weird problem and would love some help. It’s documented in http://pastie.org/278310 to be more readable. In short, I have a caches\_page “action”, :if =\> {stuff} but the :if is never being called …

---

## [How to restrict viewing/modifying other users data?](https://www.ruby-forum.com/t/how-to-restrict-viewing-modifying-other-users-data/149440)

<div class="topic-metadata">

**Author:** [@nathan](https://www.ruby-forum.com/u/nathan)\
**Replies:** 4\
**Last updated:** [September 24, 2008, 10:42pm UTC](https://www.ruby-forum.com/t/how-to-restrict-viewing-modifying-other-users-data/149440 "2008-09-24T22:42:02Z")

</div>

Hi Everyone. I am working on my first Ruby on Rails app. It is a basic project management application. I have user login/logout functionality set up. It will only display a list of projects that are linked to the …

---

## [Know environment active from command line](https://www.ruby-forum.com/t/know-environment-active-from-command-line/149433)

<div class="topic-metadata">

**Author:** [@Abel](https://www.ruby-forum.com/u/Abel)\
**Replies:** 5\
**Last updated:** [September 24, 2008, 10:00pm UTC](https://www.ruby-forum.com/t/know-environment-active-from-command-line/149433 "2008-09-24T22:00:53Z")

</div>

I’m trying to deploy my application in a shared host but I get an error when running rake processes. Their IT tell me that perhaps I’m running the process in development mode and that’s why a get a DB connection error…

---

## [Mod\_rails and system users](https://www.ruby-forum.com/t/mod-rails-and-system-users/149155)

<div class="topic-metadata">

**Author:** [@fxn](https://www.ruby-forum.com/u/fxn)\
**Replies:** 2\
**Last updated:** [September 24, 2008, 8:31pm UTC](https://www.ruby-forum.com/t/mod-rails-and-system-users/149155 "2008-09-24T20:31:11Z")

</div>

Say you have a server with several apps. Those are your own projects in your own machine, not shared hosting. In Apache + Mongrel I normally had a user account per app, and a vhost per app. Mongrels were launched by t…

---

## [\[attachment\_fu\] Uploading Animating Images](https://www.ruby-forum.com/t/attachment-fu-uploading-animating-images/149431)

<div class="topic-metadata">

**Author:** [@ignitionmx](https://www.ruby-forum.com/u/ignitionmx)\
**Replies:** 0\
**Last updated:** [September 24, 2008, 8:24pm UTC](https://www.ruby-forum.com/t/attachment-fu-uploading-animating-images/149431 "2008-09-24T20:24:17Z")

</div>

When an image goes through one of attachment\_fu’s image processors, it loses all of its frames besides the first one. Has anyone been pursuing a solution or know of a solution for uploading animating images with attac…

---

## [Where is the controller's default view template?](https://www.ruby-forum.com/t/where-is-the-controllers-default-view-template/149371)

<div class="topic-metadata">

**Author:** [@Sudhir](https://www.ruby-forum.com/u/Sudhir)\
**Replies:** 2\
**Last updated:** [September 24, 2008, 8:22pm UTC](https://www.ruby-forum.com/t/where-is-the-controllers-default-view-template/149371 "2008-09-24T20:22:55Z")

</div>

Hi, When I moved from Rail 1.2 to 2.0.2, “script/generate controller xxx” stopped creating a default layout template in app/view/layouts/. But the code still works and likely gets a default template for the controlle…

---

## [Odd replace\_html outcome](https://www.ruby-forum.com/t/odd-replace-html-outcome/149427)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 2\
**Last updated:** [September 24, 2008, 7:44pm UTC](https://www.ruby-forum.com/t/odd-replace-html-outcome/149427 "2008-09-24T19:44:39Z")

</div>

In my controller I have a simple “create” method and in the output section, I have: format.js do @traces = Trace.getLatest render :update do |page| page.visual\_effect :highlight, :homeContentPanel …

---

## [\[ANN\] Ruby-GetText-Package-1.93.0](https://www.ruby-forum.com/t/ann-ruby-gettext-package-1-93-0/148636)

<div class="topic-metadata">

**Author:** [@Masao\_M](https://www.ruby-forum.com/u/Masao_M)\
**Replies:** 1\
**Last updated:** [September 24, 2008, 7:40pm UTC](https://www.ruby-forum.com/t/ann-ruby-gettext-package-1-93-0/148636 "2008-09-24T19:40:31Z")

</div>

Hi, Ruby-GetText-Package-1.93.0 is now available. Changes Bulgarian added. Estonian updated. French updated. Japanese updated. np\_, npgettext support. Fixed bugs. detect the correct charset on POSIX OS. updatepo tas…

---

## [Finding distinct months using find\_by\_sql](https://www.ruby-forum.com/t/finding-distinct-months-using-find-by-sql/149340)

<div class="topic-metadata">

**Author:** [@ititit](https://www.ruby-forum.com/u/ititit)\
**Replies:** 3\
**Last updated:** [September 24, 2008, 7:08pm UTC](https://www.ruby-forum.com/t/finding-distinct-months-using-find-by-sql/149340 "2008-09-24T19:08:07Z")

</div>

Hello, I’m wondering if someone might be able to offer me a solution to the following problem that has so far stumped me. I’m trying to get the distinct months (and years) from a date field to display as a list in a …

---

## [Are hidden fields that secure?](https://www.ruby-forum.com/t/are-hidden-fields-that-secure/149420)

<div class="topic-metadata">

**Author:** [@max](https://www.ruby-forum.com/u/max)\
**Replies:** 1\
**Last updated:** [September 24, 2008, 6:32pm UTC](https://www.ruby-forum.com/t/are-hidden-fields-that-secure/149420 "2008-09-24T18:32:46Z")

</div>

Im seeing a lot of my forms having hidden fields to send one or two id’s back to the controller. Is this safe? can a user edit this before sending the form and send stuff they should’nt?

---

## [Using taint/untait for security](https://www.ruby-forum.com/t/using-taint-untait-for-security/149301)

<div class="topic-metadata">

**Author:** [@gazoduc](https://www.ruby-forum.com/u/gazoduc)\
**Replies:** 4\
**Last updated:** [September 24, 2008, 5:02pm UTC](https://www.ruby-forum.com/t/using-taint-untait-for-security/149301 "2008-09-24T17:02:17Z")

</div>

I thought to use the taint/untaint mechanisme included with ruby to enhance security in zena. I have read that using taint is not that good for the following reasons: It’s not working on certain implementations of ru…

---

## [Non-database dropdown select - works fine, but why the weird order?](https://www.ruby-forum.com/t/non-database-dropdown-select-works-fine-but-why-the-weird-order/149410)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [September 24, 2008, 3:47pm UTC](https://www.ruby-forum.com/t/non-database-dropdown-select-works-fine-but-why-the-weird-order/149410 "2008-09-24T15:47:35Z")

</div>

I have built a select\_tag dropdown to represent a group of selections that will feed a model-query routine I’ve written. This routine works fine but the order of the items is different than what I programmed. My objec…

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

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