# Rails

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

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

---

## [WhatÂ´s the easier way to implement a full te xt search in my app](https://www.ruby-forum.com/t/whata-s-the-easier-way-to-implement-a-full-te-xt-search-in-my-app/167568)

<div class="topic-metadata">

**Author:** [@flaubert](https://www.ruby-forum.com/u/flaubert)\
**Replies:** 3\
**Last updated:** [May 9, 2009, 7:58pm UTC](https://www.ruby-forum.com/t/whata-s-the-easier-way-to-implement-a-full-te-xt-search-in-my-app/167568 "2009-05-09T19:58:42Z")

</div>

Plugin? what? Manually? How? (Soma links please)

---

## [Ubygems.rb hack](https://www.ruby-forum.com/t/ubygems-rb-hack/167581)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [May 9, 2009, 6:15pm UTC](https://www.ruby-forum.com/t/ubygems-rb-hack/167581 "2009-05-09T18:15:34Z")

</div>

I just updated my Ubuntu Hardy Heron (8.04) to Ruby 1.8.7 and Rails 2.3.2, and I’ve managed to get stuck with ruby: no such file to load -- ubygems (LoadError) Investigating further, it appears …

---

## [Rails on Google App Engine from a standing start](https://www.ruby-forum.com/t/rails-on-google-app-engine-from-a-standing-start/167574)

<div class="topic-metadata">

**Author:** [@MikeSofaer](https://www.ruby-forum.com/u/MikeSofaer)\
**Replies:** 1\
**Last updated:** [May 9, 2009, 6:15pm UTC](https://www.ruby-forum.com/t/rails-on-google-app-engine-from-a-standing-start/167574 "2009-05-09T18:15:34Z")

</div>

Hi, I’ve spent a bunch of time getting a jruby/Rails app running on GAE over the last couple days, and I put together a blow-by-blow of what I had to do, for people who are interested: http://blog.inigral.com/2009/05…

---

## [Doubt](https://www.ruby-forum.com/t/doubt/167579)

<div class="topic-metadata">

**Author:** [@indium](https://www.ruby-forum.com/u/indium)\
**Replies:** 1\
**Last updated:** [May 9, 2009, 6:02pm UTC](https://www.ruby-forum.com/t/doubt/167579 "2009-05-09T18:02:41Z")

</div>

Hi all, I have a doubt. sorry if it sounds silly. Is ruby a programming language or scripting language?. Thanks, Venkat http://www.prog2impress.com

---

## [SiteControllerTest error. \<nil\> expected to not be nil](https://www.ruby-forum.com/t/sitecontrollertest-error-nil-expected-to-not-be-nil/167573)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [May 9, 2009, 6:00pm UTC](https://www.ruby-forum.com/t/sitecontrollertest-error-nil-expected-to-not-be-nil/167573 "2009-05-09T18:00:20Z")

</div>

I have been following a tutorial from a (semi-outdated) textbook describing how to create a rails social networking app. I have reached the testing phase and have encountered an error I can’t seem to solve. It origina…

---

## [How many RoR engineers use Mac / Linux / Windows?](https://www.ruby-forum.com/t/how-many-ror-engineers-use-mac-linux-windows/167551)

<div class="topic-metadata">

**Author:** [@jianlin](https://www.ruby-forum.com/u/jianlin)\
**Replies:** 5\
**Last updated:** [May 9, 2009, 5:55pm UTC](https://www.ruby-forum.com/t/how-many-ror-engineers-use-mac-linux-windows/167551 "2009-05-09T17:55:33Z")

</div>

I wonder if most of the people using RoR is using it on Mac? How about we make a tally here… we can enter our platform here and see what other engineers are using: http://www.surveymonkey.com/s.aspx?sm=Xjv89bNS9fvJG…

---

## [Differences between console \[development\] and console test?](https://www.ruby-forum.com/t/differences-between-console-development-and-console-test/167544)

<div class="topic-metadata">

**Author:** [@lee](https://www.ruby-forum.com/u/lee)\
**Replies:** 2\
**Last updated:** [May 9, 2009, 5:43pm UTC](https://www.ruby-forum.com/t/differences-between-console-development-and-console-test/167544 "2009-05-09T17:43:55Z")

</div>

One of my model code methods is throwing an error when run using script/console in test but not in development. I’d be grateful if someone can tell me the differences between the two, beyond the database that they con…

---

## [A problem with instance and local variables](https://www.ruby-forum.com/t/a-problem-with-instance-and-local-variables/167583)

<div class="topic-metadata">

**Author:** [@Ahmed\_K](https://www.ruby-forum.com/u/Ahmed_K)\
**Replies:** 1\
**Last updated:** [May 9, 2009, 5:23pm UTC](https://www.ruby-forum.com/t/a-problem-with-instance-and-local-variables/167583 "2009-05-09T17:23:24Z")

</div>

Hi all, on page 151 of the book agile… we have the following code in the file order.rb: def add\_line\_items\_from\_cart(cart) cart.items.each do |item| li = LineItem.from\_cart\_item(item) line\_items \<\< li end what ki…

---

## [Beginners Tutorial RAD using Ruby on Rails](https://www.ruby-forum.com/t/beginners-tutorial-rad-using-ruby-on-rails/167580)

<div class="topic-metadata">

**Author:** [@umuro](https://www.ruby-forum.com/u/umuro)\
**Replies:** 0\
**Last updated:** [May 9, 2009, 5:19pm UTC](https://www.ruby-forum.com/t/beginners-tutorial-rad-using-ruby-on-rails/167580 "2009-05-09T17:19:18Z")

</div>

http://tinyurl.com/ruby-on-rails-tutorial All feedback welcome.

---

## [Jobs--Ruby on Rails Developer](https://www.ruby-forum.com/t/jobs-ruby-on-rails-developer/167576)

<div class="topic-metadata">

**Author:** [@phil](https://www.ruby-forum.com/u/phil)\
**Replies:** 0\
**Last updated:** [May 9, 2009, 5:17pm UTC](https://www.ruby-forum.com/t/jobs-ruby-on-rails-developer/167576 "2009-05-09T17:17:31Z")

</div>

Title: Ruby on Rails Developer Responsibilities Responsibilities include leading development and architecture of the company’s proprietary content management system and flagship websites. Working in an agile envir…

---

## [\[JOBS\] ROR London Â£45k URGENT!](https://www.ruby-forum.com/t/jobs-ror-london-a-45k-urgent/159846)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [May 9, 2009, 5:16pm UTC](https://www.ruby-forum.com/t/jobs-ror-london-a-45k-urgent/159846 "2009-05-09T17:16:56Z")

</div>

Web D. Ruby On Rails 2 years experience. London £40k+benefits It is a great opportunity with handsome remuneration for an articulate and safe pair of hands with ruby on rails who is capable of contributing effective…

---

## [Development Log does not include SQL statements](https://www.ruby-forum.com/t/development-log-does-not-include-sql-statements/166696)

<div class="topic-metadata">

**Author:** [@dano](https://www.ruby-forum.com/u/dano)\
**Replies:** 1\
**Last updated:** [May 9, 2009, 5:16pm UTC](https://www.ruby-forum.com/t/development-log-does-not-include-sql-statements/166696 "2009-05-09T17:16:55Z")

</div>

I’m using rails 2.2.2 on windows with sql server I have the following in my ‘environment.rb’ config.log\_level = :debug development.rb has the following config.cache\_classes = false config.whiny\_nils = true config.a…

---

## [\<% %\> is not exactly the same as \<?php ?\>](https://www.ruby-forum.com/t/is-not-exactly-the-same-as-php/167549)

<div class="topic-metadata">

**Author:** [@jianlin](https://www.ruby-forum.com/u/jianlin)\
**Replies:** 7\
**Last updated:** [May 9, 2009, 2:36pm UTC](https://www.ruby-forum.com/t/is-not-exactly-the-same-as-php/167549 "2009-05-09T14:36:42Z")

</div>

it seems that \<% %\> is not exactly the same as \<?php ?\> in which, PHP’s \<?php echo "something" ?\> will add to the output but ERB’s \<% puts “something” %\> will not? Does someone know if JSP and ASP behave like ERB…

---

## [Converting UTF-8 to entities like &#x525B;](https://www.ruby-forum.com/t/converting-utf-8-to-entities-like-x525b/167562)

<div class="topic-metadata">

**Author:** [@jianlin](https://www.ruby-forum.com/u/jianlin)\
**Replies:** 1\
**Last updated:** [May 9, 2009, 2:16pm UTC](https://www.ruby-forum.com/t/converting-utf-8-to-entities-like-x525b/167562 "2009-05-09T14:16:12Z")

</div>

I was trying to convert UTF-8 content into a series of entities like 剛 so that whatever the page encoding is, the characters would show… so I used something like this: \<% begin t = ‘’ s = Iconv.conv(“UTF-32”, “UTF…

---

## [Does somebody use XCode on Mac for RoR instead of TextMate?](https://www.ruby-forum.com/t/does-somebody-use-xcode-on-mac-for-ror-instead-of-textmate/167556)

<div class="topic-metadata">

**Author:** [@jianlin](https://www.ruby-forum.com/u/jianlin)\
**Replies:** 7\
**Last updated:** [May 9, 2009, 12:15pm UTC](https://www.ruby-forum.com/t/does-somebody-use-xcode-on-mac-for-ror-instead-of-textmate/167556 "2009-05-09T12:15:27Z")

</div>

does somebody use XCode on Mac for RoR instead of TextMate? I wonder how is it compared to TextMate… TextMate uses the default font of Monaco… the Xcode screenshot on Wikipedia uses Courier… I wonder if Xcode looks…

---

## [Testing alternate css for printing](https://www.ruby-forum.com/t/testing-alternate-css-for-printing/167509)

<div class="topic-metadata">

**Author:** [@colinloretz](https://www.ruby-forum.com/u/colinloretz)\
**Replies:** 4\
**Last updated:** [May 9, 2009, 11:20am UTC](https://www.ruby-forum.com/t/testing-alternate-css-for-printing/167509 "2009-05-09T11:20:57Z")

</div>

I am using an alternate style sheet for printing, loading it via \<%= stylesheet\_link\_tag ‘print’, :media =\> :print %\> which is working as expected. The problem is with testing, I would like to test that the layout is …

---

## [Code runs in development but not in test](https://www.ruby-forum.com/t/code-runs-in-development-but-not-in-test/167497)

<div class="topic-metadata">

**Author:** [@lee](https://www.ruby-forum.com/u/lee)\
**Replies:** 7\
**Last updated:** [May 9, 2009, 10:01am UTC](https://www.ruby-forum.com/t/code-runs-in-development-but-not-in-test/167497 "2009-05-09T10:01:57Z")

</div>

I have some model code that runs fine in development environment but fails in the test environment. In test, the code always fails at the same point with: Mysql::Error: Duplicate entry ‘5-17’ for key ‘PRIMARY’: INSERT…

---

## [CRUD Localization using I18n](https://www.ruby-forum.com/t/crud-localization-using-i18n/167555)

<div class="topic-metadata">

**Author:** [@marmolin](https://www.ruby-forum.com/u/marmolin)\
**Replies:** 0\
**Last updated:** [May 9, 2009, 9:47am UTC](https://www.ruby-forum.com/t/crud-localization-using-i18n/167555 "2009-05-09T09:47:52Z")

</div>

Hi, I am using the I18n support for localization in a rather large application. My problem is that the same word is translated many times in the locales files in a not very CRUD way. For example many models has the a…

---

## [Accessing dll files from rails application](https://www.ruby-forum.com/t/accessing-dll-files-from-rails-application/167491)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 4\
**Last updated:** [May 9, 2009, 9:44am UTC](https://www.ruby-forum.com/t/accessing-dll-files-from-rails-application/167491 "2009-05-09T09:44:21Z")

</div>

Hi Could anybody please suggest ways to access dll files from a rails application? Thanks in advance Sijo

---

## [XMLRPC raw\_post getting run through Hash#from\_xml](https://www.ruby-forum.com/t/xmlrpc-raw-post-getting-run-through-hash-from-xml/167541)

<div class="topic-metadata">

**Author:** [@ericgoodwin](https://www.ruby-forum.com/u/ericgoodwin)\
**Replies:** 0\
**Last updated:** [May 9, 2009, 5:44am UTC](https://www.ruby-forum.com/t/xmlrpc-raw-post-getting-run-through-hash-from-xml/167541 "2009-05-09T05:44:03Z")

</div>

Im trying to create an api, and Im having trouble getting ActionController to not run the raw post data through Hash#from\_xml (request.parse\_formatted\_request\_parameters) for the XMLRPC post data. I essentially want i…

---

## [Gem path problems w/ Passenger+Apache2](https://www.ruby-forum.com/t/gem-path-problems-w-passenger-apache2/167537)

<div class="topic-metadata">

**Author:** [@marcbey](https://www.ruby-forum.com/u/marcbey)\
**Replies:** 4\
**Last updated:** [May 9, 2009, 4:39am UTC](https://www.ruby-forum.com/t/gem-path-problems-w-passenger-apache2/167537 "2009-05-09T04:39:35Z")

</div>

Anyone else having a dickens of a time getting Passenger+Apache2 to recognize the gem path? Many things that work well w/ webbrick just don’t work at all with P+A - require fails. Here are my versions: gem 1.3.3 (fr…

---

## [Flash Filereference and Rails - getting http 422](https://www.ruby-forum.com/t/flash-filereference-and-rails-getting-http-422/167365)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 6\
**Last updated:** [May 9, 2009, 3:03am UTC](https://www.ruby-forum.com/t/flash-filereference-and-rails-getting-http-422/167365 "2009-05-09T03:03:34Z")

</div>

I’ve spent the last few days trying to figure this out. I have my own Filereference class I use with PHP. But I’m trying to use it with Rails and can’t seem to get it to work. I even downloaded some samples online and…

---

## [Div\_for and RJS](https://www.ruby-forum.com/t/div-for-and-rjs/167522)

<div class="topic-metadata">

**Author:** [@radkin](https://www.ruby-forum.com/u/radkin)\
**Replies:** 2\
**Last updated:** [May 9, 2009, 1:32am UTC](https://www.ruby-forum.com/t/div-for-and-rjs/167522 "2009-05-09T01:32:20Z")

</div>

Do you have to use an activeRecord object for div\_for? Perhaps I’m taking the wrong approach for “dynamic” divs so far my education: id= , is fine for just one div and prototype activity in an RJS (I got this to wor…

---

## [Is there simpler way to export html within xml](https://www.ruby-forum.com/t/is-there-simpler-way-to-export-html-within-xml/167402)

<div class="topic-metadata">

**Author:** [@toddf](https://www.ruby-forum.com/u/toddf)\
**Replies:** 12\
**Last updated:** [May 8, 2009, 6:41pm UTC](https://www.ruby-forum.com/t/is-there-simpler-way-to-export-html-within-xml/167402 "2009-05-08T18:41:18Z")

</div>

Hi, we’re exporting a lot of html code within xml, our current method works but it’s very messy - far from perfect, is there a better way to do this. an example of our controller code is html = html + “\<img src=”/ic…

---

## [ActionController::Caching::Sweeper not autoloading](https://www.ruby-forum.com/t/actioncontroller-sweeper-not-autoloading/167502)

<div class="topic-metadata">

**Author:** [@Olly\_L](https://www.ruby-forum.com/u/Olly_L)\
**Replies:** 0\
**Last updated:** [May 8, 2009, 3:58pm UTC](https://www.ruby-forum.com/t/actioncontroller-sweeper-not-autoloading/167502 "2009-05-08T15:58:23Z")

</div>

Hi I’ve been following this issue on Lighthouse (https:// rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/1977- actioncontrollercachingsweeper-autoloading-is-broken). I’ve since upgraded to 2-3-stable wh…

---

## [jRails problem](https://www.ruby-forum.com/t/jrails-problem/167496)

<div class="topic-metadata">

**Author:** [@cesardiaz](https://www.ruby-forum.com/u/cesardiaz)\
**Replies:** 0\
**Last updated:** [May 8, 2009, 1:45pm UTC](https://www.ruby-forum.com/t/jrails-problem/167496 "2009-05-08T13:45:31Z")

</div>

Hi, I am developing a Rails app and now I want to try some Ajax funcionality. I have a tracks list, and each track has a delete button. I have this operation implemented without Ajax with a redirection, and now I wan…

---

## [Change "onsubmit" event key from "return" key "ctrl-return"](https://www.ruby-forum.com/t/change-onsubmit-event-key-from-return-key-ctrl-return/167490)

<div class="topic-metadata">

**Author:** [@Geekyra](https://www.ruby-forum.com/u/Geekyra)\
**Replies:** 1\
**Last updated:** [May 8, 2009, 12:37pm UTC](https://www.ruby-forum.com/t/change-onsubmit-event-key-from-return-key-ctrl-return/167490 "2009-05-08T12:37:44Z")

</div>

Hello all, r there any way to change the “return” key in form single line input ? For example, I want the form to submit the process using “ctrl-return” key instead of “return” key because I want to use “return” key j…

---

## [Activerecord.count calculation not reurning expected output](https://www.ruby-forum.com/t/activerecord-count-calculation-not-reurning-expected-output/167489)

<div class="topic-metadata">

**Author:** [@johnnybutler7](https://www.ruby-forum.com/u/johnnybutler7)\
**Replies:** 0\
**Last updated:** [May 8, 2009, 12:35pm UTC](https://www.ruby-forum.com/t/activerecord-count-calculation-not-reurning-expected-output/167489 "2009-05-08T12:35:07Z")

</div>

Hi, Im using the count calculations in activerecord, see below self.count(:id, :include =\> \[:operating\_systems\], :group =\> ‘operating\_systems.name, operating\_systems.id’, This only returns 2 of the fields i need the …

---

## [\[ANN\] Manifesto and roadmaps for described\_routes and path-to](https://www.ruby-forum.com/t/ann-manifesto-and-roadmaps-for-described-routes-and-path-to/167432)

<div class="topic-metadata">

**Author:** [@asplake](https://www.ruby-forum.com/u/asplake)\
**Replies:** 1\
**Last updated:** [May 8, 2009, 12:22pm UTC](https://www.ruby-forum.com/t/ann-manifesto-and-roadmaps-for-described-routes-and-path-to/167432 "2009-05-08T12:22:29Z")

</div>

Hi all, please read on if you’re interested in REST and web APIs. I have posted roadmaps for described\_routes and path-to (both available as rubygems or at asplake’s github) at Positive Incline | Agendashift. The exc…

---

## [Sanitize\_params + whiteList](https://www.ruby-forum.com/t/sanitize-params-whitelist/166962)

<div class="topic-metadata">

**Author:** [@petan](https://www.ruby-forum.com/u/petan)\
**Replies:** 3\
**Last updated:** [May 8, 2009, 9:41am UTC](https://www.ruby-forum.com/t/sanitize-params-whitelist/166962 "2009-05-08T09:41:01Z")

</div>

Hi all, I just installed whiteList and sanitize\_params plugins to get rid of with some bad html tags … Put in my environment.rb: config.plugins = \[:white\_list, :sanitize\_params, :all\] and in application.rb: before\_…

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

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