# Rails

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

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

---

## [Multithreading in Different Directories](https://www.ruby-forum.com/t/multithreading-in-different-directories/137680)

<div class="topic-metadata">

**Author:** [@paerez](https://www.ruby-forum.com/u/paerez)\
**Replies:** 2\
**Last updated:** [May 15, 2008, 6:30pm UTC](https://www.ruby-forum.com/t/multithreading-in-different-directories/137680 "2008-05-15T18:30:34Z")

</div>

Hello Everyone, First message out here on the group, and I hope you can help me out. I am running a bunch of commands that can take a long time (10 seconds to 15 minutes and beyond). Naturally, I decided to multithre…

---

## [Need HELP with RoR app using submit\_to\_remote](https://www.ruby-forum.com/t/need-help-with-ror-app-using-submit-to-remote/137635)

<div class="topic-metadata">

**Author:** [@newrubygirl](https://www.ruby-forum.com/u/newrubygirl)\
**Replies:** 5\
**Last updated:** [May 15, 2008, 5:59pm UTC](https://www.ruby-forum.com/t/need-help-with-ror-app-using-submit-to-remote/137635 "2008-05-15T17:59:00Z")

</div>

I think that this should be easy, but the solution escapes me. I am using submit\_to\_remote and need to access the form parameters in the controller. In my view I have this as a sample so that I can generate the param…

---

## [Where did CGIMethods go in Rails 2?](https://www.ruby-forum.com/t/where-did-cgimethods-go-in-rails-2/135881)

<div class="topic-metadata">

**Author:** [@Christopher\_JSBott](https://www.ruby-forum.com/u/Christopher_JSBott)\
**Replies:** 1\
**Last updated:** [May 15, 2008, 5:21pm UTC](https://www.ruby-forum.com/t/where-did-cgimethods-go-in-rails-2/135881 "2008-05-15T17:21:41Z")

</div>

Hello, My application, which uses CGIMethods.parse\_query\_parameters, now crashes in Rails 2 because CGIMethods is gone. Where did it go? Is there an alternative that I can use? Thanks.

---

## [Validates\_presence\_of :if](https://www.ruby-forum.com/t/validates-presence-of-if/137681)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 1\
**Last updated:** [May 15, 2008, 5:17pm UTC](https://www.ruby-forum.com/t/validates-presence-of-if/137681 "2008-05-15T17:17:32Z")

</div>

Hi I have a table service\_desk\_resolution\_codes as below id | name ----±----------------- 1 | \<\< Select Any \>\> 2 | Resolution 1 3 | Resolution 2 And I am using this to submit resolution code in select box in…

---

## [Observer don't check if condition](https://www.ruby-forum.com/t/observer-dont-check-if-condition/137689)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [May 15, 2008, 11:22am UTC](https://www.ruby-forum.com/t/observer-dont-check-if-condition/137689 "2008-05-15T11:22:52Z")

</div>

Hi, i have a problem with the mail deliver after a entry is save. I want to check if one field is filled. In every Option (Controller action, model, observer) i wrote a if !entry.field.nil? Mail.deliver\_entry(entry) …

---

## [Sorting records based on the exact order of passed parameters to finder](https://www.ruby-forum.com/t/sorting-records-based-on-the-exact-order-of-passed-parameters-to-finder/137571)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 12\
**Last updated:** [May 15, 2008, 11:14am UTC](https://www.ruby-forum.com/t/sorting-records-based-on-the-exact-order-of-passed-parameters-to-finder/137571 "2008-05-15T11:14:57Z")

</div>

Hi, I have this array of record ids of a table. ids = \[110, 113, 103, 102, 116, 118, 112, 115, 170, 121, 119, 1, 3, 16, 12, 13, 9, 15, 169, 21, 18, 14\] When I pass this array to a find method like Task.find(ids), the …

---

## [How to invoke form\_remote\_tag from javascript?](https://www.ruby-forum.com/t/how-to-invoke-form-remote-tag-from-javascript/137675)

<div class="topic-metadata">

**Author:** [@gringo](https://www.ruby-forum.com/u/gringo)\
**Replies:** 1\
**Last updated:** [May 15, 2008, 9:22am UTC](https://www.ruby-forum.com/t/how-to-invoke-form-remote-tag-from-javascript/137675 "2008-05-15T09:22:31Z")

</div>

Hello, how can I move below functionality defined in rhtml to the javascript function? \<% form\_remote\_tag :url =\> { :action =\> :small\_courses\_list } do %\> \<%= submit\_tag “click!” %\> \<% end %\> I just want to invoke …

---

## [Ruby processes spawning rapidly](https://www.ruby-forum.com/t/ruby-processes-spawning-rapidly/137678)

<div class="topic-metadata">

**Author:** [@Coles](https://www.ruby-forum.com/u/Coles)\
**Replies:** 1\
**Last updated:** [May 15, 2008, 9:21am UTC](https://www.ruby-forum.com/t/ruby-processes-spawning-rapidly/137678 "2008-05-15T09:21:19Z")

</div>

This would be my first time posting here and I’m hoping to get some enlightenment on my problem. I have Mac OS X Server Leopard v10.5.2 with 4GB of RAM. We recently had a new site developed for our company and it was…

---

## [What is the difference between ==,===,equal?,eql?](https://www.ruby-forum.com/t/what-is-the-difference-between-equal-eql/137676)

<div class="topic-metadata">

**Author:** [@sanjib](https://www.ruby-forum.com/u/sanjib)\
**Replies:** 1\
**Last updated:** [May 15, 2008, 9:17am UTC](https://www.ruby-forum.com/t/what-is-the-difference-between-equal-eql/137676 "2008-05-15T09:17:44Z")

</div>

I am totally confused wht is the difference between them…If some body knows please reply soon…I am waiting.

---

## [Activerecord validation error after a redirect\_to](https://www.ruby-forum.com/t/activerecord-validation-error-after-a-redirect-to/137672)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 1\
**Last updated:** [May 15, 2008, 9:15am UTC](https://www.ruby-forum.com/t/activerecord-validation-error-after-a-redirect-to/137672 "2008-05-15T09:15:01Z")

</div>

Hi I have a respond\_to block as below respond\_to do |format| if @service\_desk\_resolution.save format.js{render :action =\> “sd\_resolution\_save.rjs”} format.html {redirect\_to(:action =\> ‘show\_details’, :id =\> params\[…

---

## [Does RoR support Shift-JIS encoding](https://www.ruby-forum.com/t/does-ror-support-shift-jis-encoding/137677)

<div class="topic-metadata">

**Author:** [@For\_Ad\_Now](https://www.ruby-forum.com/u/For_Ad_Now)\
**Replies:** 0\
**Last updated:** [May 15, 2008, 9:10am UTC](https://www.ruby-forum.com/t/does-ror-support-shift-jis-encoding/137677 "2008-05-15T09:10:02Z")

</div>

Hi all, I am new bie in RoR. I want to build a Japanese website by RoR. Does RoR support Shift-JIS encoding? Thanks, For Ad Now

---

## [Map.resources + path?](https://www.ruby-forum.com/t/map-resources-path/137458)

<div class="topic-metadata">

**Author:** [@remco123](https://www.ruby-forum.com/u/remco123)\
**Replies:** 5\
**Last updated:** [May 15, 2008, 9:05am UTC](https://www.ruby-forum.com/t/map-resources-path/137458 "2008-05-15T09:05:57Z")

</div>

REST/path question… routes.rb map.resources :continent do |continent| continent.resources :land do |land| land.resources :destination end end Show.rhtml of land(countrie) controller, to show the (belongs\_to) dest…

---

## [Viewing Rails log files](https://www.ruby-forum.com/t/viewing-rails-log-files/137667)

<div class="topic-metadata">

**Author:** [@vikrant](https://www.ruby-forum.com/u/vikrant)\
**Replies:** 1\
**Last updated:** [May 15, 2008, 5:51am UTC](https://www.ruby-forum.com/t/viewing-rails-log-files/137667 "2008-05-15T05:51:51Z")

</div>

Hi, Presently, to view the log files I simply open it in my text editor, but after sometime when the size of the log files crosses some megabytes, my text editor starts to hang. A solution may be to always truncate t…

---

## [Building Ruby on Solaris 10 with OpenSSL, for Rails... problem](https://www.ruby-forum.com/t/building-ruby-on-solaris-10-with-openssl-for-rails-problem/137666)

<div class="topic-metadata">

**Author:** [@michael\_teter](https://www.ruby-forum.com/u/michael_teter)\
**Replies:** 2\
**Last updated:** [May 15, 2008, 5:35am UTC](https://www.ruby-forum.com/t/building-ruby-on-solaris-10-with-openssl-for-rails-problem/137666 "2008-05-15T05:35:29Z")

</div>

Howdy. I’ve built Ruby, RubyGems, installed Rails and Oracle adapter, etc. However, when I try to start script/server, I get the following error: $ ruby script/server =\> Booting WEBrick… /opt/home/lsadmin/ruby/lib/r…

---

## [New blog application post slugs](https://www.ruby-forum.com/t/new-blog-application-post-slugs/137654)

<div class="topic-metadata">

**Author:** [@andy](https://www.ruby-forum.com/u/andy)\
**Replies:** 3\
**Last updated:** [May 15, 2008, 5:31am UTC](https://www.ruby-forum.com/t/new-blog-application-post-slugs/137654 "2008-05-15T05:31:24Z")

</div>

Hello. I’m creating my own RESTful blog app. I am wondering about creating post slugs. I think Wordpress creates a slug at post creation time and stores the string in the database, then uses that for URLs. I read …

---

## [Database driven root level routing, like /some\_page\_name](https://www.ruby-forum.com/t/database-driven-root-level-routing-like-some-page-name/137521)

<div class="topic-metadata">

**Author:** [@squeegy](https://www.ruby-forum.com/u/squeegy)\
**Replies:** 6\
**Last updated:** [May 15, 2008, 5:07am UTC](https://www.ruby-forum.com/t/database-driven-root-level-routing-like-some-page-name/137521 "2008-05-15T05:07:26Z")

</div>

I have a “page” model, and I want to be able access those pages with a URL like: http://foo.com/my\_page\_name Just wondering if there is a best practice for this. I have avoided it this far because I didnt want these …

---

## [Tracking Ruby on Twitter](https://www.ruby-forum.com/t/tracking-ruby-on-twitter/137573)

<div class="topic-metadata">

**Author:** [@makenai](https://www.ruby-forum.com/u/makenai)\
**Replies:** 2\
**Last updated:** [May 15, 2008, 5:05am UTC](https://www.ruby-forum.com/t/tracking-ruby-on-twitter/137573 "2008-05-15T05:05:41Z")

</div>

Hi all, I was having trouble finding some interesting rubyists to follow on twitter. Since my company is already playing around with tracking things on twitter, I took a bunch of ruby & rails related terms and create…

---

## [Iconv translit working in every situationâ€¦ but the running app!](https://www.ruby-forum.com/t/iconv-translit-working-in-every-situationa-but-the-running-app/124868)

<div class="topic-metadata">

**Author:** [@tdd](https://www.ruby-forum.com/u/tdd)\
**Replies:** 1\
**Last updated:** [May 15, 2008, 4:25am UTC](https://www.ruby-forum.com/t/iconv-translit-working-in-every-situationa-but-the-running-app/124868 "2008-05-15T04:25:13Z")

</div>

Hi all, I scourged the web, including this ML’s archives, and did not find an answer for this. I have the following code in my Rails app: require ‘iconv’ … @@converter = Iconv.new(‘ASCII//TRANSLIT’, ‘UTF-8’) … re…

---

## [Has anyone had problems with validates\_numericality\_of and :greater\_than?](https://www.ruby-forum.com/t/has-anyone-had-problems-with-validates-numericality-of-and-greater-than/137419)

<div class="topic-metadata">

**Author:** [@ccuilla](https://www.ruby-forum.com/u/ccuilla)\
**Replies:** 3\
**Last updated:** [May 15, 2008, 2:49am UTC](https://www.ruby-forum.com/t/has-anyone-had-problems-with-validates-numericality-of-and-greater-than/137419 "2008-05-15T02:49:48Z")

</div>

I cannot seem to get this to validate correctly and wonder if I’m doing something wrong. I’m using Rails 2.0.2 and I have been trying to take advantage of the “validates\_numericality\_of” with the “:greater\_than” optio…

---

## [Freezing 1.1.6](https://www.ruby-forum.com/t/freezing-1-1-6/137659)

<div class="topic-metadata">

**Author:** [@amanda](https://www.ruby-forum.com/u/amanda)\
**Replies:** 1\
**Last updated:** [May 15, 2008, 2:45am UTC](https://www.ruby-forum.com/t/freezing-1-1-6/137659 "2008-05-15T02:45:08Z")

</div>

I’ve been slowly working my way backwards through my troubles and I realized that I do have access to the old server so maybe I ought to head back there to figure some of this out. I have an app that is running on rai…

---

## [Rails syntax in application.js](https://www.ruby-forum.com/t/rails-syntax-in-application-js/137650)

<div class="topic-metadata">

**Author:** [@russianbandit](https://www.ruby-forum.com/u/russianbandit)\
**Replies:** 2\
**Last updated:** [May 15, 2008, 2:40am UTC](https://www.ruby-forum.com/t/rails-syntax-in-application-js/137650 "2008-05-15T02:40:18Z")

</div>

Is it possible to use the rails syntax inside of application.js file. Basically, I want to use remote\_function call inside of a javascript function. I know I could use the Ajax.Request but then I have a problem with a…

---

## [RoR IRC - Where to Find? Which are Most Active?](https://www.ruby-forum.com/t/ror-irc-where-to-find-which-are-most-active/137660)

<div class="topic-metadata">

**Author:** [@wickNbomb](https://www.ruby-forum.com/u/wickNbomb)\
**Replies:** 3\
**Last updated:** [May 15, 2008, 2:29am UTC](https://www.ruby-forum.com/t/ror-irc-where-to-find-which-are-most-active/137660 "2008-05-15T02:29:20Z")

</div>

Thanks!

---

## [Parental Consent](https://www.ruby-forum.com/t/parental-consent/137618)

<div class="topic-metadata">

**Author:** [@Paul\_Collins](https://www.ruby-forum.com/u/Paul_Collins)\
**Replies:** 5\
**Last updated:** [May 15, 2008, 2:27am UTC](https://www.ruby-forum.com/t/parental-consent/137618 "2008-05-15T02:27:34Z")

</div>

We are building solutions for school age children (18 and under). It is very important to get consent from parents. Since receiving hand- signed consents is not feasible, has anyone used a different technique using…

---

## [Using a Many-to-Many Relationship](https://www.ruby-forum.com/t/using-a-many-to-many-relationship/137488)

<div class="topic-metadata">

**Author:** [@DVG](https://www.ruby-forum.com/u/DVG)\
**Replies:** 3\
**Last updated:** [May 15, 2008, 2:27am UTC](https://www.ruby-forum.com/t/using-a-many-to-many-relationship/137488 "2008-05-15T02:27:34Z")

</div>

Okay, so I have a many-to-many relationship between users and groups set up in my application, using a join table (users\_groups). I am able to reference one from the other using this relaionship. However, I’m not exac…

---

## [Get parents via a condition on a child? (ActiveRecord)](https://www.ruby-forum.com/t/get-parents-via-a-condition-on-a-child-activerecord/137639)

<div class="topic-metadata">

**Author:** [@vvildo](https://www.ruby-forum.com/u/vvildo)\
**Replies:** 2\
**Last updated:** [May 15, 2008, 1:32am UTC](https://www.ruby-forum.com/t/get-parents-via-a-condition-on-a-child-activerecord/137639 "2008-05-15T01:32:36Z")

</div>

I come from a PHP background where I worked without an ORM. I’m having some trouble converting what I know will work in raw SQL into ActiveRecord models. I have the following two models (not my actual models, just as…

---

## [Midnight at 00:00 not making sense - looking for ideas and suggestions](https://www.ruby-forum.com/t/midnight-at-00-00-not-making-sense-looking-for-ideas-and-suggestions/137638)

<div class="topic-metadata">

**Author:** [@leethal](https://www.ruby-forum.com/u/leethal)\
**Replies:** 1\
**Last updated:** [May 14, 2008, 11:03pm UTC](https://www.ruby-forum.com/t/midnight-at-00-00-not-making-sense-looking-for-ideas-and-suggestions/137638 "2008-05-14T23:03:59Z")

</div>

Fiddling with a simple booking system for a music venue. The people working on that venue starts working at 17:00-ish at one day, and is finished 03:00-04:00. For a maintainer of the calendar, saying that something ha…

---

## [RailsConf vs. My MacBook's Battery. ( Power Outlet Availability )](https://www.ruby-forum.com/t/railsconf-vs-my-macbooks-battery-power-outlet-availability/137624)

<div class="topic-metadata">

**Author:** [@sw0rdfish](https://www.ruby-forum.com/u/sw0rdfish)\
**Replies:** 5\
**Last updated:** [May 14, 2008, 11:03pm UTC](https://www.ruby-forum.com/t/railsconf-vs-my-macbooks-battery-power-outlet-availability/137624 "2008-05-14T23:03:59Z")

</div>

So my Macbook’s battery sucks… and I’m thinking of grabbing a new one, I’m curious how the availability of power outlets have been at RailsConfs. For those who have gone before, was it hard to find an outlet to plug…

---

## [Format textarea output from controller](https://www.ruby-forum.com/t/format-textarea-output-from-controller/137632)

<div class="topic-metadata">

**Author:** [@bmosher](https://www.ruby-forum.com/u/bmosher)\
**Replies:** 0\
**Last updated:** [May 14, 2008, 9:47pm UTC](https://www.ruby-forum.com/t/format-textarea-output-from-controller/137632 "2008-05-14T21:47:41Z")

</div>

Here’s the spin on creation of an object in the create method of my controller I’m pulling data from the object being submitted and sticking some of that data into an other object that creates the task, the data goes …

---

## [Rake stopped working - no error message](https://www.ruby-forum.com/t/rake-stopped-working-no-error-message/137572)

<div class="topic-metadata">

**Author:** [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Replies:** 2\
**Last updated:** [May 14, 2008, 8:38pm UTC](https://www.ruby-forum.com/t/rake-stopped-working-no-error-message/137572 "2008-05-14T20:38:44Z")

</div>

Hi all… Background: I’ve been ramping up on RoR recently and started to resume the photos demo in the O’Reilly Book Ruby on Rails Up and Running. I had last worked on this just before creating a migration script and …

---

## [How to pass optional parameter?](https://www.ruby-forum.com/t/how-to-pass-optional-parameter/196682)

<div class="topic-metadata">

**Author:** [@varunkumargoel](https://www.ruby-forum.com/u/varunkumargoel)\
**Replies:** 1\
**Last updated:** [May 14, 2008, 7:35pm UTC](https://www.ruby-forum.com/t/how-to-pass-optional-parameter/196682 "2008-05-14T19:35:59Z")

</div>

Hi All, I have one method like def hello(int,string) Now i want that if user pass int value or string value then it should search on the basis of one of those. means i want both as optional parameter. Please tell me…

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

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