# Rails

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

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

---

## [Separating views by locale?](https://www.ruby-forum.com/t/separating-views-by-locale/157741)

<div class="topic-metadata">

**Author:** [@dmorin](https://www.ruby-forum.com/u/dmorin)\
**Replies:** 0\
**Last updated:** [January 14, 2009, 10:55pm UTC](https://www.ruby-forum.com/t/separating-views-by-locale/157741 "2009-01-14T22:55:11Z")

</div>

I’m thinking this has to be a common question, but thus far I haven’t found it, maybe somebody can point me in the right direction. If I’ve got a controller Foo, and a page views/foo/index.rhtml, and I want to handle …

---

## [How do I change MYSQL startup options on Mac? (can't work it out)](https://www.ruby-forum.com/t/how-do-i-change-mysql-startup-options-on-mac-cant-work-it-out/157649)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 6\
**Last updated:** [January 14, 2009, 10:16pm UTC](https://www.ruby-forum.com/t/how-do-i-change-mysql-startup-options-on-mac-cant-work-it-out/157649 "2009-01-14T22:16:19Z")

</div>

Hi, Can anyone help me out re how I change the startup options for mysql (v5.0) running on my Mac? (I just want to add the “–log” option is about it). I tried doing “sudo ./Library/StartupItems/MySQLCOM/MySQLCOM res…

---

## [ActionController::InvalidAuthenticityToken](https://www.ruby-forum.com/t/actioncontroller-invalidauthenticitytoken/157731)

<div class="topic-metadata">

**Author:** [@yul](https://www.ruby-forum.com/u/yul)\
**Replies:** 0\
**Last updated:** [January 14, 2009, 9:08pm UTC](https://www.ruby-forum.com/t/actioncontroller-invalidauthenticitytoken/157731 "2009-01-14T21:08:24Z")

</div>

You will need: skip\_before\_filter :verify\_authenticity\_token in your sessions\_controller.rb

---

## ["Gem::RubyGemsVersion" and gem -v don't match](https://www.ruby-forum.com/t/gem-rubygemsversion-and-gem-v-dont-match/157641)

<div class="topic-metadata">

**Author:** [@rredcat](https://www.ruby-forum.com/u/rredcat)\
**Replies:** 5\
**Last updated:** [January 14, 2009, 9:07pm UTC](https://www.ruby-forum.com/t/gem-rubygemsversion-and-gem-v-dont-match/157641 "2009-01-14T21:07:49Z")

</div>

Hello, gem -v shows next: “1.3.1” my ruby&rails project has boot.rb file it contains next method def rubygems\_version Gem::RubyGemsVersion rescue nil end this method is called in next code: def load\_rubygems requ…

---

## [Ruby on Rails Dates](https://www.ruby-forum.com/t/ruby-on-rails-dates/157691)

<div class="topic-metadata">

**Author:** [@rpierry](https://www.ruby-forum.com/u/rpierry)\
**Replies:** 5\
**Last updated:** [January 14, 2009, 8:54pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-dates/157691 "2009-01-14T20:54:50Z")

</div>

Hi, I am using a MySQL database and have a row callsed date in my fixtures table. I am wanting to display fixtures coming up, i.e. ahead of todays date. In my controller I am thinking of doing; @fixtures = Fixtures…

---

## [Updating version-mixed models, controllers, views to Current Rails](https://www.ruby-forum.com/t/updating-version-mixed-models-controllers-views-to-current-rails/157721)

<div class="topic-metadata">

**Author:** [@summea](https://www.ruby-forum.com/u/summea)\
**Replies:** 4\
**Last updated:** [January 14, 2009, 8:51pm UTC](https://www.ruby-forum.com/t/updating-version-mixed-models-controllers-views-to-current-rails/157721 "2009-01-14T20:51:30Z")

</div>

Hi all, My shared hosting provider updated Rails last week with no prior warning… so I’ve spent the last week finding what’s been broken in my Rails app and finding out how to fix those problems. I’ve noticed that pa…

---

## [Utter Newbie, HELP!](https://www.ruby-forum.com/t/utter-newbie-help/157719)

<div class="topic-metadata">

**Author:** [@bachcole](https://www.ruby-forum.com/u/bachcole)\
**Replies:** 7\
**Last updated:** [January 14, 2009, 8:36pm UTC](https://www.ruby-forum.com/t/utter-newbie-help/157719 "2009-01-14T20:36:34Z")

</div>

Dear Ruby on Rails Expert with Compassion for a Newbie, (:-\>) I just got started. I tried: At the Windows Command Prompt: ruby puts “Hello, world!” ^D The response is: -:2: syntax error, unexpected ‘^’, expecting…

---

## [Displaying nested content](https://www.ruby-forum.com/t/displaying-nested-content/157695)

<div class="topic-metadata">

**Author:** [@drsharp](https://www.ruby-forum.com/u/drsharp)\
**Replies:** 1\
**Last updated:** [January 14, 2009, 7:53pm UTC](https://www.ruby-forum.com/t/displaying-nested-content/157695 "2009-01-14T19:53:12Z")

</div>

Hi, I have two tables ‘item’ and ‘comment’ (comment belonging to item). I am trying to list each item and the comments for that item within it. For example: Item One Comment One Comment Two Comment Three Item Two …

---

## [Edit method problem with a plural-named model](https://www.ruby-forum.com/t/edit-method-problem-with-a-plural-named-model/157718)

<div class="topic-metadata">

**Author:** [@pimeamark](https://www.ruby-forum.com/u/pimeamark)\
**Replies:** 0\
**Last updated:** [January 14, 2009, 7:24pm UTC](https://www.ruby-forum.com/t/edit-method-problem-with-a-plural-named-model/157718 "2009-01-14T19:24:49Z")

</div>

Hi, I recently made a model called ‘news’. I realize that it’s plural and was gonna cause some problems, but I got the routing all down fine with: map.resources :news, :singular =\> :news\_article everything works fine…

---

## [Beginner's Ruby Tutorial](https://www.ruby-forum.com/t/beginners-ruby-tutorial/157720)

<div class="topic-metadata">

**Author:** [@soup](https://www.ruby-forum.com/u/soup)\
**Replies:** 0\
**Last updated:** [January 14, 2009, 7:24pm UTC](https://www.ruby-forum.com/t/beginners-ruby-tutorial/157720 "2009-01-14T19:24:49Z")

</div>

Hi I am following the tutorial at http://rails.lighthouseapp.com/projects/8994/tickets/590-allow-setting-options-in-initialize\_schema\_migrations\_table I am using Rails 2.2.2 and Ruby 1.8.6 I am getting the following …

---

## [User Activation Email won't send on test server](https://www.ruby-forum.com/t/user-activation-email-wont-send-on-test-server/157715)

<div class="topic-metadata">

**Author:** [@Sean\_CSHess](https://www.ruby-forum.com/u/Sean_CSHess)\
**Replies:** 2\
**Last updated:** [January 14, 2009, 7:17pm UTC](https://www.ruby-forum.com/t/user-activation-email-wont-send-on-test-server/157715 "2009-01-14T19:17:45Z")

</div>

I’m not sure what I’m doing wrong, but the email sends fine from my local computer. The test server log says that the email was sent, but it never arrives. I don’t get any errors (not in the log anyway). I’m using gm…

---

## [Parent controller is removed from the module tree](https://www.ruby-forum.com/t/parent-controller-is-removed-from-the-module-tree/157716)

<div class="topic-metadata">

**Author:** [@Andy\_Matsubara](https://www.ruby-forum.com/u/Andy_Matsubara)\
**Replies:** 0\
**Last updated:** [January 14, 2009, 6:44pm UTC](https://www.ruby-forum.com/t/parent-controller-is-removed-from-the-module-tree/157716 "2009-01-14T18:44:47Z")

</div>

Hello, I’m a newbie in this list. And Ive just begun using the Rails Engin plugin. I’m using a plugin’s controller, which is a child class of “Admin::AdminController”. When I reload the page. Rails causes a error wh…

---

## [Question regarding screencast "Creating a weblog in 15 minutes with Rails 2"](https://www.ruby-forum.com/t/question-regarding-screencast-creating-a-weblog-in-15-minutes-with-rails-2/157713)

<div class="topic-metadata">

**Author:** [@Javier\_CH](https://www.ruby-forum.com/u/Javier_CH)\
**Replies:** 0\
**Last updated:** [January 14, 2009, 6:22pm UTC](https://www.ruby-forum.com/t/question-regarding-screencast-creating-a-weblog-in-15-minutes-with-rails-2/157713 "2009-01-14T18:22:28Z")

</div>

Probably all of you have seen the new 15-minute-screencast-wonder over at rubyonrails.com: “Creating a weblog in 15 minutes with Rails 2” http://rubyonrails.org/screencasts It squeezes tons of know-how in 15 minutes …

---

## [Best way to distribute content to 20 sites](https://www.ruby-forum.com/t/best-way-to-distribute-content-to-20-sites/157697)

<div class="topic-metadata">

**Author:** [@remco](https://www.ruby-forum.com/u/remco)\
**Replies:** 1\
**Last updated:** [January 14, 2009, 5:14pm UTC](https://www.ruby-forum.com/t/best-way-to-distribute-content-to-20-sites/157697 "2009-01-14T17:14:41Z")

</div>

Hi, We have one database with some great content of cities(culture, events ect) I want to distribute this content over 20 sites in the context of the city. With primary objective of linkbuilding to our main-site. Qu…

---

## [Anyone using rewriterails?](https://www.ruby-forum.com/t/anyone-using-rewriterails/157696)

<div class="topic-metadata">

**Author:** [@jzimmek](https://www.ruby-forum.com/u/jzimmek)\
**Replies:** 1\
**Last updated:** [January 14, 2009, 5:13pm UTC](https://www.ruby-forum.com/t/anyone-using-rewriterails/157696 "2009-01-14T17:13:38Z")

</div>

i just started porting some groovy code to ruby. in groovy you have the “?.” operator which does not exist in ruby. projects like “Object.try” and “andand” provide similar functionality, but then i found the “rewriter…

---

## [Input '\>' character into html builder array](https://www.ruby-forum.com/t/input-character-into-html-builder-array/157651)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 1\
**Last updated:** [January 14, 2009, 2:49pm UTC](https://www.ruby-forum.com/t/input-character-into-html-builder-array/157651 "2009-01-14T14:49:12Z")

</div>

I’m using an html calendar builder and am getting a compile error when trying to input a close to some ruby code into the cell\_input: cell\_text \<\< “%\>”, it seems that it is choking on the closing \> sign. Is there any …

---

## [About image\_science library](https://www.ruby-forum.com/t/about-image-science-library/157662)

<div class="topic-metadata">

**Author:** [@nilez](https://www.ruby-forum.com/u/nilez)\
**Replies:** 1\
**Last updated:** [January 14, 2009, 2:00pm UTC](https://www.ruby-forum.com/t/about-image-science-library/157662 "2009-01-14T14:00:44Z")

</div>

hi… I am using attachment\_fu Can anyone tell me how to get image\_science image library and how to use it.

---

## [How to create a sitemap.xml?](https://www.ruby-forum.com/t/how-to-create-a-sitemap-xml/157670)

<div class="topic-metadata">

**Author:** [@olliebollie](https://www.ruby-forum.com/u/olliebollie)\
**Replies:** 1\
**Last updated:** [January 14, 2009, 1:26pm UTC](https://www.ruby-forum.com/t/how-to-create-a-sitemap-xml/157670 "2009-01-14T13:26:14Z")

</div>

Hi all, is there a way one can generate a sitemap.xml for google in Rails? Is it similar to generating xml.rss? (Rails 2.2.2) Thank you, Rollie.

---

## [Git Environment problem](https://www.ruby-forum.com/t/git-environment-problem/157686)

<div class="topic-metadata">

**Author:** [@temesta](https://www.ruby-forum.com/u/temesta)\
**Replies:** 0\
**Last updated:** [January 14, 2009, 1:05pm UTC](https://www.ruby-forum.com/t/git-environment-problem/157686 "2009-01-14T13:05:23Z")

</div>

Hi, I’m trying to push my rails app to the remote depository. Unfortunately i get this error: \*\*\* Environment problem: \*\*\* Your name cannot be determined from your system services (gecos). \*\*\* You would need to set …

---

## [About attachment\_fu](https://www.ruby-forum.com/t/about-attachment-fu/157687)

<div class="topic-metadata">

**Author:** [@nilez](https://www.ruby-forum.com/u/nilez)\
**Replies:** 1\
**Last updated:** [January 14, 2009, 1:01pm UTC](https://www.ruby-forum.com/t/about-attachment-fu/157687 "2009-01-14T13:01:34Z")

</div>

I am using attachment\_fu but in database it is nit storing it’s hight and width what should i do.

---

## [Radio buttons and whatnot](https://www.ruby-forum.com/t/radio-buttons-and-whatnot/157594)

<div class="topic-metadata">

**Author:** [@dnstevenson](https://www.ruby-forum.com/u/dnstevenson)\
**Replies:** 7\
**Last updated:** [January 14, 2009, 12:25pm UTC](https://www.ruby-forum.com/t/radio-buttons-and-whatnot/157594 "2009-01-14T12:25:07Z")

</div>

Hey guys, I got a statuses model which holds all my applications statuses, they are differentiated by their status type. In my application I have some invoices that I want to be able to set their invoice.status using…

---

## [Lighttpd,ruby on rails et php?](https://www.ruby-forum.com/t/lighttpd-ruby-on-rails-et-php/157683)

<div class="topic-metadata">

**Author:** [@tanker](https://www.ruby-forum.com/u/tanker)\
**Replies:** 1\
**Last updated:** [January 14, 2009, 12:24pm UTC](https://www.ruby-forum.com/t/lighttpd-ruby-on-rails-et-php/157683 "2009-01-14T12:24:59Z")

</div>

How can i configure lighttpd server to run ruby and php scripts with him?? Any helps!!!

---

## [Help with link\_to\_remote and RJS](https://www.ruby-forum.com/t/help-with-link-to-remote-and-rjs/157672)

<div class="topic-metadata">

**Author:** [@gte351s](https://www.ruby-forum.com/u/gte351s)\
**Replies:** 1\
**Last updated:** [January 14, 2009, 12:14pm UTC](https://www.ruby-forum.com/t/help-with-link-to-remote-and-rjs/157672 "2009-01-14T12:14:57Z")

</div>

Hi all - New to rails, I have a page that contains a simple table for vendors, with name a location fields. I’m trying to create an ‘add vendor’ link, that adds a small to insert a new vendor on the fly. Here’s what I…

---

## [How to refresh a table regularly](https://www.ruby-forum.com/t/how-to-refresh-a-table-regularly/157679)

<div class="topic-metadata">

**Author:** [@on9west](https://www.ruby-forum.com/u/on9west)\
**Replies:** 1\
**Last updated:** [January 14, 2009, 11:59am UTC](https://www.ruby-forum.com/t/how-to-refresh-a-table-regularly/157679 "2009-01-14T11:59:04Z")

</div>

Dear all I have the following code in views. Can someone give me some hints how to refresh the say every 5 seconds? I have really no idea to do so. Thank you. views/test/main.html.erb \<%= render :partial =\> "test\_…

---

## [Advice about upload form](https://www.ruby-forum.com/t/advice-about-upload-form/157680)

<div class="topic-metadata">

**Author:** [@japj](https://www.ruby-forum.com/u/japj)\
**Replies:** 0\
**Last updated:** [January 14, 2009, 11:48am UTC](https://www.ruby-forum.com/t/advice-about-upload-form/157680 "2009-01-14T11:48:21Z")

</div>

I have Article model that has\_many images. The edit page for an article has two different forms, one for the article itself and another for uploading images. The upload-form uploads an image and redirects to the edit …

---

## [Rails 2.0, REST Resources, Admin and DRY](https://www.ruby-forum.com/t/rails-2-0-rest-resources-admin-and-dry/124284)

<div class="topic-metadata">

**Author:** [@rubenfonseca](https://www.ruby-forum.com/u/rubenfonseca)\
**Replies:** 12\
**Last updated:** [January 14, 2009, 11:27am UTC](https://www.ruby-forum.com/t/rails-2-0-rest-resources-admin-and-dry/124284 "2009-01-14T11:27:32Z")

</div>

hi! I’m doing a blog engine in rails 2. I used the restful resources approach to create my initial ‘post’ and ‘comment’ models, and it is working very nice. However, I’m stuck with two problems, and I want to resolve…

---

## [Google Analytics code for Different Domains?](https://www.ruby-forum.com/t/google-analytics-code-for-different-domains/157590)

<div class="topic-metadata">

**Author:** [@srinathbtech](https://www.ruby-forum.com/u/srinathbtech)\
**Replies:** 1\
**Last updated:** [January 14, 2009, 11:27am UTC](https://www.ruby-forum.com/t/google-analytics-code-for-different-domains/157590 "2009-01-14T11:27:31Z")

</div>

Hi, How to track the pages for different domains, i have 2 domains(www.domain1.com and www.domain2.com) pointing to same application. What modifications should i do in Environment.rb file, is it i need to keep a co…

---

## [Expected .. to define](https://www.ruby-forum.com/t/expected-to-define/103627)

<div class="topic-metadata">

**Author:** [@tom2011](https://www.ruby-forum.com/u/tom2011)\
**Replies:** 13\
**Last updated:** [January 14, 2009, 11:27am UTC](https://www.ruby-forum.com/t/expected-to-define/103627 "2009-01-14T11:27:31Z")

</div>

Hi, I am trying to setup a simple Ruby web application with Oracle. I am able to connect to my oracle database with other test rb program. However, it is not working under webBrick. When I run the generated test file…

---

## [Classic\_pagination plugin installation](https://www.ruby-forum.com/t/classic-pagination-plugin-installation/157593)

<div class="topic-metadata">

**Author:** [@tuhin\_cse99](https://www.ruby-forum.com/u/tuhin_cse99)\
**Replies:** 3\
**Last updated:** [January 14, 2009, 10:00am UTC](https://www.ruby-forum.com/t/classic-pagination-plugin-installation/157593 "2009-01-14T10:00:58Z")

</div>

Hi, I have tried to install the classic\_pagination pugins in my application but when I use the command ruby script/plugin install svn://errtheblog.com/svn/plugins/classic\_pagination It does nothing and nothing is c…

---

## [Rememder me problem](https://www.ruby-forum.com/t/rememder-me-problem/157666)

<div class="topic-metadata">

**Author:** [@srijith](https://www.ruby-forum.com/u/srijith)\
**Replies:** 0\
**Last updated:** [January 14, 2009, 9:44am UTC](https://www.ruby-forum.com/t/rememder-me-problem/157666 "2009-01-14T09:44:29Z")

</div>

How to filter out email address from cookies\[:auth\_token\].If any one knows please help…

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

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