# Rails

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

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

---

## [Installing MySQL on Leopard?](https://www.ruby-forum.com/t/installing-mysql-on-leopard/123201)

<div class="topic-metadata">

**Author:** [@softf5ajivanet](https://www.ruby-forum.com/u/softf5ajivanet)\
**Replies:** 8\
**Last updated:** [December 16, 2007, 10:02am UTC](https://www.ruby-forum.com/t/installing-mysql-on-leopard/123201 "2007-12-16T10:02:34Z")

</div>

totally not a Rails question but just got OSX Leopard and having real trouble working out how to get MySQL running ? Any ideas?

---

## [rSpec 1.1](https://www.ruby-forum.com/t/rspec-1-1/123308)

<div class="topic-metadata">

**Author:** [@randall](https://www.ruby-forum.com/u/randall)\
**Replies:** 1\
**Last updated:** [December 16, 2007, 9:26am UTC](https://www.ruby-forum.com/t/rspec-1-1/123308 "2007-12-16T09:26:25Z")

</div>

Hello, I have been trying and failing miserably to try and get Autotest to work in any type of capacity in my development environment. But that is another topic. Where I am at right now is just trying to get rSpec …

---

## [Schema.rb naming conventions](https://www.ruby-forum.com/t/schema-rb-naming-conventions/123114)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 4\
**Last updated:** [December 16, 2007, 9:12am UTC](https://www.ruby-forum.com/t/schema-rb-naming-conventions/123114 "2007-12-16T09:12:59Z")

</div>

going by \<http://wiki.rubyonrails.org/rails/pages/ ThroughAssociations\>, I think that I have my table names in the schema squared away, but I’m not convinced. For a many-to-many with ThroughAssociations between table…

---

## [Passing params](https://www.ruby-forum.com/t/passing-params/123294)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 7\
**Last updated:** [December 16, 2007, 9:05am UTC](https://www.ruby-forum.com/t/passing-params/123294 "2007-12-16T09:05:51Z")

</div>

I am having a problem passing a variable from a test\_helper.rb to the controller test. I am parsing a string in the helper file and I am creating an array name @choose1. I can access the elements in @choose1 in the …

---

## [Parameters in routing paths](https://www.ruby-forum.com/t/parameters-in-routing-paths/123297)

<div class="topic-metadata">

**Author:** [@cpher](https://www.ruby-forum.com/u/cpher)\
**Replies:** 2\
**Last updated:** [December 16, 2007, 8:33am UTC](https://www.ruby-forum.com/t/parameters-in-routing-paths/123297 "2007-12-16T08:33:32Z")

</div>

Hello all. I have what I think is a pretty common dilemma with Rails routing, and I haven’t been able to find or come up with a clean/DRY solution. I have a home controller that is used for displaying real estate inf…

---

## [Migration Breaking and a strange error](https://www.ruby-forum.com/t/migration-breaking-and-a-strange-error/123312)

<div class="topic-metadata">

**Author:** [@saurabhbhatia](https://www.ruby-forum.com/u/saurabhbhatia)\
**Replies:** 0\
**Last updated:** [December 16, 2007, 8:02am UTC](https://www.ruby-forum.com/t/migration-breaking-and-a-strange-error/123312 "2007-12-16T08:02:14Z")

</div>

Hi All, I am stuck in a rake migrate here, can any one help me? Here’s how the problem goes; we added a new table in the application,our rake broke when we migrated the new tables. We got the following error: oepfo@…

---

## [Nested Resources and with\_scope](https://www.ruby-forum.com/t/nested-resources-and-with-scope/123311)

<div class="topic-metadata">

**Author:** [@asetzler](https://www.ruby-forum.com/u/asetzler)\
**Replies:** 0\
**Last updated:** [December 16, 2007, 7:51am UTC](https://www.ruby-forum.com/t/nested-resources-and-with-scope/123311 "2007-12-16T07:51:08Z")

</div>

Heylo all… Basically nested resources in rails 2.0 are great, but I’m trying to do the thin controller fat model stuff and I’m trying to build a model that knows what the resource tree is… Ie @document = Document.fi…

---

## [How to upgrade to rails 2.0?](https://www.ruby-forum.com/t/how-to-upgrade-to-rails-2-0/123234)

<div class="topic-metadata">

**Author:** [@elle](https://www.ruby-forum.com/u/elle)\
**Replies:** 6\
**Last updated:** [December 16, 2007, 6:31am UTC](https://www.ruby-forum.com/t/how-to-upgrade-to-rails-2-0/123234 "2007-12-16T06:31:41Z")

</div>

I wanted to ask if anyone has any links to online resources or tutorials that teach you how to upgrade to rails 2.0? Cheers, Elle

---

## [Pass the model type to the action via a hidden field?](https://www.ruby-forum.com/t/pass-the-model-type-to-the-action-via-a-hidden-field/123302)

<div class="topic-metadata">

**Author:** [@paradise](https://www.ruby-forum.com/u/paradise)\
**Replies:** 0\
**Last updated:** [December 16, 2007, 5:16am UTC](https://www.ruby-forum.com/t/pass-the-model-type-to-the-action-via-a-hidden-field/123302 "2007-12-16T05:16:54Z")

</div>

I have a question about the acts\_as\_commentable plugin. In the instructions it says to use hidden fields to pass the model type and model id. This is somewhat confusing me. I am trying to add comments to a user obj…

---

## [Integration Testing - hang with post parameters](https://www.ruby-forum.com/t/integration-testing-hang-with-post-parameters/123300)

<div class="topic-metadata">

**Author:** [@rcarvalho](https://www.ruby-forum.com/u/rcarvalho)\
**Replies:** 0\
**Last updated:** [December 16, 2007, 4:56am UTC](https://www.ruby-forum.com/t/integration-testing-hang-with-post-parameters/123300 "2007-12-16T04:56:51Z")

</div>

I’m getting some weirdness with integration testing. The following works fine if I don’t have parameters, but as soon as I add parameters I get a hang. Not sure exactly where it is hanging. NO HANG post ‘user/regis…

---

## [Rfacebook questions & answers Mailing List/Forum Now Live - Join Us](https://www.ruby-forum.com/t/rfacebook-questions-answers-mailing-list-forum-now-live-join-us/123298)

<div class="topic-metadata">

**Author:** [@gerald\_b](https://www.ruby-forum.com/u/gerald_b)\
**Replies:** 0\
**Last updated:** [December 16, 2007, 4:43am UTC](https://www.ruby-forum.com/t/rfacebook-questions-answers-mailing-list-forum-now-live-join-us/123298 "2007-12-16T04:43:36Z")

</div>

Hello, Developing Facebook applications in Ruby on Rails? Join us and post your rfacebook questions & answers, news & updates, and more to the new rfacebook mailing list/forum. Latest topics include: o Are there any…

---

## [List Box Issue - Should be easy, but nor for me!](https://www.ruby-forum.com/t/list-box-issue-should-be-easy-but-nor-for-me/123255)

<div class="topic-metadata">

**Author:** [@tedster](https://www.ruby-forum.com/u/tedster)\
**Replies:** 3\
**Last updated:** [December 16, 2007, 4:43am UTC](https://www.ruby-forum.com/t/list-box-issue-should-be-easy-but-nor-for-me/123255 "2007-12-16T04:43:35Z")

</div>

I have the following snippet in my app: \<% @anitem = Item.find(:all, :conditions =\> "id = " + params\[:id\]) %\> \<% form\_for :anitem, :url =\> { :action =\> :updateitem } do |thisform| -%\> … … (some code…removed) … \<%=…

---

## [\[REST\] change :controller/:id/:action to :controller/:title/](https://www.ruby-forum.com/t/rest-change-controller-id-action-to-controller-title/123273)

<div class="topic-metadata">

**Author:** [@mex23](https://www.ruby-forum.com/u/mex23)\
**Replies:** 2\
**Last updated:** [December 16, 2007, 2:12am UTC](https://www.ruby-forum.com/t/rest-change-controller-id-action-to-controller-title/123273 "2007-12-16T02:12:12Z")

</div>

Ok, so this is the very very first time i use Ruby on Rails. I’m developing a simple resource listing application My question in simple: now to see a resource i would goto /resources/:id i want this to change to /res…

---

## [Is it possible to have format.html and format.json output the same results?](https://www.ruby-forum.com/t/is-it-possible-to-have-format-html-and-format-json-output-the-same-results/123281)

<div class="topic-metadata">

**Author:** [@vince](https://www.ruby-forum.com/u/vince)\
**Replies:** 9\
**Last updated:** [December 16, 2007, 2:11am UTC](https://www.ruby-forum.com/t/is-it-possible-to-have-format-html-and-format-json-output-the-same-results/123281 "2007-12-16T02:11:00Z")

</div>

My index action currently looks like this def index @pictures = Picture.search(params\[:page\]) respond\_to do |format| format.html format.json { render :text =\> @pictures.to\_json } end end format.json is used to d…

---

## [Nested/not-nested resources](https://www.ruby-forum.com/t/nested-not-nested-resources/122992)

<div class="topic-metadata">

**Author:** [@Imobach\_GonzSSSSlez](https://www.ruby-forum.com/u/Imobach_GonzSSSSlez)\
**Replies:** 3\
**Last updated:** [December 16, 2007, 1:27am UTC](https://www.ruby-forum.com/t/nested-not-nested-resources/122992 "2007-12-16T01:27:10Z")

</div>

Hi all, Suppose I’ve got two resources: “customers” and “bills”. Each “bill” belongs to a “customer”. It seems clear to me that the routes.rb must contain something like this: map.resources :customers do |customer| …

---

## [Issue with upgrading to 2.0 on Leopard? Or something else?](https://www.ruby-forum.com/t/issue-with-upgrading-to-2-0-on-leopard-or-something-else/123161)

<div class="topic-metadata">

**Author:** [@shirt](https://www.ruby-forum.com/u/shirt)\
**Replies:** 3\
**Last updated:** [December 15, 2007, 11:04pm UTC](https://www.ruby-forum.com/t/issue-with-upgrading-to-2-0-on-leopard-or-something-else/123161 "2007-12-15T23:04:55Z")

</div>

Sorry if this has been covered, but I finally decided to upgrade to Rails 2.0 (running Leopard and previously at rails 1.2.6) so I could start using some of the great new features. I ran the usual “sudo gem install r…

---

## [Route and patterns](https://www.ruby-forum.com/t/route-and-patterns/122794)

<div class="topic-metadata">

**Author:** [@antonaylward](https://www.ruby-forum.com/u/antonaylward)\
**Replies:** 4\
**Last updated:** [December 15, 2007, 10:53pm UTC](https://www.ruby-forum.com/t/route-and-patterns/122794 "2007-12-15T22:53:13Z")

</div>

In a wiki, routes are handling web\_index /:web {:controller=\>“wiki”, :action=\>“index”} web\_topic /:web/:topic {:controller=\>“wiki”, :action=\>“view”} action /:web/:topic/:action {:controller=\>“wiki”} Tha…

---

## [Reading Model data before update](https://www.ruby-forum.com/t/reading-model-data-before-update/123240)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [December 15, 2007, 10:52pm UTC](https://www.ruby-forum.com/t/reading-model-data-before-update/123240 "2007-12-15T22:52:38Z")

</div>

Hi all, here is the challenge: I have this validation method, that basically prevents an object which billed = true to be updated: def before\_update if read\_attribute(:billed) errors.add\_to\_base(‘This service has a…

---

## [Can't dup Fixnum?](https://www.ruby-forum.com/t/cant-dup-fixnum/123270)

<div class="topic-metadata">

**Author:** [@peterb](https://www.ruby-forum.com/u/peterb)\
**Replies:** 1\
**Last updated:** [December 15, 2007, 9:46pm UTC](https://www.ruby-forum.com/t/cant-dup-fixnum/123270 "2007-12-15T21:46:29Z")

</div>

Hi there, Rails 2.0.1 stable, mySQL trying to access an object created through a function call : Model 1 : MyModel \<\< ActiceRecord::Base … def stats @stats ||= MyStats.new(self.id) end … Model 2 : MyStats \< …

---

## [Calling render\_to\_string from a separate controller](https://www.ruby-forum.com/t/calling-render-to-string-from-a-separate-controller/122174)

<div class="topic-metadata">

**Author:** [@squ](https://www.ruby-forum.com/u/squ)\
**Replies:** 1\
**Last updated:** [December 15, 2007, 9:18pm UTC](https://www.ruby-forum.com/t/calling-render-to-string-from-a-separate-controller/122174 "2007-12-15T21:18:18Z")

</div>

Hello everyone. I’m having some trouble with calling render\_to\_string from a separate controller. I’m also new with using methods from other controllers, but I think I’ve got a grasp on that. So here’s what I’m doing: …

---

## [JRubyHub.com: The hub to all JRuby and JRuby on Rails (JRoR) resources](https://www.ruby-forum.com/t/jrubyhub-com-the-hub-to-all-jruby-and-jruby-on-rails-jror-resources/123278)

<div class="topic-metadata">

**Author:** [@JRubyHub.com](https://www.ruby-forum.com/u/JRubyHub.com)\
**Replies:** 0\
**Last updated:** [December 15, 2007, 8:38pm UTC](https://www.ruby-forum.com/t/jrubyhub-com-the-hub-to-all-jruby-and-jruby-on-rails-jror-resources/123278 "2007-12-15T20:38:27Z")

</div>

Hello all Hello all I’m very pleased to announce the launch of JRubyHub.com : a One-Stop Knowlwdge Base dedicated to JRuby. JRuby is an interpreter of the Ruby language written in Java. JRuby allows Java code to be …

---

## [\[Rails Sys Admin\] Curious.. how often do you deploy?](https://www.ruby-forum.com/t/rails-sys-admin-curious-how-often-do-you-deploy/123271)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 1\
**Last updated:** [December 15, 2007, 8:33pm UTC](https://www.ruby-forum.com/t/rails-sys-admin-curious-how-often-do-you-deploy/123271 "2007-12-15T20:33:45Z")

</div>

Nothing scientific here people, I was just curious how often you deploy to production? I am the sys admin of a large rails site, and we seem to deploy every day (providing that all tests pass). However, in my previou…

---

## [Colons and semicolons in REST URIs](https://www.ruby-forum.com/t/colons-and-semicolons-in-rest-uris/122988)

<div class="topic-metadata">

**Author:** [@Imobach\_GonzSSSSlez](https://www.ruby-forum.com/u/Imobach_GonzSSSSlez)\
**Replies:** 2\
**Last updated:** [December 15, 2007, 7:56pm UTC](https://www.ruby-forum.com/t/colons-and-semicolons-in-rest-uris/122988 "2007-12-15T19:56:16Z")

</div>

Hi all, In the book RESTful Web Services\[1\] (from O’Reilly) there’s a little section about URI design where it tells you to use “semicolons” or “commas” to separate pieces of information at the same level. For exampl…

---

## [Does gem fcgi require fcgi to be installed?](https://www.ruby-forum.com/t/does-gem-fcgi-require-fcgi-to-be-installed/123206)

<div class="topic-metadata">

**Author:** [@eggman2001](https://www.ruby-forum.com/u/eggman2001)\
**Replies:** 1\
**Last updated:** [December 15, 2007, 7:54pm UTC](https://www.ruby-forum.com/t/does-gem-fcgi-require-fcgi-to-be-installed/123206 "2007-12-15T19:54:31Z")

</div>

Does anyone know if the gem fcgi needs fcgi to be installed on my machine? I’m trying to install the gem fcgi and I’m getting the following message: -bash-3.00# gem install fcgi Updating metadata for 9 gems from http…

---

## [Nil.update\_attributes on variable from find\_by](https://www.ruby-forum.com/t/nil-update-attributes-on-variable-from-find-by/123237)

<div class="topic-metadata">

**Author:** [@lgas](https://www.ruby-forum.com/u/lgas)\
**Replies:** 3\
**Last updated:** [December 15, 2007, 6:12pm UTC](https://www.ruby-forum.com/t/nil-update-attributes-on-variable-from-find-by/123237 "2007-12-15T18:12:55Z")

</div>

I have a pre-populated Factor row that belongs to a Job (Job has one Factor). The upd\_factor form looks fine – brings in all expected Factor data for that Job, but when I hit submit after making changes, it throws th…

---

## [Before\_filter and xhr](https://www.ruby-forum.com/t/before-filter-and-xhr/123259)

<div class="topic-metadata">

**Author:** [@pkoebbe](https://www.ruby-forum.com/u/pkoebbe)\
**Replies:** 1\
**Last updated:** [December 15, 2007, 5:03pm UTC](https://www.ruby-forum.com/t/before-filter-and-xhr/123259 "2007-12-15T17:03:10Z")

</div>

I’m making some ajax calls via prototype’s new Ajax.Request method. When I do that, are before\_filters fired? This is Rails 1.2.3, and here is what I’m doing: in a controller, I have before\_fllter :get\_poll which as…

---

## [Qustion about autocomplete](https://www.ruby-forum.com/t/qustion-about-autocomplete/123248)

<div class="topic-metadata">

**Author:** [@laurent](https://www.ruby-forum.com/u/laurent)\
**Replies:** 2\
**Last updated:** [December 15, 2007, 1:56pm UTC](https://www.ruby-forum.com/t/qustion-about-autocomplete/123248 "2007-12-15T13:56:24Z")

</div>

Hi In a Rails application i use text\_with\_autocomplete helper. My problem is in a Compose Message page : Imagine a textfield, where i should type my email adresses : i can type many emails separated by colon. in th…

---

## [No Rails docs in gem\_server](https://www.ruby-forum.com/t/no-rails-docs-in-gem-server/123249)

<div class="topic-metadata">

**Author:** [@dxk3355](https://www.ruby-forum.com/u/dxk3355)\
**Replies:** 0\
**Last updated:** [December 15, 2007, 12:22pm UTC](https://www.ruby-forum.com/t/no-rails-docs-in-gem-server/123249 "2007-12-15T12:22:25Z")

</div>

Hi, I don’t see the RDOC for rails at http://localhost:8808… (I checked the doc directory and is empty)… I tried “gem rdoc rails”… it executes, but it doesn’t do anything… it would be great if anyone could give me in…

---

## [CFP : First Ruby and Rails devroom at Fosdem 2008](https://www.ruby-forum.com/t/cfp-first-ruby-and-rails-devroom-at-fosdem-2008/123244)

<div class="topic-metadata">

**Author:** [@Calamitas](https://www.ruby-forum.com/u/Calamitas)\
**Replies:** 0\
**Last updated:** [December 15, 2007, 11:45am UTC](https://www.ruby-forum.com/t/cfp-first-ruby-and-rails-devroom-at-fosdem-2008/123244 "2007-12-15T11:45:09Z")

</div>

Hi folks, The Belgian Ruby U. Group is happy to announce the first Ruby and Rails devroom at Fosdem 2008. Fosdem is a gathering of Free and Open Source Software developers and the ideal occasion to meet fellow Ruby a…

---

## [RESTful admin interface? how?](https://www.ruby-forum.com/t/restful-admin-interface-how/123226)

<div class="topic-metadata">

**Author:** [@JSPablo\_FernSSSSnd](https://www.ruby-forum.com/u/JSPablo_FernSSSSnd)\
**Replies:** 5\
**Last updated:** [December 15, 2007, 11:45am UTC](https://www.ruby-forum.com/t/restful-admin-interface-how/123226 "2007-12-15T11:45:09Z")

</div>

Hello, So I have a web site with companies and products. I use REST and make companies a resource and products a resource (and a ‘sub-resource’ of company). But only for viewing, no new, no create, no destroy, no upd…

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

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