# Rails

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

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

---

## [Whats the latest on getting MySQL onto Leopard?](https://www.ruby-forum.com/t/whats-the-latest-on-getting-mysql-onto-leopard/132307)

<div class="topic-metadata">

**Author:** [@nahabed](https://www.ruby-forum.com/u/nahabed)\
**Replies:** 3\
**Last updated:** [March 19, 2008, 11:05am UTC](https://www.ruby-forum.com/t/whats-the-latest-on-getting-mysql-onto-leopard/132307 "2008-03-19T11:05:32Z")

</div>

I just moved to a Mac OS X Leopard machine and have been reading the posts on setting-up MySQL and frankly, its intimating given that a standard package doesn’t exist that works. I am posting to see what the latest an…

---

## [Problem in using typedef with c++](https://www.ruby-forum.com/t/problem-in-using-typedef-with-c/132348)

<div class="topic-metadata">

**Author:** [@tonyaim83](https://www.ruby-forum.com/u/tonyaim83)\
**Replies:** 1\
**Last updated:** [March 19, 2008, 11:05am UTC](https://www.ruby-forum.com/t/problem-in-using-typedef-with-c/132348 "2008-03-19T11:05:15Z")

</div>

Hi My code is as follows :- example.h #include"iostream.h" using namespace std; typedef int MYINT; void sum(MYINT a, MYINT b); example.cpp #include"example.h" void sum(MYINT a, MYINT b) { MYINT c; c=a +b; co…

---

## [Subdomain routing with rails 2](https://www.ruby-forum.com/t/subdomain-routing-with-rails-2/132339)

<div class="topic-metadata">

**Author:** [@sucrenoir](https://www.ruby-forum.com/u/sucrenoir)\
**Replies:** 1\
**Last updated:** [March 19, 2008, 9:35am UTC](https://www.ruby-forum.com/t/subdomain-routing-with-rails-2/132339 "2008-03-19T09:35:58Z")

</div>

What is the best to route based on the subdomain in routes.rb ? There used to be a plugin http://svn.danwebb.net/external/rails/plugins/request\_routing/trunk/README for rails 1. But as the routing mechanism has been …

---

## [URL mapping in routes.rb](https://www.ruby-forum.com/t/url-mapping-in-routes-rb/132329)

<div class="topic-metadata">

**Author:** [@karthikeyan](https://www.ruby-forum.com/u/karthikeyan)\
**Replies:** 1\
**Last updated:** [March 19, 2008, 9:19am UTC](https://www.ruby-forum.com/t/url-mapping-in-routes-rb/132329 "2008-03-19T09:19:47Z")

</div>

Hi, I have the following mapping in routes.rb. map.resources :definitions, :member=\>{:execute=\>:post}, :collection=\>{:select=\>:get} do |def| def.resources :definition\_fields end Now I am able to access the ‘index’ …

---

## [Organizing controllers and models](https://www.ruby-forum.com/t/organizing-controllers-and-models/132341)

<div class="topic-metadata">

**Author:** [@dharmarth](https://www.ruby-forum.com/u/dharmarth)\
**Replies:** 0\
**Last updated:** [March 19, 2008, 9:14am UTC](https://www.ruby-forum.com/t/organizing-controllers-and-models/132341 "2008-03-19T09:14:11Z")

</div>

What can be the ways to organize Controllers and Models into proper hierarchy? This is essential, as in my application, there are 3-4 controller and 5-6 models corresponding to one service. And there can be hundreads …

---

## [How i can use pagination](https://www.ruby-forum.com/t/how-i-can-use-pagination/132134)

<div class="topic-metadata">

**Author:** [@manish](https://www.ruby-forum.com/u/manish)\
**Replies:** 3\
**Last updated:** [March 19, 2008, 9:09am UTC](https://www.ruby-forum.com/t/how-i-can-use-pagination/132134 "2008-03-19T09:09:44Z")

</div>

hi pls help me to put pagination on my pages. if anyone has any code that he use…pls give me

---

## [Rails application failed to start properly](https://www.ruby-forum.com/t/rails-application-failed-to-start-properly/132336)

<div class="topic-metadata">

**Author:** [@ruchika](https://www.ruby-forum.com/u/ruchika)\
**Replies:** 0\
**Last updated:** [March 19, 2008, 8:03am UTC](https://www.ruby-forum.com/t/rails-application-failed-to-start-properly/132336 "2008-03-19T08:03:17Z")

</div>

I m new to ROR. I made a ROR application its working fine in localhost. But whn i uploaded it in DREAMHOST server this error starts coming. the link to my site is --------------- http://www.copychops.com/ help me.

---

## [File upload problem when using form\_remote\_tag](https://www.ruby-forum.com/t/file-upload-problem-when-using-form-remote-tag/131898)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 4\
**Last updated:** [March 19, 2008, 7:48am UTC](https://www.ruby-forum.com/t/file-upload-problem-when-using-form-remote-tag/131898 "2008-03-19T07:48:41Z")

</div>

Hi I have a form like \<%= form\_remote\_tag :url =\> { :action =\> ‘attach\_file’, :id =\> @sd\_ticket.id }, :enctype =\> ‘multipart/form-data’ %\> \<%= text\_area "service\_desk\_attachment1", "description", "cols" =\> …

---

## [Anchor tags, render, and redirect\_to](https://www.ruby-forum.com/t/anchor-tags-render-and-redirect-to/132334)

<div class="topic-metadata">

**Author:** [@nick](https://www.ruby-forum.com/u/nick)\
**Replies:** 0\
**Last updated:** [March 19, 2008, 7:44am UTC](https://www.ruby-forum.com/t/anchor-tags-render-and-redirect-to/132334 "2008-03-19T07:44:30Z")

</div>

Hey everyone, I’ve been searching for this for days, but I can’t seem to find an answer… I’m creating a blog in Rails 2.0.2, and for comments, I’m using a nested resource, my CommentsController, inside my PostsContro…

---

## [The :id symbol](https://www.ruby-forum.com/t/the-id-symbol/132278)

<div class="topic-metadata">

**Author:** [@Vincent.Z](https://www.ruby-forum.com/u/Vincent.Z)\
**Replies:** 9\
**Last updated:** [March 19, 2008, 6:42am UTC](https://www.ruby-forum.com/t/the-id-symbol/132278 "2008-03-19T06:42:54Z")

</div>

hi,all recently,i use the :id to pass parameter between of controllers or actions. but,when i wanna use the “options\_from\_collection\_for\_select($cache\_keshi,:id,:title)” it is error cos the array variable($cache\_kes…

---

## [Developer Position (Advertisement)](https://www.ruby-forum.com/t/developer-position-advertisement/132303)

<div class="topic-metadata">

**Author:** [@arshak](https://www.ruby-forum.com/u/arshak)\
**Replies:** 1\
**Last updated:** [March 19, 2008, 6:32am UTC](https://www.ruby-forum.com/t/developer-position-advertisement/132303 "2008-03-19T06:32:21Z")

</div>

Job Title: Senior Software Developer Reports to: Chief Technical Officer Post Date: March 13, 2009 Location: Carlsbad, CA (Can be remote to start, but within 3 months relocate to Carlsbad or surrounding) Contact: r…

---

## [Lovd by Less - A Ruby On Rails Application with Code](https://www.ruby-forum.com/t/lovd-by-less-a-ruby-on-rails-application-with-code/132327)

<div class="topic-metadata">

**Author:** [@softmind](https://www.ruby-forum.com/u/softmind)\
**Replies:** 0\
**Last updated:** [March 19, 2008, 6:19am UTC](https://www.ruby-forum.com/t/lovd-by-less-a-ruby-on-rails-application-with-code/132327 "2008-03-19T06:19:53Z")

</div>

http://lovdbyless.com/ Yes!.. I am just impressed with the things that are shaping with Ruby on Rails. Here is some short details about this social networking site "…With new social networks launching everyday most s…

---

## [Wanted: Lead RoR Developer](https://www.ruby-forum.com/t/wanted-lead-ror-developer/132320)

<div class="topic-metadata">

**Author:** [@Vic](https://www.ruby-forum.com/u/Vic)\
**Replies:** 0\
**Last updated:** [March 19, 2008, 5:12am UTC](https://www.ruby-forum.com/t/wanted-lead-ror-developer/132320 "2008-03-19T05:12:02Z")

</div>

RoR Power (http://www.rorpower.com) is a boutique recruiting firm specializing in Ruby on Rails opportunities. We have been retained by a well-funded startup in San Francisco to find a top-notch RoR superstar. The co…

---

## [Assistance in how to Query an Record and Update the same record using Ruby on Rails](https://www.ruby-forum.com/t/assistance-in-how-to-query-an-record-and-update-the-same-record-using-ruby-on-rails/132319)

<div class="topic-metadata">

**Author:** [@mervyn](https://www.ruby-forum.com/u/mervyn)\
**Replies:** 0\
**Last updated:** [March 19, 2008, 4:55am UTC](https://www.ruby-forum.com/t/assistance-in-how-to-query-an-record-and-update-the-same-record-using-ruby-on-rails/132319 "2008-03-19T04:55:37Z")

</div>

I am a newbie to RoR I have this problem which I will represent in psuedocode - it describes the allocation of a randomisation number to a patient participating in a clinical trial at a particular hospital site. Use…

---

## [X-rated REGGAE DANCE](https://www.ruby-forum.com/t/x-rated-reggae-dance/132312)

<div class="topic-metadata">

**Author:** [@zyobarebuin](https://www.ruby-forum.com/u/zyobarebuin)\
**Replies:** 0\
**Last updated:** [March 19, 2008, 3:46am UTC](https://www.ruby-forum.com/t/x-rated-reggae-dance/132312 "2008-03-19T03:46:23Z")

</div>

If you wanna watch the real fetish world,visit http://www.musha-burui.com

---

## [AR: static vs. dynamic model generation](https://www.ruby-forum.com/t/ar-static-vs-dynamic-model-generation/132209)

<div class="topic-metadata">

**Author:** [@eclubb](https://www.ruby-forum.com/u/eclubb)\
**Replies:** 7\
**Last updated:** [March 19, 2008, 3:44am UTC](https://www.ruby-forum.com/t/ar-static-vs-dynamic-model-generation/132209 "2008-03-19T03:44:37Z")

</div>

I have a project where there are an arbitrary number of databases, all of which have the same schema, but different data. In light of this, I’m trying to generate sets of models on the fly (one set per database). I n…

---

## [Rake problemmm?](https://www.ruby-forum.com/t/rake-problemmm/132311)

<div class="topic-metadata">

**Author:** [@casid](https://www.ruby-forum.com/u/casid)\
**Replies:** 0\
**Last updated:** [March 19, 2008, 3:11am UTC](https://www.ruby-forum.com/t/rake-problemmm/132311 "2008-03-19T03:11:08Z")

</div>

Hello RoR Developers, I have problem with rake, I got gettext.rake(“lib/tasks”) something like desc ‘Create mo files’ task :createmo do require ‘gettext/utils’ require ‘gettext/rails’ GetText.create\_mofiles(true, '…

---

## [Database Triggered Events in Rails](https://www.ruby-forum.com/t/database-triggered-events-in-rails/132308)

<div class="topic-metadata">

**Author:** [@divotdave](https://www.ruby-forum.com/u/divotdave)\
**Replies:** 1\
**Last updated:** [March 19, 2008, 2:57am UTC](https://www.ruby-forum.com/t/database-triggered-events-in-rails/132308 "2008-03-19T02:57:09Z")

</div>

I’m creating a message queue system, (think JMS message queue) Basically, I’ll be firing off an http request as soon as a row appears in a database. Now in past implementations I’ve done the following. Polled the da…

---

## [How do you disable AR query cache globally?](https://www.ruby-forum.com/t/how-do-you-disable-ar-query-cache-globally/132208)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [March 19, 2008, 2:08am UTC](https://www.ruby-forum.com/t/how-do-you-disable-ar-query-cache-globally/132208 "2008-03-19T02:08:29Z")

</div>

Ref my earlier post in this group regarding a problem with AR query caching with MS SQL Server, I now find that the most convenient solution would be simply disabling query caching globally for this app. Question is,…

---

## [Models From XSD](https://www.ruby-forum.com/t/models-from-xsd/132309)

<div class="topic-metadata">

**Author:** [@glasswing28](https://www.ruby-forum.com/u/glasswing28)\
**Replies:** 0\
**Last updated:** [March 19, 2008, 1:54am UTC](https://www.ruby-forum.com/t/models-from-xsd/132309 "2008-03-19T01:54:26Z")

</div>

Does anyone know of any plugins/libraries that would help in creating Model files from DTD/XSD schemas ? I found one called models\_from\_xsd which is on rubyforge but sees no traffic. I recall seeing the author at Rail…

---

## [How does form\_for work?](https://www.ruby-forum.com/t/how-does-form-for-work/132297)

<div class="topic-metadata">

**Author:** [@oldbug](https://www.ruby-forum.com/u/oldbug)\
**Replies:** 3\
**Last updated:** [March 19, 2008, 1:47am UTC](https://www.ruby-forum.com/t/how-does-form-for-work/132297 "2008-03-19T01:47:59Z")

</div>

I was just reading the documentation for “form\_for” and I noticed that it said: “Worth noting is that the form\_for tag is called in a ERb evaluation block, not an ERb output block.” Being a curious sort of guy, I wond…

---

## [How to use will\_paginate and ambition together?](https://www.ruby-forum.com/t/how-to-use-will-paginate-and-ambition-together/132306)

<div class="topic-metadata">

**Author:** [@g0nzo](https://www.ruby-forum.com/u/g0nzo)\
**Replies:** 0\
**Last updated:** [March 19, 2008, 1:00am UTC](https://www.ruby-forum.com/t/how-to-use-will-paginate-and-ambition-together/132306 "2008-03-19T01:00:30Z")

</div>

Hi, I need to add filtering to my app. Long time ago I was using ez\_where plugin, but it seems that there’s ambition now. I’m already using will\_paginate for pagination and was wondering if it’s possible to use them …

---

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

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [March 19, 2008, 12:31am UTC](https://www.ruby-forum.com/t/has-many-through-aggregation/132299 "2008-03-19T00:31:43Z")

</div>

Hello there, I’m trying to figure out a way to use the has\_many :through option to aggregate collections in a specific way. Here’s an example of the issue I’m trying to address: create\_table :companies do |t| t.int…

---

## [Link\_to syntax question](https://www.ruby-forum.com/t/link-to-syntax-question/132302)

<div class="topic-metadata">

**Author:** [@drsharp](https://www.ruby-forum.com/u/drsharp)\
**Replies:** 3\
**Last updated:** [March 18, 2008, 11:41pm UTC](https://www.ruby-forum.com/t/link-to-syntax-question/132302 "2008-03-18T23:41:45Z")

</div>

Hi, I’m trying to build a simple forum and would like the post topic to be a clickable link. What would be the correct syntax to perform this? eg. Placing the value of this: \<%= h post.title %\> Into this, in the pl…

---

## [Hide/Show checkbox elements based on select box - Javascript](https://www.ruby-forum.com/t/hide-show-checkbox-elements-based-on-select-box-javascript/132298)

<div class="topic-metadata">

**Author:** [@newrubygirl](https://www.ruby-forum.com/u/newrubygirl)\
**Replies:** 0\
**Last updated:** [March 18, 2008, 10:42pm UTC](https://www.ruby-forum.com/t/hide-show-checkbox-elements-based-on-select-box-javascript/132298 "2008-03-18T22:42:03Z")

</div>

I have code that enables select list 1 to populate select list 2 as taken from a railscast. I want to change the select list 2 to a series of check boxes. I’m not a Javascript person so changing this is making a mes…

---

## [Multiple Rails apps within one Apache VirtualHost](https://www.ruby-forum.com/t/multiple-rails-apps-within-one-apache-virtualhost/132269)

<div class="topic-metadata">

**Author:** [@zakifataya](https://www.ruby-forum.com/u/zakifataya)\
**Replies:** 3\
**Last updated:** [March 18, 2008, 10:31pm UTC](https://www.ruby-forum.com/t/multiple-rails-apps-within-one-apache-virtualhost/132269 "2008-03-18T22:31:01Z")

</div>

Has anyone configured multiple Rails apps within the same VirtualHost directive? I need to do this with the apps selected by the initial path. I’m using Apache 2.2.3 with mod\_proxy\_balancer and Rails 2.0.2. In fact, n…

---

## [Ferret](https://www.ruby-forum.com/t/ferret/132296)

<div class="topic-metadata">

**Author:** [@dxk3355](https://www.ruby-forum.com/u/dxk3355)\
**Replies:** 0\
**Last updated:** [March 18, 2008, 9:52pm UTC](https://www.ruby-forum.com/t/ferret/132296 "2008-03-18T21:52:44Z")

</div>

I have a (acts as) ferret question … How can I exclude AR objects with particular (boolean) column set to false… for example to return all PUBLISHED articles … I can’t seem to find a (probably obvious) way… thank you…

---

## [Update\_without\_callbacks?](https://www.ruby-forum.com/t/update-without-callbacks/132292)

<div class="topic-metadata">

**Author:** [@Chris\_Parker](https://www.ruby-forum.com/u/Chris_Parker)\
**Replies:** 2\
**Last updated:** [March 18, 2008, 9:39pm UTC](https://www.ruby-forum.com/t/update-without-callbacks/132292 "2008-03-18T21:39:05Z")

</div>

Is there a new way to call a method similar to “update\_without\_callbacks” on an “after\_save”? I need to calculate a total amount on a row after the row has been saved.

---

## [Routing acts\_as\_commentable form\_for submission](https://www.ruby-forum.com/t/routing-acts-as-commentable-form-for-submission/132197)

<div class="topic-metadata">

**Author:** [@chunkyslink](https://www.ruby-forum.com/u/chunkyslink)\
**Replies:** 4\
**Last updated:** [March 18, 2008, 9:16pm UTC](https://www.ruby-forum.com/t/routing-acts-as-commentable-form-for-submission/132197 "2008-03-18T21:16:44Z")

</div>

I have a Group model and a NewsItem model, and NewsItems are nested in Groups. I’m trying to add acts\_as\_commentable powered comments to the NewsItem model, but I haven’t worked out how to handle the submission of new …

---

## [Help creating for for my auth on rails. please](https://www.ruby-forum.com/t/help-creating-for-for-my-auth-on-rails-please/132229)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [March 18, 2008, 9:14pm UTC](https://www.ruby-forum.com/t/help-creating-for-for-my-auth-on-rails-please/132229 "2008-03-18T21:14:16Z")

</div>

I’m following this howto below:, http://wiki.rubyonrails.com/rails/pages/A\_quick\_and\_dirty\_homemade\_authentication\_solution but it does not shows a example form under index.rhtml I created like 20 so far, searched the…

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

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