# Rails

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

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

---

## [Invitation tracking](https://www.ruby-forum.com/t/invitation-tracking/185553)

<div class="topic-metadata">

**Author:** [@badnaam](https://www.ruby-forum.com/u/badnaam)\
**Replies:** 1\
**Last updated:** [April 20, 2010, 6:21pm UTC](https://www.ruby-forum.com/t/invitation-tracking/185553 "2010-04-20T18:21:33Z")

</div>

Hi, Here is my use case… A user of the site can invite friends to join the site and when a friend joins, the invitee is awarded. What could be the best way in Rails to track if a user is signing up as a result of som…

---

## [Master table without related child record](https://www.ruby-forum.com/t/master-table-without-related-child-record/187240)

<div class="topic-metadata">

**Author:** [@f2andy](https://www.ruby-forum.com/u/f2andy)\
**Replies:** 3\
**Last updated:** [April 20, 2010, 4:54pm UTC](https://www.ruby-forum.com/t/master-table-without-related-child-record/187240 "2010-04-20T16:54:18Z")

</div>

Having a bit of a braindead day, can anyone help with this. I have three models: Player, Game, Prediction (Player has\_many :games, :through =\> :prediction) I want a named\_scope that finds games that the current play…

---

## [Creating custom form error handling](https://www.ruby-forum.com/t/creating-custom-form-error-handling/187228)

<div class="topic-metadata">

**Author:** [@dkam](https://www.ruby-forum.com/u/dkam)\
**Replies:** 1\
**Last updated:** [April 20, 2010, 3:05pm UTC](https://www.ruby-forum.com/t/creating-custom-form-error-handling/187228 "2010-04-20T15:05:57Z")

</div>

im tracking events which have a few groups of related data, like dates, times and tickets. the issue im running into is when multiple forms make up one piece of validation: ex: if this is checked, these fields need t…

---

## [Invitation to connect on LinkedIn](https://www.ruby-forum.com/t/invitation-to-connect-on-linkedin/187244)

<div class="topic-metadata">

**Author:** [@Minqi\_Pan](https://www.ruby-forum.com/u/Minqi_Pan)\
**Replies:** 0\
**Last updated:** [April 20, 2010, 2:47pm UTC](https://www.ruby-forum.com/t/invitation-to-connect-on-linkedin/187244 "2010-04-20T14:47:13Z")

</div>

LinkedIn ------------Minqi Pan requested to add you as a connection on LinkedIn: Mitin, I’d like to add you to my professional network on LinkedIn. Minqi Accept invitation from Minqi Pan View invitation from Min…

---

## [Authentication and Authorization](https://www.ruby-forum.com/t/authentication-and-authorization/187229)

<div class="topic-metadata">

**Author:** [@marcelopanivino](https://www.ruby-forum.com/u/marcelopanivino)\
**Replies:** 2\
**Last updated:** [April 20, 2010, 2:23pm UTC](https://www.ruby-forum.com/t/authentication-and-authorization/187229 "2010-04-20T14:23:12Z")

</div>

Hi there, I have been looking for a plugin to authenticate and authorize users in a ruby on rails application. I found some options like: Restful authentication, Authologic, Clearence and Devise. I would like to kno…

---

## [Possible to get random translation?](https://www.ruby-forum.com/t/possible-to-get-random-translation/186998)

<div class="topic-metadata">

**Author:** [@cojones](https://www.ruby-forum.com/u/cojones)\
**Replies:** 5\
**Last updated:** [April 20, 2010, 12:24pm UTC](https://www.ruby-forum.com/t/possible-to-get-random-translation/186998 "2010-04-20T12:24:54Z")

</div>

Hello, does somebody know if it’s possible to get a random translation? I googled it and couldn’t find anything helpful. Example: en: hello: 0: “Hello!” 1: “Howdy!” 2: “G’day!” t(“hello.#{rand(3)}”) Any help wo…

---

## [Google Map Key Error](https://www.ruby-forum.com/t/google-map-key-error/187234)

<div class="topic-metadata">

**Author:** [@naresh](https://www.ruby-forum.com/u/naresh)\
**Replies:** 1\
**Last updated:** [April 20, 2010, 10:56am UTC](https://www.ruby-forum.com/t/google-map-key-error/187234 "2010-04-20T10:56:00Z")

</div>

Hi All, I am working on the google map application when I uploaded my files i am getting the below error The given key has gone over the requests limit in the 24 hour period or has submitted too many requests in too …

---

## [Problems getting started](https://www.ruby-forum.com/t/problems-getting-started/187230)

<div class="topic-metadata">

**Author:** [@JSF](https://www.ruby-forum.com/u/JSF)\
**Replies:** 1\
**Last updated:** [April 20, 2010, 9:33am UTC](https://www.ruby-forum.com/t/problems-getting-started/187230 "2010-04-20T09:33:28Z")

</div>

i’ve run update and update system… now, when i run script/server I get this output: -------------snip----------------- /opt/local/lib/ruby/site\_ruby/1.8/rubygems.rb:777:in report\_activate\_error': RubyGem version erro…

---

## [May need ruby developer](https://www.ruby-forum.com/t/may-need-ruby-developer/187231)

<div class="topic-metadata">

**Author:** [@Nice\_G](https://www.ruby-forum.com/u/Nice_G)\
**Replies:** 1\
**Last updated:** [April 20, 2010, 9:17am UTC](https://www.ruby-forum.com/t/may-need-ruby-developer/187231 "2010-04-20T09:17:40Z")

</div>

Hi, I’m looking for a developer to help build an SMS messaging site. Basically, users will have the ability to sign up for subscriptions to receive daily SMS text messages of a particular topic. I know there are a l…

---

## [Geokit:Google returned a 620 status, too many queries](https://www.ruby-forum.com/t/geokit-google-returned-a-620-status-too-many-queries/187224)

<div class="topic-metadata">

**Author:** [@smit\_shah](https://www.ruby-forum.com/u/smit_shah)\
**Replies:** 1\
**Last updated:** [April 20, 2010, 9:11am UTC](https://www.ruby-forum.com/t/geokit-google-returned-a-620-status-too-many-queries/187224 "2010-04-20T09:11:47Z")

</div>

Hi all, I am using geokit for google map. It works fine but some time it gives me error like “Google returned a 620 status, too many queries. The given key has gone over the requests limit in the 24 hour period or ha…

---

## [What characters need to be escaped?](https://www.ruby-forum.com/t/what-characters-need-to-be-escaped/187227)

<div class="topic-metadata">

**Author:** [@GoodGets](https://www.ruby-forum.com/u/GoodGets)\
**Replies:** 1\
**Last updated:** [April 20, 2010, 7:45am UTC](https://www.ruby-forum.com/t/what-characters-need-to-be-escaped/187227 "2010-04-20T07:45:44Z")

</div>

Obviously, less and greater than’s (\< \>) need to be escaped to prevent XSS, but what are the other potentially harmful characters?

---

## [Which views are rendered for an URL](https://www.ruby-forum.com/t/which-views-are-rendered-for-an-url/187193)

<div class="topic-metadata">

**Author:** [@arvias](https://www.ruby-forum.com/u/arvias)\
**Replies:** 3\
**Last updated:** [April 20, 2010, 5:11am UTC](https://www.ruby-forum.com/t/which-views-are-rendered-for-an-url/187193 "2010-04-20T05:11:48Z")

</div>

Hi, Is there a way I can figure out which files are run for a specific URL? Given http://www.planet.com/countries files like: countries/ index.html.erb, countries/\_country.html.erb, layouts/ application.html.erb and…

---

## [Developing plugins](https://www.ruby-forum.com/t/developing-plugins/187197)

<div class="topic-metadata">

**Author:** [@Nicholas\_W](https://www.ruby-forum.com/u/Nicholas_W)\
**Replies:** 1\
**Last updated:** [April 20, 2010, 1:17am UTC](https://www.ruby-forum.com/t/developing-plugins/187197 "2010-04-20T01:17:08Z")

</div>

Hi \*, I’m trying to develop a plugin, but I’m having some problems integrating it in Rails. The first problem is when I need to load the environment: I would like the plugin to be installable in the classic way (unde…

---

## [Xml partial issue](https://www.ruby-forum.com/t/xml-partial-issue/187216)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 2\
**Last updated:** [April 20, 2010, 12:42am UTC](https://www.ruby-forum.com/t/xml-partial-issue/187216 "2010-04-20T00:42:36Z")

</div>

I am using a partial for an xml page, but the xml.instruct is not showing up: Main xml file: xml.instruct! :xml, :version=\>“1.0” xml \<\< render(:partial =\> ‘success\_error’, :locals =\> {:x =\> @x, :p\_xml =\> xml}) Part…

---

## [Acceder a varias tablas](https://www.ruby-forum.com/t/acceder-a-varias-tablas/187184)

<div class="topic-metadata">

**Author:** [@mikeboy](https://www.ruby-forum.com/u/mikeboy)\
**Replies:** 2\
**Last updated:** [April 19, 2010, 10:39pm UTC](https://www.ruby-forum.com/t/acceder-a-varias-tablas/187184 "2010-04-19T22:39:19Z")

</div>

Buenas, He creado dos andamios para dos tablas a la que accedo por index1 e index2 respectivamente. En cada index puedo hacer las tareas de aÃ±adir, borrar, ver lineas… pero me gustaria saber como se hace una busqueda …

---

## [Retrieve Gmail using Ruby](https://www.ruby-forum.com/t/retrieve-gmail-using-ruby/187180)

<div class="topic-metadata">

**Author:** [@shreyas12](https://www.ruby-forum.com/u/shreyas12)\
**Replies:** 5\
**Last updated:** [April 19, 2010, 10:24pm UTC](https://www.ruby-forum.com/t/retrieve-gmail-using-ruby/187180 "2010-04-19T22:24:26Z")

</div>

I need to retrieve emails from my Gmail account using Ruby on Rails. I’m currently using this piece of code, but it gives me a timeout error everytime. require ‘net/pop’ pop = Net::POP3.new ‘mail.isp.com’ pop.start …

---

## [Introducing Migrator](https://www.ruby-forum.com/t/introducing-migrator/187209)

<div class="topic-metadata">

**Author:** [@tim](https://www.ruby-forum.com/u/tim)\
**Replies:** 0\
**Last updated:** [April 19, 2010, 10:20pm UTC](https://www.ruby-forum.com/t/introducing-migrator/187209 "2010-04-19T22:20:55Z")

</div>

Just wanted to give a quick pointer to a script I just wrote. I always hated having to give exact VERSION parameters to rake db:migrate:up/ down. So migrator is a simple command line tool which lets you enter migratio…

---

## [Associate hidden field with another field in a form](https://www.ruby-forum.com/t/associate-hidden-field-with-another-field-in-a-form/187174)

<div class="topic-metadata">

**Author:** [@closedbook](https://www.ruby-forum.com/u/closedbook)\
**Replies:** 8\
**Last updated:** [April 19, 2010, 9:46pm UTC](https://www.ruby-forum.com/t/associate-hidden-field-with-another-field-in-a-form/187174 "2010-04-19T21:46:37Z")

</div>

In my form I have a select menu for US States. I would like to include the capitals of those states as a hidden parameter when passed to the model. Of course, the capital should match the state chosen. I know I can se…

---

## [Id upper bounds](https://www.ruby-forum.com/t/id-upper-bounds/187170)

<div class="topic-metadata">

**Author:** [@blair](https://www.ruby-forum.com/u/blair)\
**Replies:** 9\
**Last updated:** [April 19, 2010, 8:05pm UTC](https://www.ruby-forum.com/t/id-upper-bounds/187170 "2010-04-19T20:05:04Z")

</div>

I am new to both ruby and rails and a recent project I am trying has got me working on it. I am trying to find a nice easy lightweight way to find the last ‘id’ in a mysql database so I can take it and use it as the u…

---

## [Railsdog is Hiring (D.C. Metro w/possible Telecommute)](https://www.ruby-forum.com/t/railsdog-is-hiring-d-c-metro-w-possible-telecommute/187206)

<div class="topic-metadata">

**Author:** [@df-sean](https://www.ruby-forum.com/u/df-sean)\
**Replies:** 0\
**Last updated:** [April 19, 2010, 7:59pm UTC](https://www.ruby-forum.com/t/railsdog-is-hiring-d-c-metro-w-possible-telecommute/187206 "2010-04-19T19:59:15Z")

</div>

Rails Dog is now hiring experienced Ruby/Rails developers for full time positions. Developers will be working primarily on client work related to the Spree e-commerce project. This is a great opportunity to work for…

---

## [Gem::FilePermissionError on "rails:freeze:gems" task](https://www.ruby-forum.com/t/gem-filepermissionerror-on-railsgems-task/187201)

<div class="topic-metadata">

**Author:** [@tomuhs](https://www.ruby-forum.com/u/tomuhs)\
**Replies:** 0\
**Last updated:** [April 19, 2010, 6:38pm UTC](https://www.ruby-forum.com/t/gem-filepermissionerror-on-railsgems-task/187201 "2010-04-19T18:38:26Z")

</div>

My understanding is that the “rails:freeze:gems” task copies the Rails source into the application’s vendor directory. Which is why I find the following error surprising and confusing, because the task should not invo…

---

## [Help testing Rails patches / tickets](https://www.ruby-forum.com/t/help-testing-rails-patches-tickets/187135)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [April 19, 2010, 6:08pm UTC](https://www.ruby-forum.com/t/help-testing-rails-patches-tickets/187135 "2010-04-19T18:08:35Z")

</div>

I’m new to this and trying to test this patch: https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/3645 Steps: git clone git://github.com/rails/rails.git git checkout v3.0.0.beta1 (I assume this is …

---

## [Insert html into window](https://www.ruby-forum.com/t/insert-html-into-window/187194)

<div class="topic-metadata">

**Author:** [@ESESES](https://www.ruby-forum.com/u/ESESES)\
**Replies:** 1\
**Last updated:** [April 19, 2010, 5:06pm UTC](https://www.ruby-forum.com/t/insert-html-into-window/187194 "2010-04-19T17:06:31Z")

</div>

how do I insert html into a window? This doesn’t seem to work: var testwindow = window.open ("", “mywindow”, “height=800,width=400,location=no,scrollbars=yes”); var el = testwindow.document.createElement(‘div’); el.…

---

## [Creating an announcement board](https://www.ruby-forum.com/t/creating-an-announcement-board/187192)

<div class="topic-metadata">

**Author:** [@fredrikj](https://www.ruby-forum.com/u/fredrikj)\
**Replies:** 0\
**Last updated:** [April 19, 2010, 4:06pm UTC](https://www.ruby-forum.com/t/creating-an-announcement-board/187192 "2010-04-19T16:06:48Z")

</div>

I would like to make something similar to this announcement board: http://ljusasidorna.nu/kalendariet.php Hence, something that displays coming up events, with a possibility to limit the list by location or time. Als…

---

## [Few questions](https://www.ruby-forum.com/t/few-questions/187187)

<div class="topic-metadata">

**Author:** [@ruby\_tl](https://www.ruby-forum.com/u/ruby_tl)\
**Replies:** 0\
**Last updated:** [April 19, 2010, 3:23pm UTC](https://www.ruby-forum.com/t/few-questions/187187 "2010-04-19T15:23:06Z")

</div>

Hi, I am working on few ruby work tasks. I need to have few things which i am not able to figure it out. how can we integrate Google Maps with Ruby for example i have few users of my site and i would like to see all …

---

## [Update related model after\_destroy object](https://www.ruby-forum.com/t/update-related-model-after-destroy-object/187126)

<div class="topic-metadata">

**Author:** [@kinunt](https://www.ruby-forum.com/u/kinunt)\
**Replies:** 6\
**Last updated:** [April 19, 2010, 2:00pm UTC](https://www.ruby-forum.com/t/update-related-model-after-destroy-object/187126 "2010-04-19T14:00:03Z")

</div>

Hi!, I know that Rails do not save in cascade so I need to solve this problem: I have invoice that has lines. Invoice have fields that are calculated with values of lines so when a line is modified or deleted I need …

---

## [Caching with Rails](https://www.ruby-forum.com/t/caching-with-rails/187178)

<div class="topic-metadata">

**Author:** [@gregm](https://www.ruby-forum.com/u/gregm)\
**Replies:** 4\
**Last updated:** [April 19, 2010, 1:33pm UTC](https://www.ruby-forum.com/t/caching-with-rails/187178 "2010-04-19T13:33:10Z")

</div>

Hi, I’ve been reading the Rails Guide about caching and I have a few questions about it. I’ve read that it is not possible to cache a page with url parameters, for instance ‘http://…/com/products/category\_id=5’. Am I…

---

## [Drupal like cms](https://www.ruby-forum.com/t/drupal-like-cms/187099)

<div class="topic-metadata">

**Author:** [@amalasingh](https://www.ruby-forum.com/u/amalasingh)\
**Replies:** 6\
**Last updated:** [April 19, 2010, 12:53pm UTC](https://www.ruby-forum.com/t/drupal-like-cms/187099 "2010-04-19T12:53:37Z")

</div>

Hi Rails team, How difficult to develop a Drupal like CMS in Rails? How long it will take? – Nandri(Thanks in Tamil), Amala S.

---

## [Best practise using unit\_record, mocha, and shoulda](https://www.ruby-forum.com/t/best-practise-using-unit-record-mocha-and-shoulda/187179)

<div class="topic-metadata">

**Author:** [@jarl](https://www.ruby-forum.com/u/jarl)\
**Replies:** 0\
**Last updated:** [April 19, 2010, 11:46am UTC](https://www.ruby-forum.com/t/best-practise-using-unit-record-mocha-and-shoulda/187179 "2010-04-19T11:46:18Z")

</div>

Hi. I would like to start using unit\_record (in combination with shoulda and mocha) I would however like to share some experience and best practise about this with others. Does anybody else here on the list use this…

---

## [Blog and comments!](https://www.ruby-forum.com/t/blog-and-comments/187154)

<div class="topic-metadata">

**Author:** [@Guru\_101011](https://www.ruby-forum.com/u/Guru_101011)\
**Replies:** 5\
**Last updated:** [April 19, 2010, 10:38am UTC](https://www.ruby-forum.com/t/blog-and-comments/187154 "2010-04-19T10:38:22Z")

</div>

Blog: I will pay for someone to solve this problem for me! post ur email or msn or yim! Basically, what i got at the moment that works is the reading, ADD and EDIT and delete posts that people have made, i have also…

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

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