# Rails

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

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

---

## [User.protected\_attributes returning empty Set instead of nil -- causing activerecord/lib/base:2307](https://www.ruby-forum.com/t/user-protected-attributes-returning-empty-set-instead-of-nil-causing-activerecord-lib-base-2307/142716)

<div class="topic-metadata">

**Author:** [@ryan](https://www.ruby-forum.com/u/ryan)\
**Replies:** 0\
**Last updated:** [July 10, 2008, 7:59pm UTC](https://www.ruby-forum.com/t/user-protected-attributes-returning-empty-set-instead-of-nil-causing-activerecord-lib-base-2307/142716 "2008-07-10T19:59:12Z")

</div>

I have a model that uses attr\_accessible, and in my tests I get this: RuntimeError (Declare either attr\_protected or attr\_accessible for User, but not both.): /var/lib/gems/1.8/gems/activerecord-2.0.2/lib/active\_recor…

---

## [Display HABTM-association in view](https://www.ruby-forum.com/t/display-habtm-association-in-view/142689)

<div class="topic-metadata">

**Author:** [@sevensoft](https://www.ruby-forum.com/u/sevensoft)\
**Replies:** 1\
**Last updated:** [July 10, 2008, 6:38pm UTC](https://www.ruby-forum.com/t/display-habtm-association-in-view/142689 "2008-07-10T18:38:22Z")

</div>

Hi there, I’m quite new to Ruby and just finished setting up the relationship in the site I’m building. Everything works fine, the multiple checkboxes for association are displayed and updated on checking/unchecking. …

---

## [Getting images from array](https://www.ruby-forum.com/t/getting-images-from-array/142681)

<div class="topic-metadata">

**Author:** [@torso](https://www.ruby-forum.com/u/torso)\
**Replies:** 2\
**Last updated:** [July 10, 2008, 6:21pm UTC](https://www.ruby-forum.com/t/getting-images-from-array/142681 "2008-07-10T18:21:57Z")

</div>

Hi I have this kind of code source for uplaodin an image. from controller: def uploadFile @text = “File has been uploaded successfully” post = DataFile.save(params\[:upload\]) render :text =\> @text end from model: …

---

## [Sanitizing File Uploads](https://www.ruby-forum.com/t/sanitizing-file-uploads/142608)

<div class="topic-metadata">

**Author:** [@doug](https://www.ruby-forum.com/u/doug)\
**Replies:** 2\
**Last updated:** [July 10, 2008, 6:14pm UTC](https://www.ruby-forum.com/t/sanitizing-file-uploads/142608 "2008-07-10T18:14:19Z")

</div>

The HTML element has a nice little browse feature that allows the user to browse for the file to be uploaded. However, it doesn’t seem to be quite so well endowed when it comes to determining the file name to be ass…

---

## [Libs directory](https://www.ruby-forum.com/t/libs-directory/142217)

<div class="topic-metadata">

**Author:** [@eyp](https://www.ruby-forum.com/u/eyp)\
**Replies:** 4\
**Last updated:** [July 10, 2008, 6:04pm UTC](https://www.ruby-forum.com/t/libs-directory/142217 "2008-07-10T18:04:57Z")

</div>

Hello, I had an application on Rails 1.2 or 1.1 (don’t remember). Now I have updated it to 2.1. I had a migrations\_helper.rb in the Libs directory which defined foreign\_key and drop\_foreign\_key methods. But now migra…

---

## [Image uploader - Attachment Fu?](https://www.ruby-forum.com/t/image-uploader-attachment-fu/142652)

<div class="topic-metadata">

**Author:** [@jrun](https://www.ruby-forum.com/u/jrun)\
**Replies:** 2\
**Last updated:** [July 10, 2008, 4:10pm UTC](https://www.ruby-forum.com/t/image-uploader-attachment-fu/142652 "2008-07-10T16:10:13Z")

</div>

Hello, I’ve been searching on the forums for my particular answer but cannot find anything specific regarding my question. I am pretty new to RoR, and work on a Mac OSX 10.4 with the latest ruby and rails versions. T…

---

## [Starting rails](https://www.ruby-forum.com/t/starting-rails/142540)

<div class="topic-metadata">

**Author:** [@jturney](https://www.ruby-forum.com/u/jturney)\
**Replies:** 5\
**Last updated:** [July 10, 2008, 3:17pm UTC](https://www.ruby-forum.com/t/starting-rails/142540 "2008-07-10T15:17:27Z")

</div>

Youâ€™re riding Ruby on Rails! About your applicationâ€™s environment Routing Error No route matches “/rails/info/properties” with {:method=\>:get} at http://localhost:4000/ What’s wrong?

---

## [Git tries to delete when doing git add](https://www.ruby-forum.com/t/git-tries-to-delete-when-doing-git-add/142503)

<div class="topic-metadata">

**Author:** [@asoto](https://www.ruby-forum.com/u/asoto)\
**Replies:** 6\
**Last updated:** [July 10, 2008, 3:06pm UTC](https://www.ruby-forum.com/t/git-tries-to-delete-when-doing-git-add/142503 "2008-07-10T15:06:51Z")

</div>

Sorry, I know this is a git post, but I don’t really know where else to post this besides the official git mailing list, and I don’t want to post it there, because something this obvious surely can’t be a bug. Here’s …

---

## [New Comments for Posts in a blog](https://www.ruby-forum.com/t/new-comments-for-posts-in-a-blog/142663)

<div class="topic-metadata">

**Author:** [@Sean\_CSHess](https://www.ruby-forum.com/u/Sean_CSHess)\
**Replies:** 2\
**Last updated:** [July 10, 2008, 2:06pm UTC](https://www.ruby-forum.com/t/new-comments-for-posts-in-a-blog/142663 "2008-07-10T14:06:26Z")

</div>

Hello all, I’m doing something similar to a blog. Each post can have comments. Should I put the add comment action under the post controller or the comment controller? Right now I have it on the comment controller, …

---

## [Comment Abuse System](https://www.ruby-forum.com/t/comment-abuse-system/142695)

<div class="topic-metadata">

**Author:** [@joel](https://www.ruby-forum.com/u/joel)\
**Replies:** 0\
**Last updated:** [July 10, 2008, 1:34pm UTC](https://www.ruby-forum.com/t/comment-abuse-system/142695 "2008-07-10T13:34:47Z")

</div>

Hello G.s, does anyone know how to or an example on how to develop a complete abuse system ? Looking forward to any post on that issue, Thanks in advance, Joel

---

## [ADO error](https://www.ruby-forum.com/t/ado-error/142678)

<div class="topic-metadata">

**Author:** [@sumantacaptain](https://www.ruby-forum.com/u/sumantacaptain)\
**Replies:** 1\
**Last updated:** [July 10, 2008, 1:24pm UTC](https://www.ruby-forum.com/t/ado-error/142678 "2008-07-10T13:24:12Z")

</div>

hi, i want to accept a sql server 2005 db, have configured .yml file and loaded sql adapter yet am getting the following error DBI::InterfaceError in Rails/infoController#properties Could not load driver (no such fil…

---

## [\[ANN\] RecordSelect 0.9 - replacing the \<select\> for picking](https://www.ruby-forum.com/t/ann-recordselect-0-9-replacing-the-select-for-picking/112261)

<div class="topic-metadata">

**Author:** [@lance](https://www.ruby-forum.com/u/lance)\
**Replies:** 2\
**Last updated:** [July 10, 2008, 12:39pm UTC](https://www.ruby-forum.com/t/ann-recordselect-0-9-replacing-the-select-for-picking/112261 "2008-07-10T12:39:10Z")

</div>

Hello everyone! Have you ever needed to ask the user to pick one of a list of records? Ever struggled with the usability and performance of generating a humongous dropdown list? RecordSelect is my answer. It provides…

---

## [Different behaviour Rails 2.1 on linux / osx](https://www.ruby-forum.com/t/different-behaviour-rails-2-1-on-linux-osx/142686)

<div class="topic-metadata">

**Author:** [@nikwest](https://www.ruby-forum.com/u/nikwest)\
**Replies:** 1\
**Last updated:** [July 10, 2008, 12:15pm UTC](https://www.ruby-forum.com/t/different-behaviour-rails-2-1-on-linux-osx/142686 "2008-07-10T12:15:36Z")

</div>

Hi, I am running into a problem which really confuses me. I have Rails 2.1 and friends installed on both my osx development machine and a gentoo linux machine. I get a different ActiveRecord initialisation behaviour …

---

## [\[ANN\] Progress bar helper plugin](https://www.ruby-forum.com/t/ann-progress-bar-helper-plugin/142687)

<div class="topic-metadata">

**Author:** [@hildegunst](https://www.ruby-forum.com/u/hildegunst)\
**Replies:** 0\
**Last updated:** [July 10, 2008, 11:57am UTC](https://www.ruby-forum.com/t/ann-progress-bar-helper-plugin/142687 "2008-07-10T11:57:48Z")

</div>

Hi all, I have just released a plugin to help displaying a progress bar. It is not Ajaxified for now but gives a cool display for percentages. It works with or without javascript. You will find more information on th…

---

## [Soap4r en keyvaluepair](https://www.ruby-forum.com/t/soap4r-en-keyvaluepair/142683)

<div class="topic-metadata">

**Author:** [@daniel304](https://www.ruby-forum.com/u/daniel304)\
**Replies:** 1\
**Last updated:** [July 10, 2008, 11:49am UTC](https://www.ruby-forum.com/t/soap4r-en-keyvaluepair/142683 "2008-07-10T11:49:14Z")

</div>

I’m making a soap connection to an external program that will give me informatieoon in keyvalue pairs like this manner email removed\_email\_address@domain.invalid optin1 true I want to map it on my object that has t…

---

## [Find (:all) method](https://www.ruby-forum.com/t/find-all-method/142685)

<div class="topic-metadata">

**Author:** [@seb](https://www.ruby-forum.com/u/seb)\
**Replies:** 1\
**Last updated:** [July 10, 2008, 11:37am UTC](https://www.ruby-forum.com/t/find-all-method/142685 "2008-07-10T11:37:24Z")

</div>

i have 2 models items and categories…in items listing i have category name,title…etc… In item edit page i want to display the title of all item having the same category name.means when clicking on edit field of one i…

---

## [Rails 2.1 + Oracle](https://www.ruby-forum.com/t/rails-2-1-oracle/142382)

<div class="topic-metadata">

**Author:** [@mrdamien](https://www.ruby-forum.com/u/mrdamien)\
**Replies:** 8\
**Last updated:** [July 10, 2008, 11:15am UTC](https://www.ruby-forum.com/t/rails-2-1-oracle/142382 "2008-07-10T11:15:05Z")

</div>

Hi all, I am completely new to use Oracle with Rails (was using MySQL before). I have some trouble to get my code work despite the rails abstraction. My code was working perfectly with MySQL, but now when I am trying …

---

## [Newbee Question](https://www.ruby-forum.com/t/newbee-question/142675)

<div class="topic-metadata">

**Author:** [@giovanni](https://www.ruby-forum.com/u/giovanni)\
**Replies:** 1\
**Last updated:** [July 10, 2008, 10:47am UTC](https://www.ruby-forum.com/t/newbee-question/142675 "2008-07-10T10:47:34Z")

</div>

I have been trying to start working on some projects on RoR since last week. Read some books(its surpricing how many books there are on the matter) and tried some of the examples to mostly NO success. What is the ver…

---

## [Problem with ActiveScaffold+RecordSelect](https://www.ruby-forum.com/t/problem-with-activescaffold-recordselect/142612)

<div class="topic-metadata">

**Author:** [@menestra](https://www.ruby-forum.com/u/menestra)\
**Replies:** 1\
**Last updated:** [July 10, 2008, 10:36am UTC](https://www.ruby-forum.com/t/problem-with-activescaffold-recordselect/142612 "2008-07-10T10:36:11Z")

</div>

Hello, i’m using this two plugins. But i have some problems. My model is USER belongs\_to :avatar. Error is the follow: NameError in Admin/avatarsController#browse undefined local variable or method \`field’ for #Ad…

---

## [JavaScript Form Submit with form\_remote\_tag](https://www.ruby-forum.com/t/javascript-form-submit-with-form-remote-tag/142674)

<div class="topic-metadata">

**Author:** [@idledaylight](https://www.ruby-forum.com/u/idledaylight)\
**Replies:** 0\
**Last updated:** [July 10, 2008, 10:30am UTC](https://www.ruby-forum.com/t/javascript-form-submit-with-form-remote-tag/142674 "2008-07-10T10:30:57Z")

</div>

I am trying to submit a form\_remote\_tag using javascript instead of a regular form submit button. Here is my code: \<%= form\_remote\_tag( :url=\> { :controller=\>‘store’, :action=\>‘add\_to\_cart\_ajax’, :id =\> @product.id,…

---

## [Routing question](https://www.ruby-forum.com/t/routing-question/142589)

<div class="topic-metadata">

**Author:** [@jasonb](https://www.ruby-forum.com/u/jasonb)\
**Replies:** 3\
**Last updated:** [July 10, 2008, 9:14am UTC](https://www.ruby-forum.com/t/routing-question/142589 "2008-07-10T09:14:07Z")

</div>

Hi If a URL ends in /xxx … /ModelA/1/xxx /ModelA/1/ModelZ/2/xxx Is there a way to drop the XXX and the continue to resolve the URL normally? thanks!

---

## [What is the use of say\_with\_time?](https://www.ruby-forum.com/t/what-is-the-use-of-say-with-time/142668)

<div class="topic-metadata">

**Author:** [@karthikeyan](https://www.ruby-forum.com/u/karthikeyan)\
**Replies:** 1\
**Last updated:** [July 10, 2008, 7:45am UTC](https://www.ruby-forum.com/t/what-is-the-use-of-say-with-time/142668 "2008-07-10T07:45:48Z")

</div>

Hi, What is the use of say\_with\_time method in ROR migration? Thanks in advance…

---

## [Paypal integration](https://www.ruby-forum.com/t/paypal-integration/142649)

<div class="topic-metadata">

**Author:** [@paradise](https://www.ruby-forum.com/u/paradise)\
**Replies:** 1\
**Last updated:** [July 10, 2008, 7:38am UTC](https://www.ruby-forum.com/t/paypal-integration/142649 "2008-07-10T07:38:40Z")

</div>

I am currently developing a social networking site and am wondering if there is a way to automatically setup paypal accounts for my users using the api. Is there a way to have each user obtain a key and then input th…

---

## [Formatting Text in Forms](https://www.ruby-forum.com/t/formatting-text-in-forms/142597)

<div class="topic-metadata">

**Author:** [@tinney](https://www.ruby-forum.com/u/tinney)\
**Replies:** 3\
**Last updated:** [July 10, 2008, 5:42am UTC](https://www.ruby-forum.com/t/formatting-text-in-forms/142597 "2008-07-10T05:42:58Z")

</div>

Greetings everyone, I was just wondering what everyone does to allow members of their app the ability to format their text when they post information? I haven’t really found the de-facto RoR online editor. What’s the …

---

## [Rails ajax file/directory browser](https://www.ruby-forum.com/t/rails-ajax-file-directory-browser/142664)

<div class="topic-metadata">

**Author:** [@toro04](https://www.ruby-forum.com/u/toro04)\
**Replies:** 0\
**Last updated:** [July 10, 2008, 5:14am UTC](https://www.ruby-forum.com/t/rails-ajax-file-directory-browser/142664 "2008-07-10T05:14:10Z")

</div>

Hi Guys, Does anyone know of an existing Rails ajax file/directory browser app/plugin? I want to be able to browse a particular directory on the server the app will be run on Thanks! Adam

---

## [Filter list results](https://www.ruby-forum.com/t/filter-list-results/142596)

<div class="topic-metadata">

**Author:** [@Sean\_CSHess](https://www.ruby-forum.com/u/Sean_CSHess)\
**Replies:** 3\
**Last updated:** [July 10, 2008, 4:52am UTC](https://www.ruby-forum.com/t/filter-list-results/142596 "2008-07-10T04:52:09Z")

</div>

Hey All, What’s the right way to make a list of something (games in my case) but filtered by various parameters? For example, I have /game/list showing all games, but if they specify /game/list/? category=3&players=…

---

## [Generate Parameters for a filter](https://www.ruby-forum.com/t/generate-parameters-for-a-filter/142662)

<div class="topic-metadata">

**Author:** [@Sean\_CSHess](https://www.ruby-forum.com/u/Sean_CSHess)\
**Replies:** 0\
**Last updated:** [July 10, 2008, 4:35am UTC](https://www.ruby-forum.com/t/generate-parameters-for-a-filter/142662 "2008-07-10T04:35:47Z")

</div>

Hey all, I want to filter /game/list by several different parameters. If I type in a url like /game/list/?category=5&players=2 category and players come in on the params hash. Is there a railsy way to generate such …

---

## [ArgumentError: interning empty string and enum-column plugin](https://www.ruby-forum.com/t/argumenterror-interning-empty-string-and-enum-column-plugin/112922)

<div class="topic-metadata">

**Author:** [@clemrock](https://www.ruby-forum.com/u/clemrock)\
**Replies:** 1\
**Last updated:** [July 10, 2008, 2:44am UTC](https://www.ruby-forum.com/t/argumenterror-interning-empty-string-and-enum-column-plugin/112922 "2008-07-10T02:44:38Z")

</div>

Hello, I am a developer who has just started working on a large scale website in a team of 5 other developers. One of the developers has introduced some enum columns into the the database. Now, by default, activ…

---

## [HOWTO: OSX + iTerm + screen + vim + 256 colors](https://www.ruby-forum.com/t/howto-osx-iterm-screen-vim-256-colors/142654)

<div class="topic-metadata">

**Author:** [@phallstrom](https://www.ruby-forum.com/u/phallstrom)\
**Replies:** 0\
**Last updated:** [July 10, 2008, 2:33am UTC](https://www.ruby-forum.com/t/howto-osx-iterm-screen-vim-256-colors/142654 "2008-07-10T02:33:32Z")

</div>

Hi all - I realize I’m probably one of the few that doesn’t use Textmate on OSX, but I’m hoping there are a couple of folks out there that might find this useful. If you use OSX + iTerm + screen + vim and want 256 co…

---

## [Setting up rails to run with MySQL](https://www.ruby-forum.com/t/setting-up-rails-to-run-with-mysql/142613)

<div class="topic-metadata">

**Author:** [@jturney](https://www.ruby-forum.com/u/jturney)\
**Replies:** 3\
**Last updated:** [July 10, 2008, 2:14am UTC](https://www.ruby-forum.com/t/setting-up-rails-to-run-with-mysql/142613 "2008-07-10T02:14:50Z")

</div>

So I used script/server webrick and it works, but how do I use MySQL now? I already configured database.yml… when I try to run script/server without webrick I get this error: !!! Path to log file not valid: log/mongre…

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

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