# Rails

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

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

---

## [Are there any difference between Ruby on Railse and JRuby?](https://www.ruby-forum.com/t/are-there-any-difference-between-ruby-on-railse-and-jruby/143986)

<div class="topic-metadata">

**Author:** [@jiangchister](https://www.ruby-forum.com/u/jiangchister)\
**Replies:** 5\
**Last updated:** [July 25, 2008, 10:05pm UTC](https://www.ruby-forum.com/t/are-there-any-difference-between-ruby-on-railse-and-jruby/143986 "2008-07-25T22:05:19Z")

</div>

I have just started ROR using netbeans … they talk about RUBY is JRuby … ref. http://www.netbeans.org/kb/61/ruby/rapid-ruby-weblog.html Is this differs from normal RUBY ON RAILS development? I am new to this…i am conf…

---

## [An apology](https://www.ruby-forum.com/t/an-apology/144145)

<div class="topic-metadata">

**Author:** [@chrislo](https://www.ruby-forum.com/u/chrislo)\
**Replies:** 0\
**Last updated:** [July 25, 2008, 9:23pm UTC](https://www.ruby-forum.com/t/an-apology/144145 "2008-07-25T21:23:50Z")

</div>

Hi list, Huge apologies to anyone who got spammed by my out of office autoresponder, and thanks to the person who highlighted the problem in such a restrained way. I can promise you it won’t happen again. -a rather s…

---

## [How to let ".com" be part of the URL: Routing Error](https://www.ruby-forum.com/t/how-to-let-com-be-part-of-the-url-routing-error/196759)

<div class="topic-metadata">

**Author:** [@sgudibanda](https://www.ruby-forum.com/u/sgudibanda)\
**Replies:** 9\
**Last updated:** [July 25, 2008, 9:16pm UTC](https://www.ruby-forum.com/t/how-to-let-com-be-part-of-the-url-routing-error/196759 "2008-07-25T21:16:49Z")

</div>

Hi, I am trying to list companies in a catalog. I have set following route for that map.connect ‘company/:company’ :controller =\> ‘community’, :action =\> ‘search’ Now I have “.com” as a part of the company name(Ama…

---

## [Strange YAML Problem: Sometimes can't open file](https://www.ruby-forum.com/t/strange-yaml-problem-sometimes-cant-open-file/144140)

<div class="topic-metadata">

**Author:** [@joep](https://www.ruby-forum.com/u/joep)\
**Replies:** 2\
**Last updated:** [July 25, 2008, 8:49pm UTC](https://www.ruby-forum.com/t/strange-yaml-problem-sometimes-cant-open-file/144140 "2008-07-25T20:49:45Z")

</div>

This is a weird problem that only happens once in a while. Most of the time there is no problem, but occassionally, I cannot open a file. Here’s some of the code. ############# ACTION 1 ######################### req…

---

## [Direct sql statement in rails](https://www.ruby-forum.com/t/direct-sql-statement-in-rails/144124)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 1\
**Last updated:** [July 25, 2008, 7:17pm UTC](https://www.ruby-forum.com/t/direct-sql-statement-in-rails/144124 "2008-07-25T19:17:38Z")

</div>

Hi I would like how can I execute a query like (Postgres sql) INSERT INTO oids (“filename”, “picture”) VALUES(‘logo.png’,lo\_import(file)); in rails…Why I am asking this is I have a table oids having fields id …

---

## [Connecting rails application with Apache web server](https://www.ruby-forum.com/t/connecting-rails-application-with-apache-web-server/144135)

<div class="topic-metadata">

**Author:** [@PaweSSSSSK](https://www.ruby-forum.com/u/PaweSSSSSK)\
**Replies:** 2\
**Last updated:** [July 25, 2008, 7:14pm UTC](https://www.ruby-forum.com/t/connecting-rails-application-with-apache-web-server/144135 "2008-07-25T19:14:55Z")

</div>

Hello, I am currently working on app to be deployed on shared server, so I need to run it just like PHP or Perl apps (CGI on port 80) without interfering with Apache :confused: So is there any way to connect rails an…

---

## [Help me DRY this up please](https://www.ruby-forum.com/t/help-me-dry-this-up-please/144136)

<div class="topic-metadata">

**Author:** [@farfignugen](https://www.ruby-forum.com/u/farfignugen)\
**Replies:** 3\
**Last updated:** [July 25, 2008, 7:05pm UTC](https://www.ruby-forum.com/t/help-me-dry-this-up-please/144136 "2008-07-25T19:05:32Z")

</div>

My app has a model called items, and items has a row called title. I use the titles in the url, but also other places in my views, in the page title, etc. Since I use the titles in the url, I have a before\_save method…

---

## [How to get day name using ActiveSupport libraries](https://www.ruby-forum.com/t/how-to-get-day-name-using-activesupport-libraries/143922)

<div class="topic-metadata">

**Author:** [@paradise](https://www.ruby-forum.com/u/paradise)\
**Replies:** 2\
**Last updated:** [July 25, 2008, 6:39pm UTC](https://www.ruby-forum.com/t/how-to-get-day-name-using-activesupport-libraries/143922 "2008-07-25T18:39:49Z")

</div>

Is there any way to get the name of the day (i.e. mon, tue…) using the ActiveSupport libraries. I looked through these two libraries but can’t seem to find it: http://api.rubyonrails.com/classes/ActiveSupport/CoreExt…

---

## [Plugin class seen from environment.rb but not production.rb!](https://www.ruby-forum.com/t/plugin-class-seen-from-environment-rb-but-not-production-rb/68478)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 3\
**Last updated:** [July 25, 2008, 6:07pm UTC](https://www.ruby-forum.com/t/plugin-class-seen-from-environment-rb-but-not-production-rb/68478 "2008-07-25T18:07:33Z")

</div>

All, I’m trying to add in the Exception Notification plugin described in Rails Recipe #47. I add the following to my environment.rb file: #ExceptionNotifier configuration ExceptionNotifier.exception\_recipients = %w(…

---

## [Out of office: \[Rails-deploy\] Out of office: \[Rails-deploy\] Out of office: \[Rails-deploy\] Out of off](https://www.ruby-forum.com/t/out-of-office-rails-deploy-out-of-office-rails-deploy-out-of-office-rails-deploy-out-of-off/144122)

<div class="topic-metadata">

**Author:** [@chrislo](https://www.ruby-forum.com/u/chrislo)\
**Replies:** 0\
**Last updated:** [July 25, 2008, 4:47pm UTC](https://www.ruby-forum.com/t/out-of-office-rails-deploy-out-of-office-rails-deploy-out-of-office-rails-deploy-out-of-off/144122 "2008-07-25T16:47:44Z")

</div>

deployment. Rails version problems? Reply-To: removed\_email\_address@domain.invalid Sender: removed\_email\_address@domain.invalid Precedence: bulk X-Google-Loop: groups Mailing-List: list removed\_email\_address@domai…

---

## [Out of office: \[Rails-deploy\] Out of office: \[Rails-deploy\] Out of office: \[Rails-deploy\] Out of off](https://www.ruby-forum.com/t/out-of-office-rails-deploy-out-of-office-rails-deploy-out-of-office-rails-deploy-out-of-off/229175)

<div class="topic-metadata">

**Author:** [@chrislo](https://www.ruby-forum.com/u/chrislo)\
**Replies:** 0\
**Last updated:** [July 25, 2008, 4:47pm UTC](https://www.ruby-forum.com/t/out-of-office-rails-deploy-out-of-office-rails-deploy-out-of-office-rails-deploy-out-of-off/229175 "2008-07-25T16:47:44Z")

</div>

I’m out of the office from 25th July, returning on 11th August. For urgent queries, please contact Dave Clack, Simon Jones, or John Cooke at Black Pepper Software. Their email addresses are in the same format as my ow…

---

## [Out of office: \[Rails-deploy\] Re: A bit of ajax works fine locally but breaks on nginx](https://www.ruby-forum.com/t/out-of-office-rails-deploy-re-a-bit-of-ajax-works-fine-locally-but-breaks-on-nginx/229174)

<div class="topic-metadata">

**Author:** [@chrislo](https://www.ruby-forum.com/u/chrislo)\
**Replies:** 0\
**Last updated:** [July 25, 2008, 4:47pm UTC](https://www.ruby-forum.com/t/out-of-office-rails-deploy-re-a-bit-of-ajax-works-fine-locally-but-breaks-on-nginx/229174 "2008-07-25T16:47:44Z")

</div>

I’m out of the office from 25th July, returning on 11th August. For urgent queries, please contact Dave Clack, Simon Jones, or John Cooke at Black Pepper Software. Their email addresses are in the same format as my ow…

---

## [Out of office: \[Rails-deploy\] Out of office: \[Rails-deploy\] Re: A bit of ajax works fine locally but](https://www.ruby-forum.com/t/out-of-office-rails-deploy-out-of-office-rails-deploy-re-a-bit-of-ajax-works-fine-locally-but/229157)

<div class="topic-metadata">

**Author:** [@chrislo](https://www.ruby-forum.com/u/chrislo)\
**Replies:** 0\
**Last updated:** [July 25, 2008, 4:47pm UTC](https://www.ruby-forum.com/t/out-of-office-rails-deploy-out-of-office-rails-deploy-re-a-bit-of-ajax-works-fine-locally-but/229157 "2008-07-25T16:47:44Z")

</div>

I’m out of the office from 25th July, returning on 11th August. For urgent queries, please contact Dave Clack, Simon Jones, or John Cooke at Black Pepper Software. Their email addresses are in the same format as my ow…

---

## [Out of office: \[Rails-deploy\] Out of office: \[Rails-deploy\] Out of office: \[Rails-deploy\] Out of off](https://www.ruby-forum.com/t/out-of-office-rails-deploy-out-of-office-rails-deploy-out-of-office-rails-deploy-out-of-off/229177)

<div class="topic-metadata">

**Author:** [@chrislo](https://www.ruby-forum.com/u/chrislo)\
**Replies:** 0\
**Last updated:** [July 25, 2008, 4:47pm UTC](https://www.ruby-forum.com/t/out-of-office-rails-deploy-out-of-office-rails-deploy-out-of-office-rails-deploy-out-of-off/229177 "2008-07-25T16:47:09Z")

</div>

I’m out of the office from 25th July, returning on 11th August. For urgent queries, please contact Dave Clack, Simon Jones, or John Cooke at Black Pepper Software. Their email addresses are in the same format as my ow…

---

## [Out of office: \[Rails-deploy\] Out of office: \[Rails-deploy\] Out of office: \[Rails-deploy\] Out of off](https://www.ruby-forum.com/t/out-of-office-rails-deploy-out-of-office-rails-deploy-out-of-office-rails-deploy-out-of-off/229171)

<div class="topic-metadata">

**Author:** [@chrislo](https://www.ruby-forum.com/u/chrislo)\
**Replies:** 0\
**Last updated:** [July 25, 2008, 4:47pm UTC](https://www.ruby-forum.com/t/out-of-office-rails-deploy-out-of-office-rails-deploy-out-of-office-rails-deploy-out-of-off/229171 "2008-07-25T16:47:08Z")

</div>

I’m out of the office from 25th July, returning on 11th August. For urgent queries, please contact Dave Clack, Simon Jones, or John Cooke at Black Pepper Software. Their email addresses are in the same format as my ow…

---

## [Out of office: \[Rails-deploy\] Out of office: \[Rails-deploy\] Out of office: \[Rails-deploy\] Out of off](https://www.ruby-forum.com/t/out-of-office-rails-deploy-out-of-office-rails-deploy-out-of-office-rails-deploy-out-of-off/225148)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [July 25, 2008, 4:46pm UTC](https://www.ruby-forum.com/t/out-of-office-rails-deploy-out-of-office-rails-deploy-out-of-office-rails-deploy-out-of-off/225148 "2008-07-25T16:46:32Z")

</div>

I’m out of the office from 25th July, returning on 11th August. For urgent queries, please contact Dave Clack, Simon Jones, or John Cooke at Black Pepper Software. Their email addresses are in the same format as my ow…

---

## [Out of office: \[Rails-deploy\] Out of office: \[Rails-deploy\] Out of office: \[Rails-deploy\] Re: !st de](https://www.ruby-forum.com/t/out-of-office-rails-deploy-out-of-office-rails-deploy-out-of-office-rails-deploy-re-st-de/226017)

<div class="topic-metadata">

**Author:** [@chrislo](https://www.ruby-forum.com/u/chrislo)\
**Replies:** 0\
**Last updated:** [July 25, 2008, 4:46pm UTC](https://www.ruby-forum.com/t/out-of-office-rails-deploy-out-of-office-rails-deploy-out-of-office-rails-deploy-re-st-de/226017 "2008-07-25T16:46:32Z")

</div>

I’m out of the office from 25th July, returning on 11th August. For urgent queries, please contact Dave Clack, Simon Jones, or John Cooke at Black Pepper Software. Their email addresses are in the same format as my ow…

---

## [Out of office: \[Rails-deploy\] Out of office: \[Rails-deploy\] Re: !st deployment. Rails version proble](https://www.ruby-forum.com/t/out-of-office-rails-deploy-out-of-office-rails-deploy-re-st-deployment-rails-version-proble/218136)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [July 25, 2008, 4:45pm UTC](https://www.ruby-forum.com/t/out-of-office-rails-deploy-out-of-office-rails-deploy-re-st-deployment-rails-version-proble/218136 "2008-07-25T16:45:57Z")

</div>

I’m out of the office from 25th July, returning on 11th August. For urgent queries, please contact Dave Clack, Simon Jones, or John Cooke at Black Pepper Software. Their email addresses are in the same format as my ow…

---

## [Out of office: \[Rails-deploy\] Re: !st deployment. Rails version problems?](https://www.ruby-forum.com/t/out-of-office-rails-deploy-re-st-deployment-rails-version-problems/218135)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [July 25, 2008, 4:45pm UTC](https://www.ruby-forum.com/t/out-of-office-rails-deploy-re-st-deployment-rails-version-problems/218135 "2008-07-25T16:45:21Z")

</div>

I’m out of the office from 25th July, returning on 11th August. For urgent queries, please contact Dave Clack, Simon Jones, or John Cooke at Black Pepper Software. Their email addresses are in the same format as my ow…

---

## [Auto\_link is not working](https://www.ruby-forum.com/t/auto-link-is-not-working/144107)

<div class="topic-metadata">

**Author:** [@sunfish](https://www.ruby-forum.com/u/sunfish)\
**Replies:** 3\
**Last updated:** [July 25, 2008, 4:06pm UTC](https://www.ruby-forum.com/t/auto-link-is-not-working/144107 "2008-07-25T16:06:04Z")

</div>

Hi, In one of my project I am using auto\_link function for providing link to text. but when I am using it with truncate it is not working it gives following error code:- \<%=auto\_link truncate(group\_user.group.descri…

---

## [Problems with pluralization...and active record.find](https://www.ruby-forum.com/t/problems-with-pluralization-and-active-record-find/144106)

<div class="topic-metadata">

**Author:** [@yankees26](https://www.ruby-forum.com/u/yankees26)\
**Replies:** 4\
**Last updated:** [July 25, 2008, 3:33pm UTC](https://www.ruby-forum.com/t/problems-with-pluralization-and-active-record-find/144106 "2008-07-25T15:33:39Z")

</div>

Created a new model ‘klasse’ using scaffold, which was pluralised to ‘klasses’, which I don’t want! Removed all concerning ‘klasse’ and ‘klasses’ in the model. Added inflection “inflect.irregular ‘klasse’, ‘klassen’” …

---

## [Routes.rb](https://www.ruby-forum.com/t/routes-rb/144040)

<div class="topic-metadata">

**Author:** [@justinmc](https://www.ruby-forum.com/u/justinmc)\
**Replies:** 4\
**Last updated:** [July 25, 2008, 3:13pm UTC](https://www.ruby-forum.com/t/routes-rb/144040 "2008-07-25T15:13:06Z")

</div>

I feel like I’m doing something stupid, because I haven’t been able to fix this. I have this in my routes.rb file: map.resources :networks, :has\_many =\> :nodes map.resources :auth map.connect ‘users/login’, :control…

---

## [Detect XML Requests in Before Filter / OAuth](https://www.ruby-forum.com/t/detect-xml-requests-in-before-filter-oauth/143983)

<div class="topic-metadata">

**Author:** [@nanosk](https://www.ruby-forum.com/u/nanosk)\
**Replies:** 2\
**Last updated:** [July 25, 2008, 2:32pm UTC](https://www.ruby-forum.com/t/detect-xml-requests-in-before-filter-oauth/143983 "2008-07-25T14:32:26Z")

</div>

Hi, I am working on a RESTful website and also want to support XML as content type. However, I want to protect all XML actions with OAuth so that we can control, monitor and maybe limit access to the API in the futur…

---

## [Stop rails caching css](https://www.ruby-forum.com/t/stop-rails-caching-css/141790)

<div class="topic-metadata">

**Author:** [@Iain\_A](https://www.ruby-forum.com/u/Iain_A)\
**Replies:** 1\
**Last updated:** [July 25, 2008, 2:30pm UTC](https://www.ruby-forum.com/t/stop-rails-caching-css/141790 "2008-07-25T14:30:51Z")

</div>

Hello, I am having trouble stopping rails from caching my css file. I have a css file that is included however if I write changes to this file they do not appear. My environment is ‘development’. I am using mongrel. …

---

## [:member resources actions and :requirements](https://www.ruby-forum.com/t/member-resources-actions-and-requirements/144109)

<div class="topic-metadata">

**Author:** [@ericd](https://www.ruby-forum.com/u/ericd)\
**Replies:** 0\
**Last updated:** [July 25, 2008, 1:43pm UTC](https://www.ruby-forum.com/t/member-resources-actions-and-requirements/144109 "2008-07-25T13:43:57Z")

</div>

Hi! I’m having a bit of trouble with routes requirements for resources. Using Rails 2.0.2, I tried to specify that an explorer id (which actually is its login as a permalink) could contain dots, minus, or underscore…

---

## [How to disable ctrl key in javascript in ruby on rails](https://www.ruby-forum.com/t/how-to-disable-ctrl-key-in-javascript-in-ruby-on-rails/144108)

<div class="topic-metadata">

**Author:** [@sujith](https://www.ruby-forum.com/u/sujith)\
**Replies:** 0\
**Last updated:** [July 25, 2008, 1:41pm UTC](https://www.ruby-forum.com/t/how-to-disable-ctrl-key-in-javascript-in-ruby-on-rails/144108 "2008-07-25T13:41:38Z")

</div>

how to disable ctrl key in javascript in ruby on rails

---

## [Capistrano/ext/multistage?](https://www.ruby-forum.com/t/capistrano-ext-multistage/144012)

<div class="topic-metadata">

**Author:** [@helix\_tp](https://www.ruby-forum.com/u/helix_tp)\
**Replies:** 1\
**Last updated:** [July 25, 2008, 12:58pm UTC](https://www.ruby-forum.com/t/capistrano-ext-multistage/144012 "2008-07-25T12:58:14Z")

</div>

This may really be an ec2onrails question, but figured I’d ask anyway… After getting fairly convoluted logic in my deploy.rb to handle multiple environments, I discovered capistrano/ext/multistage, which looks like ex…

---

## [Problem with AR after update 2.0.2 -\> 2.1.0](https://www.ruby-forum.com/t/problem-with-ar-after-update-2-0-2-2-1-0/144007)

<div class="topic-metadata">

**Author:** [@mariek](https://www.ruby-forum.com/u/mariek)\
**Replies:** 1\
**Last updated:** [July 25, 2008, 12:55pm UTC](https://www.ruby-forum.com/t/problem-with-ar-after-update-2-0-2-2-1-0/144007 "2008-07-25T12:55:53Z")

</div>

After updating from 2.0.2 to 2.1 I got this error when update data in model “wrong number of arguments (3 for 2)” /var/lib/gems/1.8/gems/activerecord-2.1.0/lib/active\_record/base.rb: 2479:in attributes\_with\_quotes' /…

---

## [Nothing raised in functional test if exception is recued in controller?](https://www.ruby-forum.com/t/nothing-raised-in-functional-test-if-exception-is-recued-in-controller/144105)

<div class="topic-metadata">

**Author:** [@deegee](https://www.ruby-forum.com/u/deegee)\
**Replies:** 3\
**Last updated:** [July 25, 2008, 12:55pm UTC](https://www.ruby-forum.com/t/nothing-raised-in-functional-test-if-exception-is-recued-in-controller/144105 "2008-07-25T12:55:53Z")

</div>

Hi, I’m puzzled why my functional tests are failing. I have the following test: assert\_raise ActiveRecord::RecordInvalid do post :create, :page\_id =\> id\_from\_fixture, :body =\> “bla bla” end assert\_redirected\_to my\_…

---

## [A model inside another model creation](https://www.ruby-forum.com/t/a-model-inside-another-model-creation/143997)

<div class="topic-metadata">

**Author:** [@adam](https://www.ruby-forum.com/u/adam)\
**Replies:** 3\
**Last updated:** [July 25, 2008, 12:30pm UTC](https://www.ruby-forum.com/t/a-model-inside-another-model-creation/143997 "2008-07-25T12:30:45Z")

</div>

I got a model relationships Country \<- (hm) city \<- (hm) Address The table city has two fields (both required) integer :country\_id string :name When creating a city the user can type a country in a country field \<%…

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

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