# Rails

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

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

---

## [Oracle date column with date\_select helper](https://www.ruby-forum.com/t/oracle-date-column-with-date-select-helper/116230)

<div class="topic-metadata">

**Author:** [@bitsmith](https://www.ruby-forum.com/u/bitsmith)\
**Replies:** 0\
**Last updated:** [October 3, 2007, 5:31pm UTC](https://www.ruby-forum.com/t/oracle-date-column-with-date-select-helper/116230 "2007-10-03T17:31:54Z")

</div>

…help…using oracle 9i Birthdate: \<%= date\_select :spec, :birthdate, :start\_year =\> Spec::START\_YEAR, :end\_year =\> Time.now.year, …

---

## [Erb image link](https://www.ruby-forum.com/t/erb-image-link/114713)

<div class="topic-metadata">

**Author:** [@eggie5](https://www.ruby-forum.com/u/eggie5)\
**Replies:** 3\
**Last updated:** [October 3, 2007, 4:59pm UTC](https://www.ruby-forum.com/t/erb-image-link/114713 "2007-10-03T16:59:19Z")

</div>

I have an HTML image tag, but how do I wrap it in a rails erb link\_to element? \<- how do I link this with link\_to

---

## [403 (Forbidden) with Apache on Mongrel Cluster](https://www.ruby-forum.com/t/403-forbidden-with-apache-on-mongrel-cluster/196476)

<div class="topic-metadata">

**Author:** [@knb](https://www.ruby-forum.com/u/knb)\
**Replies:** 3\
**Last updated:** [October 3, 2007, 4:10pm UTC](https://www.ruby-forum.com/t/403-forbidden-with-apache-on-mongrel-cluster/196476 "2007-10-03T16:10:06Z")

</div>

Hi, I’ve configured a rails application on my VPS to run on two mongrels. When I run curl on localhost, the starting page comes up fine. That is, mongrel is serving the app perfectly. The problem arises when trying…

---

## [Login\_sugar: how to initialize @current\_user on non-authenticated pages?](https://www.ruby-forum.com/t/login-sugar-how-to-initialize-current-user-on-non-authenticated-pages/116158)

<div class="topic-metadata">

**Author:** [@dark-omen](https://www.ruby-forum.com/u/dark-omen)\
**Replies:** 1\
**Last updated:** [October 3, 2007, 3:55pm UTC](https://www.ruby-forum.com/t/login-sugar-how-to-initialize-current-user-on-non-authenticated-pages/116158 "2007-10-03T15:55:22Z")

</div>

I’ve installed login\_sugar in my app. In my Appliation controller I have added include UserSystem before\_filter :authenticate\_user then, in controllers with actions where I don’t need to have authentication, I’ve a…

---

## [In\_place\_editor\_field](https://www.ruby-forum.com/t/in-place-editor-field/116217)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 0\
**Last updated:** [October 3, 2007, 3:45pm UTC](https://www.ruby-forum.com/t/in-place-editor-field/116217 "2007-10-03T15:45:06Z")

</div>

I need to make it so that text box for the in\_place\_editor\_field will such that only 37 characters can be entered. Is there a way to do that? Tried :maxlength =\> 37 and that didn’t work. Thanks, -S

---

## [Fork() for long running calculations?](https://www.ruby-forum.com/t/fork-for-long-running-calculations/115528)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [October 3, 2007, 3:30pm UTC](https://www.ruby-forum.com/t/fork-for-long-running-calculations/115528 "2007-10-03T15:30:46Z")

</div>

Hi, I’m thinking of using fork() for long running calculations in some code of mine, that’s run via the Apache fcgid module. It’s some heavy calculation/db work that, however, doesn’t need to send anything back to t…

---

## [Mail send alert to user](https://www.ruby-forum.com/t/mail-send-alert-to-user/116205)

<div class="topic-metadata">

**Author:** [@bebitzaa](https://www.ruby-forum.com/u/bebitzaa)\
**Replies:** 1\
**Last updated:** [October 3, 2007, 3:24pm UTC](https://www.ruby-forum.com/t/mail-send-alert-to-user/116205 "2007-10-03T15:24:19Z")

</div>

Hello, I have made an message send/receive system for my page in ruby on rails. It works great but the only thing is that i need to refresh every time the page to see if i have new messages. Could someone help me with…

---

## [Decimal-field problem](https://www.ruby-forum.com/t/decimal-field-problem/116014)

<div class="topic-metadata">

**Author:** [@dertoni](https://www.ruby-forum.com/u/dertoni)\
**Replies:** 3\
**Last updated:** [October 3, 2007, 2:46pm UTC](https://www.ruby-forum.com/t/decimal-field-problem/116014 "2007-10-03T14:46:17Z")

</div>

Hi, I’m new to Ruby, Rails and this forum… so bear with me, thx. I have kind of a strange problem… I got a decimal field in a mysql table (precision 3, scale 1) for numbers like: “12”, or “12.4”; Problem is, whenever…

---

## [Internationalization problem](https://www.ruby-forum.com/t/internationalization-problem/116209)

<div class="topic-metadata">

**Author:** [@simon1](https://www.ruby-forum.com/u/simon1)\
**Replies:** 0\
**Last updated:** [October 3, 2007, 2:42pm UTC](https://www.ruby-forum.com/t/internationalization-problem/116209 "2007-10-03T14:42:11Z")

</div>

Hi, I am using the Gloc plugin, and had everything working nicely for one language, namely English. When I added a second language file (french), I suddenly can’t load any views without an error. The stack trace lo…

---

## [\[SÃ£o Paulo, Brazil\] Job offer](https://www.ruby-forum.com/t/sa-o-paulo-brazil-job-offer/116208)

<div class="topic-metadata">

**Author:** [@Paulo\_DSAngelo](https://www.ruby-forum.com/u/Paulo_DSAngelo)\
**Replies:** 0\
**Last updated:** [October 3, 2007, 2:06pm UTC](https://www.ruby-forum.com/t/sa-o-paulo-brazil-job-offer/116208 "2007-10-03T14:06:27Z")

</div>

Hi, We are a start-up company in Brazil looking for 2-3 ruby on rails experienced developers (with some web design knowledge) - São Paulo based - for full time 1-2 year project allocation. Please, anyone interested m…

---

## [S3sh socket connection error](https://www.ruby-forum.com/t/s3sh-socket-connection-error/196477)

<div class="topic-metadata">

**Author:** [@jamal](https://www.ruby-forum.com/u/jamal)\
**Replies:** 2\
**Last updated:** [October 3, 2007, 1:31pm UTC](https://www.ruby-forum.com/t/s3sh-socket-connection-error/196477 "2007-10-03T13:31:56Z")

</div>

Hello there, I’m using Windows XP to connect to Amazon webservices using s3sh library. I’m facing problems with uploading files to my bucket. AWS::S3::S3Object.store(“paper.pdf”, open(“paper.pdf”), “this\_is\_my\_uniq…

---

## [Calling local js function within form\_remote\_tag](https://www.ruby-forum.com/t/calling-local-js-function-within-form-remote-tag/116201)

<div class="topic-metadata">

**Author:** [@shishir\_s](https://www.ruby-forum.com/u/shishir_s)\
**Replies:** 0\
**Last updated:** [October 3, 2007, 12:37pm UTC](https://www.ruby-forum.com/t/calling-local-js-function-within-form-remote-tag/116201 "2007-10-03T12:37:31Z")

</div>

Hi , I am trying to pass an additional parameter using the form\_remote\_tag like this \<%= form\_remote\_tag :update =\> ‘’, :url =\> { :action =\> ‘send\_msg’, :to =\> nowActive()}, :after =\> “clearinput()” %\> \<%= text\_fie…

---

## [Problem with database.yml](https://www.ruby-forum.com/t/problem-with-database-yml/116189)

<div class="topic-metadata">

**Author:** [@jacob](https://www.ruby-forum.com/u/jacob)\
**Replies:** 6\
**Last updated:** [October 3, 2007, 12:25pm UTC](https://www.ruby-forum.com/t/problem-with-database-yml/116189 "2007-10-03T12:25:50Z")

</div>

Hi all! I am completely new to RoR and I have runned into a problem. I have followed an online course for RoR on Lynda.com and everything has worked out well until I should change to database.yml file. Instead of the …

---

## [Associations, find and options hash](https://www.ruby-forum.com/t/associations-find-and-options-hash/116192)

<div class="topic-metadata">

**Author:** [@pantulis](https://www.ruby-forum.com/u/pantulis)\
**Replies:** 0\
**Last updated:** [October 3, 2007, 10:55am UTC](https://www.ruby-forum.com/t/associations-find-and-options-hash/116192 "2007-10-03T10:55:09Z")

</div>

Hi, I’ve observed that finds over associations modify the options hashed passed to them: class Parent \< ActiveRecord::Base has\_many :sons def something\_about\_sons options = { :conditions =\> “id \< 10” } logger.info…

---

## [Stop Terry Chay](https://www.ruby-forum.com/t/stop-terry-chay/115440)

<div class="topic-metadata">

**Author:** [@dave](https://www.ruby-forum.com/u/dave)\
**Replies:** 1\
**Last updated:** [October 3, 2007, 10:09am UTC](https://www.ruby-forum.com/t/stop-terry-chay/115440 "2007-10-03T10:09:34Z")

</div>

Terry Chay is an anti-RoR terrorist. If we all leave a message, I he will get the message that RoR is moving forward and is an unstoppable force! http://terrychay.com/blog/article/php-ruby-evil-good.shtml Dave

---

## [Apache ruby](https://www.ruby-forum.com/t/apache-ruby/116178)

<div class="topic-metadata">

**Author:** [@S.Tony](https://www.ruby-forum.com/u/S.Tony)\
**Replies:** 1\
**Last updated:** [October 3, 2007, 10:09am UTC](https://www.ruby-forum.com/t/apache-ruby/116178 "2007-10-03T10:09:34Z")

</div>

Hello, Is it possible to run Ruby (one ruby app),PHP on Apache (with mod,plugins) at the same time? And just use one port for the whole website.

---

## [\[n00b\] wildcard :select in find(:all) -\> malformed string](https://www.ruby-forum.com/t/n00b-wildcard-select-in-find-all-malformed-string/116163)

<div class="topic-metadata">

**Author:** [@olie](https://www.ruby-forum.com/u/olie)\
**Replies:** 1\
**Last updated:** [October 3, 2007, 10:04am UTC](https://www.ruby-forum.com/t/n00b-wildcard-select-in-find-all-malformed-string/116163 "2007-10-03T10:04:53Z")

</div>

I’m getting: malformed format string - %’ When I do something like this: $milestone = "(target\_milestone LIKE '1.0 %' OR target\_milestone LIKE ‘TBD%’)" \[…\] @cond = $open\_bugs + " AND product like ‘" + $product\_name…

---

## [A wiki as a plugin?](https://www.ruby-forum.com/t/a-wiki-as-a-plugin/116186)

<div class="topic-metadata">

**Author:** [@benni](https://www.ruby-forum.com/u/benni)\
**Replies:** 0\
**Last updated:** [October 3, 2007, 9:45am UTC](https://www.ruby-forum.com/t/a-wiki-as-a-plugin/116186 "2007-10-03T09:45:12Z")

</div>

hello everybody I would like to integrate a small wiki in my current rails-project. but before writing it on my own, I’d like to know, if there is already a plugin for rails. i know about instiki and http://agilewebd…

---

## [FREE PDF - SitePoint's Ruby on Rails book](https://www.ruby-forum.com/t/free-pdf-sitepoints-ruby-on-rails-book/116179)

<div class="topic-metadata">

**Author:** [@mattymcg](https://www.ruby-forum.com/u/mattymcg)\
**Replies:** 1\
**Last updated:** [October 3, 2007, 8:37am UTC](https://www.ruby-forum.com/t/free-pdf-sitepoints-ruby-on-rails-book/116179 "2007-10-03T08:37:10Z")

</div>

Apologies for the self-promotion, but some of the Rails newbies out there may be interested in knowing that our beginner’s Rails book is now available as a free PDF (the full thing, not just a sample). http://rails.si…

---

## [Set svn user in vlad the deployer](https://www.ruby-forum.com/t/set-svn-user-in-vlad-the-deployer/116177)

<div class="topic-metadata">

**Author:** [@ivanstorck](https://www.ruby-forum.com/u/ivanstorck)\
**Replies:** 0\
**Last updated:** [October 3, 2007, 7:46am UTC](https://www.ruby-forum.com/t/set-svn-user-in-vlad-the-deployer/116177 "2007-10-03T07:46:42Z")

</div>

how do I do it? It is asking me for the wrong svn username #deploy.rb set :svn\_username, “sw\_ivanoats” set :svn\_password, “my password” I have also tried scm\_username, without success VLAD the DEPLOYER stuff set :a…

---

## [Appropriately unit testing my models?](https://www.ruby-forum.com/t/appropriately-unit-testing-my-models/116052)

<div class="topic-metadata">

**Author:** [@matt](https://www.ruby-forum.com/u/matt)\
**Replies:** 2\
**Last updated:** [October 3, 2007, 7:11am UTC](https://www.ruby-forum.com/t/appropriately-unit-testing-my-models/116052 "2007-10-03T07:11:15Z")

</div>

Can anyone point me towards a good resource on appropriately testing all the fields in a given model? Or perhaps give some advice. For example, this test below is for a model with only a single column, but when I add…

---

## [The Sitepoint Rails book is free now!](https://www.ruby-forum.com/t/the-sitepoint-rails-book-is-free-now/116175)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [October 3, 2007, 6:53am UTC](https://www.ruby-forum.com/t/the-sitepoint-rails-book-is-free-now/116175 "2007-10-03T06:53:43Z")

</div>

the Sitepoint Rails book is now a free pdf download. If you’re beginning with Rails, get this!

---

## [Deploying EdgeRails app(revision 7722)](https://www.ruby-forum.com/t/deploying-edgerails-app-revision-7722/116160)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [October 3, 2007, 6:18am UTC](https://www.ruby-forum.com/t/deploying-edgerails-app-revision-7722/116160 "2007-10-03T06:18:05Z")

</div>

Even though I’ve freezed the edge version of the app (rake rails:freeze:edge), when starting up the application I get this error: \[sergiutruta@jervis ~/etc/rc.d\]$ /usr/local/lib/ruby/site\_ruby/1.8/ rubygems/custom\_req…

---

## [\[ANN\] New plugin - Personalise Site](https://www.ruby-forum.com/t/ann-new-plugin-personalise-site/115944)

<div class="topic-metadata">

**Author:** [@ss\_1982](https://www.ruby-forum.com/u/ss_1982)\
**Replies:** 6\
**Last updated:** [October 3, 2007, 5:58am UTC](https://www.ruby-forum.com/t/ann-new-plugin-personalise-site/115944 "2007-10-03T05:58:13Z")

</div>

This plugin provides helpers for your views that allow you to gain implicit data about the user browsing the site. This is intended to be used to customise what the user see’s, maybe to improve usability or for cross-…

---

## [RJS - Getting and Setting Form Element Values Question](https://www.ruby-forum.com/t/rjs-getting-and-setting-form-element-values-question/97236)

<div class="topic-metadata">

**Author:** [@icottee](https://www.ruby-forum.com/u/icottee)\
**Replies:** 2\
**Last updated:** [October 3, 2007, 4:31am UTC](https://www.ruby-forum.com/t/rjs-getting-and-setting-form-element-values-question/97236 "2007-10-03T04:31:47Z")

</div>

I’m still a beginner with RJS so forgive me if this is a simple one - but certainly it doesn’t seem logical and googling has not led to . Given a field with an id of ‘posting\_subject’ I can do the following in my cont…

---

## [How many rails developers are out there?](https://www.ruby-forum.com/t/how-many-rails-developers-are-out-there/116150)

<div class="topic-metadata">

**Author:** [@Dorren](https://www.ruby-forum.com/u/Dorren)\
**Replies:** 3\
**Last updated:** [October 3, 2007, 4:14am UTC](https://www.ruby-forum.com/t/how-many-rails-developers-are-out-there/116150 "2007-10-03T04:14:43Z")

</div>

Just out of curiosity, how many rails developers are out there worldwide? Google groups shows 11000 members, is that number about right? Dorren http://groups.wuyasea.com/profile/dorren

---

## [Trying to print on the console a single column from a db](https://www.ruby-forum.com/t/trying-to-print-on-the-console-a-single-column-from-a-db/116148)

<div class="topic-metadata">

**Author:** [@newrubyuser](https://www.ruby-forum.com/u/newrubyuser)\
**Replies:** 7\
**Last updated:** [October 3, 2007, 4:10am UTC](https://www.ruby-forum.com/t/trying-to-print-on-the-console-a-single-column-from-a-db/116148 "2007-10-03T04:10:03Z")

</div>

Trying to get a grasp on how ruby works with data, so used to perl. Here is what im trying to do in my app/models scrap.rb def self.START all = MyDb.find\_all\_by\_server\_name('myserver', :limit =\> 1) puts all # all i g…

---

## [Validating Non-ActiveRecord Objects](https://www.ruby-forum.com/t/validating-non-activerecord-objects/114531)

<div class="topic-metadata">

**Author:** [@bluetrust](https://www.ruby-forum.com/u/bluetrust)\
**Replies:** 5\
**Last updated:** [October 3, 2007, 3:16am UTC](https://www.ruby-forum.com/t/validating-non-activerecord-objects/114531 "2007-10-03T03:16:34Z")

</div>

I am trying to validate a form that’s not using a database. The class (validateable.rb) comes from Rails Recipes and I am not sure how I can get the validation to work with my controller and view. It’s probably trivia…

---

## [Just need help on what book to buy for ruby](https://www.ruby-forum.com/t/just-need-help-on-what-book-to-buy-for-ruby/116128)

<div class="topic-metadata">

**Author:** [@newrubyuser](https://www.ruby-forum.com/u/newrubyuser)\
**Replies:** 5\
**Last updated:** [October 3, 2007, 3:02am UTC](https://www.ruby-forum.com/t/just-need-help-on-what-book-to-buy-for-ruby/116128 "2007-10-03T03:02:44Z")

</div>

Guys Im trying to do some ruby on rails stuff for interfaceing with some unix commands from a ui. Im using the streamlined framework and it creates everything i need for the ui side but im having problems trying to c…

---

## [Excluding null values from ActiveRecord.to\_xml](https://www.ruby-forum.com/t/excluding-null-values-from-activerecord-to-xml/116162)

<div class="topic-metadata">

**Author:** [@eggie5](https://www.ruby-forum.com/u/eggie5)\
**Replies:** 0\
**Last updated:** [October 3, 2007, 2:13am UTC](https://www.ruby-forum.com/t/excluding-null-values-from-activerecord-to-xml/116162 "2007-10-03T02:13:34Z")

</div>

By default when you call to\_xml on an ActiveRecord instance it will include all the null column in the table as empty xml nodes. This poses a problem with the C# client app I’m trying to develop that consumes that xml…

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

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