# Rails

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

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

---

## [ActiveResource as API test rig?](https://www.ruby-forum.com/t/activeresource-as-api-test-rig/168461)

<div class="topic-metadata">

**Author:** [@marcbey](https://www.ruby-forum.com/u/marcbey)\
**Replies:** 0\
**Last updated:** [May 21, 2009, 12:58am UTC](https://www.ruby-forum.com/t/activeresource-as-api-test-rig/168461 "2009-05-21T00:58:29Z")

</div>

Hi, I’m using ActiveResource as an API test rig for an API we’re developing for our PHP app - the goal being to validate that we’re following some externally validated conventions for ReSTful API and that we can supp…

---

## [Rake redo?](https://www.ruby-forum.com/t/rake-redo/168453)

<div class="topic-metadata">

**Author:** [@mk27](https://www.ruby-forum.com/u/mk27)\
**Replies:** 4\
**Last updated:** [May 21, 2009, 12:28am UTC](https://www.ruby-forum.com/t/rake-redo/168453 "2009-05-21T00:28:09Z")

</div>

Being someone who likes to write code and do everything myself this rails deal has me grinding my teeth, but I will get over it. I just noticed after doing a “rake db:migrate” that I mispelled a method/column name. S…

---

## [Data in database in multiple languages (newbie)](https://www.ruby-forum.com/t/data-in-database-in-multiple-languages-newbie/168457)

<div class="topic-metadata">

**Author:** [@damaris](https://www.ruby-forum.com/u/damaris)\
**Replies:** 0\
**Last updated:** [May 20, 2009, 11:51pm UTC](https://www.ruby-forum.com/t/data-in-database-in-multiple-languages-newbie/168457 "2009-05-20T23:51:48Z")

</div>

Hi you all, I have an application where my data in the database is stored in one language (Spanish), where a record has “name”, “desc”, etc. However, I also have to show the user the data in English. I’ve read some st…

---

## [Accepts\_nested\_attributes\_for and add/remove nested model forms with JS](https://www.ruby-forum.com/t/accepts-nested-attributes-for-and-add-remove-nested-model-forms-with-js/168454)

<div class="topic-metadata">

**Author:** [@Branko\_V](https://www.ruby-forum.com/u/Branko_V)\
**Replies:** 0\
**Last updated:** [May 20, 2009, 11:45pm UTC](https://www.ruby-forum.com/t/accepts-nested-attributes-for-and-add-remove-nested-model-forms-with-js/168454 "2009-05-20T23:45:56Z")

</div>

I’ve looked at the complex\_form example app on GitHub, but I’m not sure I understand how it works. For now I’ve managed to display the partial using the render command, and stopped at the “add new item” link… Here’s t…

---

## [Overriding the belongs\_to macro method](https://www.ruby-forum.com/t/overriding-the-belongs-to-macro-method/168426)

<div class="topic-metadata">

**Author:** [@zettabyte](https://www.ruby-forum.com/u/zettabyte)\
**Replies:** 1\
**Last updated:** [May 20, 2009, 11:43pm UTC](https://www.ruby-forum.com/t/overriding-the-belongs-to-macro-method/168426 "2009-05-20T23:43:45Z")

</div>

I want to extend the functionality of ActiveRecord’s \`belongs\_to’ macro method so that, in addition to performing its normal tasks and creating the default association methods, I can have it also create a couple extra…

---

## [5 tips to scale your Rails application - http://bit.ly/dqlHp](https://www.ruby-forum.com/t/5-tips-to-scale-your-rails-application-http-bit-ly-dqlhp/168442)

<div class="topic-metadata">

**Author:** [@LJMecca](https://www.ruby-forum.com/u/LJMecca)\
**Replies:** 1\
**Last updated:** [May 20, 2009, 11:14pm UTC](https://www.ruby-forum.com/t/5-tips-to-scale-your-rails-application-http-bit-ly-dqlhp/168442 "2009-05-20T23:14:53Z")

</div>

Thought people would find this interesting – a quick summary of five of the basic strategies for a scalable Ruby on Rails web app. Some of them are specific to Rails; others generalize to any shared- nothing applicati…

---

## [Weird associations, how would you do that?](https://www.ruby-forum.com/t/weird-associations-how-would-you-do-that/168444)

<div class="topic-metadata">

**Author:** [@jerefrer](https://www.ruby-forum.com/u/jerefrer)\
**Replies:** 4\
**Last updated:** [May 20, 2009, 11:03pm UTC](https://www.ruby-forum.com/t/weird-associations-how-would-you-do-that/168444 "2009-05-20T23:03:42Z")

</div>

Hi there, I have some complex situation to solve, and can’t manage to find a way which satisfy me … Here’s the problem : You have to handle many Users (id, name, email, password). You have a list of many Products (i…

---

## [Nested partial, locals, and NameError](https://www.ruby-forum.com/t/nested-partial-locals-and-nameerror/168437)

<div class="topic-metadata">

**Author:** [@Branko\_V](https://www.ruby-forum.com/u/Branko_V)\
**Replies:** 1\
**Last updated:** [May 20, 2009, 10:17pm UTC](https://www.ruby-forum.com/t/nested-partial-locals-and-nameerror/168437 "2009-05-20T22:17:05Z")

</div>

I have a \_form partial shared by new and edit actions. I render the partials like so: \<%= render :partial =\> 'form', :locals =\> { :f =\> f } %\> The partial looks (more or less) like this: \<%= f.error\_messages %\> ... \<…

---

## [JOBS: Web Developer - Rails](https://www.ruby-forum.com/t/jobs-web-developer-rails/168443)

<div class="topic-metadata">

**Author:** [@Leah](https://www.ruby-forum.com/u/Leah)\
**Replies:** 1\
**Last updated:** [May 20, 2009, 10:07pm UTC](https://www.ruby-forum.com/t/jobs-web-developer-rails/168443 "2009-05-20T22:07:38Z")

</div>

Seeking savvy, full-time engineer to develop the Web user interfaces for a suite of new product and service offerings. We need you to help build out online services that support the needs of developers creating, debug…

---

## [Sending vars from Flash to Rails - how to use auth\_token](https://www.ruby-forum.com/t/sending-vars-from-flash-to-rails-how-to-use-auth-token/168366)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [May 20, 2009, 8:47pm UTC](https://www.ruby-forum.com/t/sending-vars-from-flash-to-rails-how-to-use-auth-token/168366 "2009-05-20T20:47:45Z")

</div>

OK I finally am able to get a filereference uploader to send files to rails from Flash. I had to turn the auth\_token off using: skip\_before\_filter :verify\_authenticity\_token, :only =\> ‘upload\_photo’ But, for security …

---

## [Sending SMS messages without knowing the user's carrier](https://www.ruby-forum.com/t/sending-sms-messages-without-knowing-the-users-carrier/168433)

<div class="topic-metadata">

**Author:** [@wemagor](https://www.ruby-forum.com/u/wemagor)\
**Replies:** 3\
**Last updated:** [May 20, 2009, 8:34pm UTC](https://www.ruby-forum.com/t/sending-sms-messages-without-knowing-the-users-carrier/168433 "2009-05-20T20:34:04Z")

</div>

I have an idea for a new web-based application that involves the use of SMS notifications, however I can’t assume a particular carrier. Most of the plugins I’ve seen like sms\_fu require you to know the carrier in orde…

---

## [Targetting individual rails server processes?](https://www.ruby-forum.com/t/targetting-individual-rails-server-processes/168429)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 2\
**Last updated:** [May 20, 2009, 8:17pm UTC](https://www.ruby-forum.com/t/targetting-individual-rails-server-processes/168429 "2009-05-20T20:17:29Z")

</div>

Is it generally possible to send requests to specific, individual rails server processes? From within the walls, that is, not externally. My concrete purpose is to clear caches of data loaded from the database without…

---

## [Misgivings (or misconceptions?) about class=table concept](https://www.ruby-forum.com/t/misgivings-or-misconceptions-about-class-table-concept/168425)

<div class="topic-metadata">

**Author:** [@mk27](https://www.ruby-forum.com/u/mk27)\
**Replies:** 2\
**Last updated:** [May 20, 2009, 7:58pm UTC](https://www.ruby-forum.com/t/misgivings-or-misconceptions-about-class-table-concept/168425 "2009-05-20T19:58:49Z")

</div>

Please bear with me as I am totally new to Rails AND sql. Let’s say a want a database & application for a record collection (using sql and rails). If I want the database to contain information down to the length of a…

---

## [Question about case statement](https://www.ruby-forum.com/t/question-about-case-statement/168416)

<div class="topic-metadata">

**Author:** [@pesho318i](https://www.ruby-forum.com/u/pesho318i)\
**Replies:** 2\
**Last updated:** [May 20, 2009, 6:57pm UTC](https://www.ruby-forum.com/t/question-about-case-statement/168416 "2009-05-20T18:57:26Z")

</div>

hello, i’d like to combine to clauses of my case statement, and I do this: case check when value1 //do something when value2 //do something (the same as in the first when) end But how can I combine the two “when”…

---

## [Assert\_select](https://www.ruby-forum.com/t/assert-select/168420)

<div class="topic-metadata">

**Author:** [@jimb](https://www.ruby-forum.com/u/jimb)\
**Replies:** 5\
**Last updated:** [May 20, 2009, 6:46pm UTC](https://www.ruby-forum.com/t/assert-select/168420 "2009-05-20T18:46:20Z")

</div>

Hi, Testing the view of an application with functional tests, how would one go about checking that there are a certain number of elements present on a page, which all belong to a certain class. I tried: assert\_se…

---

## [Templating language questions](https://www.ruby-forum.com/t/templating-language-questions/168419)

<div class="topic-metadata">

**Author:** [@Nicholas\_Faiz](https://www.ruby-forum.com/u/Nicholas_Faiz)\
**Replies:** 1\
**Last updated:** [May 20, 2009, 5:42pm UTC](https://www.ruby-forum.com/t/templating-language-questions/168419 "2009-05-20T17:42:48Z")

</div>

Hello, I’m experimenting with a xhtml templating language and have some questions about ActionPack, particularly to do with compilable templates. I’m mostly looking for further information about compilable templates. …

---

## [Print.css not being picked up](https://www.ruby-forum.com/t/print-css-not-being-picked-up/168407)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 2\
**Last updated:** [May 20, 2009, 5:41pm UTC](https://www.ruby-forum.com/t/print-css-not-being-picked-up/168407 "2009-05-20T17:41:16Z")

</div>

I’m working on a new app and i can’t get print.css to work properly. I can’t work out why. I’ve tried referencing it with the rails stylesheet\_link\_tag helper and by hard-coding the link. Neither work - when i go t…

---

## [Overwhelmed with choices concerning Rails "best practices"](https://www.ruby-forum.com/t/overwhelmed-with-choices-concerning-rails-best-practices/168166)

<div class="topic-metadata">

**Author:** [@wemagor](https://www.ruby-forum.com/u/wemagor)\
**Replies:** 8\
**Last updated:** [May 20, 2009, 5:35pm UTC](https://www.ruby-forum.com/t/overwhelmed-with-choices-concerning-rails-best-practices/168166 "2009-05-20T17:35:43Z")

</div>

As someone who has repeatedly tried to sit down and really pick up Ruby on Rails, the one deterrent I continually find is that the best way of doing things seem to change on a daily basis, and half the time nobody can…

---

## [How to automatically Create a new page each day?](https://www.ruby-forum.com/t/how-to-automatically-create-a-new-page-each-day/168295)

<div class="topic-metadata">

**Author:** [@sayeo87](https://www.ruby-forum.com/u/sayeo87)\
**Replies:** 5\
**Last updated:** [May 20, 2009, 5:33pm UTC](https://www.ruby-forum.com/t/how-to-automatically-create-a-new-page-each-day/168295 "2009-05-20T17:33:44Z")

</div>

Hi, I’m completely new to Ruby and RoR and yet I have an assignment due in less than a week =( One part of the assignment states that my RoR app will have to create a new page each day. I’m wondering what is the bes…

---

## [Habtm association and accepts\_nested\_attributes\_for](https://www.ruby-forum.com/t/habtm-association-and-accepts-nested-attributes-for/168402)

<div class="topic-metadata">

**Author:** [@gonzalo](https://www.ruby-forum.com/u/gonzalo)\
**Replies:** 1\
**Last updated:** [May 20, 2009, 4:40pm UTC](https://www.ruby-forum.com/t/habtm-association-and-accepts-nested-attributes-for/168402 "2009-05-20T16:40:53Z")

</div>

hi all, i have the following models: class Developer \< ActiveRecord::Base has\_and\_belongs\_to\_many :projects accepts\_nested\_attributes\_for :projects end class Project \< ActiveRecord::Base has\_and\_belongs\_to\_many :d…

---

## [Anyone here move from .NET?](https://www.ruby-forum.com/t/anyone-here-move-from-net/168329)

<div class="topic-metadata">

**Author:** [@8bit](https://www.ruby-forum.com/u/8bit)\
**Replies:** 6\
**Last updated:** [May 20, 2009, 4:34pm UTC](https://www.ruby-forum.com/t/anyone-here-move-from-net/168329 "2009-05-20T16:34:27Z")

</div>

Up to this point I have been knee-deep in .NET - ASP.NET, VB.NET, C# and starting to look into Silverlight 3 Beta. I’ve been using the .NET platform for 5+ years now. It’s really nice, I don’t have a lot of bad thin…

---

## [Installing rmagick - failed](https://www.ruby-forum.com/t/installing-rmagick-failed/168285)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [May 20, 2009, 3:41pm UTC](https://www.ruby-forum.com/t/installing-rmagick-failed/168285 "2009-05-20T15:41:34Z")

</div>

Downloaded the latest rmagic, typed in sudo gem install rmagick, and got some failures: checking for Magick-config… no … Can’t install RMagick 2.9.2. Can’t find Magick-config in /usr/local/ bin:/usr/local/sbin:/usr/…

---

## [Migration failure\> mysql gem issues \> xCode install -HELP!](https://www.ruby-forum.com/t/migration-failure-mysql-gem-issues-xcode-install-help/168376)

<div class="topic-metadata">

**Author:** [@agilehack](https://www.ruby-forum.com/u/agilehack)\
**Replies:** 4\
**Last updated:** [May 20, 2009, 3:16pm UTC](https://www.ruby-forum.com/t/migration-failure-mysql-gem-issues-xcode-install-help/168376 "2009-05-20T15:16:54Z")

</div>

please help i am running Mac os x 10.5.7 - have mysql 64 bit installed - ruby 1.8.6 - rails 2.2.2. All ruby and rails functions seemed to be working fine until I tried to do a simple rake db:migrate last night and g…

---

## [Rendering a partial without evaluating the erb tags](https://www.ruby-forum.com/t/rendering-a-partial-without-evaluating-the-erb-tags/168350)

<div class="topic-metadata">

**Author:** [@ratcheer](https://www.ruby-forum.com/u/ratcheer)\
**Replies:** 2\
**Last updated:** [May 20, 2009, 3:02pm UTC](https://www.ruby-forum.com/t/rendering-a-partial-without-evaluating-the-erb-tags/168350 "2009-05-20T15:02:47Z")

</div>

Hi, I have a partial (\_contact.html) which looks something like this I want to render this to the view exactly as it is show there. I don’t want the erb tags evaluating. When I try and render this using: render :p…

---

## [UTF8 vs Latin1 String comparison in MySQL?](https://www.ruby-forum.com/t/utf8-vs-latin1-string-comparison-in-mysql/168387)

<div class="topic-metadata">

**Author:** [@wolframarnold](https://www.ruby-forum.com/u/wolframarnold)\
**Replies:** 1\
**Last updated:** [May 20, 2009, 2:55pm UTC](https://www.ruby-forum.com/t/utf8-vs-latin1-string-comparison-in-mysql/168387 "2009-05-20T14:55:50Z")

</div>

I’m running into a surprising twist in MySql string compare. Try this: select “AmÃ©rica” = “America”; ±-----------------------+ | “AmÃ©rica” = “America” | ±-----------------------+ | 1 | ±---…

---

## [Running a focused test within Textmate](https://www.ruby-forum.com/t/running-a-focused-test-within-textmate/168403)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 0\
**Last updated:** [May 20, 2009, 2:22pm UTC](https://www.ruby-forum.com/t/running-a-focused-test-within-textmate/168403 "2009-05-20T14:22:03Z")

</div>

Hi, When I write a test as: test “some cool feature” do … end I can no longer run a focused unit test with command+shift+R. Using the old painful syntax work though: def test\_some\_cool\_feature How to edit the TM …

---

## [Prototype.js insert issue](https://www.ruby-forum.com/t/prototype-js-insert-issue/168391)

<div class="topic-metadata">

**Author:** [@sudhi](https://www.ruby-forum.com/u/sudhi)\
**Replies:** 2\
**Last updated:** [May 20, 2009, 1:52pm UTC](https://www.ruby-forum.com/t/prototype-js-insert-issue/168391 "2009-05-20T13:52:21Z")

</div>

Hi, I am trying to use the following lines in my RJS and have a problem page.insert\_html :bottom,:list," " #some conditions checks page.insert\_html :bottom,:list,“Hello item” #some more code to add s page.insert\_ht…

---

## [Page access denied](https://www.ruby-forum.com/t/page-access-denied/168309)

<div class="topic-metadata">

**Author:** [@najam](https://www.ruby-forum.com/u/najam)\
**Replies:** 2\
**Last updated:** [May 20, 2009, 1:32pm UTC](https://www.ruby-forum.com/t/page-access-denied/168309 "2009-05-20T13:32:36Z")

</div>

Hi, I recently start working on rails. I am writing a plugin for redmine, right now I am in the start phase. I successfully got the menu display as “custom reports” but problem starts when I click the cutom reports …

---

## [Deploying Rails App on Debian Etch / Apache2 / Passenger](https://www.ruby-forum.com/t/deploying-rails-app-on-debian-etch-apache2-passenger/168252)

<div class="topic-metadata">

**Author:** [@karl](https://www.ruby-forum.com/u/karl)\
**Replies:** 11\
**Last updated:** [May 20, 2009, 12:58pm UTC](https://www.ruby-forum.com/t/deploying-rails-app-on-debian-etch-apache2-passenger/168252 "2009-05-20T12:58:15Z")

</div>

Hi, I’m trying to deploy my rails app through passenger on an Apache2 on debian etch. When I start to boot the app it doesn’t load one of my requires throwing an exception which looks like ‘/usr/local/lib/ site\_ruby/…

---

## [How to handle javascript with watir](https://www.ruby-forum.com/t/how-to-handle-javascript-with-watir/168331)

<div class="topic-metadata">

**Author:** [@lucas](https://www.ruby-forum.com/u/lucas)\
**Replies:** 2\
**Last updated:** [May 20, 2009, 12:58pm UTC](https://www.ruby-forum.com/t/how-to-handle-javascript-with-watir/168331 "2009-05-20T12:58:14Z")

</div>

html code: my question: how to locate the password field with watir?

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

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