# Rails

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

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

---

## [Check box issue](https://www.ruby-forum.com/t/check-box-issue/159288)

<div class="topic-metadata">

**Author:** [@bobby04](https://www.ruby-forum.com/u/bobby04)\
**Replies:** 5\
**Last updated:** [February 3, 2009, 7:45am UTC](https://www.ruby-forum.com/t/check-box-issue/159288 "2009-02-03T07:45:57Z")

</div>

Code: html \<%= check\_box “other\_facility”, “others” %\> Other Facilities \<%= observe\_field(:other\_facility\_others, :update =\> :other\_facility, :url =\> { :action =\> :others}) %\> I have used this code… i’m getting the …

---

## [Simple\_autocomplete and find: same inputs but diff order](https://www.ruby-forum.com/t/simple-autocomplete-and-find-same-inputs-but-diff-order/159185)

<div class="topic-metadata">

**Author:** [@artchrst](https://www.ruby-forum.com/u/artchrst)\
**Replies:** 4\
**Last updated:** [February 3, 2009, 4:13am UTC](https://www.ruby-forum.com/t/simple-autocomplete-and-find-same-inputs-but-diff-order/159185 "2009-02-03T04:13:55Z")

</div>

I’ve used the the simple\_autocomplete plugins to search a City tables with 2millions records. However, I modified the :order parameters of the “find” function in the plugin so that “San Francisco, US” will always pop …

---

## [Is It Possible to use auto complete with text\_field \_tag](https://www.ruby-forum.com/t/is-it-possible-to-use-auto-complete-with-text-field-tag/159072)

<div class="topic-metadata">

**Author:** [@newb](https://www.ruby-forum.com/u/newb)\
**Replies:** 5\
**Last updated:** [February 3, 2009, 4:09am UTC](https://www.ruby-forum.com/t/is-it-possible-to-use-auto-complete-with-text-field-tag/159072 "2009-02-03T04:09:55Z")

</div>

hi Is it possible to use auto complete with text\_field \_tag. Kindly let me know Cheers

---

## [Looking for help with NoMethodError: undefined method \`key?' for #\<String:0x4795488\>](https://www.ruby-forum.com/t/looking-for-help-with-nomethoderror-undefined-method-key-for-string-0x4795488/159218)

<div class="topic-metadata">

**Author:** [@chris](https://www.ruby-forum.com/u/chris)\
**Replies:** 2\
**Last updated:** [February 3, 2009, 2:36am UTC](https://www.ruby-forum.com/t/looking-for-help-with-nomethoderror-undefined-method-key-for-string-0x4795488/159218 "2009-02-03T02:36:32Z")

</div>

Hi all, Any help with this would be appreciated. I’m using instant rails, updated to 2.2.2, on Windows XP. I’ve created my DB and scaffolded a few things and put some fixtures into place, and when I run the tests I g…

---

## [(JOBS) RoR Mentor needed](https://www.ruby-forum.com/t/jobs-ror-mentor-needed/159271)

<div class="topic-metadata">

**Author:** [@ianhstewart](https://www.ruby-forum.com/u/ianhstewart)\
**Replies:** 1\
**Last updated:** [February 3, 2009, 2:32am UTC](https://www.ruby-forum.com/t/jobs-ror-mentor-needed/159271 "2009-02-03T02:32:26Z")

</div>

Hi, I am looking for someone to work with me on my first Ruby on Rails app. I have not coded since my days at NeXT, but I am looking forward to getting into it again. I want someone that will assist in some coding, b…

---

## [Logging stuff](https://www.ruby-forum.com/t/logging-stuff/159278)

<div class="topic-metadata">

**Author:** [@deadinplastic](https://www.ruby-forum.com/u/deadinplastic)\
**Replies:** 2\
**Last updated:** [February 3, 2009, 12:38am UTC](https://www.ruby-forum.com/t/logging-stuff/159278 "2009-02-03T00:38:57Z")

</div>

Say I wanted to log all successful and failed saves to a special log table. But I also wanted to save the logged in user and some other session stuff. I assume I would have some sort of module included into the contro…

---

## [How-to click javascript button - and debug noob questions](https://www.ruby-forum.com/t/how-to-click-javascript-button-and-debug-noob-questions/159274)

<div class="topic-metadata">

**Author:** [@dginther](https://www.ruby-forum.com/u/dginther)\
**Replies:** 0\
**Last updated:** [February 2, 2009, 11:26pm UTC](https://www.ruby-forum.com/t/how-to-click-javascript-button-and-debug-noob-questions/159274 "2009-02-02T23:26:06Z")

</div>

Source: Contains a href to a javascript function, has an image as a clickable element. I’m trying to trigger the click by an image reference: ie.button(:src, /start-my-page/).click but I exit and get a “1” return …

---

## [Freeze gems](https://www.ruby-forum.com/t/freeze-gems/159257)

<div class="topic-metadata">

**Author:** [@josh\_richard](https://www.ruby-forum.com/u/josh_richard)\
**Replies:** 3\
**Last updated:** [February 2, 2009, 11:24pm UTC](https://www.ruby-forum.com/t/freeze-gems/159257 "2009-02-02T23:24:37Z")

</div>

Hello everyone. Anyone run into this problem? I have an rails app which is running rails 2.2.2 with rubygems 1.2.0 on a dev box. Rails is frozen and in SVN. The hosting server is running gems 0.9 which appears to b…

---

## [Habtm problem](https://www.ruby-forum.com/t/habtm-problem/159269)

<div class="topic-metadata">

**Author:** [@littleknown](https://www.ruby-forum.com/u/littleknown)\
**Replies:** 1\
**Last updated:** [February 2, 2009, 10:37pm UTC](https://www.ruby-forum.com/t/habtm-problem/159269 "2009-02-02T22:37:06Z")

</div>

I have Kids and I have Sports. I have a checkbox list of Sports for each Kid. Let’s say I make a Kid, and assign him to all 5 sports. It works, great. Let’s say I make another Kid(Kid2), and assign him to all 5 sport…

---

## [How make deployment](https://www.ruby-forum.com/t/how-make-deployment/159240)

<div class="topic-metadata">

**Author:** [@mahmoud\_cs](https://www.ruby-forum.com/u/mahmoud_cs)\
**Replies:** 2\
**Last updated:** [February 2, 2009, 9:09pm UTC](https://www.ruby-forum.com/t/how-make-deployment/159240 "2009-02-02T21:09:31Z")

</div>

how i deploy my application on virtual machine

---

## [Excessive Invalid Authenticity Token Errors](https://www.ruby-forum.com/t/excessive-invalid-authenticity-token-errors/156691)

<div class="topic-metadata">

**Author:** [@Mikel\_L](https://www.ruby-forum.com/u/Mikel_L)\
**Replies:** 2\
**Last updated:** [February 2, 2009, 9:02pm UTC](https://www.ruby-forum.com/t/excessive-invalid-authenticity-token-errors/156691 "2009-02-02T21:02:01Z")

</div>

Hello all. Got an Internal Rails 2.1.1 app. It is on an intranet and the computers accessing it do not access any other websites. I am getting a lot of invalid authenticity errors. All the pages that are generating …

---

## [Save after delete returns true but actually fails](https://www.ruby-forum.com/t/save-after-delete-returns-true-but-actually-fails/159076)

<div class="topic-metadata">

**Author:** [@farmerss](https://www.ruby-forum.com/u/farmerss)\
**Replies:** 1\
**Last updated:** [February 2, 2009, 9:01pm UTC](https://www.ruby-forum.com/t/save-after-delete-returns-true-but-actually-fails/159076 "2009-02-02T21:01:50Z")

</div>

Hi, I’m using Rails 2.2.2. I noticed that creating two references to the same database ActiveRecord object, then deleting with one of them, followed by saving with the other, true is returned, but no new record is ac…

---

## [Query help](https://www.ruby-forum.com/t/query-help/159217)

<div class="topic-metadata">

**Author:** [@newb](https://www.ruby-forum.com/u/newb)\
**Replies:** 1\
**Last updated:** [February 2, 2009, 8:43pm UTC](https://www.ruby-forum.com/t/query-help/159217 "2009-02-02T20:43:29Z")

</div>

Hi… Any ways to optimise this conditions using ternery operator if params\[:userinfo\] if params\[:userinfo\]\[:company\_id\] == nil or params\[:userinfo\]\[:company\_id\] == “Select Company” company\_id = nil else company\_id…

---

## [Elements for a related Model in a Form](https://www.ruby-forum.com/t/elements-for-a-related-model-in-a-form/159177)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 2\
**Last updated:** [February 2, 2009, 8:30pm UTC](https://www.ruby-forum.com/t/elements-for-a-related-model-in-a-form/159177 "2009-02-02T20:30:35Z")

</div>

Hello, I can’t figure out how to do this: I have a Post Model and it :has\_and\_belongs\_to\_many :tags. When I edit a Post, I want to create checkboxes or a select field (with multiple select choices), so I can add tags…

---

## [Create my own template language](https://www.ruby-forum.com/t/create-my-own-template-language/159252)

<div class="topic-metadata">

**Author:** [@mauricio](https://www.ruby-forum.com/u/mauricio)\
**Replies:** 2\
**Last updated:** [February 2, 2009, 8:01pm UTC](https://www.ruby-forum.com/t/create-my-own-template-language/159252 "2009-02-02T20:01:08Z")

</div>

Hello guys, I am starting to think that i need a templating language (just like PHP’s Smarty and JSP’s Expression Language) for simple value outputs in a page without resorting to \<%= %\>. I’m working on a I18N heavy …

---

## [To\_json conflict with json gem and rails 2.1](https://www.ruby-forum.com/t/to-json-conflict-with-json-gem-and-rails-2-1/157423)

<div class="topic-metadata">

**Author:** [@addywaddy](https://www.ruby-forum.com/u/addywaddy)\
**Replies:** 1\
**Last updated:** [February 2, 2009, 5:10pm UTC](https://www.ruby-forum.com/t/to-json-conflict-with-json-gem-and-rails-2-1/157423 "2009-02-02T17:10:40Z")

</div>

hey folks, this has been brought up twice in this group and once in rails core, but I couldn’t find a solution. Specifically, I’m using the twitter gem within my rails project, and this eventually loads in the json g…

---

## [How to glob with international or unicode file names?](https://www.ruby-forum.com/t/how-to-glob-with-international-or-unicode-file-names/117187)

<div class="topic-metadata">

**Author:** [@winterheat](https://www.ruby-forum.com/u/winterheat)\
**Replies:** 1\
**Last updated:** [February 2, 2009, 5:03pm UTC](https://www.ruby-forum.com/t/how-to-glob-with-international-or-unicode-file-names/117187 "2009-02-02T17:03:16Z")

</div>

with the Dir\[" path "\] or Dir.glob is it possible to glob the filenames with unicode or international characters in it? Right now it is returning ???.mp3 to test it, you can grab some international characters at h…

---

## [Rubyforge downloads gone?](https://www.ruby-forum.com/t/rubyforge-downloads-gone/159211)

<div class="topic-metadata">

**Author:** [@safestate](https://www.ruby-forum.com/u/safestate)\
**Replies:** 1\
**Last updated:** [February 2, 2009, 5:02pm UTC](https://www.ruby-forum.com/t/rubyforge-downloads-gone/159211 "2009-02-02T17:02:28Z")

</div>

the rubyforge zips of the older Rails versions are gone, in fact all the downloads are gone? i need the rails 2.1.0 zip file for my spree project

---

## [Scrape rankings Google](https://www.ruby-forum.com/t/scrape-rankings-google/159230)

<div class="topic-metadata">

**Author:** [@remco](https://www.ruby-forum.com/u/remco)\
**Replies:** 0\
**Last updated:** [February 2, 2009, 4:52pm UTC](https://www.ruby-forum.com/t/scrape-rankings-google/159230 "2009-02-02T16:52:41Z")

</div>

Hi, i use the code to scrape google search results. require ‘rubygems’ require ‘scrubyt’ google\_data = Scrubyt::Extractor.define do fetch ‘http://www.google.nl/’ fill\_textfield ‘q’, ‘ticket’ submit link\_title “//…

---

## [Maps](https://www.ruby-forum.com/t/maps/159222)

<div class="topic-metadata">

**Author:** [@nisha\_t](https://www.ruby-forum.com/u/nisha_t)\
**Replies:** 2\
**Last updated:** [February 2, 2009, 4:30pm UTC](https://www.ruby-forum.com/t/maps/159222 "2009-02-02T16:30:02Z")

</div>

Please tell me how to integrate google maps in my application.I tried doing it with ym4r plugin, but the command runs and gets back to command prompt without generating the required folders.

---

## [ActiveRecord::AssociationTypeMismatch (User(#54754560) expected, got User(#54510280))](https://www.ruby-forum.com/t/activerecord-associationtypemismatch-user-54754560-expected-got-user-54510280/159221)

<div class="topic-metadata">

**Author:** [@morgler](https://www.ruby-forum.com/u/morgler)\
**Replies:** 2\
**Last updated:** [February 2, 2009, 4:05pm UTC](https://www.ruby-forum.com/t/activerecord-associationtypemismatch-user-54754560-expected-got-user-54510280/159221 "2009-02-02T16:05:22Z")

</div>

i keep getting this AssociationTypeMismatch error. i think this could be a bug related to ruby/rails when using mixins. heres a short version of my code: user.rb require ‘friend\_invitation’ require ‘friendship’ clas…

---

## [Did\_not\_yield](https://www.ruby-forum.com/t/did-not-yield/159220)

<div class="topic-metadata">

**Author:** [@raimon](https://www.ruby-forum.com/u/raimon)\
**Replies:** 2\
**Last updated:** [February 2, 2009, 3:47pm UTC](https://www.ruby-forum.com/t/did-not-yield/159220 "2009-02-02T15:47:14Z")

</div>

Hello, I have some rudimentary code for loging into my app and database, it works ok (I think) but in Production, it does some strange things. I’ve reduce the problem to a more simplest approach, without rendering, s…

---

## [Slow performance in ruby 1.9.1](https://www.ruby-forum.com/t/slow-performance-in-ruby-1-9-1/159216)

<div class="topic-metadata">

**Author:** [@andreas](https://www.ruby-forum.com/u/andreas)\
**Replies:** 0\
**Last updated:** [February 2, 2009, 1:44pm UTC](https://www.ruby-forum.com/t/slow-performance-in-ruby-1-9-1/159216 "2009-02-02T13:44:20Z")

</div>

I’m not sure what ActiveRecord support status is for ruby 1.9.1, so I apologize if this report is premature. By the way, I’m only using ActiveRecord here, not Rails. I notice a 4x slow down in my program when I switch…

---

## [Select\_time starts with 00:00](https://www.ruby-forum.com/t/select-time-starts-with-00-00/159214)

<div class="topic-metadata">

**Author:** [@mjayakumar2k6](https://www.ruby-forum.com/u/mjayakumar2k6)\
**Replies:** 1\
**Last updated:** [February 2, 2009, 1:41pm UTC](https://www.ruby-forum.com/t/select-time-starts-with-00-00/159214 "2009-02-02T13:41:34Z")

</div>

hi, I want to make my select\_time starts with 00:00. how can we use this helper. please help me. thanks in advance jk

---

## [Which command is used to list the gems used by an application?](https://www.ruby-forum.com/t/which-command-is-used-to-list-the-gems-used-by-an-application/159192)

<div class="topic-metadata">

**Author:** [@olivierntk](https://www.ruby-forum.com/u/olivierntk)\
**Replies:** 4\
**Last updated:** [February 2, 2009, 1:38pm UTC](https://www.ruby-forum.com/t/which-command-is-used-to-list-the-gems-used-by-an-application/159192 "2009-02-02T13:38:24Z")

</div>

Hi, I have been working on an application for a few months and installed some gems, but I don’t remember the exact list. I want to deploy my app and I need to install the gems I used. Which command line is used for th…

---

## [Setting updated\_at in database](https://www.ruby-forum.com/t/setting-updated-at-in-database/159201)

<div class="topic-metadata">

**Author:** [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Replies:** 4\
**Last updated:** [February 2, 2009, 12:58pm UTC](https://www.ruby-forum.com/t/setting-updated-at-in-database/159201 "2009-02-02T12:58:01Z")

</div>

Hi, I have an ‘updated\_at’ field in events table. Whenever I am creating an event it gets set to Time.now. But I don’t want to set current time in it. But I want to set another time. How should I do that? I tried lik…

---

## [Query help](https://www.ruby-forum.com/t/query-help/159191)

<div class="topic-metadata">

**Author:** [@newb](https://www.ruby-forum.com/u/newb)\
**Replies:** 1\
**Last updated:** [February 2, 2009, 12:34pm UTC](https://www.ruby-forum.com/t/query-help/159191 "2009-02-02T12:34:44Z")

</div>

hi… what does the below code ? conditions \<\< “company\_id = #{company\_id}” unless company\_id.nil? pls explain. thank you

---

## [Query that display the list for todays records](https://www.ruby-forum.com/t/query-that-display-the-list-for-todays-records/159195)

<div class="topic-metadata">

**Author:** [@johnroyworld](https://www.ruby-forum.com/u/johnroyworld)\
**Replies:** 1\
**Last updated:** [February 2, 2009, 11:39am UTC](https://www.ruby-forum.com/t/query-that-display-the-list-for-todays-records/159195 "2009-02-02T11:39:13Z")

</div>

hello all, How do i make a query on active records that would display the list of all records that happened on this day or lets says today’s transaction records. “Datetime” is my data type of the field on the databas…

---

## [Ruby on Rails Day @ JAX India 2009 Conference](https://www.ruby-forum.com/t/ruby-on-rails-day-jax-india-2009-conference/159203)

<div class="topic-metadata">

**Author:** [@2009jax](https://www.ruby-forum.com/u/2009jax)\
**Replies:** 0\
**Last updated:** [February 2, 2009, 11:31am UTC](https://www.ruby-forum.com/t/ruby-on-rails-day-jax-india-2009-conference/159203 "2009-02-02T11:31:30Z")

</div>

This year at the JAX India 2009 conference, sda-india.com promises to stage some JAX India Specials that have never been thought of before. Introducing for the very first time at JAX India 2009 is JAX University Day a…

---

## [Auto\_complete](https://www.ruby-forum.com/t/auto-complete/159202)

<div class="topic-metadata">

**Author:** [@tuhin\_cse99](https://www.ruby-forum.com/u/tuhin_cse99)\
**Replies:** 0\
**Last updated:** [February 2, 2009, 11:29am UTC](https://www.ruby-forum.com/t/auto-complete/159202 "2009-02-02T11:29:26Z")

</div>

Hi guys, I have install auto\_complete from here then #my controller is auto\_complete\_for :post, :title protect\_from\_forgery :only =\> \[:create, :delete, :update\] #My view \<%= text\_field\_with\_auto\_complete :post, :…

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

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