# Rails

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

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

---

## [Route Skips Call to Method](https://www.ruby-forum.com/t/route-skips-call-to-method/177423)

<div class="topic-metadata">

**Author:** [@mperham](https://www.ruby-forum.com/u/mperham)\
**Replies:** 1\
**Last updated:** [October 16, 2009, 10:34pm UTC](https://www.ruby-forum.com/t/route-skips-call-to-method/177423 "2009-10-16T22:34:11Z")

</div>

The following route: map.connect ‘/adjust’, :controller =\> ‘inventory’, :action =\> ‘adjust’ is failing to call the ‘adjust’ method in ‘inventory\_controller.rb’, demonstrated by the first line of the method, a puts sta…

---

## [Having trouble updating Gems; need to change write permissions on directory](https://www.ruby-forum.com/t/having-trouble-updating-gems-need-to-change-write-permissions-on-directory/177396)

<div class="topic-metadata">

**Author:** [@dangermoose](https://www.ruby-forum.com/u/dangermoose)\
**Replies:** 2\
**Last updated:** [October 16, 2009, 9:43pm UTC](https://www.ruby-forum.com/t/having-trouble-updating-gems-need-to-change-write-permissions-on-directory/177396 "2009-10-16T21:43:15Z")

</div>

Hi– I just updated to Rails 2.2.3 last night. Wanted to develop a new app today but got message that I needed to update Gems from 1.3.1 to 1.3.2 So, I ran Terminal and entered the gems update --system command. I got …

---

## [Accessing images in the /public directory](https://www.ruby-forum.com/t/accessing-images-in-the-public-directory/177420)

<div class="topic-metadata">

**Author:** [@spacechurro](https://www.ruby-forum.com/u/spacechurro)\
**Replies:** 5\
**Last updated:** [October 16, 2009, 9:30pm UTC](https://www.ruby-forum.com/t/accessing-images-in-the-public-directory/177420 "2009-10-16T21:30:33Z")

</div>

i am taking a style that someone else put together, and have a simple question… the page is currently buried in the site, along with its images… i moved the images to /public/images the only problem i have is… how d…

---

## [Has\_and\_belongs\_to\_many on different databases](https://www.ruby-forum.com/t/has-and-belongs-to-many-on-different-databases/177404)

<div class="topic-metadata">

**Author:** [@erzapito](https://www.ruby-forum.com/u/erzapito)\
**Replies:** 3\
**Last updated:** [October 16, 2009, 5:46pm UTC](https://www.ruby-forum.com/t/has-and-belongs-to-many-on-different-databases/177404 "2009-10-16T17:46:05Z")

</div>

Hi, I’m working with two models that have a “has\_and\_belongs\_to\_many” relation. Both models reside on a database that it is not the default one. A \< External has\_and\_belongs\_to\_many: B B \< External has\_and\_belongs…

---

## [Download Avira AntiVir Premium v9.0.0.446 with 2011 valid](https://www.ruby-forum.com/t/download-avira-antivir-premium-v9-0-0-446-with-2011-valid/177409)

<div class="topic-metadata">

**Author:** [@stimpy](https://www.ruby-forum.com/u/stimpy)\
**Replies:** 0\
**Last updated:** [October 16, 2009, 4:25pm UTC](https://www.ruby-forum.com/t/download-avira-antivir-premium-v9-0-0-446-with-2011-valid/177409 "2009-10-16T16:25:22Z")

</div>

Download Avira AntiVir Premium v9.0.0.446 with 2011 valid http://bit.ly/2dWFN5 http://bit.ly/2dWFN5 Download Avira AntiVir Premium v9.0.0.446 with 2011 valid --~--~---------~--~----~------------~-------~…

---

## [Create and error\_messages](https://www.ruby-forum.com/t/create-and-error-messages/177360)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 10\
**Last updated:** [October 16, 2009, 4:12pm UTC](https://www.ruby-forum.com/t/create-and-error-messages/177360 "2009-10-16T16:12:13Z")

</div>

How should a create look like in order to get error\_messages being displayed, going back to new and show the error message? I can’t get it working so I must miss something.

---

## [Rails 2.3 Model.touch(:column) always also updates :updated\_at?](https://www.ruby-forum.com/t/rails-2-3-model-touch-column-always-also-updates-updated-at/177403)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [October 16, 2009, 3:23pm UTC](https://www.ruby-forum.com/t/rails-2-3-model-touch-column-always-also-updates-updated-at/177403 "2009-10-16T15:23:19Z")

</div>

Hi, Am I the only one (i.e. something I do is wrong), or does the touch- method always update updated\_at, even though giving it a column to use INSTEAD is meant to update just that column??? Thanks, Michael

---

## [How to configure every (postgresql) db connection?](https://www.ruby-forum.com/t/how-to-configure-every-postgresql-db-connection/177271)

<div class="topic-metadata">

**Author:** [@Tilmann\_Singer](https://www.ruby-forum.com/u/Tilmann_Singer)\
**Replies:** 2\
**Last updated:** [October 16, 2009, 1:22pm UTC](https://www.ruby-forum.com/t/how-to-configure-every-postgresql-db-connection/177271 "2009-10-16T13:22:10Z")

</div>

I would like to set some db session variables specific to my application on the database connection that rails uses. They can be set by issuing an SQL command like “SET statement\_timeout = 1000” once - it will be in e…

---

## [Easy Way to identify Partials](https://www.ruby-forum.com/t/easy-way-to-identify-partials/177134)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 8\
**Last updated:** [October 16, 2009, 12:21pm UTC](https://www.ruby-forum.com/t/easy-way-to-identify-partials/177134 "2009-10-16T12:21:51Z")

</div>

Hey there, here we have a bunch of interns, so called marketing specialists and other folks just pushing out more and more layouts, views and partials. Now when theres a SEO wanting to change a link on page A to poi…

---

## [How to impliment the Gauge meter in RoR](https://www.ruby-forum.com/t/how-to-impliment-the-gauge-meter-in-ror/177395)

<div class="topic-metadata">

**Author:** [@soutom](https://www.ruby-forum.com/u/soutom)\
**Replies:** 1\
**Last updated:** [October 16, 2009, 10:06am UTC](https://www.ruby-forum.com/t/how-to-impliment-the-gauge-meter-in-ror/177395 "2009-10-16T10:06:42Z")

</div>

Hi all, I want to implement gauge in my application to shoe the real time data change effects. So anyone please help me how to implement this in ruby on rails.

---

## [AJAX - how to have multiple select form sets implemented?](https://www.ruby-forum.com/t/ajax-how-to-have-multiple-select-form-sets-implemented/197006)

<div class="topic-metadata">

**Author:** [@ct9a](https://www.ruby-forum.com/u/ct9a)\
**Replies:** 0\
**Last updated:** [October 16, 2009, 9:44am UTC](https://www.ruby-forum.com/t/ajax-how-to-have-multiple-select-form-sets-implemented/197006 "2009-10-16T09:44:24Z")

</div>

hi, there :slight\_smile: Consider a blogging application whereby a user is trying to add a new blog. He/she has to select a category. Upon selecting a category from a drop down box, a new sub categories drop down box…

---

## [Very strange problem with Gettext and Haml](https://www.ruby-forum.com/t/very-strange-problem-with-gettext-and-haml/196987)

<div class="topic-metadata">

**Author:** [@slafochmed](https://www.ruby-forum.com/u/slafochmed)\
**Replies:** 1\
**Last updated:** [October 16, 2009, 8:47am UTC](https://www.ruby-forum.com/t/very-strange-problem-with-gettext-and-haml/196987 "2009-10-16T08:47:17Z")

</div>

Hi, I’m on Rails 2.3.3 and using Haml 2.0.9 for my templates and Gettext-Rails 2.0.4 for the translation. Haml works like a charm and gettext is also working like it should. But I cant get Gettext to parse Haml Files…

---

## [A simple editable grid for Rails](https://www.ruby-forum.com/t/a-simple-editable-grid-for-rails/177101)

<div class="topic-metadata">

**Author:** [@C\_K\_Kashyap](https://www.ruby-forum.com/u/C_K_Kashyap)\
**Replies:** 6\
**Last updated:** [October 16, 2009, 8:27am UTC](https://www.ruby-forum.com/t/a-simple-editable-grid-for-rails/177101 "2009-10-16T08:27:26Z")

</div>

Hi All, I’ve been posting some queries about an editable grid but did not get any response. I’ve started writing my own - I’d appreciate it very much if someone could comment on it! – Regards, Kashyap

---

## [Selenium: get href link by anchor text](https://www.ruby-forum.com/t/selenium-get-href-link-by-anchor-text/177393)

<div class="topic-metadata">

**Author:** [@brijesh](https://www.ruby-forum.com/u/brijesh)\
**Replies:** 0\
**Last updated:** [October 16, 2009, 8:06am UTC](https://www.ruby-forum.com/t/selenium-get-href-link-by-anchor-text/177393 "2009-10-16T08:06:52Z")

</div>

Hi I am using Selenium on rails plugin for automated testing in my project. Currently I can check the links on a page by anchor text. Now I want to check href link for that anchor text like for Click Here “Click her…

---

## [MiddleMan Class missing with backgroundrb 1.1 version?](https://www.ruby-forum.com/t/middleman-class-missing-with-backgroundrb-1-1-version/177392)

<div class="topic-metadata">

**Author:** [@learn\_ruby](https://www.ruby-forum.com/u/learn_ruby)\
**Replies:** 0\
**Last updated:** [October 16, 2009, 7:00am UTC](https://www.ruby-forum.com/t/middleman-class-missing-with-backgroundrb-1-1-version/177392 "2009-10-16T07:00:46Z")

</div>

Hi All, This might seems to be a silly post for all the pros out there but can anyone please try to answer my question? I have installed backgroundrb 1.1 version on my RH Linux system. And now I don’t see any MiddleM…

---

## [\[ann\] fosscasts - Free & Open Source Screencasts](https://www.ruby-forum.com/t/ann-fosscasts-free-open-source-screencasts/177388)

<div class="topic-metadata">

**Author:** [@tikaro](https://www.ruby-forum.com/u/tikaro)\
**Replies:** 0\
**Last updated:** [October 16, 2009, 5:04am UTC](https://www.ruby-forum.com/t/ann-fosscasts-free-open-source-screencasts/177388 "2009-10-16T05:04:39Z")

</div>

Hi all, While not specific to Ruby or Rails, I’ve been putting together some screencasts on more general open source topics like “Quick Editing with GNU Nano”, “System Monitoring with Monit”, and general tips. I’ve g…

---

## [Rails /w Ruby 1.9.1p243 - Unit Test assert\_equal question](https://www.ruby-forum.com/t/rails-w-ruby-1-9-1p243-unit-test-assert-equal-question/177385)

<div class="topic-metadata">

**Author:** [@mojo](https://www.ruby-forum.com/u/mojo)\
**Replies:** 1\
**Last updated:** [October 16, 2009, 3:52am UTC](https://www.ruby-forum.com/t/rails-w-ruby-1-9-1p243-unit-test-assert-equal-question/177385 "2009-10-16T03:52:03Z")

</div>

Hi everyone I am new to Rails. My platform is Ubuntu 9.04 with Ruby 1.9.1p243 and Rails 2.3.4. I am reading SitePoint’s Simply Rails 2 book. On page 240, the author shows how to test the associations between Story and …

---

## [Radio buttons on edit/update form](https://www.ruby-forum.com/t/radio-buttons-on-edit-update-form/177376)

<div class="topic-metadata">

**Author:** [@zambezi](https://www.ruby-forum.com/u/zambezi)\
**Replies:** 2\
**Last updated:** [October 16, 2009, 1:45am UTC](https://www.ruby-forum.com/t/radio-buttons-on-edit-update-form/177376 "2009-10-16T01:45:34Z")

</div>

Radio buttons in an edit/update form do not display the underlying data (all radio buttons are displayed unchecked) although any changes made through these contols are updated. \<%= f.radio\_button(:sex, 'female…

---

## [Ruby on Rails INSTANT INSTALLER for LINUX?](https://www.ruby-forum.com/t/ruby-on-rails-instant-installer-for-linux/177342)

<div class="topic-metadata">

**Author:** [@learn\_ruby](https://www.ruby-forum.com/u/learn_ruby)\
**Replies:** 14\
**Last updated:** [October 16, 2009, 1:12am UTC](https://www.ruby-forum.com/t/ruby-on-rails-instant-installer-for-linux/177342 "2009-10-16T01:12:23Z")

</div>

Hi All, Sorry my ignorance, i am kind of new to the ROR Linux. Do we have a ROR package on Linux similar to a InstantRails(Windows) ? In the rubyforge, I haven’t seen any package like that for Linux. Please help me i…

---

## [\[ANN\] zena 0.15.0 release](https://www.ruby-forum.com/t/ann-zena-0-15-0-release/177380)

<div class="topic-metadata">

**Author:** [@gazoduc](https://www.ruby-forum.com/u/gazoduc)\
**Replies:** 0\
**Last updated:** [October 16, 2009, 1:10am UTC](https://www.ruby-forum.com/t/ann-zena-0-15-0-release/177380 "2009-10-16T01:10:36Z")

</div>

First public release for zena, the CMS with super natural powers ! zena is a Ruby on Rails CMS with a focus on usability, ease of customization and web 2.0 goodness. More information on this release: http://bit.ly/1CR…

---

## [RSpec - how to validate that controller renders xml](https://www.ruby-forum.com/t/rspec-how-to-validate-that-controller-renders-xml/137988)

<div class="topic-metadata">

**Author:** [@Rory\_McKinley](https://www.ruby-forum.com/u/Rory_McKinley)\
**Replies:** 9\
**Last updated:** [October 16, 2009, 12:57am UTC](https://www.ruby-forum.com/t/rspec-how-to-validate-that-controller-renders-xml/137988 "2009-10-16T00:57:17Z")

</div>

Hi List I have a controller method that I would like to render some objects as XML, using the following: render :xml =\> @goals Is there anyway in RSpec to check that the controller is indeed rendering xml? Rory

---

## [Select Option Broken on Eager Load With 2nd Order Association](https://www.ruby-forum.com/t/select-option-broken-on-eager-load-with-2nd-order-association/177330)

<div class="topic-metadata">

**Author:** [@MaggotChild](https://www.ruby-forum.com/u/MaggotChild)\
**Replies:** 2\
**Last updated:** [October 16, 2009, 12:40am UTC](https://www.ruby-forum.com/t/select-option-broken-on-eager-load-with-2nd-order-association/177330 "2009-10-16T00:40:36Z")

</div>

I only want to select certain columns when eager loading an association: class Package \< ActiveRecord::Base has\_many :deliveries, :select=\>‘id, name, region\_id, package\_id’, #exclude text column dont\_select\_me :i…

---

## [Performance testing without counting setup](https://www.ruby-forum.com/t/performance-testing-without-counting-setup/177378)

<div class="topic-metadata">

**Author:** [@nappin](https://www.ruby-forum.com/u/nappin)\
**Replies:** 0\
**Last updated:** [October 16, 2009, 12:25am UTC](https://www.ruby-forum.com/t/performance-testing-without-counting-setup/177378 "2009-10-16T00:25:05Z")

</div>

I’d like to performance test the last step (step 3) of my checkout using ActionController::PerformanceTest. Since these tests are based off integration tests, my understanding is I have to run through steps 1 and 2 i…

---

## [Combining rails intrAnet and public site](https://www.ruby-forum.com/t/combining-rails-intranet-and-public-site/177288)

<div class="topic-metadata">

**Author:** [@paerez](https://www.ruby-forum.com/u/paerez)\
**Replies:** 6\
**Last updated:** [October 15, 2009, 11:07pm UTC](https://www.ruby-forum.com/t/combining-rails-intranet-and-public-site/177288 "2009-10-15T23:07:55Z")

</div>

Hello, everyone! I was wondering if somebody has some insight on this issue. \[h\]A little background:\[/h\] I work for a midsize electronic manufacturing company with 2 people in IT dept - a network admin and a develope…

---

## [How to exit rails application from within](https://www.ruby-forum.com/t/how-to-exit-rails-application-from-within/177199)

<div class="topic-metadata">

**Author:** [@ther](https://www.ruby-forum.com/u/ther)\
**Replies:** 8\
**Last updated:** [October 15, 2009, 9:49pm UTC](https://www.ruby-forum.com/t/how-to-exit-rails-application-from-within/177199 "2009-10-15T21:49:55Z")

</div>

I would like to restart my rails application from within application. On demand. But I am stucked on first step. How to exit. exit 0 doesn’t work. I am running webrick or mongrel. by TheR

---

## [Zena first gem: need testing](https://www.ruby-forum.com/t/zena-first-gem-need-testing/177325)

<div class="topic-metadata">

**Author:** [@gazoduc](https://www.ruby-forum.com/u/gazoduc)\
**Replies:** 6\
**Last updated:** [October 15, 2009, 9:06pm UTC](https://www.ruby-forum.com/t/zena-first-gem-need-testing/177325 "2009-10-15T21:06:20Z")

</div>

Hi List ! Zena is reaching maturity and we are in the process to deliver the CMS as a gem for the first time. Before pushing the gem in the wild, it would be really nice if some people could test the thing and give m…

---

## [Reinstantiate controller during functional testing](https://www.ruby-forum.com/t/reinstantiate-controller-during-functional-testing/177310)

<div class="topic-metadata">

**Author:** [@oldbug](https://www.ruby-forum.com/u/oldbug)\
**Replies:** 6\
**Last updated:** [October 15, 2009, 7:15pm UTC](https://www.ruby-forum.com/t/reinstantiate-controller-during-functional-testing/177310 "2009-10-15T19:15:43Z")

</div>

… ok, I may be going about this the wrong way, or perhaps, a less efficient way than is optimal, but I would like to test a little bit of AJAX on one of my web pages. When I test this by hand, I bring up the page whi…

---

## [Accessing SOAP service](https://www.ruby-forum.com/t/accessing-soap-service/177366)

<div class="topic-metadata">

**Author:** [@icke](https://www.ruby-forum.com/u/icke)\
**Replies:** 0\
**Last updated:** [October 15, 2009, 6:40pm UTC](https://www.ruby-forum.com/t/accessing-soap-service/177366 "2009-10-15T18:40:00Z")

</div>

I am trying to post a transaction to a SOAP service using the following: require ‘soap/wsdlDriver’ class CitymainServiceV2 def post\_policy(\*args) soap = wsdl.create\_rpc\_driver soap.wiredump\_file\_base = “soap-log.tx…

---

## [Check what migrations need to be done inside ruby script](https://www.ruby-forum.com/t/check-what-migrations-need-to-be-done-inside-ruby-script/177339)

<div class="topic-metadata">

**Author:** [@artrat](https://www.ruby-forum.com/u/artrat)\
**Replies:** 1\
**Last updated:** [October 15, 2009, 6:30pm UTC](https://www.ruby-forum.com/t/check-what-migrations-need-to-be-done-inside-ruby-script/177339 "2009-10-15T18:30:03Z")

</div>

Hi all I have a feature in a small app that creates the migration files needed from a small GUI it executes the rake task command to generate the migration files from inside a ruby script so I need to get a simple w…

---

## [Passing id array as option in find\_by\_solr](https://www.ruby-forum.com/t/passing-id-array-as-option-in-find-by-solr/177137)

<div class="topic-metadata">

**Author:** [@adedip](https://www.ruby-forum.com/u/adedip)\
**Replies:** 3\
**Last updated:** [October 15, 2009, 4:52pm UTC](https://www.ruby-forum.com/t/passing-id-array-as-option-in-find-by-solr/177137 "2009-10-15T16:52:16Z")

</div>

Needs: I wan’to apply the solr query by keyword to a subgroups of documents. I’m putting on the index only title and content of each, is it possibile to do something like this: @articles = Article.find\_by\_solr(params…

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

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