# Rails

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

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

---

## [Looking for a place to post an add](https://www.ruby-forum.com/t/looking-for-a-place-to-post-an-add/194030)

<div class="topic-metadata">

**Author:** [@jsn1](https://www.ruby-forum.com/u/jsn1)\
**Replies:** 3\
**Last updated:** [August 29, 2010, 1:12am UTC](https://www.ruby-forum.com/t/looking-for-a-place-to-post-an-add/194030 "2010-08-29T01:12:29Z")

</div>

Hi all We need to have a parent’s association web site redesigned and rebuilt, amy be using RoR or may be using a CMS. What places do you recommend to an add? Please advise jsn

---

## [Devise Nested Resources](https://www.ruby-forum.com/t/devise-nested-resources/193340)

<div class="topic-metadata">

**Author:** [@dfx](https://www.ruby-forum.com/u/dfx)\
**Replies:** 2\
**Last updated:** [August 29, 2010, 12:35am UTC](https://www.ruby-forum.com/t/devise-nested-resources/193340 "2010-08-29T00:35:01Z")

</div>

I’m working on a new Rails (v3.0.0.rc) application using the Devise (v1.1.1) gem. In my application I have setup a User model which includes the person’s e-mail address and name. I have also setup the following mode…

---

## [Find\_in\_batches vs limit](https://www.ruby-forum.com/t/find-in-batches-vs-limit/194043)

<div class="topic-metadata">

**Author:** [@badnaam](https://www.ruby-forum.com/u/badnaam)\
**Replies:** 1\
**Last updated:** [August 28, 2010, 11:27pm UTC](https://www.ruby-forum.com/t/find-in-batches-vs-limit/194043 "2010-08-28T23:27:43Z")

</div>

Is the :limit option in the regular find call effectively same as doing find\_in\_batches? or does doing something like the following loads “all” of the record and then returns only 5? find(:all, :conditions =\> \[‘age \> …

---

## [Validates\_uniqueness\_of missing in rails 3.0 rc2?](https://www.ruby-forum.com/t/validates-uniqueness-of-missing-in-rails-3-0-rc2/194042)

<div class="topic-metadata">

**Author:** [@anthonys](https://www.ruby-forum.com/u/anthonys)\
**Replies:** 1\
**Last updated:** [August 28, 2010, 11:13pm UTC](https://www.ruby-forum.com/t/validates-uniqueness-of-missing-in-rails-3-0-rc2/194042 "2010-08-28T23:13:39Z")

</div>

Has anybody noticed validates\_uniqueness\_of missing in rails 3.0 rc2? I’m not sure if this is a bug or I’m just doing something wrong. Here’s what I’m doing. Class 1: class Title \< ActiveRecord::Base validates\_lengt…

---

## [Ubuntu Local Ruby Server Help](https://www.ruby-forum.com/t/ubuntu-local-ruby-server-help/194039)

<div class="topic-metadata">

**Author:** [@andrewdon](https://www.ruby-forum.com/u/andrewdon)\
**Replies:** 0\
**Last updated:** [August 28, 2010, 8:06pm UTC](https://www.ruby-forum.com/t/ubuntu-local-ruby-server-help/194039 "2010-08-28T20:06:33Z")

</div>

Hello everyone, I’m extremely new to Ubuntu, and kind of new to Ruby on Rails. I have a question that I was hoping someone come kindly help me with. My company has recently purchased a Facebook script that has been d…

---

## [Rails taking too much ram](https://www.ruby-forum.com/t/rails-taking-too-much-ram/194034)

<div class="topic-metadata">

**Author:** [@npnpnp](https://www.ruby-forum.com/u/npnpnp)\
**Replies:** 0\
**Last updated:** [August 28, 2010, 7:26pm UTC](https://www.ruby-forum.com/t/rails-taking-too-much-ram/194034 "2010-08-28T19:26:32Z")

</div>

Hi, I am trying to deploy my application that requires rails-2.3.8, ferret\_server running in background(DRB) and workling\_client+sterling. Above configuration is running on a VPS with 512MB, latest Ruby Enterpise Ed…

---

## [How to make unique ids for URLs](https://www.ruby-forum.com/t/how-to-make-unique-ids-for-urls/194022)

<div class="topic-metadata">

**Author:** [@closedbook](https://www.ruby-forum.com/u/closedbook)\
**Replies:** 8\
**Last updated:** [August 28, 2010, 6:52pm UTC](https://www.ruby-forum.com/t/how-to-make-unique-ids-for-urls/194022 "2010-08-28T18:52:35Z")

</div>

The path I currently have for a record in the post table is this: www.myrailsapp.com/post/id here’s the route: map.resources :posts, :has\_many =\> :comments Any thoughts on how you would make the above this? www.myra…

---

## [Ruby on Rails IDE](https://www.ruby-forum.com/t/ruby-on-rails-ide/193780)

<div class="topic-metadata">

**Author:** [@ZRiddick](https://www.ruby-forum.com/u/ZRiddick)\
**Replies:** 62\
**Last updated:** [August 28, 2010, 3:35pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-ide/193780 "2010-08-28T15:35:14Z")

</div>

Really strange that I cannot find a lot of discussion on a good RoR IDE. Most of what I have pulled up dates to 2008. Also the Eclipse IDE has trouble finding the JRE running on Windows 7 64 bit. Very surprised that …

---

## [Cannot convert string to integer error with arrays and hash](https://www.ruby-forum.com/t/cannot-convert-string-to-integer-error-with-arrays-and-hash/193966)

<div class="topic-metadata">

**Author:** [@jakx12](https://www.ruby-forum.com/u/jakx12)\
**Replies:** 16\
**Last updated:** [August 28, 2010, 3:16pm UTC](https://www.ruby-forum.com/t/cannot-convert-string-to-integer-error-with-arrays-and-hash/193966 "2010-08-28T15:16:35Z")

</div>

Ok so I am trying to read a hash of arrays and I seem to be getting a cannot convert string to integer error. Here is my code: \<% @information\[‘food’\]\[‘servings’\].each do |servings| %\> \<% servings\[‘serving’\].each do |…

---

## [How do I update middleware for Rails 3?](https://www.ruby-forum.com/t/how-do-i-update-middleware-for-rails-3/186501)

<div class="topic-metadata">

**Author:** [@bazzel](https://www.ruby-forum.com/u/bazzel)\
**Replies:** 1\
**Last updated:** [August 28, 2010, 1:46pm UTC](https://www.ruby-forum.com/t/how-do-i-update-middleware-for-rails-3/186501 "2010-08-28T13:46:07Z")

</div>

Hello, I’m updating an application to Rails 3 that has Uploadify implemented as described by John Nunemaker here: http://railstips.org/blog/archives/2009/07/21/uploadify-and-rails23/ My questions are: Where should…

---

## [Ruby Dicom](https://www.ruby-forum.com/t/ruby-dicom/193901)

<div class="topic-metadata">

**Author:** [@adil](https://www.ruby-forum.com/u/adil)\
**Replies:** 1\
**Last updated:** [August 28, 2010, 11:07am UTC](https://www.ruby-forum.com/t/ruby-dicom/193901 "2010-08-28T11:07:14Z")

</div>

Hi, I am struggling with dicom iamge view in rails app. I used dcim and rmagick gem. I followed http://dicom.rubyforge.org/tutorial1.htm and http://www.clubpacswestmi.net/ ,but didn’t happend anyt…

---

## [Dicom - ruby](https://www.ruby-forum.com/t/dicom-ruby/193906)

<div class="topic-metadata">

**Author:** [@adilbitk](https://www.ruby-forum.com/u/adilbitk)\
**Replies:** 1\
**Last updated:** [August 28, 2010, 10:40am UTC](https://www.ruby-forum.com/t/dicom-ruby/193906 "2010-08-28T10:40:07Z")

</div>

Hi, I am struggling with dicom iamge view in rails app. I used dcim and rmagick gem. I followed http://dicom.rubyforge.org/tutorial1.htm and http://www.clubpacswestmi.net/ ,but didn’t happend anyt…

---

## [Rails 3 rendering XML problem](https://www.ruby-forum.com/t/rails-3-rendering-xml-problem/194025)

<div class="topic-metadata">

**Author:** [@fcruxen](https://www.ruby-forum.com/u/fcruxen)\
**Replies:** 0\
**Last updated:** [August 28, 2010, 7:17am UTC](https://www.ruby-forum.com/t/rails-3-rendering-xml-problem/194025 "2010-08-28T07:17:24Z")

</div>

I have Rails 3 application (running Rails RC1), and I have the following controller: class PluginsController \< ApplicationController respond\_to :html, :xml, :json def index @plugins = Plugin.all respond\_with(@plugi…

---

## [\[ANN\] A Rails plugin for easier versioning of RESTful APIs](https://www.ruby-forum.com/t/ann-a-rails-plugin-for-easier-versioning-of-restful-apis/194026)

<div class="topic-metadata">

**Author:** [@gnufied](https://www.ruby-forum.com/u/gnufied)\
**Replies:** 0\
**Last updated:** [August 28, 2010, 6:55am UTC](https://www.ruby-forum.com/t/ann-a-rails-plugin-for-easier-versioning-of-restful-apis/194026 "2010-08-28T06:55:01Z")

</div>

Hi folks, I am glad to announce http://github.com/gnufied/restful\_route\_version, a Rails plugin for making versioning of RESTful routes easier. More information can be found http://github.com/gnufied/restful\_route\_ve…

---

## [Strange problem connecting to LinkedIn](https://www.ruby-forum.com/t/strange-problem-connecting-to-linkedin/194024)

<div class="topic-metadata">

**Author:** [@lynchnco](https://www.ruby-forum.com/u/lynchnco)\
**Replies:** 0\
**Last updated:** [August 28, 2010, 6:54am UTC](https://www.ruby-forum.com/t/strange-problem-connecting-to-linkedin/194024 "2010-08-28T06:54:11Z")

</div>

Hello, So I installed the ‘linkedin’ gem, an oauth wrapper allowing you to connect to LinkedIn. I followed this tutorial (http://pivotallabs.com/users/will/blog/articles/1096-linkedin-gem-for-a-web-app) quite fastidi…

---

## [\[ANN\] Brakeman, a vulnerability scanner for RoR apps](https://www.ruby-forum.com/t/ann-brakeman-a-vulnerability-scanner-for-ror-apps/194020)

<div class="topic-metadata">

**Author:** [@justincollins](https://www.ruby-forum.com/u/justincollins)\
**Replies:** 0\
**Last updated:** [August 28, 2010, 4:56am UTC](https://www.ruby-forum.com/t/ann-brakeman-a-vulnerability-scanner-for-ror-apps/194020 "2010-08-28T04:56:46Z")

</div>

Hi all, I would like to introduce you to brakeman, a static analysis tool which searches for security vulnerabilities in Ruby on Rails applications. Although this is the first public release, brakeman can already help…

---

## [Rails 3 warning](https://www.ruby-forum.com/t/rails-3-warning/194018)

<div class="topic-metadata">

**Author:** [@bruparel](https://www.ruby-forum.com/u/bruparel)\
**Replies:** 0\
**Last updated:** [August 28, 2010, 4:42am UTC](https://www.ruby-forum.com/t/rails-3-warning/194018 "2010-08-28T04:42:05Z")

</div>

…/home/bruparel/.rvm/gems/ruby-1.9.2-head/gems/right\_aws-2.0.0/lib/awsbase/support.rb:47: warning: toplevel constant ClientStatus referenced by Client::ClientStatus /home/bruparel/.rvm/gems/ruby-1.9.2-head/gems/right\_…

---

## [Anyboby know to integrate youtube videos in rails app](https://www.ruby-forum.com/t/anyboby-know-to-integrate-youtube-videos-in-rails-app/194015)

<div class="topic-metadata">

**Author:** [@nirosh](https://www.ruby-forum.com/u/nirosh)\
**Replies:** 1\
**Last updated:** [August 28, 2010, 2:38am UTC](https://www.ruby-forum.com/t/anyboby-know-to-integrate-youtube-videos-in-rails-app/194015 "2010-08-28T02:38:41Z")

</div>

i have to list all the videos of a youtube user.so how can i do that in my rails project? -nirosh-

---

## [TimeZone daylight savings time problems](https://www.ruby-forum.com/t/timezone-daylight-savings-time-problems/149185)

<div class="topic-metadata">

**Author:** [@phil](https://www.ruby-forum.com/u/phil)\
**Replies:** 8\
**Last updated:** [August 28, 2010, 12:26am UTC](https://www.ruby-forum.com/t/timezone-daylight-savings-time-problems/149185 "2010-08-28T00:26:59Z")

</div>

Here is the following from my console: Time.now =\> Mon Sep 22 11:33:34 +0200 2008 Time.now.utc\_offset =\> 7200 TimeZone\[Time.now.utc\_offset\] =\> #\<TimeZone:0x11aea90 @tzinfo=nil, @utc\_offset=7200, @name=“Athens”\> …

---

## [Active\_support/mini\_xml question/bug?](https://www.ruby-forum.com/t/active-support-mini-xml-question-bug/194014)

<div class="topic-metadata">

**Author:** [@pitosalas](https://www.ruby-forum.com/u/pitosalas)\
**Replies:** 0\
**Last updated:** [August 27, 2010, 11:33pm UTC](https://www.ruby-forum.com/t/active-support-mini-xml-question-bug/194014 "2010-08-27T23:33:00Z")

</div>

Seems to me that {}.to\_xml is generating one level too many of xml structure, but I may be interpreting things incorrectly… I’ve reduced my question to a very simple case: b =\> {“elist”=\>\[{:element=\>1}, {:element=\>2…

---

## [Cannot insert data into mysql](https://www.ruby-forum.com/t/cannot-insert-data-into-mysql/193979)

<div class="topic-metadata">

**Author:** [@irfan](https://www.ruby-forum.com/u/irfan)\
**Replies:** 2\
**Last updated:** [August 27, 2010, 11:26pm UTC](https://www.ruby-forum.com/t/cannot-insert-data-into-mysql/193979 "2010-08-27T23:26:06Z")

</div>

When I am going to create a new product Item into my depot application I got the following error: Mysql::Error: #23000Duplicate entry ‘0’ for key 1: INSERT INTO products (image\_url, date\_available, price, title, de…

---

## [Rails 3: Routing constrants issue](https://www.ruby-forum.com/t/rails-3-routing-constrants-issue/193992)

<div class="topic-metadata">

**Author:** [@glenngore](https://www.ruby-forum.com/u/glenngore)\
**Replies:** 1\
**Last updated:** [August 27, 2010, 10:46pm UTC](https://www.ruby-forum.com/t/rails-3-routing-constrants-issue/193992 "2010-08-27T22:46:52Z")

</div>

Hi, I’d like to have a route that looks like: http://webhost.com/myresource/random.server.com/folderOnServer/resourceName The params I’d like to come out of that are: :server = random.server.com :folder = folderOnSe…

---

## [Sumit\_tag](https://www.ruby-forum.com/t/sumit-tag/193987)

<div class="topic-metadata">

**Author:** [@amit-singh](https://www.ruby-forum.com/u/amit-singh)\
**Replies:** 4\
**Last updated:** [August 27, 2010, 9:53pm UTC](https://www.ruby-forum.com/t/sumit-tag/193987 "2010-08-27T21:53:01Z")

</div>

hii all, i don’t know how to ask this question because am new to rails. but i want to know to is which part of code sumit\_tag will take you means after execution of sumit\_tag where control of programme goes??

---

## [Reserved column names in Rails 3](https://www.ruby-forum.com/t/reserved-column-names-in-rails-3/194007)

<div class="topic-metadata">

**Author:** [@paul](https://www.ruby-forum.com/u/paul)\
**Replies:** 0\
**Last updated:** [August 27, 2010, 9:21pm UTC](https://www.ruby-forum.com/t/reserved-column-names-in-rails-3/194007 "2010-08-27T21:21:24Z")

</div>

I’m attempting to upgrade one of my sites to Rails 3 and I’m getting the following error: field\_changed? is defined by ActiveRecord The particular table it is referring to has a column named “field”, and I’m assuming…

---

## [Drop down](https://www.ruby-forum.com/t/drop-down/193976)

<div class="topic-metadata">

**Author:** [@oliver\_torres](https://www.ruby-forum.com/u/oliver_torres)\
**Replies:** 2\
**Last updated:** [August 27, 2010, 9:07pm UTC](https://www.ruby-forum.com/t/drop-down/193976 "2010-08-27T21:07:02Z")

</div>

Guys, I have a partial for a form here: \<% form\_remote\_tag(:controller =\> “posts”, :action =\> “create”) do %\> \<%= label\_tag(:title, “Title”) %\> \<%= text\_area\_tag(:title, nil) %\> \<%= label\_tag(:body, “Description”) …

---

## [Dynamically creating the html for forms created by user in application](https://www.ruby-forum.com/t/dynamically-creating-the-html-for-forms-created-by-user-in-application/193036)

<div class="topic-metadata">

**Author:** [@rtdp](https://www.ruby-forum.com/u/rtdp)\
**Replies:** 3\
**Last updated:** [August 27, 2010, 6:40pm UTC](https://www.ruby-forum.com/t/dynamically-creating-the-html-for-forms-created-by-user-in-application/193036 "2010-08-27T18:40:24Z")

</div>

hello, In my rails application, a user creates a form by selecting the type of the data i.e.(string, integer, text) and he then gives input filed name for it. i.e. if user wants Name as capition, txtname as input fie…

---

## [Database relationships question](https://www.ruby-forum.com/t/database-relationships-question/193922)

<div class="topic-metadata">

**Author:** [@jooma2](https://www.ruby-forum.com/u/jooma2)\
**Replies:** 3\
**Last updated:** [August 27, 2010, 6:18pm UTC](https://www.ruby-forum.com/t/database-relationships-question/193922 "2010-08-27T18:18:43Z")

</div>

Hello. For fun, I’m making a text based web MMO. I have the following tables to consider. characters quests objectives So right now my quests can have many objectives (ie: kill 10 wolves, kill pack leader). So th…

---

## [How can I do an onChange event with Rails3 and jQuery?](https://www.ruby-forum.com/t/how-can-i-do-an-onchange-event-with-rails3-and-jquery/194001)

<div class="topic-metadata">

**Author:** [@andy](https://www.ruby-forum.com/u/andy)\
**Replies:** 2\
**Last updated:** [August 27, 2010, 6:06pm UTC](https://www.ruby-forum.com/t/how-can-i-do-an-onchange-event-with-rails3-and-jquery/194001 "2010-08-27T18:06:02Z")

</div>

I’m using jQuery with Rails3. I’d like to trigger some AJAX on the change of a SELECT element. I’ve tried the old Prototype way: {:onchange =\>remote\_function(:update =\> “mytable”, :url =\> “/xxx”)} I get a JS error:…

---

## [Job](https://www.ruby-forum.com/t/job/194002)

<div class="topic-metadata">

**Author:** [@shyam\_mohan](https://www.ruby-forum.com/u/shyam_mohan)\
**Replies:** 0\
**Last updated:** [August 27, 2010, 5:58pm UTC](https://www.ruby-forum.com/t/job/194002 "2010-08-27T17:58:48Z")

</div>

Ruby on Rails developers at Talent Metric http://talentmetric.com/ in Hyderabad, India We are a seed funded web product startup based out of Hyderabad. Looking to hire full time developers with: Strong programming …

---

## [Rails 3 named routes](https://www.ruby-forum.com/t/rails-3-named-routes/193924)

<div class="topic-metadata">

**Author:** [@WSzP](https://www.ruby-forum.com/u/WSzP)\
**Replies:** 2\
**Last updated:** [August 27, 2010, 5:51pm UTC](https://www.ruby-forum.com/t/rails-3-named-routes/193924 "2010-08-27T17:51:12Z")

</div>

Hello, In Rails 2 the following works: map.resources :domains, :as =\> ‘domainek’, :path\_names =\> { :new =\> ‘uj’, :edit =\> ‘szerkesztes’ } In Rails 3 what is the good way to do this? Basically when I write domainek/u…

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

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