# Rails

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

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

---

## [Pretty URL's](https://www.ruby-forum.com/t/pretty-urls/183880)

<div class="topic-metadata">

**Author:** [@d2kagw](https://www.ruby-forum.com/u/d2kagw)\
**Replies:** 3\
**Last updated:** [February 23, 2010, 9:35am UTC](https://www.ruby-forum.com/t/pretty-urls/183880 "2010-02-23T09:35:19Z")

</div>

So I should start out saying that this is my first project in rails and I am really digging it. What I want to accomplish is the ability to use a dash in my URL’s. I have done some poking around but have not come up …

---

## [\[JOBS\] Ruby on Rails Software Engineer](https://www.ruby-forum.com/t/jobs-ruby-on-rails-software-engineer/183967)

<div class="topic-metadata">

**Author:** [@PCDJobs](https://www.ruby-forum.com/u/PCDJobs)\
**Replies:** 0\
**Last updated:** [February 23, 2010, 9:17am UTC](https://www.ruby-forum.com/t/jobs-ruby-on-rails-software-engineer/183967 "2010-02-23T09:17:10Z")

</div>

Ruby on Rails Software Engineer PC-Doctor, Inc. Reno, NV Obsessed with web technologies? Want to build world-class web apps with beautiful, easy-to-use interfaces? Then come to PC-Doctor and join equally obsessed en…

---

## [Rails on Snow Leopard](https://www.ruby-forum.com/t/rails-on-snow-leopard/183968)

<div class="topic-metadata">

**Author:** [@acreadinglist](https://www.ruby-forum.com/u/acreadinglist)\
**Replies:** 1\
**Last updated:** [February 23, 2010, 9:04am UTC](https://www.ruby-forum.com/t/rails-on-snow-leopard/183968 "2010-02-23T09:04:13Z")

</div>

In particular, if you’re putting Rails on Snow Leopard to work on a project that you started on Linux. If you run rake db:create and see an error like this: Couldn’t create database for {“reconnect”=\>false, “encoding”…

---

## [Hpricot Parser](https://www.ruby-forum.com/t/hpricot-parser/183964)

<div class="topic-metadata">

**Author:** [@newb](https://www.ruby-forum.com/u/newb)\
**Replies:** 0\
**Last updated:** [February 23, 2010, 7:33am UTC](https://www.ruby-forum.com/t/hpricot-parser/183964 "2010-02-23T07:33:28Z")

</div>

Dear Friends, In my html page i have image tags like below. Using the hpricot parser like below i can able to get all the image tag and its attributes. \<%@a = File.read("#{@file\_path}")%\> \<%@html = Hpricot.par…

---

## [Passing paramter but without GET](https://www.ruby-forum.com/t/passing-paramter-but-without-get/183901)

<div class="topic-metadata">

**Author:** [@cojones](https://www.ruby-forum.com/u/cojones)\
**Replies:** 14\
**Last updated:** [February 23, 2010, 2:12am UTC](https://www.ruby-forum.com/t/passing-paramter-but-without-get/183901 "2010-02-23T02:12:18Z")

</div>

Hello is there any way to pass paramters in a more proper way than I do currently? Since it’s the easiest way I’m just passing them as GET parameters at the moment for example: http://localhost:3000/actions/980190963…

---

## [How do you upgrade Rails 2.0.2 to 2.2.2?](https://www.ruby-forum.com/t/how-do-you-upgrade-rails-2-0-2-to-2-2-2/183369)

<div class="topic-metadata">

**Author:** [@suryava](https://www.ruby-forum.com/u/suryava)\
**Replies:** 2\
**Last updated:** [February 23, 2010, 12:50am UTC](https://www.ruby-forum.com/t/how-do-you-upgrade-rails-2-0-2-to-2-2-2/183369 "2010-02-23T00:50:56Z")

</div>

Dear Friends, I am having trouble with the rails version. I am looking at the book by Sam, Dave and David, where they said if I install InstantRails 2.0, it comes with Rails 2.2.2. But apparently when I actually downl…

---

## [How to show a hierarchical list (like Mac Finder/Explorer)](https://www.ruby-forum.com/t/how-to-show-a-hierarchical-list-like-mac-finder-explorer/183871)

<div class="topic-metadata">

**Author:** [@jeffpritchard](https://www.ruby-forum.com/u/jeffpritchard)\
**Replies:** 4\
**Last updated:** [February 22, 2010, 11:48pm UTC](https://www.ruby-forum.com/t/how-to-show-a-hierarchical-list-like-mac-finder-explorer/183871 "2010-02-22T23:48:31Z")

</div>

I have a list of Groups with members and sub-groups in an unlimited depth. It has the same basic structure as a directory listing in either Mac Finder or Windoze Explorer where the files a roughly analogous to my mem…

---

## [Noobish: create migration to add foreign keys with :through attrs?](https://www.ruby-forum.com/t/noobish-create-migration-to-add-foreign-keys-with-through-attrs/183593)

<div class="topic-metadata">

**Author:** [@fearless\_fool](https://www.ruby-forum.com/u/fearless_fool)\
**Replies:** 7\
**Last updated:** [February 22, 2010, 11:43pm UTC](https://www.ruby-forum.com/t/noobish-create-migration-to-add-foreign-keys-with-through-attrs/183593 "2010-02-22T23:43:31Z")

</div>

I’m dipping my toe into the world of data warehousing and dimensional databases. In: http://rails.rubyonrails.org/classes/ActiveRecord/Associations/ClassMethods.html I was excited to find the following under the “ma…

---

## [Multidimensional dynamic Hash](https://www.ruby-forum.com/t/multidimensional-dynamic-hash/183932)

<div class="topic-metadata">

**Author:** [@brent](https://www.ruby-forum.com/u/brent)\
**Replies:** 3\
**Last updated:** [February 22, 2010, 11:39pm UTC](https://www.ruby-forum.com/t/multidimensional-dynamic-hash/183932 "2010-02-22T23:39:53Z")

</div>

OK I give up, how do I do this… I have a DB that stores dynamic variables with I group into group\_id’s. For instance here are a couple examples of db rows: title=“name”, description = “john”, grouping\_id = “1” title=…

---

## [Gsub fail](https://www.ruby-forum.com/t/gsub-fail/183941)

<div class="topic-metadata">

**Author:** [@kampers](https://www.ruby-forum.com/u/kampers)\
**Replies:** 2\
**Last updated:** [February 22, 2010, 10:37pm UTC](https://www.ruby-forum.com/t/gsub-fail/183941 "2010-02-22T22:37:57Z")

</div>

Hi guys: I’m trying go through a table, read a field, escape out all the single quotes in there, and write it back again. For some reason my gsub, even though by all accounts looks right, doesn’t seem to be working. H…

---

## [Documentation for using IntegrationTest?](https://www.ruby-forum.com/t/documentation-for-using-integrationtest/183917)

<div class="topic-metadata">

**Author:** [@plambert](https://www.ruby-forum.com/u/plambert)\
**Replies:** 2\
**Last updated:** [February 22, 2010, 10:27pm UTC](https://www.ruby-forum.com/t/documentation-for-using-integrationtest/183917 "2010-02-22T22:27:30Z")

</div>

Can someone point me to some good documentation for writing integration tests using IntegrationTest? What documentation I have found seems to be outdated, referring to methods that are either deprecated or altogether…

---

## [Will memcache bring any benefits with a small DB set?](https://www.ruby-forum.com/t/will-memcache-bring-any-benefits-with-a-small-db-set/183902)

<div class="topic-metadata">

**Author:** [@comopasta](https://www.ruby-forum.com/u/comopasta)\
**Replies:** 3\
**Last updated:** [February 22, 2010, 10:04pm UTC](https://www.ruby-forum.com/t/will-memcache-bring-any-benefits-with-a-small-db-set/183902 "2010-02-22T22:04:59Z")

</div>

Hi, I have a DB that stores strings of XML. There could be hundreds of those, thousands at most. Based on client requests, a binary file is generated, most of the content in the binary file is XML taken from the DB. …

---

## [Nested attrivutes ; :reject\_if (Rails 2.3.4)](https://www.ruby-forum.com/t/nested-attrivutes-reject-if-rails-2-3-4/183943)

<div class="topic-metadata">

**Author:** [@hagbard.celine](https://www.ruby-forum.com/u/hagbard.celine)\
**Replies:** 0\
**Last updated:** [February 22, 2010, 9:34pm UTC](https://www.ruby-forum.com/t/nested-attrivutes-reject-if-rails-2-3-4/183943 "2010-02-22T21:34:49Z")

</div>

Hi There! I got a strange behavior while playin’ with nested attributes.I want to reject a creation if e.g. “attr” is blank, through a model (one-to- many) I tried this code with no success. :reject\_if =\> proc { |a|…

---

## [Using Rails to push/pull data from Google App Engine](https://www.ruby-forum.com/t/using-rails-to-push-pull-data-from-google-app-engine/183942)

<div class="topic-metadata">

**Author:** [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Replies:** 0\
**Last updated:** [February 22, 2010, 9:25pm UTC](https://www.ruby-forum.com/t/using-rails-to-push-pull-data-from-google-app-engine/183942 "2010-02-22T21:25:30Z")

</div>

Hi, I am planning to use Ruby on Rails to push and pull data from Google App Engine. So this the scenario Ruby on Rails (on hosting site) \<-\> internet (push/pull) \<-\> python in Google App Engine. Do you think it is…

---

## [Need install genius for script:](https://www.ruby-forum.com/t/need-install-genius-for-script/183936)

<div class="topic-metadata">

**Author:** [@Anubus](https://www.ruby-forum.com/u/Anubus)\
**Replies:** 0\
**Last updated:** [February 22, 2010, 8:35pm UTC](https://www.ruby-forum.com/t/need-install-genius-for-script/183936 "2010-02-22T20:35:06Z")

</div>

Hey guys i’ve been going nuts trying to install this script in my vps written in ruby. All i keep doing is screwing it up and was looking for a pro who can help. The demo and file is herhttp://www.echowaves.com Ple…

---

## [Error starting server](https://www.ruby-forum.com/t/error-starting-server/183924)

<div class="topic-metadata">

**Author:** [@metaltree](https://www.ruby-forum.com/u/metaltree)\
**Replies:** 2\
**Last updated:** [February 22, 2010, 8:28pm UTC](https://www.ruby-forum.com/t/error-starting-server/183924 "2010-02-22T20:28:58Z")

</div>

OS: Windows Server 2008 Ruby: ruby 1.9.1p378 (2010-01-10 revision 26273) \[i386-mingw32\] Rails: Rails 2.3.5 Rails app created with: Rails 1.2.5 When I try to start the server, a window pops up with the following mes…

---

## [Rails Parser](https://www.ruby-forum.com/t/rails-parser/183918)

<div class="topic-metadata">

**Author:** [@shyam\_mohan](https://www.ruby-forum.com/u/shyam_mohan)\
**Replies:** 6\
**Last updated:** [February 22, 2010, 7:48pm UTC](https://www.ruby-forum.com/t/rails-parser/183918 "2010-02-22T19:48:15Z")

</div>

Hi all I am a new Ruby on rails developer having one plus exp… I like Rails most… and enjoying making applications I listened from some one that rails application in production mode … are more error porn… This i…

---

## [Who's invoking yeild?](https://www.ruby-forum.com/t/whos-invoking-yeild/183928)

<div class="topic-metadata">

**Author:** [@ralphshnelvar](https://www.ruby-forum.com/u/ralphshnelvar)\
**Replies:** 1\
**Last updated:** [February 22, 2010, 7:41pm UTC](https://www.ruby-forum.com/t/whos-invoking-yeild/183928 "2010-02-22T19:41:48Z")

</div>

This is a question that, I think,. straddles both Ruby and RoR. I’m gonna post it here. In some sample code, I see the following in the section: \<%= yield(:head) %\> I see that the yield is returning something (i.e.…

---

## [Rails 2.3.5/Ruby1.8.7 Collection\_Select Labels with ampersands "&"](https://www.ruby-forum.com/t/rails-2-3-5-ruby1-8-7-collection-select-labels-with-ampersands/183875)

<div class="topic-metadata">

**Author:** [@dbkbali](https://www.ruby-forum.com/u/dbkbali)\
**Replies:** 3\
**Last updated:** [February 22, 2010, 6:45pm UTC](https://www.ruby-forum.com/t/rails-2-3-5-ruby1-8-7-collection-select-labels-with-ampersands/183875 "2010-02-22T18:45:37Z")

</div>

I am having an annoying problem displaying the labels of a select box correctly where there is an ampersand contained within the label string. On a form being rendered with the form\_for helper the collection\_select r…

---

## [Looking for ruby on rails course](https://www.ruby-forum.com/t/looking-for-ruby-on-rails-course/183920)

<div class="topic-metadata">

**Author:** [@dave](https://www.ruby-forum.com/u/dave)\
**Replies:** 0\
**Last updated:** [February 22, 2010, 6:29pm UTC](https://www.ruby-forum.com/t/looking-for-ruby-on-rails-course/183920 "2010-02-22T18:29:49Z")

</div>

Hello G.s, I’m looking to see what Ruby On Rails class-room/lab courses are currently available in Toronto. If anyone has recommendations please let me know.

---

## [Drawing plugin](https://www.ruby-forum.com/t/drawing-plugin/183908)

<div class="topic-metadata">

**Author:** [@jcanady](https://www.ruby-forum.com/u/jcanady)\
**Replies:** 3\
**Last updated:** [February 22, 2010, 6:27pm UTC](https://www.ruby-forum.com/t/drawing-plugin/183908 "2010-02-22T18:27:28Z")

</div>

Hello, I’m working on a site that needs to allow a user to draw something using their mouse. I’m looking for something similar to MS-Paint, but in browser. I need the app to be able to use the image after they are do…

---

## [Can you set a custom user-agent?](https://www.ruby-forum.com/t/can-you-set-a-custom-user-agent/183910)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [February 22, 2010, 5:35pm UTC](https://www.ruby-forum.com/t/can-you-set-a-custom-user-agent/183910 "2010-02-22T17:35:22Z")

</div>

I was wondering how I could set a custom user-agent for all of my API requests from ActiveResource? Basically, I want to identify my application when ever I hit someone’s API from ActiveResource. Thanks! Tom

---

## [Rich Text Editor](https://www.ruby-forum.com/t/rich-text-editor/183866)

<div class="topic-metadata">

**Author:** [@steve](https://www.ruby-forum.com/u/steve)\
**Replies:** 4\
**Last updated:** [February 22, 2010, 5:28pm UTC](https://www.ruby-forum.com/t/rich-text-editor/183866 "2010-02-22T17:28:56Z")

</div>

I’m fairly new to ROR. Does anyone know of a good rich text editor to use? Is fckeditor good or is their a better one to use? Thanks, Steve

---

## [Rake db:migrate throws unexpected error](https://www.ruby-forum.com/t/rake-db-migrate-throws-unexpected-error/183852)

<div class="topic-metadata">

**Author:** [@danwoods](https://www.ruby-forum.com/u/danwoods)\
**Replies:** 1\
**Last updated:** [February 22, 2010, 4:08pm UTC](https://www.ruby-forum.com/t/rake-db-migrate-throws-unexpected-error/183852 "2010-02-22T16:08:10Z")

</div>

Working with rails for the first time and I getting a rake error when I try: rake db:migrate RAILS\_ENV=staging The Error: (in \[my current directory\]) rake aborted! undefined method \`symbolize\_keys’ for nil:NilClass …

---

## [Stupid question from a newbie](https://www.ruby-forum.com/t/stupid-question-from-a-newbie/183905)

<div class="topic-metadata">

**Author:** [@erwillie](https://www.ruby-forum.com/u/erwillie)\
**Replies:** 1\
**Last updated:** [February 22, 2010, 3:51pm UTC](https://www.ruby-forum.com/t/stupid-question-from-a-newbie/183905 "2010-02-22T15:51:08Z")

</div>

Hi everyone: I,m using the following code and I have some questions \<%= link\_to\_remote( "Show Body", :update =\> "comment\_#{comment.id.to\_s}", :url =\> { :action =\> :show\_body, :id =\> comment }) %\> what exactly do :upd…

---

## [Access the ruby on rails BL from .Net(WPF)](https://www.ruby-forum.com/t/access-the-ruby-on-rails-bl-from-net-wpf/183909)

<div class="topic-metadata">

**Author:** [@daniel](https://www.ruby-forum.com/u/daniel)\
**Replies:** 0\
**Last updated:** [February 22, 2010, 3:31pm UTC](https://www.ruby-forum.com/t/access-the-ruby-on-rails-bl-from-net-wpf/183909 "2010-02-22T15:31:52Z")

</div>

Hi we are accessing the ruby on rails Business Logic from .Net (WPF). we can able to GET data from the ruby on rails by rendering the page to xml but we need to know how to POST the data from WPF application to ruby …

---

## [Override the user model in BCMS](https://www.ruby-forum.com/t/override-the-user-model-in-bcms/183904)

<div class="topic-metadata">

**Author:** [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Replies:** 0\
**Last updated:** [February 22, 2010, 3:13pm UTC](https://www.ruby-forum.com/t/override-the-user-model-in-bcms/183904 "2010-02-22T15:13:18Z")

</div>

Hi, I have to override the BCMS models. I have installed the “browser cms” gem. I have to override the “user.rb”, Can anyone tell me how should I do that? Thanks, Tushar G…

---

## [Problems with \<div\>](https://www.ruby-forum.com/t/problems-with-div/183903)

<div class="topic-metadata">

**Author:** [@erwillie](https://www.ruby-forum.com/u/erwillie)\
**Replies:** 3\
**Last updated:** [February 22, 2010, 3:03pm UTC](https://www.ruby-forum.com/t/problems-with-div/183903 "2010-02-22T15:03:28Z")

</div>

Hi everybody IÂ´m trying to do a partial refresh, I use the div tag, but it doesnÂ´t work and I donÂ´t know where I have done an error if someone can help me I will be very gratefully THANKS!! Here is my view \<%= ja…

---

## [Extending Rails](https://www.ruby-forum.com/t/extending-rails/183816)

<div class="topic-metadata">

**Author:** [@phil](https://www.ruby-forum.com/u/phil)\
**Replies:** 2\
**Last updated:** [February 22, 2010, 1:40pm UTC](https://www.ruby-forum.com/t/extending-rails/183816 "2010-02-22T13:40:38Z")

</div>

Hi, I am not sure how to extend Rails. I want to write a class where I can Access my Models, like “User.all”. I tried to add a class in the lib/ folder but then ruby complains that e.g. “User.all” with "NameError: u…

---

## [New User Ruby on Rails](https://www.ruby-forum.com/t/new-user-ruby-on-rails/183892)

<div class="topic-metadata">

**Author:** [@sokkhim](https://www.ruby-forum.com/u/sokkhim)\
**Replies:** 1\
**Last updated:** [February 22, 2010, 12:56pm UTC](https://www.ruby-forum.com/t/new-user-ruby-on-rails/183892 "2010-02-22T12:56:09Z")

</div>

Dear All, I am a new user of ruby on rails. I hope you will web help me or support me about ruby on rails. Because I never use it before. When I have met new problem with ruby on rails. please support for my problem. …

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

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