# Rails

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

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

---

## [Gem install ruby 0\> doesn't install Ruby but says it does](https://www.ruby-forum.com/t/gem-install-ruby-0-doesnt-install-ruby-but-says-it-does/159141)

<div class="topic-metadata">

**Author:** [@raimon](https://www.ruby-forum.com/u/raimon)\
**Replies:** 8\
**Last updated:** [February 2, 2009, 10:46am UTC](https://www.ruby-forum.com/t/gem-install-ruby-0-doesnt-install-ruby-but-says-it-does/159141 "2009-02-02T10:46:18Z")

</div>

Hello, I’m trying to set up a complete RoR with PostgreSQL and nginx plus mongrel\_cluster on Lenny. I’ll have all installed, except Ruby … $ gem install rails 1 gem installed $ ruby --version command not found An…

---

## [Is Rails 2.3 a first step towards Rails 3.0...?](https://www.ruby-forum.com/t/is-rails-2-3-a-first-step-towards-rails-3-0/159194)

<div class="topic-metadata">

**Author:** [@webreservoir](https://www.ruby-forum.com/u/webreservoir)\
**Replies:** 1\
**Last updated:** [February 2, 2009, 9:10am UTC](https://www.ruby-forum.com/t/is-rails-2-3-a-first-step-towards-rails-3-0/159194 "2009-02-02T09:10:49Z")

</div>

Hi, I just had a look at new features for Rails 2.3 I have been reading http://guides.rails.info that is created specially for Rails 2.3. I would like to know… if this Rails 2.3 a first step towards Rails 3.0…? I me…

---

## [Export a table data to xml file using Ruby on Rails](https://www.ruby-forum.com/t/export-a-table-data-to-xml-file-using-ruby-on-rails/158916)

<div class="topic-metadata">

**Author:** [@devirv](https://www.ruby-forum.com/u/devirv)\
**Replies:** 2\
**Last updated:** [February 2, 2009, 7:28am UTC](https://www.ruby-forum.com/t/export-a-table-data-to-xml-file-using-ruby-on-rails/158916 "2009-02-02T07:28:33Z")

</div>

Dear All, How to export a table data to xml file using Ruby on Rails. I followed this code it’s created xml file like table.Anyone knows please suggest me. Controller headers\[‘Content-Type’\] = “text/xml” headers\[‘C…

---

## [Tag clouds](https://www.ruby-forum.com/t/tag-clouds/159011)

<div class="topic-metadata">

**Author:** [@vivekmajhi](https://www.ruby-forum.com/u/vivekmajhi)\
**Replies:** 5\
**Last updated:** [February 2, 2009, 4:50am UTC](https://www.ruby-forum.com/t/tag-clouds/159011 "2009-02-02T04:50:51Z")

</div>

Could anyone explain me how to import TAG CLOUDS in a Ruby on Rails Application? I am a beginner,I don’t have any idea about that

---

## [Active Support 2.2.2 Dependency errors - Production](https://www.ruby-forum.com/t/active-support-2-2-2-dependency-errors-production/159179)

<div class="topic-metadata">

**Author:** [@dbelsham](https://www.ruby-forum.com/u/dbelsham)\
**Replies:** 1\
**Last updated:** [February 2, 2009, 4:36am UTC](https://www.ruby-forum.com/t/active-support-2-2-2-dependency-errors-production/159179 "2009-02-02T04:36:39Z")

</div>

Running IIS6 w/ reverse proxy to mongrel…everything works fine when starting mongrel in developement mode…when I attempt to start in production mode I get the following errors: \*\* Starting Mongrel listening at 0.0.0.0…

---

## [How do I use ActiveRecord for selects that return data across multiple tables, or a database view? (](https://www.ruby-forum.com/t/how-do-i-use-activerecord-for-selects-that-return-data-across-multiple-tables-or-a-database-view/159181)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 3\
**Last updated:** [February 2, 2009, 3:53am UTC](https://www.ruby-forum.com/t/how-do-i-use-activerecord-for-selects-that-return-data-across-multiple-tables-or-a-database-view/159181 "2009-02-02T03:53:59Z")

</div>

Hi, If I want to return SQL data that cuts across multiple models (e.g. not specific to one mode) how do I do this? Actually the use case could be either (a) custom SQL I want to call or via (b) SQL call to a databa…

---

## [FAILSAFE preventing errors from displaying?](https://www.ruby-forum.com/t/failsafe-preventing-errors-from-displaying/157428)

<div class="topic-metadata">

**Author:** [@tekwiz](https://www.ruby-forum.com/u/tekwiz)\
**Replies:** 1\
**Last updated:** [February 2, 2009, 1:31am UTC](https://www.ruby-forum.com/t/failsafe-preventing-errors-from-displaying/157428 "2009-02-02T01:31:44Z")

</div>

Used to, when I had an error in development mode, I saw a pretty stack trace in the browser and didn’t have to go the server console, and in production mode I would see the pretty 500.html error page be displayed. Si…

---

## [Using session variables vs passing parameters via URL](https://www.ruby-forum.com/t/using-session-variables-vs-passing-parameters-via-url/156199)

<div class="topic-metadata">

**Author:** [@oldbug](https://www.ruby-forum.com/u/oldbug)\
**Replies:** 2\
**Last updated:** [February 2, 2009, 12:57am UTC](https://www.ruby-forum.com/t/using-session-variables-vs-passing-parameters-via-url/156199 "2009-02-02T00:57:12Z")

</div>

Hi, I have been tweaking my index view in order to narrow down the amount of data displayed. The obvious first step was to add will-paginate, but then I added a couple of select boxes to narrow things down a bit mor…

---

## [Model.save! not saving and not throwing exception](https://www.ruby-forum.com/t/model-save-not-saving-and-not-throwing-exception/159183)

<div class="topic-metadata">

**Author:** [@Mike\_Emery](https://www.ruby-forum.com/u/Mike_Emery)\
**Replies:** 0\
**Last updated:** [February 2, 2009, 12:37am UTC](https://www.ruby-forum.com/t/model-save-not-saving-and-not-throwing-exception/159183 "2009-02-02T00:37:20Z")

</div>

Hi all, I’ve hit something migrating from rails 2.0.2 to 2.2.2 and I’m wondering if it’s a bug or if there’s something I’m not aware of coming into play. I’ve abstracted the problem a little bit but it still reprodu…

---

## [Ruby on Rails and Mysql](https://www.ruby-forum.com/t/ruby-on-rails-and-mysql/159125)

<div class="topic-metadata">

**Author:** [@beardy](https://www.ruby-forum.com/u/beardy)\
**Replies:** 2\
**Last updated:** [February 2, 2009, 12:06am UTC](https://www.ruby-forum.com/t/ruby-on-rails-and-mysql/159125 "2009-02-02T00:06:19Z")

</div>

I’m fairly new to programming and the mac and I really want to have a go at learning Ruby On Rails, I have followed the set up tutorial on Hivelogic and I have a problems that I just can’t fathom out and I can’t seem …

---

## [Upgrading plugins methodology](https://www.ruby-forum.com/t/upgrading-plugins-methodology/159178)

<div class="topic-metadata">

**Author:** [@pk16](https://www.ruby-forum.com/u/pk16)\
**Replies:** 0\
**Last updated:** [February 1, 2009, 11:59pm UTC](https://www.ruby-forum.com/t/upgrading-plugins-methodology/159178 "2009-02-01T23:59:53Z")

</div>

Hi, I’ve been cruising along trying to upgrade a rails 2.0.2 app to 2.2.2, but first made a pit stop at 2.1.2 based on some posts that I read. Are there any tutorials, guides etc… on how to keep the plugins compatibl…

---

## [Problem with ssl\_requirement](https://www.ruby-forum.com/t/problem-with-ssl-requirement/159093)

<div class="topic-metadata">

**Author:** [@peter](https://www.ruby-forum.com/u/peter)\
**Replies:** 2\
**Last updated:** [February 1, 2009, 11:55pm UTC](https://www.ruby-forum.com/t/problem-with-ssl-requirement/159093 "2009-02-01T23:55:46Z")

</div>

Hello, I am trying to enable SSL for my rails app. I have installed the ssl\_requirements plugin and added “include SslRequirement” in the application controller. Then I restart the server and access the home page. T…

---

## [Cannot get webrick to start on Mac OS 10.5.6](https://www.ruby-forum.com/t/cannot-get-webrick-to-start-on-mac-os-10-5-6/159091)

<div class="topic-metadata">

**Author:** [@jslicari](https://www.ruby-forum.com/u/jslicari)\
**Replies:** 4\
**Last updated:** [February 1, 2009, 11:42pm UTC](https://www.ruby-forum.com/t/cannot-get-webrick-to-start-on-mac-os-10-5-6/159091 "2009-02-01T23:42:17Z")

</div>

Hi. I’m am new to Ruby on Rails and I’m trying to get my environment up and running. I know that Ruby and Rails are pre installed on Mac OS 10.5 but I was having some problems. I went and updated everything with gem…

---

## [How to think in terms of MVC when designing a website](https://www.ruby-forum.com/t/how-to-think-in-terms-of-mvc-when-designing-a-website/159126)

<div class="topic-metadata">

**Author:** [@bloodsample](https://www.ruby-forum.com/u/bloodsample)\
**Replies:** 12\
**Last updated:** [February 1, 2009, 9:33pm UTC](https://www.ruby-forum.com/t/how-to-think-in-terms-of-mvc-when-designing-a-website/159126 "2009-02-01T21:33:50Z")

</div>

I’m fairly new to rails but I’ve read a book, many tutorials and watched video lectures so I’m starting to get a hang of how it works. I’ve now decided to jump in and create a rails app from scratch. I’m a little con…

---

## [Problem with params\[\]](https://www.ruby-forum.com/t/problem-with-params/159157)

<div class="topic-metadata">

**Author:** [@rick\_2047](https://www.ruby-forum.com/u/rick_2047)\
**Replies:** 1\
**Last updated:** [February 1, 2009, 6:25pm UTC](https://www.ruby-forum.com/t/problem-with-params/159157 "2009-02-01T18:25:40Z")

</div>

Hi! I’m building a discussion forum in my rails app and there seems to be a problem in creating a new topic in the forum. I’m using three models for it forum, topic and post. The topic model has following fields: t.…

---

## [Apache + mod\_rails apache config](https://www.ruby-forum.com/t/apache-mod-rails-apache-config/159161)

<div class="topic-metadata">

**Author:** [@thabenksta](https://www.ruby-forum.com/u/thabenksta)\
**Replies:** 0\
**Last updated:** [February 1, 2009, 6:07pm UTC](https://www.ruby-forum.com/t/apache-mod-rails-apache-config/159161 "2009-02-01T18:07:34Z")

</div>

We have a 2GB memory xen setup with ubuntu, apache and mod\_rails only (no db, etc.) – is this a reasonable setup (taken from our apache2.conf )? MaxKeepAliveRequests 390 StartServers 50 MinSpareServers 50 …

---

## [How to use the fixed part for the method url\_for?](https://www.ruby-forum.com/t/how-to-use-the-fixed-part-for-the-method-url-for/159160)

<div class="topic-metadata">

**Author:** [@daociyiyou](https://www.ruby-forum.com/u/daociyiyou)\
**Replies:** 2\
**Last updated:** [February 1, 2009, 6:02pm UTC](https://www.ruby-forum.com/t/how-to-use-the-fixed-part-for-the-method-url-for/159160 "2009-02-01T18:02:46Z")

</div>

If i have the following routes: ############### map.connect “blog/:controller/:action/:id” map.connect “product/:controller/:action/:id” ############## when use url\_for or some else to generate the url,how to make s…

---

## [Form.radio\_button values](https://www.ruby-forum.com/t/form-radio-button-values/159134)

<div class="topic-metadata">

**Author:** [@indigoi](https://www.ruby-forum.com/u/indigoi)\
**Replies:** 1\
**Last updated:** [February 1, 2009, 5:09pm UTC](https://www.ruby-forum.com/t/form-radio-button-values/159134 "2009-02-01T17:09:55Z")

</div>

I’m using the radio\_button form tag in my project, and I just recently switched to using i18n. I would like all of my database entries to be in english so I can parse evertyhing quickly, yet the code below doesn’t qui…

---

## [Use URL only if aviable](https://www.ruby-forum.com/t/use-url-only-if-aviable/158758)

<div class="topic-metadata">

**Author:** [@chaosbanane](https://www.ruby-forum.com/u/chaosbanane)\
**Replies:** 2\
**Last updated:** [February 1, 2009, 5:09pm UTC](https://www.ruby-forum.com/t/use-url-only-if-aviable/158758 "2009-02-01T17:09:19Z")

</div>

hi I have an RSS feed on my page and if the rss source is not aviable it prints out an error. \<%= parseFeed(“Domain.de - Seite nicht gefunden”, 10) %\> How can I tell ruby only to use the rss feed if the rss source …

---

## [Under windows: launching an external app via system... but not waiting for a response](https://www.ruby-forum.com/t/under-windows-launching-an-external-app-via-system-but-not-waiting-for-a-response/159143)

<div class="topic-metadata">

**Author:** [@philswenson](https://www.ruby-forum.com/u/philswenson)\
**Replies:** 2\
**Last updated:** [February 1, 2009, 4:08pm UTC](https://www.ruby-forum.com/t/under-windows-launching-an-external-app-via-system-but-not-waiting-for-a-response/159143 "2009-02-01T16:08:44Z")

</div>

Hi, I have an application written in Ruby (it’s actually a windows service). It needs to launch other applications. The problem I am having is that when I call system(“args to launch app”) it never returns, because I…

---

## [Drop down boxes issue in ROR](https://www.ruby-forum.com/t/drop-down-boxes-issue-in-ror/159111)

<div class="topic-metadata">

**Author:** [@anil123](https://www.ruby-forum.com/u/anil123)\
**Replies:** 1\
**Last updated:** [February 1, 2009, 3:55pm UTC](https://www.ruby-forum.com/t/drop-down-boxes-issue-in-ror/159111 "2009-02-01T15:55:51Z")

</div>

Hi all, Can any one help me regarding, i want to select a country from one dropdown box and that corresponding states should display on another dropdown box. help me ASAP. Thanks, Anil.

---

## [To\_xml/to\_json and serialized columns](https://www.ruby-forum.com/t/to-xml-to-json-and-serialized-columns/145406)

<div class="topic-metadata">

**Author:** [@metrix](https://www.ruby-forum.com/u/metrix)\
**Replies:** 2\
**Last updated:** [February 1, 2009, 3:44pm UTC](https://www.ruby-forum.com/t/to-xml-to-json-and-serialized-columns/145406 "2009-02-01T15:44:04Z")

</div>

The AR serializer is great, but it if you’re dealing with serailized columns it jams yaml into the result, or whatever you’re serializing columns to. If you are serializing the AR object to\_xml/to\_json, chances are yo…

---

## [Activerecord access raw serialized data](https://www.ruby-forum.com/t/activerecord-access-raw-serialized-data/159152)

<div class="topic-metadata">

**Author:** [@arvias](https://www.ruby-forum.com/u/arvias)\
**Replies:** 1\
**Last updated:** [February 1, 2009, 3:07pm UTC](https://www.ruby-forum.com/t/activerecord-access-raw-serialized-data/159152 "2009-02-01T15:07:23Z")

</div>

Hi, I have a model with a serialized field ‘other\_data’. How can I add raw YAML data to that field? If i try: model\[other\_data\] = yaml\_formatted\_data yaml\_formatted\_data gets YAML formatted again. – cheers, M.

---

## [Ruby 1.9.1 and Rails 2.3](https://www.ruby-forum.com/t/ruby-1-9-1-and-rails-2-3/159070)

<div class="topic-metadata">

**Author:** [@stimpy](https://www.ruby-forum.com/u/stimpy)\
**Replies:** 2\
**Last updated:** [February 1, 2009, 1:35pm UTC](https://www.ruby-forum.com/t/ruby-1-9-1-and-rails-2-3/159070 "2009-02-01T13:35:09Z")

</div>

Hi, This morning I sat down and nutted out a way of getting Rails 2.3 to play nicely with Ruby 1.9.1. Here’s a guide so you can do the same: frozenplague.net Ryan B. Mocra - Premier iPhone and Ruby on Rails Consult…

---

## [Little routing question](https://www.ruby-forum.com/t/little-routing-question/159145)

<div class="topic-metadata">

**Author:** [@tekhne](https://www.ruby-forum.com/u/tekhne)\
**Replies:** 1\
**Last updated:** [February 1, 2009, 12:08pm UTC](https://www.ruby-forum.com/t/little-routing-question/159145 "2009-02-01T12:08:19Z")

</div>

Sorry if I am being dumb here but I am trying to route with this url ‘/ media/avatars/1/5or6.png’ to the media controller with the avatars action I tried this: map.connect ‘media/avatars/:user\_id/:filename’, :control…

---

## [Error logging in a database / case system](https://www.ruby-forum.com/t/error-logging-in-a-database-case-system/159121)

<div class="topic-metadata">

**Author:** [@vagabond](https://www.ruby-forum.com/u/vagabond)\
**Replies:** 1\
**Last updated:** [February 1, 2009, 6:21am UTC](https://www.ruby-forum.com/t/error-logging-in-a-database-case-system/159121 "2009-02-01T06:21:52Z")

</div>

Just wondering what the best way to set up custom error logging in rails is. I was thinking we would store errors in our database, with a generated case #, so that our users could call our support and we could referen…

---

## [Form\_remote\_for can do :put](https://www.ruby-forum.com/t/form-remote-for-can-do-put/83089)

<div class="topic-metadata">

**Author:** [@adammontgomery](https://www.ruby-forum.com/u/adammontgomery)\
**Replies:** 6\
**Last updated:** [February 1, 2009, 5:24am UTC](https://www.ruby-forum.com/t/form-remote-for-can-do-put/83089 "2009-02-01T05:24:49Z")

</div>

Hello all, Im tryng to create a remote\_form\_for in a restful app, but cant get the method to be put. It appears to default to post if the value is not post or get. is there a trick to this or does form\_for\_remote not…

---

## [What and where is the method register! in restful authentication?](https://www.ruby-forum.com/t/what-and-where-is-the-method-register-in-restful-authentication/159082)

<div class="topic-metadata">

**Author:** [@thomasalbert](https://www.ruby-forum.com/u/thomasalbert)\
**Replies:** 2\
**Last updated:** [February 1, 2009, 5:11am UTC](https://www.ruby-forum.com/t/what-and-where-is-the-method-register-in-restful-authentication/159082 "2009-02-01T05:11:07Z")

</div>

A newbie question - I am learning restful authentication but I cant find what or where the method register! is when used in the following code: @user.register! if @user && @user.valid? Thanks.

---

## [Where does index.html (home) fit into RoR?](https://www.ruby-forum.com/t/where-does-index-html-home-fit-into-ror/159132)

<div class="topic-metadata">

**Author:** [@bloodsample](https://www.ruby-forum.com/u/bloodsample)\
**Replies:** 1\
**Last updated:** [February 1, 2009, 2:18am UTC](https://www.ruby-forum.com/t/where-does-index-html-home-fit-into-ror/159132 "2009-02-01T02:18:35Z")

</div>

The page that loads when no controller name is given in the URL is the public/index.html page (eg: http://localhost:3000/) Now this is a pure HTML page so I cannot use any link\_to tags or yield tags, etc. My navigati…

---

## [YAML is sensitive to space character?](https://www.ruby-forum.com/t/yaml-is-sensitive-to-space-character/159130)

<div class="topic-metadata">

**Author:** [@kedarmhaswade](https://www.ruby-forum.com/u/kedarmhaswade)\
**Replies:** 0\
**Last updated:** [February 1, 2009, 1:10am UTC](https://www.ruby-forum.com/t/yaml-is-sensitive-to-space-character/159130 "2009-02-01T01:10:16Z")

</div>

I ran script/generate model Book and I got: /usr/lib/ruby/1.8/yaml.rb:133:in load': syntax error on line 23, col 2: socket: /var/run/mysqld/mysqld.sock’ (ArgumentError) from /usr/lib/ruby/1.8/yaml.rb:133:in load' f…

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

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