# Rails

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

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

---

## [Mongrel problem](https://www.ruby-forum.com/t/mongrel-problem/160013)

<div class="topic-metadata">

**Author:** [@Miquel\_O](https://www.ruby-forum.com/u/Miquel_O)\
**Replies:** 1\
**Last updated:** [February 11, 2009, 1:30am UTC](https://www.ruby-forum.com/t/mongrel-problem/160013 "2009-02-11T01:30:13Z")

</div>

Hi there I have installed mongrel using rubygems and I have filled the mongrel configuration file in my rails config directory, which is: cwd: /var/www/my\_http\_dir/ log\_file: log/mongrel.log port: “8100” environmen…

---

## [Re: form\_remote\_for NOT passing param: I want put and I get](https://www.ruby-forum.com/t/re-form-remote-for-not-passing-param-i-want-put-and-i-get/160019)

<div class="topic-metadata">

**Author:** [@David\_Herman](https://www.ruby-forum.com/u/David_Herman)\
**Replies:** 0\
**Last updated:** [February 11, 2009, 12:28am UTC](https://www.ruby-forum.com/t/re-form-remote-for-not-passing-param-i-want-put-and-i-get/160019 "2009-02-11T00:28:11Z")

</div>

Your :method is in the wrong place, it belongs after the first hash, look at the docs for the form reote for

---

## [Mapping a directory into a database table](https://www.ruby-forum.com/t/mapping-a-directory-into-a-database-table/160016)

<div class="topic-metadata">

**Author:** [@elioncho](https://www.ruby-forum.com/u/elioncho)\
**Replies:** 0\
**Last updated:** [February 10, 2009, 11:42pm UTC](https://www.ruby-forum.com/t/mapping-a-directory-into-a-database-table/160016 "2009-02-10T23:42:33Z")

</div>

Guys I am trying to display a series of directories located on the server in a tree view. I have seen some solutions for displaying a tree view based on data on a database but I need to first map my directory into the…

---

## [Music composer written in rails](https://www.ruby-forum.com/t/music-composer-written-in-rails/160014)

<div class="topic-metadata">

**Author:** [@GabrielG1976](https://www.ruby-forum.com/u/GabrielG1976)\
**Replies:** 0\
**Last updated:** [February 10, 2009, 11:37pm UTC](https://www.ruby-forum.com/t/music-composer-written-in-rails/160014 "2009-02-10T23:37:10Z")

</div>

Hello Everyone, I have just Launched Live a new online music composing site. That allows you to create new musical compositions based off the Conversion of text into a midi Composition that can be used in any softwar…

---

## [Ultrasphinx - field is invalid - can't get :filters to work](https://www.ruby-forum.com/t/ultrasphinx-field-is-invalid-cant-get-filters-to-work/148765)

<div class="topic-metadata">

**Author:** [@jfoxny](https://www.ruby-forum.com/u/jfoxny)\
**Replies:** 6\
**Last updated:** [February 10, 2009, 11:08pm UTC](https://www.ruby-forum.com/t/ultrasphinx-field-is-invalid-cant-get-filters-to-work/148765 "2009-02-10T23:08:40Z")

</div>

I am having trouble getting the Ultrasphinx plug-in to filter search results using the :filters parameter; searches that use the :query parameter, however, work just fine. Every time I run a search using the :filters …

---

## [Form\_remote\_for NOT passing param: I want put and I get post](https://www.ruby-forum.com/t/form-remote-for-not-passing-param-i-want-put-and-i-get-post/159992)

<div class="topic-metadata">

**Author:** [@raimon](https://www.ruby-forum.com/u/raimon)\
**Replies:** 2\
**Last updated:** [February 10, 2009, 11:08pm UTC](https://www.ruby-forum.com/t/form-remote-for-not-passing-param-i-want-put-and-i-get-post/159992 "2009-02-10T23:08:13Z")

</div>

Hello, I’m struggling my brain with this ajax issue … Basically I have a form for creating records, and I want to submit it using Ajax. On previous versions of RoR (2.0.2) it was working, but the same methods doesn’…

---

## [Weird error message with restful-authentication plugin](https://www.ruby-forum.com/t/weird-error-message-with-restful-authentication-plugin/158572)

<div class="topic-metadata">

**Author:** [@lpdahito](https://www.ruby-forum.com/u/lpdahito)\
**Replies:** 1\
**Last updated:** [February 10, 2009, 11:08pm UTC](https://www.ruby-forum.com/t/weird-error-message-with-restful-authentication-plugin/158572 "2009-02-10T23:08:01Z")

</div>

Hey guys, Every time i install the restful-authentication plugin, it seems to work correctly but i always get this error message from my terminal once it has finished installing: Initialized empty Git repository in …

---

## [Constants not visible in controllers or models](https://www.ruby-forum.com/t/constants-not-visible-in-controllers-or-models/159961)

<div class="topic-metadata">

**Author:** [@tekhne](https://www.ruby-forum.com/u/tekhne)\
**Replies:** 2\
**Last updated:** [February 10, 2009, 10:56pm UTC](https://www.ruby-forum.com/t/constants-not-visible-in-controllers-or-models/159961 "2009-02-10T22:56:08Z")

</div>

Hi, I might be being a bit thick today but I have a problem that I can’t seem to shake. I have some configuration data in a yaml file that I load with an initializer. AVATARS\_CONFIG = YAML.load\_file("#{RAILS\_ROOT}/c…

---

## [What's the pattern for modularizing / sharing your code?](https://www.ruby-forum.com/t/whats-the-pattern-for-modularizing-sharing-your-code/160008)

<div class="topic-metadata">

**Author:** [@dmorin](https://www.ruby-forum.com/u/dmorin)\
**Replies:** 0\
**Last updated:** [February 10, 2009, 10:18pm UTC](https://www.ruby-forum.com/t/whats-the-pattern-for-modularizing-sharing-your-code/160008 "2009-02-10T22:18:15Z")

</div>

Ok, this is the first time I’ve run across this, but I think they’re good problems to have :). I’ve got a web app out in production. I’ve also got a tool for internal use that manages the reporting on that applicatio…

---

## [Fastercsv, freezing into vendor/gems](https://www.ruby-forum.com/t/fastercsv-freezing-into-vendor-gems/159845)

<div class="topic-metadata">

**Author:** [@bingobob](https://www.ruby-forum.com/u/bingobob)\
**Replies:** 9\
**Last updated:** [February 10, 2009, 8:52pm UTC](https://www.ruby-forum.com/t/fastercsv-freezing-into-vendor-gems/159845 "2009-02-10T20:52:18Z")

</div>

I’m using fastercsv such that in my rake file I’m doing this. require ‘fastercsv’ It works fine on my Mac. I need to freeze this gem into the app though so my rake tasks work on the production machine. I spent abou…

---

## [ActiveSupport::Cache vs. others?](https://www.ruby-forum.com/t/activesupport-cache-vs-others/159996)

<div class="topic-metadata">

**Author:** [@marcbey](https://www.ruby-forum.com/u/marcbey)\
**Replies:** 0\
**Last updated:** [February 10, 2009, 8:50pm UTC](https://www.ruby-forum.com/t/activesupport-cache-vs-others/159996 "2009-02-10T20:50:36Z")

</div>

Hi, We are building and using a new caching gem. We would like to figure out how to make this most friendly and easy for both existing projects and new projects to use. I’m guessing the best way to get used in new…

---

## [Rendering original view](https://www.ruby-forum.com/t/rendering-original-view/159887)

<div class="topic-metadata">

**Author:** [@bingobob](https://www.ruby-forum.com/u/bingobob)\
**Replies:** 3\
**Last updated:** [February 10, 2009, 7:58pm UTC](https://www.ruby-forum.com/t/rendering-original-view/159887 "2009-02-10T19:58:00Z")

</div>

def create # next statement is original and is removed # @review = Review.new(params\[:review\]) @school = School.find(params\[:school\_id\]) # @review = @school.reviews.create!(params\[:review\]) @review = @school.reviews.bu…

---

## [Restful authentication: integration testing](https://www.ruby-forum.com/t/restful-authentication-integration-testing/159991)

<div class="topic-metadata">

**Author:** [@itsastickup](https://www.ruby-forum.com/u/itsastickup)\
**Replies:** 0\
**Last updated:** [February 10, 2009, 7:39pm UTC](https://www.ruby-forum.com/t/restful-authentication-integration-testing/159991 "2009-02-10T19:39:58Z")

</div>

Hi, Anyone know how to do integration testing with the “Restful Authentication” plugin? I’ve been trying this, without luck : def login\_session(user) open\_session do |sess| sess.extend(CustomDsl) sess.extend(Authe…

---

## [Scaffold macro problem](https://www.ruby-forum.com/t/scaffold-macro-problem/159982)

<div class="topic-metadata">

**Author:** [@adeel\_1103](https://www.ruby-forum.com/u/adeel_1103)\
**Replies:** 3\
**Last updated:** [February 10, 2009, 6:55pm UTC](https://www.ruby-forum.com/t/scaffold-macro-problem/159982 "2009-02-10T18:55:51Z")

</div>

Hello, I am using Komodo Edit 5.0 for ROR. I have made the database by using the macros in it. But when I make model using sacffold, I get error. The details are given below: C:/Ruby/lib/ruby/1.8/yaml.rb:133:in load'…

---

## [Test if an external url is valid before redirecting to it?](https://www.ruby-forum.com/t/test-if-an-external-url-is-valid-before-redirecting-to-it/159980)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 2\
**Last updated:** [February 10, 2009, 6:52pm UTC](https://www.ruby-forum.com/t/test-if-an-external-url-is-valid-before-redirecting-to-it/159980 "2009-02-10T18:52:26Z")

</div>

In our site, users can have a url associated with their account to which they are redirected when their login expires. This can differ from user to user, and is prone to being mis-copied, or the sites in question not …

---

## [Anyone familiar with Bort? How is it supposed to be used?](https://www.ruby-forum.com/t/anyone-familiar-with-bort-how-is-it-supposed-to-be-used/159973)

<div class="topic-metadata">

**Author:** [@toltec](https://www.ruby-forum.com/u/toltec)\
**Replies:** 1\
**Last updated:** [February 10, 2009, 6:35pm UTC](https://www.ruby-forum.com/t/anyone-familiar-with-bort-how-is-it-supposed-to-be-used/159973 "2009-02-10T18:35:50Z")

</div>

Noob here, obviously. I checked Bort out and was left a bit confused. It seems everything I try to do either breaks or interferes with some of its default configurations and plugins. I realize Bort is intended for pe…

---

## [Suppressing log messages for an action](https://www.ruby-forum.com/t/suppressing-log-messages-for-an-action/159959)

<div class="topic-metadata">

**Author:** [@adam](https://www.ruby-forum.com/u/adam)\
**Replies:** 1\
**Last updated:** [February 10, 2009, 6:30pm UTC](https://www.ruby-forum.com/t/suppressing-log-messages-for-an-action/159959 "2009-02-10T18:30:33Z")

</div>

Hi all, I have a rails app that regularly pings the server to check for changes. The problem I’m having is that my “ping” action is printing so much output to the log that it’s swamping any useful data. Is there a wa…

---

## [It does not load de image from picasa](https://www.ruby-forum.com/t/it-does-not-load-de-image-from-picasa/158932)

<div class="topic-metadata">

**Author:** [@Esdras\_M](https://www.ruby-forum.com/u/Esdras_M)\
**Replies:** 3\
**Last updated:** [February 10, 2009, 6:19pm UTC](https://www.ruby-forum.com/t/it-does-not-load-de-image-from-picasa/158932 "2009-02-10T18:19:56Z")

</div>

Hello everbody. I’m trying to load images from my picasa webalbum in my rails app. So, this is the image url: http://lh4.ggpht.com/\_PjuQJCqPYIk/SYDrJz34UiI/AAAAAAAAAT0/KUvS\_-XPE8A/sunset-1600.jpg When I do , or image…

---

## [\[ANN\] The end of Capchas: Thorny Form plugin](https://www.ruby-forum.com/t/ann-the-end-of-capchas-thorny-form-plugin/159892)

<div class="topic-metadata">

**Author:** [@wybo](https://www.ruby-forum.com/u/wybo)\
**Replies:** 3\
**Last updated:** [February 10, 2009, 6:19pm UTC](https://www.ruby-forum.com/t/ann-the-end-of-capchas-thorny-form-plugin/159892 "2009-02-10T18:19:55Z")

</div>

Thorny Form is a Rails plugin for unobtrusively protecting forms against form-SPAM. It adds extra fields like a honeypot and some others which can then be checked before the form-data is used in your application. To …

---

## [ActionController::InvalidAuthenticityToken?](https://www.ruby-forum.com/t/actioncontroller-invalidauthenticitytoken/154468)

<div class="topic-metadata">

**Author:** [@pete](https://www.ruby-forum.com/u/pete)\
**Replies:** 6\
**Last updated:** [February 10, 2009, 6:19pm UTC](https://www.ruby-forum.com/t/actioncontroller-invalidauthenticitytoken/154468 "2009-02-10T18:19:02Z")

</div>

Hi- I am trying to use AJAX calls to login and logout of my Rails app so that the form renders in the side bar when you are not logged in, and your “profile” renders if you are. It all works, but when you logout, and…

---

## [Executing a generator on the browser](https://www.ruby-forum.com/t/executing-a-generator-on-the-browser/159916)

<div class="topic-metadata">

**Author:** [@bbtosurf](https://www.ruby-forum.com/u/bbtosurf)\
**Replies:** 4\
**Last updated:** [February 10, 2009, 6:12pm UTC](https://www.ruby-forum.com/t/executing-a-generator-on-the-browser/159916 "2009-02-10T18:12:51Z")

</div>

Hi I currently have a generator which creates a directory of files. I want clients on my app to be able to execute that generator and save those files in their personal folder on the server. The thing is that I have …

---

## [Config.default\_timezone vs. config.time\_zone](https://www.ruby-forum.com/t/config-default-timezone-vs-config-time-zone/159983)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 1\
**Last updated:** [February 10, 2009, 6:07pm UTC](https://www.ruby-forum.com/t/config-default-timezone-vs-config-time-zone/159983 "2009-02-10T18:07:58Z")

</div>

In config/environment.rb are these statements equivalent? config.default\_timezone = :utc config.time\_zone = “UTC” If not, then how do they differ in effect?

---

## [Pretty Record Lists](https://www.ruby-forum.com/t/pretty-record-lists/159907)

<div class="topic-metadata">

**Author:** [@Chad](https://www.ruby-forum.com/u/Chad)\
**Replies:** 1\
**Last updated:** [February 10, 2009, 5:22pm UTC](https://www.ruby-forum.com/t/pretty-record-lists/159907 "2009-02-10T17:22:53Z")

</div>

Can anyone recommend a lightweight plugin that renders lists of records nicely with ajax sort, pagination, edit/delete links, etc? I tried ActiveScaffold, which is really great, but it’s too much for what I’m trying …

---

## [How to achieve STI has\_many :through referencing to the same STI](https://www.ruby-forum.com/t/how-to-achieve-sti-has-many-through-referencing-to-the-same-sti/159978)

<div class="topic-metadata">

**Author:** [@satynos](https://www.ruby-forum.com/u/satynos)\
**Replies:** 0\
**Last updated:** [February 10, 2009, 5:03pm UTC](https://www.ruby-forum.com/t/how-to-achieve-sti-has-many-through-referencing-to-the-same-sti/159978 "2009-02-10T17:03:31Z")

</div>

I have the base Content model from which all the types of the contents such as page, post, asset descend as follows: class Content \< ActiveRecord::Base end class Page \< Content end class Post \< Content end class …

---

## [Rescue\_from for NoMethodError](https://www.ruby-forum.com/t/rescue-from-for-nomethoderror/159962)

<div class="topic-metadata">

**Author:** [@shahroon\_ali](https://www.ruby-forum.com/u/shahroon_ali)\
**Replies:** 2\
**Last updated:** [February 10, 2009, 5:02pm UTC](https://www.ruby-forum.com/t/rescue-from-for-nomethoderror/159962 "2009-02-10T17:02:56Z")

</div>

Hi everyone, I was just trying to catch some exceptions in my app, for “Record Not Found” I used this in my application.rb file rescue\_from ActiveRecord::RecordNotFound, :with =\> :record\_not\_found rescue\_from Actio…

---

## [Best Way to detect if you are in a migration?](https://www.ruby-forum.com/t/best-way-to-detect-if-you-are-in-a-migration/145771)

<div class="topic-metadata">

**Author:** [@ericgoodwin](https://www.ruby-forum.com/u/ericgoodwin)\
**Replies:** 8\
**Last updated:** [February 10, 2009, 3:04pm UTC](https://www.ruby-forum.com/t/best-way-to-detect-if-you-are-in-a-migration/145771 "2009-02-10T15:04:40Z")

</div>

I have a method where I would like output to occur via “puts” only if its currently in the middle of a rake task or if its in the middle of a migration. How can I detect if the program execution is in the context of a …

---

## [Gmailer](https://www.ruby-forum.com/t/gmailer/128504)

<div class="topic-metadata">

**Author:** [@shweta\_kadam](https://www.ruby-forum.com/u/shweta_kadam)\
**Replies:** 3\
**Last updated:** [February 10, 2009, 1:40pm UTC](https://www.ruby-forum.com/t/gmailer/128504 "2009-02-10T13:40:46Z")

</div>

hi all, i want to know how to use gmailer in rails

---

## [Optimize redundant code](https://www.ruby-forum.com/t/optimize-redundant-code/159952)

<div class="topic-metadata">

**Author:** [@atmorell](https://www.ruby-forum.com/u/atmorell)\
**Replies:** 1\
**Last updated:** [February 10, 2009, 1:22pm UTC](https://www.ruby-forum.com/t/optimize-redundant-code/159952 "2009-02-10T13:22:48Z")

</div>

Hello, I would like to wrap the class type-text around each label/text\_field. There must be a better way than my example below? I don’t know how to do this without an object to loob through :slight\_smile: \<% content\_…

---

## [Ruby for London](https://www.ruby-forum.com/t/ruby-for-london/159951)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [February 10, 2009, 1:21pm UTC](https://www.ruby-forum.com/t/ruby-for-london/159951 "2009-02-10T13:21:37Z")

</div>

Help looking for someone to help out with a large prject at an agency removed\_email\_address@domain.invalid

---

## [WebOrb usage](https://www.ruby-forum.com/t/weborb-usage/159942)

<div class="topic-metadata">

**Author:** [@sarika](https://www.ruby-forum.com/u/sarika)\
**Replies:** 2\
**Last updated:** [February 10, 2009, 1:15pm UTC](https://www.ruby-forum.com/t/weborb-usage/159942 "2009-02-10T13:15:43Z")

</div>

Hi, I m newbie for flex and want it to be implemented with rails. I followed the steps given in flexiblerails but what i wanted to know is What is the use of weborb ? Without installing weborb plugin also my flex pro…

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

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