# Rails

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

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

---

## [How to make google map form data with ruby](https://www.ruby-forum.com/t/how-to-make-google-map-form-data-with-ruby/134361)

<div class="topic-metadata">

**Author:** [@saras](https://www.ruby-forum.com/u/saras)\
**Replies:** 6\
**Last updated:** [April 10, 2008, 6:20am UTC](https://www.ruby-forum.com/t/how-to-make-google-map-form-data-with-ruby/134361 "2008-04-10T06:20:16Z")

</div>

so how to i make real time sever for web with the server use google map made form data in ruby

---

## [Migration changed :first row of table](https://www.ruby-forum.com/t/migration-changed-first-row-of-table/134360)

<div class="topic-metadata">

**Author:** [@rashantha](https://www.ruby-forum.com/u/rashantha)\
**Replies:** 3\
**Last updated:** [April 10, 2008, 5:26am UTC](https://www.ruby-forum.com/t/migration-changed-first-row-of-table/134360 "2008-04-10T05:26:27Z")

</div>

i added a column to the model and then deleted it. after that a :first call gave me a total arbitrary record. it changed from #9 to #75. all the data still remains in the table but a second migration to add the col wi…

---

## [Need to cache the hashtable](https://www.ruby-forum.com/t/need-to-cache-the-hashtable/134291)

<div class="topic-metadata">

**Author:** [@srikanth\_u37](https://www.ruby-forum.com/u/srikanth_u37)\
**Replies:** 2\
**Last updated:** [April 10, 2008, 5:06am UTC](https://www.ruby-forum.com/t/need-to-cache-the-hashtable/134291 "2008-04-10T05:06:48Z")

</div>

Hi, I have to cache the hashtable which contains array of objects. I cannot store it in session because the data it contains may be huge sometimes. Can any one please help which is the best way to store the hashtable …

---

## [Howto pass hashes in params?](https://www.ruby-forum.com/t/howto-pass-hashes-in-params/134317)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [April 10, 2008, 4:37am UTC](https://www.ruby-forum.com/t/howto-pass-hashes-in-params/134317 "2008-04-10T04:37:07Z")

</div>

Hello, i try to pass a hash in params. h = Hash.new \[…\] \<%= link\_to ‘next’,:url =\> {:controller =\> ‘myController’, :action =\> ‘myAction’, :h =\> h} %\> The myController-controller: def myController @h = params\[:h\] …

---

## [Paginate with Rails 2.0.2 question](https://www.ruby-forum.com/t/paginate-with-rails-2-0-2-question/133383)

<div class="topic-metadata">

**Author:** [@ron](https://www.ruby-forum.com/u/ron)\
**Replies:** 10\
**Last updated:** [April 10, 2008, 3:44am UTC](https://www.ruby-forum.com/t/paginate-with-rails-2-0-2-question/133383 "2008-04-10T03:44:40Z")

</div>

Hi, So I’m using @post\_pages, @posts = paginate :posts, :per\_page =\> 10 to paginate. But I have rails 2.0.2 on my VPS. Now this version of paginate throws an error. What happened to classic pagination and what is d…

---

## [First look](https://www.ruby-forum.com/t/first-look/134353)

<div class="topic-metadata">

**Author:** [@Gmail\_SPixelCriativ](https://www.ruby-forum.com/u/Gmail_SPixelCriativ)\
**Replies:** 1\
**Last updated:** [April 10, 2008, 2:06am UTC](https://www.ruby-forum.com/t/first-look/134353 "2008-04-10T02:06:26Z")

</div>

Hi Everybody, This is my first time in touch with Rails, and i know i might be a strange in the list but i’m a webdesigner and developer, from Brazil… and i was looking for in the internet about Rails and Ruby on Rail…

---

## [Strange error. Don't know what to ask](https://www.ruby-forum.com/t/strange-error-dont-know-what-to-ask/134338)

<div class="topic-metadata">

**Author:** [@comopasta](https://www.ruby-forum.com/u/comopasta)\
**Replies:** 4\
**Last updated:** [April 10, 2008, 1:41am UTC](https://www.ruby-forum.com/t/strange-error-dont-know-what-to-ask/134338 "2008-04-10T01:41:53Z")

</div>

Hi guys, I’m puzzled by an error I’m getting in my app. I have some declarations in my show method: GET /tabs/1 GET /tabs/1.xml def show @tab = Tab.find(params\[:id\]) @videos = Video.find(:all, :conditions =\> \[“tab\_i…

---

## [Associating has\_many through on create](https://www.ruby-forum.com/t/associating-has-many-through-on-create/134351)

<div class="topic-metadata">

**Author:** [@jjkiesch](https://www.ruby-forum.com/u/jjkiesch)\
**Replies:** 0\
**Last updated:** [April 10, 2008, 1:39am UTC](https://www.ruby-forum.com/t/associating-has-many-through-on-create/134351 "2008-04-10T01:39:33Z")

</div>

when my models had a HABTM relationship, i got the cool method that assigns relational items when creating a new record. the simple example that i can think of would be a habtm between posts and categories. if i’m cr…

---

## [Merge error?](https://www.ruby-forum.com/t/merge-error/134349)

<div class="topic-metadata">

**Author:** [@edberner](https://www.ruby-forum.com/u/edberner)\
**Replies:** 0\
**Last updated:** [April 10, 2008, 12:19am UTC](https://www.ruby-forum.com/t/merge-error/134349 "2008-04-10T00:19:27Z")

</div>

When I write this line \<%= round\_form.select :round, :action, \[“a”, “b”, “c”, “d”\] %\> I get this. What gives? undefined method \`merge’ for \[“a”, “b”, “c”, “d”\]:Array

---

## [Extracting image data](https://www.ruby-forum.com/t/extracting-image-data/134240)

<div class="topic-metadata">

**Author:** [@jfaulkenberry](https://www.ruby-forum.com/u/jfaulkenberry)\
**Replies:** 5\
**Last updated:** [April 10, 2008, 12:03am UTC](https://www.ruby-forum.com/t/extracting-image-data/134240 "2008-04-10T00:03:38Z")

</div>

Hi there, I’ve got an app that processes images, at the moment I’m using imagemagick to do it. I’ve been extracting data from the images using image macgick but it’s really slow at doing this (width, height, file typ…

---

## [Remote\_function problem](https://www.ruby-forum.com/t/remote-function-problem/134198)

<div class="topic-metadata">

**Author:** [@sjglazer](https://www.ruby-forum.com/u/sjglazer)\
**Replies:** 3\
**Last updated:** [April 10, 2008, 12:03am UTC](https://www.ruby-forum.com/t/remote-function-problem/134198 "2008-04-10T00:03:02Z")

</div>

Hi there, I have the following code in my view: \<%= check\_box\_tag ‘checkopen’, 1, params\[:checkopen\] == ‘1’, :onclick =\> remote\_function( :url =\> {:action =\> ‘index’) %\>Open Now But for some reason whenever the box …

---

## [JRuby and Ruby integration](https://www.ruby-forum.com/t/jruby-and-ruby-integration/134247)

<div class="topic-metadata">

**Author:** [@karthikeyan](https://www.ruby-forum.com/u/karthikeyan)\
**Replies:** 8\
**Last updated:** [April 10, 2008, 12:00am UTC](https://www.ruby-forum.com/t/jruby-and-ruby-integration/134247 "2008-04-10T00:00:42Z")

</div>

Hi, I have developed an application using ROR. For one feature, now I have to use JRuby. I have installed JRuby in my system. I included the follwing statement in my controller. include Java I got the following erro…

---

## [Smarter forms?](https://www.ruby-forum.com/t/smarter-forms/134245)

<div class="topic-metadata">

**Author:** [@kyku](https://www.ruby-forum.com/u/kyku)\
**Replies:** 1\
**Last updated:** [April 9, 2008, 11:54pm UTC](https://www.ruby-forum.com/t/smarter-forms/134245 "2008-04-09T23:54:14Z")

</div>

Hello, has anyone heard of plugin that would intercept a data type of an active record field and returned an input field suitable for that field? Something like numerical text field for a Fixnum and so on.

---

## [Ruby on Rails competitive technologies?](https://www.ruby-forum.com/t/ruby-on-rails-competitive-technologies/134334)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [April 9, 2008, 11:38pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-competitive-technologies/134334 "2008-04-09T23:38:22Z")

</div>

Hi all… I’m pretty new to ROR, im reading a book on ROR and doing some tutorials for it. I was wondering, what other technologies out there that is competing with ROR? I’ve search around and didn’t have any luck fin…

---

## [\[ANN\] Substruct 1.0.a3 released. RoR e-commerce, cms, shopping cart](https://www.ruby-forum.com/t/ann-substruct-1-0-a3-released-ror-e-commerce-cms-shopping-cart/134343)

<div class="topic-metadata">

**Author:** [@subimage](https://www.ruby-forum.com/u/subimage)\
**Replies:** 0\
**Last updated:** [April 9, 2008, 11:25pm UTC](https://www.ruby-forum.com/t/ann-substruct-1-0-a3-released-ror-e-commerce-cms-shopping-cart/134343 "2008-04-09T23:25:27Z")

</div>

Substruct, the RoR e-commerce/cms engine just dropped version 1.0.a3 with a flurry of activity the past few days. HOME PAGE: http://substruct.googlecode.com/ DOWNLOAD: http://substruct.googlecode.com/files/substruct…

---

## [Problem with text\_field\_with\_auto\_complete](https://www.ruby-forum.com/t/problem-with-text-field-with-auto-complete/134081)

<div class="topic-metadata">

**Author:** [@pimeamark](https://www.ruby-forum.com/u/pimeamark)\
**Replies:** 5\
**Last updated:** [April 9, 2008, 10:21pm UTC](https://www.ruby-forum.com/t/problem-with-text-field-with-auto-complete/134081 "2008-04-09T22:21:22Z")

</div>

I Just looked into how to use text\_field\_with\_auto\_complete, but for some reason it wont work on my page. It gives me this error as an undefined method. undefined method \`text\_field\_with\_auto\_complete’ for #ActionVie…

---

## [Are all helpers accessible to all controllers?](https://www.ruby-forum.com/t/are-all-helpers-accessible-to-all-controllers/134321)

<div class="topic-metadata">

**Author:** [@doug316](https://www.ruby-forum.com/u/doug316)\
**Replies:** 2\
**Last updated:** [April 9, 2008, 9:53pm UTC](https://www.ruby-forum.com/t/are-all-helpers-accessible-to-all-controllers/134321 "2008-04-09T21:53:29Z")

</div>

In my app I have model helpers with the same names, such that each controller should be calling the correct helper within its own helper’s namespace. Isn’t this the expected behavior? It appears that when I call a hel…

---

## [Unit Tests do not migrate correctly](https://www.ruby-forum.com/t/unit-tests-do-not-migrate-correctly/133941)

<div class="topic-metadata">

**Author:** [@Alan9608](https://www.ruby-forum.com/u/Alan9608)\
**Replies:** 6\
**Last updated:** [April 9, 2008, 9:44pm UTC](https://www.ruby-forum.com/t/unit-tests-do-not-migrate-correctly/133941 "2008-04-09T21:44:40Z")

</div>

I have a collumn in my model which is a :decimal, :precision- 10, :scale=\>2 It needs to hold numbers from 0 to 4294967295. This is the output from inet\_aton(‘xxx.xxx.xxx.xxx’) in mysql. I NEED to have an unsigned…

---

## [Mongrel cluster "Desc " failed error](https://www.ruby-forum.com/t/mongrel-cluster-desc-failed-error/134314)

<div class="topic-metadata">

**Author:** [@parki](https://www.ruby-forum.com/u/parki)\
**Replies:** 0\
**Last updated:** [April 9, 2008, 8:11pm UTC](https://www.ruby-forum.com/t/mongrel-cluster-desc-failed-error/134314 "2008-04-09T20:11:21Z")

</div>

Just wanted to throw this out there one more time to see if anyone has any ideas: I am getting the following Runtime error when I first log onto my application: "Desc " failed, does it exist? error Notice the space …

---

## [Undefined method 'auth' for MyLibrary:Class](https://www.ruby-forum.com/t/undefined-method-auth-for-mylibrary-class/134308)

<div class="topic-metadata">

**Author:** [@cumom](https://www.ruby-forum.com/u/cumom)\
**Replies:** 2\
**Last updated:** [April 9, 2008, 7:28pm UTC](https://www.ruby-forum.com/t/undefined-method-auth-for-mylibrary-class/134308 "2008-04-09T19:28:49Z")

</div>

I have a file my\_library.rb in the lib folder. class MyLibrary def auth(username,password) end end I know it doesn’t do anything yet, but I wanted to eliminate the possibility of errors in the method. class MyCont…

---

## [How best to reach out to Ruby developers in the Bay Area?](https://www.ruby-forum.com/t/how-best-to-reach-out-to-ruby-developers-in-the-bay-area/134306)

<div class="topic-metadata">

**Author:** [@carladeluxe](https://www.ruby-forum.com/u/carladeluxe)\
**Replies:** 1\
**Last updated:** [April 9, 2008, 7:25pm UTC](https://www.ruby-forum.com/t/how-best-to-reach-out-to-ruby-developers-in-the-bay-area/134306 "2008-04-09T19:25:35Z")

</div>

Hi, We are looking to hire someone fluent/proficient in Ruby, but I fear we are going about it the wrong way. How best to reach those looking for project work? Cheers and thanks, Carla de Luca San Francisco, CA

---

## [Help with migrations and backward-incompatible model changes](https://www.ruby-forum.com/t/help-with-migrations-and-backward-incompatible-model-changes/134302)

<div class="topic-metadata">

**Author:** [@Leo\_Soto](https://www.ruby-forum.com/u/Leo_Soto)\
**Replies:** 2\
**Last updated:** [April 9, 2008, 6:58pm UTC](https://www.ruby-forum.com/t/help-with-migrations-and-backward-incompatible-model-changes/134302 "2008-04-09T18:58:45Z")

</div>

I’m having some problems with migrations (on rails 1.2.x). I suppose it is not a rare problem, but my google-foo didn’t help me this time. Briefly, my problem is that when modifying some models I may (and tend to) do …

---

## [Updated 'gem'-unintialized constant ActiveRecord?](https://www.ruby-forum.com/t/updated-gem-unintialized-constant-activerecord/134297)

<div class="topic-metadata">

**Author:** [@jrochkind](https://www.ruby-forum.com/u/jrochkind)\
**Replies:** 8\
**Last updated:** [April 9, 2008, 6:25pm UTC](https://www.ruby-forum.com/t/updated-gem-unintialized-constant-activerecord/134297 "2008-04-09T18:25:22Z")

</div>

I would REALLY appreciate help with this. It’s driving me crazy, and I’ve accidentally messed up my app. I was working on something that asked me to do a ‘gem update --system’. So I did. And then it broke my app. Fir…

---

## [PDF::Writer add\_text\_wrap](https://www.ruby-forum.com/t/pdf-writer-add-text-wrap/134304)

<div class="topic-metadata">

**Author:** [@keaja](https://www.ruby-forum.com/u/keaja)\
**Replies:** 0\
**Last updated:** [April 9, 2008, 6:11pm UTC](https://www.ruby-forum.com/t/pdf-writer-add-text-wrap/134304 "2008-04-09T18:11:00Z")

</div>

Wondering if anyone else had problems with the add\_text\_wrap of the pdf-writer gem? I have something that looks like the following below, but it does not wrap down to the next line, it just either runs off the page or…

---

## [Understanding ActionMailer::Base.new](https://www.ruby-forum.com/t/understanding-actionmailer-base-new/134300)

<div class="topic-metadata">

**Author:** [@gbh](https://www.ruby-forum.com/u/gbh)\
**Replies:** 0\
**Last updated:** [April 9, 2008, 5:49pm UTC](https://www.ruby-forum.com/t/understanding-actionmailer-base-new/134300 "2008-04-09T17:49:29Z")

</div>

While writing a small plugin I stumbled upon this strangeness. I have TMail objects stored in database for process that sends them out whenever needed. Obvious way of sending them out would be calling ActionMailer::B…

---

## [Rails Profiling problems with RubyProf](https://www.ruby-forum.com/t/rails-profiling-problems-with-rubyprof/134301)

<div class="topic-metadata">

**Author:** [@rob](https://www.ruby-forum.com/u/rob)\
**Replies:** 2\
**Last updated:** [April 9, 2008, 5:43pm UTC](https://www.ruby-forum.com/t/rails-profiling-problems-with-rubyprof/134301 "2008-04-09T17:43:03Z")

</div>

Hi, I’m running into trouble trying to do some basic profiling of my app with RubyProf. I’ve done the usual searching around on Google, and not found anything. I’ve also tried updating my version of the RubyProf gem, …

---

## [Response\_assertions.rb: TypeError: can't convert Hash into String](https://www.ruby-forum.com/t/response-assertions-rb-typeerror-cant-convert-hash-into-string/134032)

<div class="topic-metadata">

**Author:** [@foudfou](https://www.ruby-forum.com/u/foudfou)\
**Replies:** 3\
**Last updated:** [April 9, 2008, 5:28pm UTC](https://www.ruby-forum.com/t/response-assertions-rb-typeerror-cant-convert-hash-into-string/134032 "2008-04-09T17:28:29Z")

</div>

Hello, I’m getting an error while testing my AWDWR2 application : Error: test\_login(LoginControllerTest): TypeError: can’t convert Hash into String /home/foudil/src/ror/depot/vendor/rails/actionpack/lib/ action\_co…

---

## [How to set up multiple primary key in the rails migrate?](https://www.ruby-forum.com/t/how-to-set-up-multiple-primary-key-in-the-rails-migrate/134296)

<div class="topic-metadata">

**Author:** [@Vincent.Z](https://www.ruby-forum.com/u/Vincent.Z)\
**Replies:** 4\
**Last updated:** [April 9, 2008, 5:26pm UTC](https://www.ruby-forum.com/t/how-to-set-up-multiple-primary-key-in-the-rails-migrate/134296 "2008-04-09T17:26:03Z")

</div>

is there anyone who knows that? i have searched the web and api,but not found. :frowning: thanks.

---

## [Update problem](https://www.ruby-forum.com/t/update-problem/127798)

<div class="topic-metadata">

**Author:** [@ankit2584](https://www.ruby-forum.com/u/ankit2584)\
**Replies:** 1\
**Last updated:** [April 9, 2008, 4:47pm UTC](https://www.ruby-forum.com/t/update-problem/127798 "2008-04-09T16:47:37Z")

</div>

Hello, I want to update a record in the table.here r the details. I have to modify a malinglist that contains email addresses to add another email in the list. But when i do @mailinglist.update\_attributes(params\[:mai…

---

## [Loading ActiveRecord associations by hand](https://www.ruby-forum.com/t/loading-activerecord-associations-by-hand/134283)

<div class="topic-metadata">

**Author:** [@jurglic](https://www.ruby-forum.com/u/jurglic)\
**Replies:** 2\
**Last updated:** [April 9, 2008, 4:46pm UTC](https://www.ruby-forum.com/t/loading-activerecord-associations-by-hand/134283 "2008-04-09T16:46:01Z")

</div>

Hello, I’m having this frustrating problem with AR. I want to load AR associations by hand. I have the following situation: 2 models: child and parent parent has has\_one association to child I have loaded set of pare…

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

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