# Rails

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

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

---

## [Almost not a technical question](https://www.ruby-forum.com/t/almost-not-a-technical-question/187303)

<div class="topic-metadata">

**Author:** [@gregm](https://www.ruby-forum.com/u/gregm)\
**Replies:** 1\
**Last updated:** [April 21, 2010, 4:43pm UTC](https://www.ruby-forum.com/t/almost-not-a-technical-question/187303 "2010-04-21T16:43:23Z")

</div>

Hi, I would like to develop a paying system like Groupon.com does. For those who don’t know about groupon, you can purchase coupon only if the coupon as been sold “n” number of times. But when you pay you are charged …

---

## [\[ANN\] Red Dirt Registration Ending](https://www.ruby-forum.com/t/ann-red-dirt-registration-ending/187318)

<div class="topic-metadata">

**Author:** [@JEG2](https://www.ruby-forum.com/u/JEG2)\
**Replies:** 0\
**Last updated:** [April 21, 2010, 4:41pm UTC](https://www.ruby-forum.com/t/ann-red-dirt-registration-ending/187318 "2010-04-21T16:41:38Z")

</div>

Rubyists: Friday is the last day for normal registration to the Red Dirt RubyConf. We have everything locked-in and it’s going to be an awesome event. Here are just a handful of the planned highlights: Keynote spee…

---

## [How to change photo size from 300k -\> 100k?](https://www.ruby-forum.com/t/how-to-change-photo-size-from-300k-100k/187311)

<div class="topic-metadata">

**Author:** [@Chandle\_WEi](https://www.ruby-forum.com/u/Chandle_WEi)\
**Replies:** 1\
**Last updated:** [April 21, 2010, 3:24pm UTC](https://www.ruby-forum.com/t/how-to-change-photo-size-from-300k-100k/187311 "2010-04-21T15:24:20Z")

</div>

In ruby how to change photo size from 300k -\> 100k? have any methods?

---

## [Map a resource to another controller](https://www.ruby-forum.com/t/map-a-resource-to-another-controller/187310)

<div class="topic-metadata">

**Author:** [@rtacconi](https://www.ruby-forum.com/u/rtacconi)\
**Replies:** 0\
**Last updated:** [April 21, 2010, 2:57pm UTC](https://www.ruby-forum.com/t/map-a-resource-to-another-controller/187310 "2010-04-21T14:57:59Z")

</div>

Hi, I have a Page controller. I use it as a tree structure to manage pages in a CMS. Is it possible to map an address /pages/1 to another controller, say /forum ? I need it because not every page should be a CMS page…

---

## [Gem install/update errors](https://www.ruby-forum.com/t/gem-install-update-errors/187261)

<div class="topic-metadata">

**Author:** [@clavatinc](https://www.ruby-forum.com/u/clavatinc)\
**Replies:** 4\
**Last updated:** [April 21, 2010, 2:42pm UTC](https://www.ruby-forum.com/t/gem-install-update-errors/187261 "2010-04-21T14:42:16Z")

</div>

%USERPROFILE%\\Documents\\Programs\\rails\_apps\\history\> gem update rails ERROR: While executing gem … (ArgumentError) uri scheme is invalid Updating installed gems Process gem exited with code 1 I received this error …

---

## [Is it possible to generate a breadcrumb from Rails controller?](https://www.ruby-forum.com/t/is-it-possible-to-generate-a-breadcrumb-from-rails-controller/187307)

<div class="topic-metadata">

**Author:** [@builtbysimple](https://www.ruby-forum.com/u/builtbysimple)\
**Replies:** 0\
**Last updated:** [April 21, 2010, 2:31pm UTC](https://www.ruby-forum.com/t/is-it-possible-to-generate-a-breadcrumb-from-rails-controller/187307 "2010-04-21T14:31:03Z")

</div>

Dear all, Is it possible to generate a breadcrumb from Rails controller without using any additional plugin? What methods should I look into to be able to generate breadcrumb in Rails? Thank you very much in advance …

---

## [Habtm relation, cannot populate join table](https://www.ruby-forum.com/t/habtm-relation-cannot-populate-join-table/187305)

<div class="topic-metadata">

**Author:** [@veena](https://www.ruby-forum.com/u/veena)\
**Replies:** 0\
**Last updated:** [April 21, 2010, 2:09pm UTC](https://www.ruby-forum.com/t/habtm-relation-cannot-populate-join-table/187305 "2010-04-21T14:09:00Z")

</div>

Hai friends, I hav two models related with habtm class User \< ActiveRecord::Base has\_and\_belongs\_to\_many :station, :join\_table =\> “stations\_users”, :foreign\_key =\> “user\_id”, :association\_foreign\_key =\> “station\_id…

---

## [Firefox 3.6 not caching css and js files](https://www.ruby-forum.com/t/firefox-3-6-not-caching-css-and-js-files/187298)

<div class="topic-metadata">

**Author:** [@tonypm](https://www.ruby-forum.com/u/tonypm)\
**Replies:** 0\
**Last updated:** [April 21, 2010, 1:02pm UTC](https://www.ruby-forum.com/t/firefox-3-6-not-caching-css-and-js-files/187298 "2010-04-21T13:02:03Z")

</div>

I have an in house app that has been running for several years, with regular enhancements. Just recently I have noticed that on windows clients, firefox 3.6 is no longer caching any css or js pages. Watching the page…

---

## [Rails on DB2](https://www.ruby-forum.com/t/rails-on-db2/187297)

<div class="topic-metadata">

**Author:** [@sijomo](https://www.ruby-forum.com/u/sijomo)\
**Replies:** 0\
**Last updated:** [April 21, 2010, 12:45pm UTC](https://www.ruby-forum.com/t/rails-on-db2/187297 "2010-04-21T12:45:39Z")

</div>

Hi, We have a potential requirement to convert our existing rails app to run on DB2. I’ve had a bit of a look around and there is a DB2 active record gem. Does anyone have any experience with this? Is it a robust solu…

---

## [Need to convert postgres database to mysql](https://www.ruby-forum.com/t/need-to-convert-postgres-database-to-mysql/187295)

<div class="topic-metadata">

**Author:** [@neetinforum](https://www.ruby-forum.com/u/neetinforum)\
**Replies:** 0\
**Last updated:** [April 21, 2010, 12:16pm UTC](https://www.ruby-forum.com/t/need-to-convert-postgres-database-to-mysql/187295 "2010-04-21T12:16:01Z")

</div>

Hi, Need script to convert postgres db dump and restore to mysql. Please help me. Thanks in advance.

---

## [Smart localisation](https://www.ruby-forum.com/t/smart-localisation/187256)

<div class="topic-metadata">

**Author:** [@jhaagmans](https://www.ruby-forum.com/u/jhaagmans)\
**Replies:** 5\
**Last updated:** [April 21, 2010, 11:45am UTC](https://www.ruby-forum.com/t/smart-localisation/187256 "2010-04-21T11:45:22Z")

</div>

Hi, I have some trouble using Il8n. I’ve had these problems for a while now and always used rough workarounds, but as my productivity needs to go up another notch, I was wondering whether there was any way of avoidin…

---

## [\[JOBS\] Unusual UnHappy-Couples Startup needs Tech Advisor for One Time only or 2hrs/wk](https://www.ruby-forum.com/t/jobs-unusual-unhappy-couples-startup-needs-tech-advisor-for-one-time-only-or-2hrs-wk/187291)

<div class="topic-metadata">

**Author:** [@eCoupleCoach](https://www.ruby-forum.com/u/eCoupleCoach)\
**Replies:** 1\
**Last updated:** [April 21, 2010, 11:14am UTC](https://www.ruby-forum.com/t/jobs-unusual-unhappy-couples-startup-needs-tech-advisor-for-one-time-only-or-2hrs-wk/187291 "2010-04-21T11:14:55Z")

</div>

Tech Advisor to Unusual Social Venture Startup This position is for an unusual Social Venture Internet Startup which will be using a robust conceptual advance web application to help the 95% of unhappy marriages/ co…

---

## [Migrating restful\_authentication](https://www.ruby-forum.com/t/migrating-restful-authentication/187294)

<div class="topic-metadata">

**Author:** [@DanC](https://www.ruby-forum.com/u/DanC)\
**Replies:** 3\
**Last updated:** [April 21, 2010, 10:38am UTC](https://www.ruby-forum.com/t/migrating-restful-authentication/187294 "2010-04-21T10:38:02Z")

</div>

Hi, I was wondering if anyone is familiar with restful\_authentication plugin. I have an app which uses restful\_authentication and I am creating a new app which will exist at a seperate url. However, I would like use…

---

## [How to monitor generated SQL output?](https://www.ruby-forum.com/t/how-to-monitor-generated-sql-output/187293)

<div class="topic-metadata">

**Author:** [@fearless\_fool](https://www.ruby-forum.com/u/fearless_fool)\
**Replies:** 2\
**Last updated:** [April 21, 2010, 10:18am UTC](https://www.ruby-forum.com/t/how-to-monitor-generated-sql-output/187293 "2010-04-21T10:18:55Z")

</div>

Pardon if this has been asked a dozen times before (a quick search on the forum didn’t turn up anything obvious): For purposes of really understanding ActiveRecord, is there an easy way to watch the SQL generated call…

---

## [Spring Cleaning](https://www.ruby-forum.com/t/spring-cleaning/187275)

<div class="topic-metadata">

**Author:** [@davidz101](https://www.ruby-forum.com/u/davidz101)\
**Replies:** 5\
**Last updated:** [April 21, 2010, 10:00am UTC](https://www.ruby-forum.com/t/spring-cleaning/187275 "2010-04-21T10:00:34Z")

</div>

Right now in my view, I have a whole HUGE clump of \<% if current\_user %\> and then \<% if current\_admin %\> and then \<% if current\_teacher %\> and then all that other stuff in my view. I have a ginourmous chunk of if and …

---

## [Why not Rails with FastCGI?](https://www.ruby-forum.com/t/why-not-rails-with-fastcgi/187289)

<div class="topic-metadata">

**Author:** [@enduro](https://www.ruby-forum.com/u/enduro)\
**Replies:** 1\
**Last updated:** [April 21, 2010, 8:13am UTC](https://www.ruby-forum.com/t/why-not-rails-with-fastcgi/187289 "2010-04-21T08:13:26Z")

</div>

When I started using Rails around version 0.9, FastCGI was considered one of the best ways to deploy Rails. That went out of fashion but I don’t know why. Then Mongrel was the hot thing and I’ve heard about Phusion Pa…

---

## [\[ann\]vtd-xml 2.8](https://www.ruby-forum.com/t/ann-vtd-xml-2-8/187292)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [April 21, 2010, 8:11am UTC](https://www.ruby-forum.com/t/ann-vtd-xml-2-8/187292 "2010-04-21T08:11:40Z")

</div>

VTD-XML 2.8 has been released. Please visit to download the latest version. a… Expansion of Core VTD-XML API a… VTDGen adds support for capturing white spaces b… VTDNav adds support for suport for getContentFragment…

---

## [Api.rubyonrails.org / guides.rubyonrails.org](https://www.ruby-forum.com/t/api-rubyonrails-org-guides-rubyonrails-org/187266)

<div class="topic-metadata">

**Author:** [@alangano](https://www.ruby-forum.com/u/alangano)\
**Replies:** 7\
**Last updated:** [April 21, 2010, 8:11am UTC](https://www.ruby-forum.com/t/api-rubyonrails-org-guides-rubyonrails-org/187266 "2010-04-21T08:11:05Z")

</div>

Is it just me, or is everyone seeing backpack girl at http://api.rubyonrails.org/ and http://guides.rubyonrails.org/ ? Alan G. http://twitter.com/bigeasy

---

## [Solving the error when running gem install or gem update](https://www.ruby-forum.com/t/solving-the-error-when-running-gem-install-or-gem-update/187290)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [April 21, 2010, 8:05am UTC](https://www.ruby-forum.com/t/solving-the-error-when-running-gem-install-or-gem-update/187290 "2010-04-21T08:05:48Z")

</div>

when seeing ERROR: While executing gem … (ArgumentError) uri scheme is invalid try looking into your gem sources run gem sources and then remove all weird or unnecessary sources until you are left with only http:…

---

## [Unable to set default\_url\_options\[:host\] for Action Mailer](https://www.ruby-forum.com/t/unable-to-set-default-url-options-host-for-action-mailer/147541)

<div class="topic-metadata">

**Author:** [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Replies:** 3\
**Last updated:** [April 21, 2010, 5:54am UTC](https://www.ruby-forum.com/t/unable-to-set-default-url-options-host-for-action-mailer/147541 "2010-04-21T05:54:21Z")

</div>

I am attempting to provide ActionMailer with the request host needed to generate a url. Here is my code: In config/environments/development.rb config.action\_mailer.default\_url\_options = { :host =\> “development\_url.c…

---

## [User activation](https://www.ruby-forum.com/t/user-activation/187263)

<div class="topic-metadata">

**Author:** [@rutisyrz](https://www.ruby-forum.com/u/rutisyrz)\
**Replies:** 7\
**Last updated:** [April 21, 2010, 3:05am UTC](https://www.ruby-forum.com/t/user-activation/187263 "2010-04-21T03:05:32Z")

</div>

Dear all, I am using restful authentication plug-in for user registration & authentication. What I want to do is, when user submit registration form, a link containing activation code 'll be generated & is to be sent…

---

## [Link directory in Rails - easy?](https://www.ruby-forum.com/t/link-directory-in-rails-easy/187280)

<div class="topic-metadata">

**Author:** [@ast](https://www.ruby-forum.com/u/ast)\
**Replies:** 0\
**Last updated:** [April 21, 2010, 2:17am UTC](https://www.ruby-forum.com/t/link-directory-in-rails-easy/187280 "2010-04-21T02:17:52Z")

</div>

Hey All, hope someone can give me an idea of how easy/difficult it would be to to create a link directory in Rails. Here’s a brief spec: People should be able to create an account and submit a link, either to a cat…

---

## [Can you recommend a great agile training program in the Bay Area?](https://www.ruby-forum.com/t/can-you-recommend-a-great-agile-training-program-in-the-bay-area/187278)

<div class="topic-metadata">

**Author:** [@drewB](https://www.ruby-forum.com/u/drewB)\
**Replies:** 0\
**Last updated:** [April 21, 2010, 12:28am UTC](https://www.ruby-forum.com/t/can-you-recommend-a-great-agile-training-program-in-the-bay-area/187278 "2010-04-21T00:28:41Z")

</div>

Can anyone recommend a good few day training program for running agile teams in the Bay Area? I know there are a bunch out there but I was looking for some first hand recommendations. Basically, I am looking for a p…

---

## [Xml from a var](https://www.ruby-forum.com/t/xml-from-a-var/187199)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 4\
**Last updated:** [April 21, 2010, 12:14am UTC](https://www.ruby-forum.com/t/xml-from-a-var/187199 "2010-04-21T00:14:02Z")

</div>

If I form and/or build up xml in a model or controller and assign it to a var how do I get a page to display the xml?

---

## [FORM fields sent to the CONTROLLER](https://www.ruby-forum.com/t/form-fields-sent-to-the-controller/187097)

<div class="topic-metadata">

**Author:** [@davidz101](https://www.ruby-forum.com/u/davidz101)\
**Replies:** 8\
**Last updated:** [April 21, 2010, 12:13am UTC](https://www.ruby-forum.com/t/form-fields-sent-to-the-controller/187097 "2010-04-21T00:13:15Z")

</div>

Is there anyway to send form fields that were just filled out (after the user hits submit) and send those values to a contrller? Also, is there a way to get the values of a certain field in a table and put that into t…

---

## [Reg exp](https://www.ruby-forum.com/t/reg-exp/187258)

<div class="topic-metadata">

**Author:** [@ESESES](https://www.ruby-forum.com/u/ESESES)\
**Replies:** 2\
**Last updated:** [April 21, 2010, 12:07am UTC](https://www.ruby-forum.com/t/reg-exp/187258 "2010-04-21T00:07:58Z")

</div>

What would the reg expression be for a string of 13 consecutive digits in javascript? var textfieldIdRegexp = /^\\d{13}/; ?

---

## [Can I access another apps mysql database with my rails app?](https://www.ruby-forum.com/t/can-i-access-another-apps-mysql-database-with-my-rails-app/187268)

<div class="topic-metadata">

**Author:** [@ast](https://www.ruby-forum.com/u/ast)\
**Replies:** 4\
**Last updated:** [April 20, 2010, 10:47pm UTC](https://www.ruby-forum.com/t/can-i-access-another-apps-mysql-database-with-my-rails-app/187268 "2010-04-20T22:47:13Z")

</div>

Sorry if the answer is obvious (nube alert) but would it be possible for me to access the DB of a php app using a mysql database, from within my Rails app? I want to install my (php) forums in forum.site.com, and my m…

---

## [Javascript validations for word count in fckeditor](https://www.ruby-forum.com/t/javascript-validations-for-word-count-in-fckeditor/187254)

<div class="topic-metadata">

**Author:** [@sunny](https://www.ruby-forum.com/u/sunny)\
**Replies:** 2\
**Last updated:** [April 20, 2010, 10:20pm UTC](https://www.ruby-forum.com/t/javascript-validations-for-word-count-in-fckeditor/187254 "2010-04-20T22:20:51Z")

</div>

I need to count the number of words in fckeditor using javascript

---

## [Ruby Summer of Code Project](https://www.ruby-forum.com/t/ruby-summer-of-code-project/187264)

<div class="topic-metadata">

**Author:** [@fbrubacher](https://www.ruby-forum.com/u/fbrubacher)\
**Replies:** 1\
**Last updated:** [April 20, 2010, 8:45pm UTC](https://www.ruby-forum.com/t/ruby-summer-of-code-project/187264 "2010-04-20T20:45:35Z")

</div>

Hi, As part of my Ruby SOC proposals I’m thinking of working in the CI idea posted in http://wiki.rubyonrails.org/rubysoc/2010/ideas Ideally, I’d like to do a two step proposal: first one would be writing custom CI t…

---

## [Hello i new user Ruby On rails](https://www.ruby-forum.com/t/hello-i-new-user-ruby-on-rails/187211)

<div class="topic-metadata">

**Author:** [@agungx2](https://www.ruby-forum.com/u/agungx2)\
**Replies:** 4\
**Last updated:** [April 20, 2010, 7:57pm UTC](https://www.ruby-forum.com/t/hello-i-new-user-ruby-on-rails/187211 "2010-04-20T19:57:00Z")

</div>

I am a new user ruby on rails,. please guidance of all. btw where I can start to learn ruby on rails.

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

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