# Rails

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

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

---

## [Ruby IO on brand new xserve with Leopard Server](https://www.ruby-forum.com/t/ruby-io-on-brand-new-xserve-with-leopard-server/127965)

<div class="topic-metadata">

**Author:** [@Peter\_De\_Berdt](https://www.ruby-forum.com/u/Peter_De_Berdt)\
**Replies:** 2\
**Last updated:** [February 3, 2008, 5:51pm UTC](https://www.ruby-forum.com/t/ruby-io-on-brand-new-xserve-with-leopard-server/127965 "2008-02-03T17:51:08Z")

</div>

Hi I’m using princexml pdf generation in one of our apps and bump into this very weird problem. On our ubuntu box and local machines (MacBook Pro) pdfs are generated flawlessly. On the production xserve (running the …

---

## [Newbie problem: ActiveRecord::StatementInvalid](https://www.ruby-forum.com/t/newbie-problem-activerecord-statementinvalid/127170)

<div class="topic-metadata">

**Author:** [@danmezzetti](https://www.ruby-forum.com/u/danmezzetti)\
**Replies:** 3\
**Last updated:** [February 3, 2008, 5:24pm UTC](https://www.ruby-forum.com/t/newbie-problem-activerecord-statementinvalid/127170 "2008-02-03T17:24:36Z")

</div>

Please, I am just beginning to learn RoR, following the “Up and running” tutorial. setup: ruby and ror=latest; mysql 4.0.17; WEBrick. #Created the app I had to add the -d mysql after looking in the forums, latest Ro…

---

## [(REST) Nested routes](https://www.ruby-forum.com/t/rest-nested-routes/127263)

<div class="topic-metadata">

**Author:** [@eyp](https://www.ruby-forum.com/u/eyp)\
**Replies:** 4\
**Last updated:** [February 3, 2008, 5:20pm UTC](https://www.ruby-forum.com/t/rest-nested-routes/127263 "2008-02-03T17:20:32Z")

</div>

Hello, I’m in troubles with nested routes. I have three models: Team, Tournament and TeamTournaments class Team \< ActiveRecord::Base has\_many :tournaments, :through =\> :team\_tournaments has\_many :team\_tournaments cl…

---

## [Rake test:recent without db:test:prepare](https://www.ruby-forum.com/t/rake-test-recent-without-dbprepare/127975)

<div class="topic-metadata">

**Author:** [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Replies:** 0\
**Last updated:** [February 3, 2008, 4:32pm UTC](https://www.ruby-forum.com/t/rake-test-recent-without-dbprepare/127975 "2008-02-03T16:32:36Z")

</div>

Railsers: We TDD by using a command, like autotest, which triggers a test run each time we save our documents. This provides perfect test-driven development; we make the smallest testable change possible, predict th…

---

## [Using check\_box with onclick javascript](https://www.ruby-forum.com/t/using-check-box-with-onclick-javascript/126515)

<div class="topic-metadata">

**Author:** [@backz](https://www.ruby-forum.com/u/backz)\
**Replies:** 2\
**Last updated:** [February 3, 2008, 4:04pm UTC](https://www.ruby-forum.com/t/using-check-box-with-onclick-javascript/126515 "2008-02-03T16:04:05Z")

</div>

Hi, I am trying to use onclick javascript event, but this doesn’t work: \<%= check\_box(“attending\_ip”, ‘pm\_xray’,{}, ‘y’, :onclick=\>“insertToDo();” ) %\> how do I make this correct? thanks,

---

## [Caching for different roles using same controller & views](https://www.ruby-forum.com/t/caching-for-different-roles-using-same-controller-views/127589)

<div class="topic-metadata">

**Author:** [@joan2kus](https://www.ruby-forum.com/u/joan2kus)\
**Replies:** 1\
**Last updated:** [February 3, 2008, 3:35pm UTC](https://www.ruby-forum.com/t/caching-for-different-roles-using-same-controller-views/127589 "2008-02-03T15:35:24Z")

</div>

I use a controller and its views for both administrative and public use, and I prefer to do page caching instead of fragment caching. I know I will need to have different URLs for the depend on user roles, eg /articl…

---

## [How to send email to mailing list?](https://www.ruby-forum.com/t/how-to-send-email-to-mailing-list/127970)

<div class="topic-metadata">

**Author:** [@helzer](https://www.ruby-forum.com/u/helzer)\
**Replies:** 0\
**Last updated:** [February 3, 2008, 3:15pm UTC](https://www.ruby-forum.com/t/how-to-send-email-to-mailing-list/127970 "2008-02-03T15:15:57Z")

</div>

Hi, What should I use for sending a single same email to a mailing list? I’m going to run a daily “news” cron job, so it’s not going to block my application mongrel cluster. I just want something where I can render t…

---

## [Belongs\_to sometimes prevents the object from being saved](https://www.ruby-forum.com/t/belongs-to-sometimes-prevents-the-object-from-being-saved/127905)

<div class="topic-metadata">

**Author:** [@truetype](https://www.ruby-forum.com/u/truetype)\
**Replies:** 2\
**Last updated:** [February 3, 2008, 3:02pm UTC](https://www.ruby-forum.com/t/belongs-to-sometimes-prevents-the-object-from-being-saved/127905 "2008-02-03T15:02:27Z")

</div>

Seems to be a bug. I can’t dig into the core of it (since too many models), but here is what I know. I have a model user, which has primary key :id. I also have a model of action. Two users interact with each other t…

---

## [Partials versus Ajax](https://www.ruby-forum.com/t/partials-versus-ajax/127950)

<div class="topic-metadata">

**Author:** [@Mojave](https://www.ruby-forum.com/u/Mojave)\
**Replies:** 1\
**Last updated:** [February 3, 2008, 2:41pm UTC](https://www.ruby-forum.com/t/partials-versus-ajax/127950 "2008-02-03T14:41:49Z")

</div>

I have a section of a page that needs to update based on certain events. I use Ajax to do that updating. But on first loading the page, that section needs to be populated. I’ve read the way to do this is with partials…

---

## [Redirection between forms](https://www.ruby-forum.com/t/redirection-between-forms/127964)

<div class="topic-metadata">

**Author:** [@jrm](https://www.ruby-forum.com/u/jrm)\
**Replies:** 0\
**Last updated:** [February 3, 2008, 1:21pm UTC](https://www.ruby-forum.com/t/redirection-between-forms/127964 "2008-02-03T13:21:32Z")

</div>

Hi, I’m building a restful app that contains a number of forms managed by different controllers. Some of my forms contain links to the “new” actions in the associated resources (via nested routes). What is a good w…

---

## [ActiveRecord object.valid? triggers unexepected results](https://www.ruby-forum.com/t/activerecord-object-valid-triggers-unexepected-results/127962)

<div class="topic-metadata">

**Author:** [@costi](https://www.ruby-forum.com/u/costi)\
**Replies:** 1\
**Last updated:** [February 3, 2008, 12:49pm UTC](https://www.ruby-forum.com/t/activerecord-object-valid-triggers-unexepected-results/127962 "2008-02-03T12:49:45Z")

</div>

I’m editing an ActiveRecord object in a session through AJAX, updating it with object.attributes = params\[:object\], and validating it with object.valid? Because it’s associated with other objects in a form, I want to …

---

## [\[ANN\] mongrel web control script](https://www.ruby-forum.com/t/ann-mongrel-web-control-script/127958)

<div class="topic-metadata">

**Author:** [@arturaz](https://www.ruby-forum.com/u/arturaz)\
**Replies:** 0\
**Last updated:** [February 3, 2008, 11:08am UTC](https://www.ruby-forum.com/t/ann-mongrel-web-control-script/127958 "2008-02-03T11:08:49Z")

</div>

I donâ€™t know if itâ€™s just me being lame or there really was no tool to make mongrel management easy. So I wrote one. Itâ€™s written in PHP and has these features: \* Login support. \* Apache config generation. \* Eas…

---

## [Google maps with RoR](https://www.ruby-forum.com/t/google-maps-with-ror/127928)

<div class="topic-metadata">

**Author:** [@fla](https://www.ruby-forum.com/u/fla)\
**Replies:** 4\
**Last updated:** [February 3, 2008, 11:08am UTC](https://www.ruby-forum.com/t/google-maps-with-ror/127928 "2008-02-03T11:08:02Z")

</div>

Hello, exist already a library like google maps ( Google Maps ) for Rails. If not what I need for zoom in and out and move picture on site? best regards

---

## [Translating this test using mocha](https://www.ruby-forum.com/t/translating-this-test-using-mocha/127714)

<div class="topic-metadata">

**Author:** [@clemrock](https://www.ruby-forum.com/u/clemrock)\
**Replies:** 1\
**Last updated:** [February 3, 2008, 11:04am UTC](https://www.ruby-forum.com/t/translating-this-test-using-mocha/127714 "2008-02-03T11:04:08Z")

</div>

Hello, I’m trying to learn Mocha and having a bit of problems how to translate some of my tests to the mocha world. For example - I’m trying to convert this simple test: \[code\] def test\_get\_feed\_details\_w\_bad\_url a…

---

## [\[ANN\] Ruby-GetText-Package-1.90.0](https://www.ruby-forum.com/t/ann-ruby-gettext-package-1-90-0/127956)

<div class="topic-metadata">

**Author:** [@Masao\_M](https://www.ruby-forum.com/u/Masao_M)\
**Replies:** 0\
**Last updated:** [February 3, 2008, 10:05am UTC](https://www.ruby-forum.com/t/ann-ruby-gettext-package-1-90-0/127956 "2008-02-03T10:05:52Z")

</div>

Hi, Ruby-GetText-Package-1.90.0 is now available. Changes Support Ukrainian(ua), Hungarian(hu) (over 20 languages) JRuby supported. Become a pure ruby library (Remove .so extention). Don’t need C compiler to install…

---

## [Default setting of Rails](https://www.ruby-forum.com/t/default-setting-of-rails/127955)

<div class="topic-metadata">

**Author:** [@rubynut](https://www.ruby-forum.com/u/rubynut)\
**Replies:** 1\
**Last updated:** [February 3, 2008, 8:04am UTC](https://www.ruby-forum.com/t/default-setting-of-rails/127955 "2008-02-03T08:04:59Z")

</div>

i have just installed RoR. when i create a new rails project use the command “rails test” without any options, the default database setting is sqlite3 in my computer. the default should be MySQL, is anything i did wro…

---

## [Problem installing plugin with SVN](https://www.ruby-forum.com/t/problem-installing-plugin-with-svn/127918)

<div class="topic-metadata">

**Author:** [@flychunjae](https://www.ruby-forum.com/u/flychunjae)\
**Replies:** 1\
**Last updated:** [February 3, 2008, 5:53am UTC](https://www.ruby-forum.com/t/problem-installing-plugin-with-svn/127918 "2008-02-03T05:53:11Z")

</div>

hi all, i’m a newb learning ruby on rails and i’m having problem setting up the subversion and the repository on windows to install the plugins. can anyone provide exact steps to get the repository directory and chec…

---

## [Zip Code Ranges](https://www.ruby-forum.com/t/zip-code-ranges/97991)

<div class="topic-metadata">

**Author:** [@Nathan\_PSVerni](https://www.ruby-forum.com/u/Nathan_PSVerni)\
**Replies:** 16\
**Last updated:** [February 3, 2008, 5:12am UTC](https://www.ruby-forum.com/t/zip-code-ranges/97991 "2008-02-03T05:12:11Z")

</div>

Does anyone have any recommendations for working with zip code distance ranges? I need to calculate the distances between US zip codes. Thanks!

---

## [Advice on managing object graph in memory](https://www.ruby-forum.com/t/advice-on-managing-object-graph-in-memory/127896)

<div class="topic-metadata">

**Author:** [@eric99](https://www.ruby-forum.com/u/eric99)\
**Replies:** 3\
**Last updated:** [February 3, 2008, 3:10am UTC](https://www.ruby-forum.com/t/advice-on-managing-object-graph-in-memory/127896 "2008-02-03T03:10:11Z")

</div>

I’ve experienced several inconsistencies when I traverse related ActiveRecord objects before they are saved into database. For example: c = parent.children.build # =\> #Child:0x222222 parent.children # …

---

## [Looking for suggestions on well architected Open Source Projects in ROR for Code Review](https://www.ruby-forum.com/t/looking-for-suggestions-on-well-architected-open-source-projects-in-ror-for-code-review/127893)

<div class="topic-metadata">

**Author:** [@Chad](https://www.ruby-forum.com/u/Chad)\
**Replies:** 4\
**Last updated:** [February 3, 2008, 1:40am UTC](https://www.ruby-forum.com/t/looking-for-suggestions-on-well-architected-open-source-projects-in-ror-for-code-review/127893 "2008-02-03T01:40:01Z")

</div>

Hello, I have spent the last few weeks learning Ruby coming from a PHP and C# background. I was hoping get suggestions on some really well architected Open Source Projects in ROR so that I can poke around, see how t…

---

## [Query problem](https://www.ruby-forum.com/t/query-problem/127906)

<div class="topic-metadata">

**Author:** [@Tarscher](https://www.ruby-forum.com/u/Tarscher)\
**Replies:** 2\
**Last updated:** [February 3, 2008, 1:21am UTC](https://www.ruby-forum.com/t/query-problem/127906 "2008-02-03T01:21:53Z")

</div>

Hi all, I have users (has many) accounts I want to show all users and the account (if he has one) of a certain type. How can I query all users and if the user has a specific account, the account. If I do :conditions…

---

## [Proplem while starting the built in server WEBrick](https://www.ruby-forum.com/t/proplem-while-starting-the-built-in-server-webrick/127525)

<div class="topic-metadata">

**Author:** [@Mutati0N](https://www.ruby-forum.com/u/Mutati0N)\
**Replies:** 3\
**Last updated:** [February 3, 2008, 12:05am UTC](https://www.ruby-forum.com/t/proplem-while-starting-the-built-in-server-webrick/127525 "2008-02-03T00:05:28Z")

</div>

hello everyone, i have a proplem while creating new application , it appear to me when i starting the WEBrick Built-in Server by writing the command ruby script/server in the directory of the project ,it’s appear to …

---

## [Problem with ruby-debug](https://www.ruby-forum.com/t/problem-with-ruby-debug/127943)

<div class="topic-metadata">

**Author:** [@scottd72](https://www.ruby-forum.com/u/scottd72)\
**Replies:** 1\
**Last updated:** [February 2, 2008, 11:50pm UTC](https://www.ruby-forum.com/t/problem-with-ruby-debug/127943 "2008-02-02T23:50:22Z")

</div>

Linux Ubuntu Ruby 1.8.6 Rails 2.0.2 ruby-debug 0.10.0 mongrel 1.1.3 Installed the ruby-debug gem, no problem, it also installed ruby-debug-base as a dependency added deb"ugger to a line in a controllor started mo…

---

## [Firedraw: Flow and ER Modeling tool](https://www.ruby-forum.com/t/firedraw-flow-and-er-modeling-tool/127942)

<div class="topic-metadata">

**Author:** [@luckydeepak](https://www.ruby-forum.com/u/luckydeepak)\
**Replies:** 0\
**Last updated:** [February 2, 2008, 11:35pm UTC](https://www.ruby-forum.com/t/firedraw-flow-and-er-modeling-tool/127942 "2008-02-02T23:35:14Z")

</div>

Firedraw! www.firedraw.org is Ajax based visual modeling tool. It supports flow diagramming and ER Modeling(new). All contents are saved at server. No moving around with files required. No download or install required…

---

## [INSERT DELAYED with MyISAM table](https://www.ruby-forum.com/t/insert-delayed-with-myisam-table/127940)

<div class="topic-metadata">

**Author:** [@mpearce](https://www.ruby-forum.com/u/mpearce)\
**Replies:** 0\
**Last updated:** [February 2, 2008, 11:10pm UTC](https://www.ruby-forum.com/t/insert-delayed-with-myisam-table/127940 "2008-02-02T23:10:46Z")

</div>

I’m wanting to do a simple page view log in a table, and I don’t really care about the results of the insert. In most cases, I would do this with an INSERT DELAYED query in a MyISAM table. I couldn’t find through th…

---

## [Irb: not found on script/console](https://www.ruby-forum.com/t/irb-not-found-on-script-console/127924)

<div class="topic-metadata">

**Author:** [@peter](https://www.ruby-forum.com/u/peter)\
**Replies:** 1\
**Last updated:** [February 2, 2008, 10:49pm UTC](https://www.ruby-forum.com/t/irb-not-found-on-script-console/127924 "2008-02-02T22:49:00Z")

</div>

I installed RoR on my machine, and everything seems to work fine, except for the fact that i get this… Loading development environment (Rails 2.0.2) sh: irb: not found …when i try to load the console. Any ideas on w…

---

## [Need a zip/postal code database or plugin for rails](https://www.ruby-forum.com/t/need-a-zip-postal-code-database-or-plugin-for-rails/127885)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [February 2, 2008, 9:57pm UTC](https://www.ruby-forum.com/t/need-a-zip-postal-code-database-or-plugin-for-rails/127885 "2008-02-02T21:57:10Z")

</div>

Anyone here has an idea of any good database or RoR plugin for zip and postal codes ??? Thank you…

---

## [Advice Sought on Hosting Solution (VPS vs Shared)](https://www.ruby-forum.com/t/advice-sought-on-hosting-solution-vps-vs-shared/127480)

<div class="topic-metadata">

**Author:** [@startrader](https://www.ruby-forum.com/u/startrader)\
**Replies:** 10\
**Last updated:** [February 2, 2008, 9:53pm UTC](https://www.ruby-forum.com/t/advice-sought-on-hosting-solution-vps-vs-shared/127480 "2008-02-02T21:53:48Z")

</div>

Greetings All: I have this “little” project(http://startrader.wordpress.com) that I’ve been working on for a while, and I’m at the point were I’d like to put up a bit of public facing code. I spent last week looking …

---

## [What to use in place of components using a "static" controller](https://www.ruby-forum.com/t/what-to-use-in-place-of-components-using-a-static-controller/127933)

<div class="topic-metadata">

**Author:** [@thom](https://www.ruby-forum.com/u/thom)\
**Replies:** 0\
**Last updated:** [February 2, 2008, 9:01pm UTC](https://www.ruby-forum.com/t/what-to-use-in-place-of-components-using-a-static-controller/127933 "2008-02-02T21:01:55Z")

</div>

I’m working on a site that has a lot of static and semi-static pages. I’m using a StaticController to keep everything DRY and allow for erb code in the pages when necessary: class StaticController \< ApplicationControl…

---

## [How to create ruby gem](https://www.ruby-forum.com/t/how-to-create-ruby-gem/126794)

<div class="topic-metadata">

**Author:** [@pavanagrawal](https://www.ruby-forum.com/u/pavanagrawal)\
**Replies:** 4\
**Last updated:** [February 2, 2008, 6:16pm UTC](https://www.ruby-forum.com/t/how-to-create-ruby-gem/126794 "2008-02-02T18:16:02Z")

</div>

Hi Guys, i need help on creating a gem. I am following following steps from http://groups.google.co.in/group/rubygems i started with installation of the new gem step 1)—\> gem install newgem step 2)—\> newgem here …

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

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