# Rails

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

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

---

## [The Forum Hunt continues](https://www.ruby-forum.com/t/the-forum-hunt-continues/152169)

<div class="topic-metadata">

**Author:** [@mohits](https://www.ruby-forum.com/u/mohits)\
**Replies:** 8\
**Last updated:** [December 4, 2008, 6:29am UTC](https://www.ruby-forum.com/t/the-forum-hunt-continues/152169 "2008-12-04T06:29:21Z")

</div>

I’m still looking around for a good forum to integrate with a Radiant site that I’m working on, and I have narrowed it down to three options in the Rails world: (a) RForum - that seems to be updated less frequently, b…

---

## [Syntax highlighting for .erb files](https://www.ruby-forum.com/t/syntax-highlighting-for-erb-files/154746)

<div class="topic-metadata">

**Author:** [@deepa\_c\_shirur](https://www.ruby-forum.com/u/deepa_c_shirur)\
**Replies:** 4\
**Last updated:** [December 4, 2008, 6:18am UTC](https://www.ruby-forum.com/t/syntax-highlighting-for-erb-files/154746 "2008-12-04T06:18:12Z")

</div>

hi i am using radrails for ruby on rails development.I am creating html.erb for my application.i have noticed syntax is not highlighting for html.erb, please help thanks in advance

---

## [File upload problem in Safari 3.1](https://www.ruby-forum.com/t/file-upload-problem-in-safari-3-1/154815)

<div class="topic-metadata">

**Author:** [@srinathbtech](https://www.ruby-forum.com/u/srinathbtech)\
**Replies:** 0\
**Last updated:** [December 4, 2008, 6:07am UTC](https://www.ruby-forum.com/t/file-upload-problem-in-safari-3-1/154815 "2008-12-04T06:07:28Z")

</div>

Hi, I was unable to upload files in safari browser from my windows machine. Safari intermittantly hangs during file upload generating un-readable code and forced to close My IDE and not facing problems in other brows…

---

## [Rake gems broken when using capistrano-ext in rails 2.2.x](https://www.ruby-forum.com/t/rake-gems-broken-when-using-capistrano-ext-in-rails-2-2-x/154812)

<div class="topic-metadata">

**Author:** [@Freddy\_A](https://www.ruby-forum.com/u/Freddy_A)\
**Replies:** 1\
**Last updated:** [December 4, 2008, 5:22am UTC](https://www.ruby-forum.com/t/rake-gems-broken-when-using-capistrano-ext-in-rails-2-2-x/154812 "2008-12-04T05:22:03Z")

</div>

Just tested the rails bort setup and got an error when running rake gems: \[F\] capistrano-ext rake aborted! You have a nil object when you didn’t expect it! The error occurred while evaluating nil.dependencies If I…

---

## [Rails functional test how to assert json result?](https://www.ruby-forum.com/t/rails-functional-test-how-to-assert-json-result/154754)

<div class="topic-metadata">

**Author:** [@goodwill](https://www.ruby-forum.com/u/goodwill)\
**Replies:** 2\
**Last updated:** [December 4, 2008, 4:18am UTC](https://www.ruby-forum.com/t/rails-functional-test-how-to-assert-json-result/154754 "2008-12-04T04:18:51Z")

</div>

As title, I want to have my functional test check results from a json render result, how can I achieve this?

---

## [Need Help: Deployment Issues with Voting App?](https://www.ruby-forum.com/t/need-help-deployment-issues-with-voting-app/154695)

<div class="topic-metadata">

**Author:** [@Leximo](https://www.ruby-forum.com/u/Leximo)\
**Replies:** 4\
**Last updated:** [December 4, 2008, 4:16am UTC](https://www.ruby-forum.com/t/need-help-deployment-issues-with-voting-app/154695 "2008-12-04T04:16:30Z")

</div>

I have an app that allows users to submit words. In development, users can submit words, which are then voted on. Each user can only vote once. This works fine in development. However, when I deploy to my production s…

---

## [\[N00b\] Can I generate a model file from \[sql\] table?](https://www.ruby-forum.com/t/n00b-can-i-generate-a-model-file-from-sql-table/154801)

<div class="topic-metadata">

**Author:** [@olie](https://www.ruby-forum.com/u/olie)\
**Replies:** 1\
**Last updated:** [December 4, 2008, 3:38am UTC](https://www.ruby-forum.com/t/n00b-can-i-generate-a-model-file-from-sql-table/154801 "2008-12-04T03:38:49Z")

</div>

Ah, it’s been a while since I’ve done any rails – I almost forgot how deceptively easy it is… …to get yourself totally lost :wink: Anyway, I probably did this all backwards, but I created my table by writing a migrat…

---

## [Validates acceptance of question](https://www.ruby-forum.com/t/validates-acceptance-of-question/154693)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [December 4, 2008, 1:43am UTC](https://www.ruby-forum.com/t/validates-acceptance-of-question/154693 "2008-12-04T01:43:23Z")

</div>

I have a terms of service agreement attached to a checkbox. It seems to work ok and I see “agreement”=\>“0” when the box is not checked in the development log and “agreement”=\>“1” when the box is checked in the log. …

---

## [Has\_many through combinations error](https://www.ruby-forum.com/t/has-many-through-combinations-error/154775)

<div class="topic-metadata">

**Author:** [@phil](https://www.ruby-forum.com/u/phil)\
**Replies:** 2\
**Last updated:** [December 3, 2008, 11:41pm UTC](https://www.ruby-forum.com/t/has-many-through-combinations-error/154775 "2008-12-03T23:41:36Z")

</div>

I have these classes: class FilmTitle \< ActiveRecord::Base has\_many :films\_film\_titles has\_many :films, :through =\> :films\_film\_titles has\_many :assets, :through =\> :films end class Film \< ActiveRecord::Base has\_m…

---

## [Adding sound to Rails app](https://www.ruby-forum.com/t/adding-sound-to-rails-app/154652)

<div class="topic-metadata">

**Author:** [@wpwood](https://www.ruby-forum.com/u/wpwood)\
**Replies:** 9\
**Last updated:** [December 3, 2008, 11:18pm UTC](https://www.ruby-forum.com/t/adding-sound-to-rails-app/154652 "2008-12-03T23:18:10Z")

</div>

I need to add some simple sounds to my latest app. Basically, ‘beep’ and ‘burp’. Google hasn’t been much help. I’d appreciate any recommendations. Thanks, Bill

---

## [Migrations with multiple "unrelated" databases](https://www.ruby-forum.com/t/migrations-with-multiple-unrelated-databases/154788)

<div class="topic-metadata">

**Author:** [@student](https://www.ruby-forum.com/u/student)\
**Replies:** 0\
**Last updated:** [December 3, 2008, 11:07pm UTC](https://www.ruby-forum.com/t/migrations-with-multiple-unrelated-databases/154788 "2008-12-03T23:07:35Z")

</div>

I’ve read the various articles and documentation out there, but no one seems to have addressed the issue of managing migrations with multiple “unrelated” databases. Connections appear to be things that go with Active…

---

## [Am I wrong or is fields\_for not working right in Rails 2.2.2](https://www.ruby-forum.com/t/am-i-wrong-or-is-fields-for-not-working-right-in-rails-2-2-2/154687)

<div class="topic-metadata">

**Author:** [@joshua-asem](https://www.ruby-forum.com/u/joshua-asem)\
**Replies:** 4\
**Last updated:** [December 3, 2008, 11:05pm UTC](https://www.ruby-forum.com/t/am-i-wrong-or-is-fields-for-not-working-right-in-rails-2-2-2/154687 "2008-12-03T23:05:26Z")

</div>

I may be totally wrong about what the fields\_for method is supposed to do, but for some reason I thought using it scoped an object around an association. For example, I have a User class and when you’re creating a new…

---

## [How to disable .format routes?](https://www.ruby-forum.com/t/how-to-disable-format-routes/154778)

<div class="topic-metadata">

**Author:** [@oldbug](https://www.ruby-forum.com/u/oldbug)\
**Replies:** 1\
**Last updated:** [December 3, 2008, 10:44pm UTC](https://www.ruby-forum.com/t/how-to-disable-format-routes/154778 "2008-12-03T22:44:06Z")

</div>

Is there any way with RESTful routing to disable the .format routes? (“Why would you want to do that?”, I hear the purists cry…) I would like to do it in order to simplify the routing table for a newbie first learnin…

---

## [Check a checkbox and disable a field with Javascript](https://www.ruby-forum.com/t/check-a-checkbox-and-disable-a-field-with-javascript/154776)

<div class="topic-metadata">

**Author:** [@joep](https://www.ruby-forum.com/u/joep)\
**Replies:** 5\
**Last updated:** [December 3, 2008, 9:41pm UTC](https://www.ruby-forum.com/t/check-a-checkbox-and-disable-a-field-with-javascript/154776 "2008-12-03T21:41:06Z")

</div>

Good afternoon to you all, I have an order form where people can check the fruits they want and select the price of each fruit that they have checked. When I click the checkbox now, it does not seem to affect the cor…

---

## [Communicating between multiple rails applications?](https://www.ruby-forum.com/t/communicating-between-multiple-rails-applications/154581)

<div class="topic-metadata">

**Author:** [@stedwick](https://www.ruby-forum.com/u/stedwick)\
**Replies:** 3\
**Last updated:** [December 3, 2008, 9:20pm UTC](https://www.ruby-forum.com/t/communicating-between-multiple-rails-applications/154581 "2008-12-03T21:20:01Z")

</div>

Short story: My company has a rails application as our product. As we add more functionality, we are thinking of building new small, self-contained rails applications rather than just chugging along with our single m…

---

## [What's the smallest device to do Rails development on?](https://www.ruby-forum.com/t/whats-the-smallest-device-to-do-rails-development-on/154716)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 3\
**Last updated:** [December 3, 2008, 8:10pm UTC](https://www.ruby-forum.com/t/whats-the-smallest-device-to-do-rails-development-on/154716 "2008-12-03T20:10:39Z")

</div>

Hi, What’s the smallest (lightest / most compact) device that one could use to do relatively productive Rails development on? Ideally something you could carry in your pocket (i.e. I’m thinking smaller/lighter than …

---

## [Serialize with Marshal, YAML, or what?](https://www.ruby-forum.com/t/serialize-with-marshal-yaml-or-what/154769)

<div class="topic-metadata">

**Author:** [@jrochkind](https://www.ruby-forum.com/u/jrochkind)\
**Replies:** 1\
**Last updated:** [December 3, 2008, 7:03pm UTC](https://www.ruby-forum.com/t/serialize-with-marshal-yaml-or-what/154769 "2008-12-03T19:03:06Z")

</div>

If I want to serialize/unserialize arbitrary objects (not just ARs) in a Rails app, what’s the best way to do it? Using ‘Marshal’ seems to be ruby standard. But then there’s YAML. And then I feel like maybe Rails adds…

---

## [Recommend me project-management tool](https://www.ruby-forum.com/t/recommend-me-project-management-tool/109226)

<div class="topic-metadata">

**Author:** [@fero](https://www.ruby-forum.com/u/fero)\
**Replies:** 11\
**Last updated:** [December 3, 2008, 6:37pm UTC](https://www.ruby-forum.com/t/recommend-me-project-management-tool/109226 "2008-12-03T18:37:50Z")

</div>

hello. Can you recommend me some really simple project-management tool, running on rails? Something designed for really small teams and projects, with simple setup and interface. Thanks! Fero.

---

## [Polymorphic\_url for index](https://www.ruby-forum.com/t/polymorphic-url-for-index/153304)

<div class="topic-metadata">

**Author:** [@gabi](https://www.ruby-forum.com/u/gabi)\
**Replies:** 2\
**Last updated:** [December 3, 2008, 6:31pm UTC](https://www.ruby-forum.com/t/polymorphic-url-for-index/153304 "2008-12-03T18:31:58Z")

</div>

Hello, How can I use polymorphic\_url to generate the index action? It works fine with the create action so far. Thanks!

---

## [Need flexible conditions hash with activerecord](https://www.ruby-forum.com/t/need-flexible-conditions-hash-with-activerecord/154762)

<div class="topic-metadata">

**Author:** [@sadathiru](https://www.ruby-forum.com/u/sadathiru)\
**Replies:** 1\
**Last updated:** [December 3, 2008, 6:28pm UTC](https://www.ruby-forum.com/t/need-flexible-conditions-hash-with-activerecord/154762 "2008-12-03T18:28:28Z")

</div>

Hi, I am using find method of activerecord in my code. And I am specifying conditions through hash like below, conditions = {} conditions\[:deactivated\_on\] = !nil (conditions\[:deactivated\_on\] = nil this works) @acc…

---

## [Multi-model forms](https://www.ruby-forum.com/t/multi-model-forms/154767)

<div class="topic-metadata">

**Author:** [@daveelman](https://www.ruby-forum.com/u/daveelman)\
**Replies:** 0\
**Last updated:** [December 3, 2008, 6:27pm UTC](https://www.ruby-forum.com/t/multi-model-forms/154767 "2008-12-03T18:27:52Z")

</div>

Hi I’m trying to implement multi-model forms. Specifically a form containing the following relationships … parent -\> children child -\> grandchildren \[ NOTE : "-\>" denotes a one to many relationship / association -…

---

## [Help with rails+sproutcore](https://www.ruby-forum.com/t/help-with-rails-sproutcore/154765)

<div class="topic-metadata">

**Author:** [@geneeyuss](https://www.ruby-forum.com/u/geneeyuss)\
**Replies:** 0\
**Last updated:** [December 3, 2008, 6:09pm UTC](https://www.ruby-forum.com/t/help-with-rails-sproutcore/154765 "2008-12-03T18:09:44Z")

</div>

I have been trying to use rails as the backend for sproutcore. I am following the tutorial: I have followed all the steps in the tutorial. When I try to run the http://localhost:4020/contacts, its gives me the follow…

---

## [Mysql warning](https://www.ruby-forum.com/t/mysql-warning/154711)

<div class="topic-metadata">

**Author:** [@nilez](https://www.ruby-forum.com/u/nilez)\
**Replies:** 3\
**Last updated:** [December 3, 2008, 5:19pm UTC](https://www.ruby-forum.com/t/mysql-warning/154711 "2008-12-03T17:19:07Z")

</div>

Hi everyone. In development.log one message always appears as 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 l…

---

## [Using import CSV with params](https://www.ruby-forum.com/t/using-import-csv-with-params/154751)

<div class="topic-metadata">

**Author:** [@denver](https://www.ruby-forum.com/u/denver)\
**Replies:** 2\
**Last updated:** [December 3, 2008, 5:00pm UTC](https://www.ruby-forum.com/t/using-import-csv-with-params/154751 "2008-12-03T17:00:17Z")

</div>

Hi Guys, I am using import CSV to import from a csv file to my database in my rails app. I want to be able to be able to add a list of email addresses from this file but also include the mailinglist\_id which is a par…

---

## [Check for empty? in the view](https://www.ruby-forum.com/t/check-for-empty-in-the-view/154747)

<div class="topic-metadata">

**Author:** [@elmy-liddiard](https://www.ruby-forum.com/u/elmy-liddiard)\
**Replies:** 5\
**Last updated:** [December 3, 2008, 4:30pm UTC](https://www.ruby-forum.com/t/check-for-empty-in-the-view/154747 "2008-12-03T16:30:20Z")

</div>

I nned to get an associsted name from one table dependent on the related id value in another table when rendering the view but cant figure out the syntax to handle pontential empty values:- i.e. docv.policy\_id OR docv…

---

## [Problems with link\_to and submit\_tag](https://www.ruby-forum.com/t/problems-with-link-to-and-submit-tag/154742)

<div class="topic-metadata">

**Author:** [@nellboy](https://www.ruby-forum.com/u/nellboy)\
**Replies:** 12\
**Last updated:** [December 3, 2008, 4:05pm UTC](https://www.ruby-forum.com/t/problems-with-link-to-and-submit-tag/154742 "2008-12-03T16:05:00Z")

</div>

ok, so here’s my problem… i’ll add the code below… I want to display users, and as an administrator, give other users administrative priviledges… so, I would perform this in the users index page… displaying all users …

---

## [Sending mail templates to a mailinglist](https://www.ruby-forum.com/t/sending-mail-templates-to-a-mailinglist/154533)

<div class="topic-metadata">

**Author:** [@dnstevenson](https://www.ruby-forum.com/u/dnstevenson)\
**Replies:** 18\
**Last updated:** [December 3, 2008, 2:59pm UTC](https://www.ruby-forum.com/t/sending-mail-templates-to-a-mailinglist/154533 "2008-12-03T14:59:20Z")

</div>

As a noob to rails I am struggling with being able to send a mail template (html) stored in my database to all the users on a mailing list. I can use the emailer page to send the mail template to a single email addres…

---

## [Map block issue on rails 2.2](https://www.ruby-forum.com/t/map-block-issue-on-rails-2-2/154744)

<div class="topic-metadata">

**Author:** [@Hasham](https://www.ruby-forum.com/u/Hasham)\
**Replies:** 3\
**Last updated:** [December 3, 2008, 2:49pm UTC](https://www.ruby-forum.com/t/map-block-issue-on-rails-2-2/154744 "2008-12-03T14:49:10Z")

</div>

I am trying to change attribute of all objects in AR collection inside a map block see: http://pastie.org/329737 but attributes are not being updated in Rails 2.2 This was working in earlier versions of rails Any h…

---

## [What you think about Ruby Jobs?](https://www.ruby-forum.com/t/what-you-think-about-ruby-jobs/154501)

<div class="topic-metadata">

**Author:** [@Edson\_L](https://www.ruby-forum.com/u/Edson_L)\
**Replies:** 3\
**Last updated:** [December 3, 2008, 12:01pm UTC](https://www.ruby-forum.com/t/what-you-think-about-ruby-jobs/154501 "2008-12-03T12:01:08Z")

</div>

Hello everyone, I’m from Brazil, and I’m looking forward to lean a new language to work with. Ruby is my choice! :smiley: What is the salary average for Ruby programmers? (rookie, normal, expert) Ho pays the best sa…

---

## [Event target bug or jquery.validation bug in IE?](https://www.ruby-forum.com/t/event-target-bug-or-jquery-validation-bug-in-ie/154729)

<div class="topic-metadata">

**Author:** [@artchrst](https://www.ruby-forum.com/u/artchrst)\
**Replies:** 0\
**Last updated:** [December 3, 2008, 10:18am UTC](https://www.ruby-forum.com/t/event-target-bug-or-jquery-validation-bug-in-ie/154729 "2008-12-03T10:18:52Z")

</div>

I’m using jquery.validation.js plugin. It works fine in firefox. However, in IE, I have problem if there is errorred fields (which shows an error sentence). If it happens, the plugin keep onfocusin the first errored f…

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

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