# Rails

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

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

---

## [Sr Ruby on Rails Engineer in Silicon Valley (up to 140K)](https://www.ruby-forum.com/t/sr-ruby-on-rails-engineer-in-silicon-valley-up-to-140k/188182)

<div class="topic-metadata">

**Author:** [@208317id](https://www.ruby-forum.com/u/208317id)\
**Replies:** 0\
**Last updated:** [May 7, 2010, 1:35am UTC](https://www.ruby-forum.com/t/sr-ruby-on-rails-engineer-in-silicon-valley-up-to-140k/188182 "2010-05-07T01:35:19Z")

</div>

Hi there, I am hoping to get the word out about a senior development role in the peninsula with a growing, hot company involved in SAAS technologies . We need someone with multiple years of developing web- based apps…

---

## [Which Database to choose when?](https://www.ruby-forum.com/t/which-database-to-choose-when/188076)

<div class="topic-metadata">

**Author:** [@christoph\_j](https://www.ruby-forum.com/u/christoph_j)\
**Replies:** 2\
**Last updated:** [May 6, 2010, 11:28pm UTC](https://www.ruby-forum.com/t/which-database-to-choose-when/188076 "2010-05-06T23:28:17Z")

</div>

Hi folks, I’m developing Ruby and Rails application for a while, but was mostly tight to MySQL or SQlite3. There is a lot of buzz about schema free DBs and I hear a lot of names like Redis, MongoDB, CouchDB etc. So…

---

## [New rails project with legacy DB (sort of)](https://www.ruby-forum.com/t/new-rails-project-with-legacy-db-sort-of/188111)

<div class="topic-metadata">

**Author:** [@agilehack](https://www.ruby-forum.com/u/agilehack)\
**Replies:** 3\
**Last updated:** [May 6, 2010, 10:40pm UTC](https://www.ruby-forum.com/t/new-rails-project-with-legacy-db-sort-of/188111 "2010-05-06T22:40:33Z")

</div>

I am starting a new rails project and have been given a DB with data etc. The good news is that the data is not being used by any other system so even though the DB has been designed and given to me I have liberty to…

---

## [Problems using exception\_notification 2.3.3.0](https://www.ruby-forum.com/t/problems-using-exception-notification-2-3-3-0/188176)

<div class="topic-metadata">

**Author:** [@jarl](https://www.ruby-forum.com/u/jarl)\
**Replies:** 0\
**Last updated:** [May 6, 2010, 10:09pm UTC](https://www.ruby-forum.com/t/problems-using-exception-notification-2-3-3-0/188176 "2010-05-06T22:09:15Z")

</div>

Hi. I am using rails 2.3.5 I just installed exception\_notification 2.3.3.0 using ‘sudo gem install exception\_notification’ I have add config.gem “exception\_notification” in environment.rb and ‘include ExceptionNotif…

---

## [Ajax In place editor to send modifications](https://www.ruby-forum.com/t/ajax-in-place-editor-to-send-modifications/188172)

<div class="topic-metadata">

**Author:** [@rcanand](https://www.ruby-forum.com/u/rcanand)\
**Replies:** 0\
**Last updated:** [May 6, 2010, 9:32pm UTC](https://www.ruby-forum.com/t/ajax-in-place-editor-to-send-modifications/188172 "2010-05-06T21:32:58Z")

</div>

Hi, I have a requirement to use an Ajax in place editor on a set of snippets to allow user to modify existing content. Once edited, however, I want the ok button to NOT modify the original snippet, but instead, send…

---

## [Which version of rmagicks needs to be installed?](https://www.ruby-forum.com/t/which-version-of-rmagicks-needs-to-be-installed/188170)

<div class="topic-metadata">

**Author:** [@martin\_mercy2001](https://www.ruby-forum.com/u/martin_mercy2001)\
**Replies:** 0\
**Last updated:** [May 6, 2010, 8:56pm UTC](https://www.ruby-forum.com/t/which-version-of-rmagicks-needs-to-be-installed/188170 "2010-05-06T20:56:01Z")

</div>

Dear Friends, Which rmagick and imagemagick version will support in ruby 1.9.1 & rails 3.0.0(beta 3) version in a windows xp machine? Kindly help, Regards, Jose Martin

---

## [Continously running a script](https://www.ruby-forum.com/t/continously-running-a-script/187306)

<div class="topic-metadata">

**Author:** [@tashfeen.ekram](https://www.ruby-forum.com/u/tashfeen.ekram)\
**Replies:** 5\
**Last updated:** [May 6, 2010, 7:52pm UTC](https://www.ruby-forum.com/t/continously-running-a-script/187306 "2010-05-06T19:52:51Z")

</div>

I am writing a rails script that I need to run continuosly. It basiclly scans the a particular table in my DB and makes queries to an outside service and updates the table as needed. I would like to keep the script co…

---

## [Validating the presence of foreign keys /associated objects](https://www.ruby-forum.com/t/validating-the-presence-of-foreign-keys-associated-objects/188149)

<div class="topic-metadata">

**Author:** [@ct9a](https://www.ruby-forum.com/u/ct9a)\
**Replies:** 1\
**Last updated:** [May 6, 2010, 7:25pm UTC](https://www.ruby-forum.com/t/validating-the-presence-of-foreign-keys-associated-objects/188149 "2010-05-06T19:25:20Z")

</div>

hi guys, I been trying to find out on how to validate the presence of foreign keys/associated objects and the threads that talk about this are rather dated and unanswered. I looked at http://groups.google.com/gro…

---

## [(SystemStackError) Unit Tests Not working](https://www.ruby-forum.com/t/systemstackerror-unit-tests-not-working/188163)

<div class="topic-metadata">

**Author:** [@Sumeet\_P](https://www.ruby-forum.com/u/Sumeet_P)\
**Replies:** 0\
**Last updated:** [May 6, 2010, 7:11pm UTC](https://www.ruby-forum.com/t/systemstackerror-unit-tests-not-working/188163 "2010-05-06T19:11:16Z")

</div>

Hi, Please Help, I am trying to run tests on my website but it fails each and every time I think its not even running test. ruby version: ruby 1.8.6 (2008-03-03 patchlevel 114) \[x86\_64-linux\] rails version: Rails 2…

---

## [Validate depending on action](https://www.ruby-forum.com/t/validate-depending-on-action/188141)

<div class="topic-metadata">

**Author:** [@gregm](https://www.ruby-forum.com/u/gregm)\
**Replies:** 1\
**Last updated:** [May 6, 2010, 6:16pm UTC](https://www.ruby-forum.com/t/validate-depending-on-action/188141 "2010-05-06T18:16:49Z")

</div>

Hi, Is it possible use validations depending on the action? Greg

---

## [Rails running on local host but not showing code](https://www.ruby-forum.com/t/rails-running-on-local-host-but-not-showing-code/188158)

<div class="topic-metadata">

**Author:** [@Lemmy](https://www.ruby-forum.com/u/Lemmy)\
**Replies:** 0\
**Last updated:** [May 6, 2010, 6:03pm UTC](https://www.ruby-forum.com/t/rails-running-on-local-host-but-not-showing-code/188158 "2010-05-06T18:03:21Z")

</div>

I am new to using rails with netbeans and i cannot get the localhost to preview my work it says that something went wrong =\> Booting WEBrick =\> Rails 2.3.4 application starting on http://0.0.0.0:3000 JRuby limited op…

---

## [Dynamic Selects - Dynamic View](https://www.ruby-forum.com/t/dynamic-selects-dynamic-view/188046)

<div class="topic-metadata">

**Author:** [@KTKTKT](https://www.ruby-forum.com/u/KTKTKT)\
**Replies:** 3\
**Last updated:** [May 6, 2010, 5:18pm UTC](https://www.ruby-forum.com/t/dynamic-selects-dynamic-view/188046 "2010-05-06T17:18:51Z")

</div>

I’ve implemented Ryan B.'s Dynamic Select modules as done here: I have a Category select (hardware, software, media…) Based on the Category, I have a Product select (if hardware is chosen, then PC, Monitor, Printer…) …

---

## [How to find installed gem is rmagick 2 or rmagick 1?](https://www.ruby-forum.com/t/how-to-find-installed-gem-is-rmagick-2-or-rmagick-1/188153)

<div class="topic-metadata">

**Author:** [@martin\_mercy2001](https://www.ruby-forum.com/u/martin_mercy2001)\
**Replies:** 0\
**Last updated:** [May 6, 2010, 5:16pm UTC](https://www.ruby-forum.com/t/how-to-find-installed-gem-is-rmagick-2-or-rmagick-1/188153 "2010-05-06T17:16:28Z")

</div>

Dear Friends, I need to install rmagick2. when i give gem install rmagick, rmagick 2.13.1 is installed. But how do i find whether its rmagick 1 or rmagick 2? Is is the series starts with rmagick 2… belongs to rmagick…

---

## [Questioning My Design](https://www.ruby-forum.com/t/questioning-my-design/188148)

<div class="topic-metadata">

**Author:** [@dee](https://www.ruby-forum.com/u/dee)\
**Replies:** 3\
**Last updated:** [May 6, 2010, 5:05pm UTC](https://www.ruby-forum.com/t/questioning-my-design/188148 "2010-05-06T17:05:23Z")

</div>

Hi All, I’m writing a web app for a non-profit NGO that helps farmers in a co- op plan their crops better to reduce shortages, surpluses and unhealthy competition between themselves. Right now, I’m doing something th…

---

## [Authenticate, THEN redirect](https://www.ruby-forum.com/t/authenticate-then-redirect/188114)

<div class="topic-metadata">

**Author:** [@trevoke](https://www.ruby-forum.com/u/trevoke)\
**Replies:** 4\
**Last updated:** [May 6, 2010, 4:29pm UTC](https://www.ruby-forum.com/t/authenticate-then-redirect/188114 "2010-05-06T16:29:03Z")

</div>

Hi all. What I want to do: use HTTP Basic Authentication (stop screaming!) and then redirect to a welcome page. What I am trying to do: Use a before filter which will authenticate and then redirect to the welcome p…

---

## [Rmagick not working?](https://www.ruby-forum.com/t/rmagick-not-working/188145)

<div class="topic-metadata">

**Author:** [@martin\_mercy2001](https://www.ruby-forum.com/u/martin_mercy2001)\
**Replies:** 0\
**Last updated:** [May 6, 2010, 3:27pm UTC](https://www.ruby-forum.com/t/rmagick-not-working/188145 "2010-05-06T15:27:33Z")

</div>

Dear Friends, I have installed Ruby 1.9.1 & rails 3.0.0 (beta vaersion) also its dependencies in my windows xp machine. I have also installed image magick version 6.6.1 q16. I need to work on task related to images,…

---

## [Performance Issue](https://www.ruby-forum.com/t/performance-issue/188137)

<div class="topic-metadata">

**Author:** [@hitesh](https://www.ruby-forum.com/u/hitesh)\
**Replies:** 2\
**Last updated:** [May 6, 2010, 3:22pm UTC](https://www.ruby-forum.com/t/performance-issue/188137 "2010-05-06T15:22:29Z")

</div>

Hi, I am having one performance issue. I want to retrieve different kind of data from a single table with different conditions. here is example @licences = Licence.scoped\_by\_user\_id(10) usedpermlicence = @licences.s…

---

## [NameError - Problems with if-else](https://www.ruby-forum.com/t/nameerror-problems-with-if-else/186567)

<div class="topic-metadata">

**Author:** [@mark](https://www.ruby-forum.com/u/mark)\
**Replies:** 4\
**Last updated:** [May 6, 2010, 2:27pm UTC](https://www.ruby-forum.com/t/nameerror-problems-with-if-else/186567 "2010-05-06T14:27:49Z")

</div>

Hi, i have a problem with if-else. I get this error: “uninitialized constant ActionView::Base::CompiledTemplates::Male” I want to change the background-color for male and female. So i wrote this code with if and els…

---

## [Validation message in other module](https://www.ruby-forum.com/t/validation-message-in-other-module/187927)

<div class="topic-metadata">

**Author:** [@rahul\_m](https://www.ruby-forum.com/u/rahul_m)\
**Replies:** 5\
**Last updated:** [May 6, 2010, 1:04pm UTC](https://www.ruby-forum.com/t/validation-message-in-other-module/187927 "2010-05-06T13:04:45Z")

</div>

i am having one comment module and putted the two validation and i have putted or copy the code of the add form of this module to my public module and when user add comment from the public module the customer flag is …

---

## [Dev tool](https://www.ruby-forum.com/t/dev-tool/187941)

<div class="topic-metadata">

**Author:** [@Mlle](https://www.ruby-forum.com/u/Mlle)\
**Replies:** 8\
**Last updated:** [May 6, 2010, 12:53pm UTC](https://www.ruby-forum.com/t/dev-tool/187941 "2010-05-06T12:53:03Z")

</div>

Can anyone suggest a development tool for RoR? How is the plugin for Eclipse?

---

## [MySQL Constraints - Active Record](https://www.ruby-forum.com/t/mysql-constraints-active-record/188067)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [May 6, 2010, 12:46pm UTC](https://www.ruby-forum.com/t/mysql-constraints-active-record/188067 "2010-05-06T12:46:01Z")

</div>

What is the “proper” way to add constraints using MySQL as the database? I have it set up like this: t.integer :product\_id, :null =\> false, :options=\> “CONSTRAINT fk\_line\_item\_products REFERENCES products(id)” This …

---

## [Legacy ISO-8859-1 MSSQL db and UTF8 rails app](https://www.ruby-forum.com/t/legacy-iso-8859-1-mssql-db-and-utf8-rails-app/113168)

<div class="topic-metadata">

**Author:** [@linus](https://www.ruby-forum.com/u/linus)\
**Replies:** 10\
**Last updated:** [May 6, 2010, 12:44pm UTC](https://www.ruby-forum.com/t/legacy-iso-8859-1-mssql-db-and-utf8-rails-app/113168 "2010-05-06T12:44:45Z")

</div>

Hi! I have problem with legacy database in MSSQL encoding. The new app in Rails and most of the database is Utf8, while tables from legacy MSSQL are encoded in ISO-8859-1. I am not sure how to approach this problem. …

---

## [Undefined method i18n](https://www.ruby-forum.com/t/undefined-method-i18n/188082)

<div class="topic-metadata">

**Author:** [@akira-y](https://www.ruby-forum.com/u/akira-y)\
**Replies:** 3\
**Last updated:** [May 6, 2010, 9:51am UTC](https://www.ruby-forum.com/t/undefined-method-i18n/188082 "2010-05-06T09:51:35Z")

</div>

I have tried to boot WEBrick, though I suffered the problem like i18n method not found. How can I recover from this problem? $ ruby script/server =\> Booting WEBrick… /home/user/ror/design\_qr/config/environment.rb:56…

---

## [CAS Authentication](https://www.ruby-forum.com/t/cas-authentication/188126)

<div class="topic-metadata">

**Author:** [@blair](https://www.ruby-forum.com/u/blair)\
**Replies:** 0\
**Last updated:** [May 6, 2010, 9:05am UTC](https://www.ruby-forum.com/t/cas-authentication/188126 "2010-05-06T09:05:16Z")

</div>

So I have recently tried authenticating to a cas server for a project, and every time I try to access my cas server it returns SSL\_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify f…

---

## [Need help getting environment setup](https://www.ruby-forum.com/t/need-help-getting-environment-setup/188093)

<div class="topic-metadata">

**Author:** [@bishopneo](https://www.ruby-forum.com/u/bishopneo)\
**Replies:** 8\
**Last updated:** [May 6, 2010, 6:07am UTC](https://www.ruby-forum.com/t/need-help-getting-environment-setup/188093 "2010-05-06T06:07:24Z")

</div>

Greetings all. Full disclosure, I am not a ruby developer by choice. I’ve been brought onto a project to do some front-end work however I am having major problems getting my environment up and running. (BTW, I am li…

---

## [STI helper/model mapper](https://www.ruby-forum.com/t/sti-helper-model-mapper/188018)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [May 6, 2010, 4:19am UTC](https://www.ruby-forum.com/t/sti-helper-model-mapper/188018 "2010-05-06T04:19:07Z")

</div>

I am currently using STI to manage three different types of Users on a site. I find this to be a great solution when it comes to DRYing authentication and basic fields for each type of user. My only caveat with this m…

---

## [Weird generate path](https://www.ruby-forum.com/t/weird-generate-path/188080)

<div class="topic-metadata">

**Author:** [@gregm](https://www.ruby-forum.com/u/gregm)\
**Replies:** 3\
**Last updated:** [May 5, 2010, 11:45pm UTC](https://www.ruby-forum.com/t/weird-generate-path/188080 "2010-05-05T23:45:12Z")

</div>

Hi, I have a simple form in my controller “before\_home”. In the form I want to create a user, si I use the users\_path on my form. But look at the html generated… Why do I have an action before\_home? I should be “user…

---

## [Joining multiple tables ActiveRecord](https://www.ruby-forum.com/t/joining-multiple-tables-activerecord/188042)

<div class="topic-metadata">

**Author:** [@JohnnyC](https://www.ruby-forum.com/u/JohnnyC)\
**Replies:** 2\
**Last updated:** [May 5, 2010, 8:17pm UTC](https://www.ruby-forum.com/t/joining-multiple-tables-activerecord/188042 "2010-05-05T20:17:58Z")

</div>

I have 3 tables as such: Products (has many product\_overruns, has many services) \*id Product\_Overruns (belongs to product) \*product\_id Services (Active Product) (belongs to product) product\_id I’d like to retrie…

---

## [What version of Ruby does/will Rails 3 require?](https://www.ruby-forum.com/t/what-version-of-ruby-does-will-rails-3-require/188015)

<div class="topic-metadata">

**Author:** [@matthew](https://www.ruby-forum.com/u/matthew)\
**Replies:** 6\
**Last updated:** [May 5, 2010, 7:51pm UTC](https://www.ruby-forum.com/t/what-version-of-ruby-does-will-rails-3-require/188015 "2010-05-05T19:51:01Z")

</div>

What version of Ruby does or will Rails 3 require?

---

## [Form remote tag :before=\> function problem](https://www.ruby-forum.com/t/form-remote-tag-before-function-problem/188086)

<div class="topic-metadata">

**Author:** [@shanker](https://www.ruby-forum.com/u/shanker)\
**Replies:** 5\
**Last updated:** [May 5, 2010, 6:55pm UTC](https://www.ruby-forum.com/t/form-remote-tag-before-function-problem/188086 "2010-05-05T18:55:24Z")

</div>

Hi I have a strange problem, I am using the below code form\_remote\_tag :url =\> ‘/abc/test’,:before =\> “return hello();”, :update=\>‘test\_categories’ ,:complete =\> “Element.hide(‘spinner’)”, :loading =\> “Element.show(‘s…

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

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