# Rails

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

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

---

## [If Engines 1.2: Engines are dead why we still needed?](https://www.ruby-forum.com/t/if-engines-1-2-engines-are-dead-why-we-still-needed/139238)

<div class="topic-metadata">

**Author:** [@betame342](https://www.ruby-forum.com/u/betame342)\
**Replies:** 0\
**Last updated:** [June 2, 2008, 7:50am UTC](https://www.ruby-forum.com/t/if-engines-1-2-engines-are-dead-why-we-still-needed/139238 "2008-06-02T07:50:08Z")

</div>

Hi, From the article below “Engines 1.2: Engines are dead” http://rails-engines.org/news/2007/01/03/engines-are-dead-long-live-engines/ if engines are dead why we still need it? and how easy is it to convert current …

---

## [UJS and IE](https://www.ruby-forum.com/t/ujs-and-ie/139111)

<div class="topic-metadata">

**Author:** [@Applejus](https://www.ruby-forum.com/u/Applejus)\
**Replies:** 2\
**Last updated:** [June 2, 2008, 6:48am UTC](https://www.ruby-forum.com/t/ujs-and-ie/139111 "2008-06-02T06:48:29Z")

</div>

Hello, I got the latest UJS for RoR installed and running and also downloaded the latest prototype.js file. Now just by including the UJS javascript tag (:unobtrusive) I get an error in IE browser saying “‘Event’ is …

---

## [Script.aculo.us effects hate me?](https://www.ruby-forum.com/t/script-aculo-us-effects-hate-me/139178)

<div class="topic-metadata">

**Author:** [@kopf1988](https://www.ruby-forum.com/u/kopf1988)\
**Replies:** 4\
**Last updated:** [June 2, 2008, 6:48am UTC](https://www.ruby-forum.com/t/script-aculo-us-effects-hate-me/139178 "2008-06-02T06:48:29Z")

</div>

Well, randomly things just don’t work when I try to make a new web thing work. On my new site, I have a div id=“all” set to display: none;, that should be shown when I click on this div: \<%= content\_tag ‘div’, ‘Altern…

---

## [Problems with methods... help](https://www.ruby-forum.com/t/problems-with-methods-help/139229)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [June 2, 2008, 6:33am UTC](https://www.ruby-forum.com/t/problems-with-methods-help/139229 "2008-06-02T06:33:15Z")

</div>

Hi I made a simple example that is not the original but is giving me the same issue… I create a method on my controller… and make it so I cant sent him data to work with and return me the results… but I keep getting …

---

## [Mongrel Timed Out in production](https://www.ruby-forum.com/t/mongrel-timed-out-in-production/139232)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [June 2, 2008, 6:22am UTC](https://www.ruby-forum.com/t/mongrel-timed-out-in-production/139232 "2008-06-02T06:22:55Z")

</div>

I have deployed a rails app in Rails 2.0.2 and the db in mysql is on another box. When I have this kind of set up , i keep getting this error: Mongrel::TimeoutError (Mongrel timed out this thread: shutdown): /usr/lib…

---

## [\[REMINDER\] Ruby Hoedown 2008 CFP and Early Registration end tomorrow!](https://www.ruby-forum.com/t/reminder-ruby-hoedown-2008-cfp-and-early-registration-end-tomorrow/139223)

<div class="topic-metadata">

**Author:** [@Jeremy\_McAnally](https://www.ruby-forum.com/u/Jeremy_McAnally)\
**Replies:** 0\
**Last updated:** [June 2, 2008, 3:36am UTC](https://www.ruby-forum.com/t/reminder-ruby-hoedown-2008-cfp-and-early-registration-end-tomorrow/139223 "2008-06-02T03:36:45Z")

</div>

Howdy all, This is just a quick reminder that the CFP and early registration ends for the Ruby Hoedown 2008 tomorrow. The price will go up to $199, so register now and save $50 (or more if you read Ruby Inside…). Re…

---

## [Confusing test results](https://www.ruby-forum.com/t/confusing-test-results/139206)

<div class="topic-metadata">

**Author:** [@taro](https://www.ruby-forum.com/u/taro)\
**Replies:** 2\
**Last updated:** [June 2, 2008, 3:01am UTC](https://www.ruby-forum.com/t/confusing-test-results/139206 "2008-06-02T03:01:11Z")

</div>

In order to test whether the controller correctly raises the error or not, I’ve conducted the following test: def test\_delete\_default\_wiki # this test works… post :delete\_wiki, { :lang\_url\_id =\> ‘en’, :wiki\_id =\> 1 …

---

## [Finding all records, some columns are null?](https://www.ruby-forum.com/t/finding-all-records-some-columns-are-null/139220)

<div class="topic-metadata">

**Author:** [@gummybears](https://www.ruby-forum.com/u/gummybears)\
**Replies:** 0\
**Last updated:** [June 2, 2008, 2:21am UTC](https://www.ruby-forum.com/t/finding-all-records-some-columns-are-null/139220 "2008-06-02T02:21:23Z")

</div>

Hi, I want to list all the records in my contacts table (platform WindowsXP, InstantRails latest version with MySQL, Rails 2.0.2 ). I populated the table contacts with test data, however the problem is that in the v…

---

## [Views to handle a one-to-many relation?](https://www.ruby-forum.com/t/views-to-handle-a-one-to-many-relation/139188)

<div class="topic-metadata">

**Author:** [@AndrSSSSs\_MejSSS\_a](https://www.ruby-forum.com/u/AndrSSSSs_MejSSS_a)\
**Replies:** 2\
**Last updated:** [June 2, 2008, 1:14am UTC](https://www.ruby-forum.com/t/views-to-handle-a-one-to-many-relation/139188 "2008-06-02T01:14:07Z")

</div>

Hello, I have a one-to-many relation between rooms and guests. A room has\_many guests, and a guest belongs\_to a single room. I’ve got a basic view for this, where I can show a room with a list of all guests belongin…

---

## [Email injection](https://www.ruby-forum.com/t/email-injection/139216)

<div class="topic-metadata">

**Author:** [@northwind](https://www.ruby-forum.com/u/northwind)\
**Replies:** 0\
**Last updated:** [June 2, 2008, 12:06am UTC](https://www.ruby-forum.com/t/email-injection/139216 "2008-06-02T00:06:38Z")

</div>

Hello, When sending e-mail from rails, I am wondering if there is a need to filter post data from forms to prevent email injection attacks; or, if ActionMailer is designed to protect against them. I have done a few …

---

## [Could not find RubyGem columnize](https://www.ruby-forum.com/t/could-not-find-rubygem-columnize/139207)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [June 1, 2008, 11:28pm UTC](https://www.ruby-forum.com/t/could-not-find-rubygem-columnize/139207 "2008-06-01T23:28:49Z")

</div>

Hi! Upon updating to rails 2.1 ( sudo gem update) I now get this error when running tests: /Library/Ruby/Site/1.8/rubygems.rb:523:in report\_activate\_error': Could not find RubyGem columnize (\>= 0.1) (Gem::LoadError) …

---

## [Converting a Subversion repository to git](https://www.ruby-forum.com/t/converting-a-subversion-repository-to-git/139204)

<div class="topic-metadata">

**Author:** [@rlwinter](https://www.ruby-forum.com/u/rlwinter)\
**Replies:** 2\
**Last updated:** [June 1, 2008, 10:11pm UTC](https://www.ruby-forum.com/t/converting-a-subversion-repository-to-git/139204 "2008-06-01T22:11:18Z")

</div>

Hello, I’m somewhat new to git and was trying to find the best way to convert my Subversion repositories over to git. I have been looking at the git- svn command, which seems to be the way to do it. However, git-svn …

---

## [Trying to use a radio button as a selection list](https://www.ruby-forum.com/t/trying-to-use-a-radio-button-as-a-selection-list/139148)

<div class="topic-metadata">

**Author:** [@BelSSSSn](https://www.ruby-forum.com/u/BelSSSSn)\
**Replies:** 6\
**Last updated:** [June 1, 2008, 9:00pm UTC](https://www.ruby-forum.com/t/trying-to-use-a-radio-button-as-a-selection-list/139148 "2008-06-01T21:00:38Z")

</div>

I am new using rails, I am trying to add to a user form a list of icon images and the user should select the icon he wants to have as icon. My problem is that I want to save the selected image in a field from user cal…

---

## [String Encoding / Importing Feeds](https://www.ruby-forum.com/t/string-encoding-importing-feeds/105244)

<div class="topic-metadata">

**Author:** [@hunter\_h](https://www.ruby-forum.com/u/hunter_h)\
**Replies:** 2\
**Last updated:** [June 1, 2008, 8:28pm UTC](https://www.ruby-forum.com/t/string-encoding-importing-feeds/105244 "2008-06-01T20:28:06Z")

</div>

Howdy, I have a Rails app that grabs from RSS feed info and then tries to insert it into a database. The problem I’m having is that some feeds appear to use funky characters and my INSERTs are failing. The actual err…

---

## [Open\_id\_authentication - authenticate\_with\_open\_id](https://www.ruby-forum.com/t/open-id-authentication-authenticate-with-open-id/135289)

<div class="topic-metadata">

**Author:** [@Sav](https://www.ruby-forum.com/u/Sav)\
**Replies:** 2\
**Last updated:** [June 1, 2008, 8:14pm UTC](https://www.ruby-forum.com/t/open-id-authentication-authenticate-with-open-id/135289 "2008-06-01T20:14:51Z")

</div>

I’m using the open\_id\_authentication plugin just like the README says. However, when I submit my openid\_url, the authenticate\_with\_open\_id method gives me the error below. vendor/plugins/open\_id\_authentication/lib/op…

---

## [GetText works in local but not in my VPS](https://www.ruby-forum.com/t/gettext-works-in-local-but-not-in-my-vps/139200)

<div class="topic-metadata">

**Author:** [@senn](https://www.ruby-forum.com/u/senn)\
**Replies:** 0\
**Last updated:** [June 1, 2008, 7:25pm UTC](https://www.ruby-forum.com/t/gettext-works-in-local-but-not-in-my-vps/139200 "2008-06-01T19:25:57Z")

</div>

Hi, Im using gettext in one of my projects. It works perfect in my local machine but when I upload it to my VPS, it doesnt work… I can generate both po and mo files, but when I go to the browser… it doesnt translate…

---

## [RSpec Post/Get and Sessions in a Story](https://www.ruby-forum.com/t/rspec-post-get-and-sessions-in-a-story/139095)

<div class="topic-metadata">

**Author:** [@glenatron](https://www.ruby-forum.com/u/glenatron)\
**Replies:** 4\
**Last updated:** [June 1, 2008, 6:23pm UTC](https://www.ruby-forum.com/t/rspec-post-get-and-sessions-in-a-story/139095 "2008-06-01T18:23:53Z")

</div>

I’ve got an RSpec story that reads like: Given that a post exists And I am logged in And I have edit permissions When I visit the post details page Then there should be a link to add a new comment The issue I’m h…

---

## [How does 37signals code their "Open Bar" (Open ID) feature?](https://www.ruby-forum.com/t/how-does-37signals-code-their-open-bar-open-id-feature/139190)

<div class="topic-metadata">

**Author:** [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Replies:** 1\
**Last updated:** [June 1, 2008, 4:39pm UTC](https://www.ruby-forum.com/t/how-does-37signals-code-their-open-bar-open-id-feature/139190 "2008-06-01T16:39:51Z")

</div>

See here: Say you have two applications: Basecamp Highrise How would Highrise know that the user (with the same OpenID credentials) exists on another application (Basecamp)? Is there something involved for that t…

---

## [Profanity Filter for Rails Application](https://www.ruby-forum.com/t/profanity-filter-for-rails-application/113830)

<div class="topic-metadata">

**Author:** [@xgamerx](https://www.ruby-forum.com/u/xgamerx)\
**Replies:** 9\
**Last updated:** [June 1, 2008, 4:13pm UTC](https://www.ruby-forum.com/t/profanity-filter-for-rails-application/113830 "2008-06-01T16:13:01Z")

</div>

I am creating an application that allows a user to post messages to a board. I want to be able to filter profanity. For instance if someone types an inappropriate word of 5 characters I want it to read “#?@#@” or what…

---

## [Job opening: Malaria Atlas Project, Oxford University](https://www.ruby-forum.com/t/job-opening-malaria-atlas-project-oxford-university/137178)

<div class="topic-metadata">

**Author:** [@anand](https://www.ruby-forum.com/u/anand)\
**Replies:** 1\
**Last updated:** [June 1, 2008, 2:49pm UTC](https://www.ruby-forum.com/t/job-opening-malaria-atlas-project-oxford-university/137178 "2008-06-01T14:49:26Z")

</div>

DEPARTMENT OF ZOOLOGY Web developer Grade 7: Salary range:£26,666 - £32,796 Three year post A web developer is required to join the Malaria Atlas Project (MAP, http://www.map.ox.ac.uk). The job will be to lead in th…

---

## [Multiple database connections](https://www.ruby-forum.com/t/multiple-database-connections/139187)

<div class="topic-metadata">

**Author:** [@roa](https://www.ruby-forum.com/u/roa)\
**Replies:** 2\
**Last updated:** [June 1, 2008, 2:41pm UTC](https://www.ruby-forum.com/t/multiple-database-connections/139187 "2008-06-01T14:41:40Z")

</div>

Hi, I’m trying to connect to a second database, but I can’t seem to get it working. When a new user gets created in the application, the user data gets writter to the application database into the users table like al…

---

## [Rails 2.1 Released](https://www.ruby-forum.com/t/rails-2-1-released/139186)

<div class="topic-metadata">

**Author:** [@Mikel\_L](https://www.ruby-forum.com/u/Mikel_L)\
**Replies:** 0\
**Last updated:** [June 1, 2008, 1:48pm UTC](https://www.ruby-forum.com/t/rails-2-1-released/139186 "2008-06-01T13:48:20Z")

</div>

On the rails blog this morning: Mikel http://www.lindsaar.net/ruby-on-rails-tips

---

## [Deprecation warnings](https://www.ruby-forum.com/t/deprecation-warnings/139107)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 4\
**Last updated:** [June 1, 2008, 12:55pm UTC](https://www.ruby-forum.com/t/deprecation-warnings/139107 "2008-06-01T12:55:30Z")

</div>

I’m still using 1.2.6 and have an eye on upgrading to 2.0 so I monitor the logs for deprecation warnings. I thought I was clean and log/development.log shows nothing when doing ‘grep deprec log/development.log’ but in…

---

## [Modifying HTTP requests to act like Ajax](https://www.ruby-forum.com/t/modifying-http-requests-to-act-like-ajax/139151)

<div class="topic-metadata">

**Author:** [@adam](https://www.ruby-forum.com/u/adam)\
**Replies:** 7\
**Last updated:** [June 1, 2008, 11:43am UTC](https://www.ruby-forum.com/t/modifying-http-requests-to-act-like-ajax/139151 "2008-06-01T11:43:53Z")

</div>

Hi all, I have an application with a pretty standard login system: most actions have a before\_filter which redirects the user to a login page if they don’t have permission to perform the given action. What I want to …

---

## [Shared hosting options for small low traffic sites](https://www.ruby-forum.com/t/shared-hosting-options-for-small-low-traffic-sites/139170)

<div class="topic-metadata">

**Author:** [@squeegy](https://www.ruby-forum.com/u/squeegy)\
**Replies:** 5\
**Last updated:** [June 1, 2008, 10:44am UTC](https://www.ruby-forum.com/t/shared-hosting-options-for-small-low-traffic-sites/139170 "2008-06-01T10:44:31Z")

</div>

I have a few clients who will need their sites hosted very soon. These are site for local small businesses, and will get little major traffic. So I need a low cost and easy to deploy to hosting solution. Whats the b…

---

## [Mod\_rails is defaulting to development mode](https://www.ruby-forum.com/t/mod-rails-is-defaulting-to-development-mode/139105)

<div class="topic-metadata">

**Author:** [@melvinram](https://www.ruby-forum.com/u/melvinram)\
**Replies:** 5\
**Last updated:** [June 1, 2008, 10:03am UTC](https://www.ruby-forum.com/t/mod-rails-is-defaulting-to-development-mode/139105 "2008-06-01T10:03:27Z")

</div>

I just installed mod\_rails on a brand new Hardy server and for some reason it is defaulting to development mode. I even put RailsEnv in the apache config file. Any ideas on what might be causing this?

---

## [Find\_by\_sql without a model? how to do this?](https://www.ruby-forum.com/t/find-by-sql-without-a-model-how-to-do-this/139053)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 9\
**Last updated:** [June 1, 2008, 8:01am UTC](https://www.ruby-forum.com/t/find-by-sql-without-a-model-how-to-do-this/139053 "2008-06-01T08:01:42Z")

</div>

Hi, I’d like to do a “find\_by\_sql” without a model (e.g. .find\_by\_sql("…")) as the results I get back are a once off special, and I’m happy to handle them as an array. How do I do this? “ActiveRecord::Base.find\_by\_s…

---

## [Difference between false and :false](https://www.ruby-forum.com/t/difference-between-false-and-false/139169)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [June 1, 2008, 1:28am UTC](https://www.ruby-forum.com/t/difference-between-false-and-false/139169 "2008-06-01T01:28:40Z")

</div>

I was noticing that some code (acts\_as\_authenticated in particular) uses the symbol :false. What is the purpose of this symbol? Why not just use false? How can I write and if blog that will not be triggered if the v…

---

## [Select dropdown based off join table's include?](https://www.ruby-forum.com/t/select-dropdown-based-off-join-tables-include/139167)

<div class="topic-metadata">

**Author:** [@Sav](https://www.ruby-forum.com/u/Sav)\
**Replies:** 1\
**Last updated:** [May 31, 2008, 11:20pm UTC](https://www.ruby-forum.com/t/select-dropdown-based-off-join-tables-include/139167 "2008-05-31T23:20:25Z")

</div>

I have a “New Photo” view where I’d like to provide a select dropdown of the user’s favorite locations. Getting the data for a user’s favorites is no problem, but I’m not sure how to put the location name into the se…

---

## [Rails cookie javascript problem in IE6](https://www.ruby-forum.com/t/rails-cookie-javascript-problem-in-ie6/139168)

<div class="topic-metadata">

**Author:** [@peter](https://www.ruby-forum.com/u/peter)\
**Replies:** 0\
**Last updated:** [May 31, 2008, 10:27pm UTC](https://www.ruby-forum.com/t/rails-cookie-javascript-problem-in-ie6/139168 "2008-05-31T22:27:39Z")

</div>

We’re trying to read cookies (set with rails), but we’re having huuuuuge problems reading them with javascript in IE6. For some reason, document.cookies is always nil. The cookies ARE set (we see them) but reading th…

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

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