# Rails

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

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

---

## [Invalid .gemspec format - multiple gem repos?](https://www.ruby-forum.com/t/invalid-gemspec-format-multiple-gem-repos/183770)

<div class="topic-metadata">

**Author:** [@Kristian](https://www.ruby-forum.com/u/Kristian)\
**Replies:** 1\
**Last updated:** [February 19, 2010, 8:23pm UTC](https://www.ruby-forum.com/t/invalid-gemspec-format-multiple-gem-repos/183770 "2010-02-19T20:23:50Z")

</div>

kristian-mandrups-macbook-pro:edgier kristianconsult$ rake db:migrate (in /Users/kristianconsult/my\_rails/rails3\_apps/edgier) WARNING: #\<NoMethodError: undefined method \`\>’ for nil:NilClass\> -- encoding: utf-8 -- Ge…

---

## [Map center/zoom problems in ym4r](https://www.ruby-forum.com/t/map-center-zoom-problems-in-ym4r/226059)

<div class="topic-metadata">

**Author:** [@badnaam](https://www.ruby-forum.com/u/badnaam)\
**Replies:** 0\
**Last updated:** [February 19, 2010, 8:22pm UTC](https://www.ruby-forum.com/t/map-center-zoom-problems-in-ym4r/226059 "2010-02-19T20:22:05Z")

</div>

I am trying to show a list of events and their locations in a map in my index action. I use will pagination for paginating through the events. The first call to the page is a regular “html” format and the subsequents …

---

## [Undefined method \`start\_form\_tag' for #\<ActionView::Base:0x3](https://www.ruby-forum.com/t/undefined-method-start-form-tag-for-actionview-0x3/136456)

<div class="topic-metadata">

**Author:** [@mani](https://www.ruby-forum.com/u/mani)\
**Replies:** 2\
**Last updated:** [February 19, 2010, 8:03pm UTC](https://www.ruby-forum.com/t/undefined-method-start-form-tag-for-actionview-0x3/136456 "2010-02-19T20:03:18Z")

</div>

I have crated controller classified class ClassifiedController \< ApplicationController def list @classifieds = Classified.find(:all) end def show @classified = Classified.find(params\[:id\]) end def new @classifie…

---

## [Where does rake get its default rakefile?](https://www.ruby-forum.com/t/where-does-rake-get-its-default-rakefile/183714)

<div class="topic-metadata">

**Author:** [@pitosalas](https://www.ruby-forum.com/u/pitosalas)\
**Replies:** 5\
**Last updated:** [February 19, 2010, 7:21pm UTC](https://www.ruby-forum.com/t/where-does-rake-get-its-default-rakefile/183714 "2010-02-19T19:21:12Z")

</div>

In Rails 2.3.x, in a rails app directory, I type “rake”. The top rakefile is sitting right there but it has almost nothing in it. Obviously rake is looking elsewhere for the collection of default tasks. Where is it lo…

---

## [Image tag partial refresh](https://www.ruby-forum.com/t/image-tag-partial-refresh/183766)

<div class="topic-metadata">

**Author:** [@erwillie](https://www.ruby-forum.com/u/erwillie)\
**Replies:** 2\
**Last updated:** [February 19, 2010, 7:19pm UTC](https://www.ruby-forum.com/t/image-tag-partial-refresh/183766 "2010-02-19T19:19:23Z")

</div>

Hi everyone IÂ´m doing a web page, and I wanna to show a picture but this picture change every 10 minutes. I wanna to show it and refresh t automatically, but I want to refresh only the image. How can I do that Thank…

---

## [Upgrading the Rails Version Used by an Existing Application](https://www.ruby-forum.com/t/upgrading-the-rails-version-used-by-an-existing-application/183719)

<div class="topic-metadata">

**Author:** [@djames](https://www.ruby-forum.com/u/djames)\
**Replies:** 2\
**Last updated:** [February 19, 2010, 6:31pm UTC](https://www.ruby-forum.com/t/upgrading-the-rails-version-used-by-an-existing-application/183719 "2010-02-19T18:31:27Z")

</div>

Let’s say that I use Rails version 2.3.2 to create a new application (e.g., “rails my\_application”). Later I want to port that same application to a different server that’s running Rails version 2.3.5. I thought I wo…

---

## [Future of DRb?](https://www.ruby-forum.com/t/future-of-drb/183763)

<div class="topic-metadata">

**Author:** [@marcbey](https://www.ruby-forum.com/u/marcbey)\
**Replies:** 0\
**Last updated:** [February 19, 2010, 6:16pm UTC](https://www.ruby-forum.com/t/future-of-drb/183763 "2010-02-19T18:16:49Z")

</div>

What’s the future of DRb in Rails 3.0 world? Is there something else coming along that will be preferable (e.g. ActiveWorker)? Starling/Workling? SimpleWorker? Redis/Resque? Thanks! Marc

---

## [Wrong number of arguments (Wrox Beginning Ruby On Rails)](https://www.ruby-forum.com/t/wrong-number-of-arguments-wrox-beginning-ruby-on-rails/183556)

<div class="topic-metadata">

**Author:** [@seafront](https://www.ruby-forum.com/u/seafront)\
**Replies:** 2\
**Last updated:** [February 19, 2010, 5:59pm UTC](https://www.ruby-forum.com/t/wrong-number-of-arguments-wrox-beginning-ruby-on-rails/183556 "2010-02-19T17:59:15Z")

</div>

I’m reading a book “Beginning Ruby on Rails” I made an table, and tried to make an Model class. But it doesn’t work. I made the table as below. mysql\> show columns from books ; ±------------±-------------±-----±----…

---

## [Hooking validates](https://www.ruby-forum.com/t/hooking-validates/183761)

<div class="topic-metadata">

**Author:** [@ralphshnelvar](https://www.ruby-forum.com/u/ralphshnelvar)\
**Replies:** 3\
**Last updated:** [February 19, 2010, 5:56pm UTC](https://www.ruby-forum.com/t/hooking-validates/183761 "2010-02-19T17:56:54Z")

</div>

I want to hook the validation routines so that I can flag html labels and change their color to better indicate which fields need to be corrected in a form. Is there a way to do this conveniently and/or conventionally…

---

## [Strange production vs. development behavior difference](https://www.ruby-forum.com/t/strange-production-vs-development-behavior-difference/183723)

<div class="topic-metadata">

**Author:** [@pepe](https://www.ruby-forum.com/u/pepe)\
**Replies:** 6\
**Last updated:** [February 19, 2010, 5:39pm UTC](https://www.ruby-forum.com/t/strange-production-vs-development-behavior-difference/183723 "2010-02-19T17:39:52Z")

</div>

I am running into something that has me stunned. I have a wizard like application that works perfectly well in development but does not in production. The code has nothing environment specific going on and the same DB…

---

## [HABTM: join table records being deleted & not restored when validation fails](https://www.ruby-forum.com/t/habtm-join-table-records-being-deleted-not-restored-when-validation-fails/183708)

<div class="topic-metadata">

**Author:** [@ian](https://www.ruby-forum.com/u/ian)\
**Replies:** 5\
**Last updated:** [February 19, 2010, 5:30pm UTC](https://www.ruby-forum.com/t/habtm-join-table-records-being-deleted-not-restored-when-validation-fails/183708 "2010-02-19T17:30:30Z")

</div>

Rails: 2.1.2 Ruby: 1.8.6 I have two models joined by HABTM: Sessions and Learners. On the Session edit form, there’s a checkbox list of Learners. Users check which Learners will attend the session. Very straight forw…

---

## [Very weird "error"](https://www.ruby-forum.com/t/very-weird-error/183760)

<div class="topic-metadata">

**Author:** [@taranaki](https://www.ruby-forum.com/u/taranaki)\
**Replies:** 2\
**Last updated:** [February 19, 2010, 5:15pm UTC](https://www.ruby-forum.com/t/very-weird-error/183760 "2010-02-19T17:15:16Z")

</div>

Hello everyone I am working on a project and I am quite new to Rails, now I encountered something very strange in connection with the I18n. I use the following lines: \<%= submit\_tag t(:yes\_label), :name =\> ‘yes’ %\> \<…

---

## [AJAX Problem](https://www.ruby-forum.com/t/ajax-problem/183746)

<div class="topic-metadata">

**Author:** [@manish\_belsare](https://www.ruby-forum.com/u/manish_belsare)\
**Replies:** 2\
**Last updated:** [February 19, 2010, 3:55pm UTC](https://www.ruby-forum.com/t/ajax-problem/183746 "2010-02-19T15:55:01Z")

</div>

“try { Element.hide(“add\_answer\_link\_for\_post\_-613772418”); Element.update(“new\_answer\_form\_for\_post\_-613772418”, “\<form action=”/answers” method=“post” onsubmit=“new Ajax.Request(’/answers’, {asynchronous:true, eval…

---

## [Build\_\* not working despite being has\_one](https://www.ruby-forum.com/t/build-not-working-despite-being-has-one/183755)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 1\
**Last updated:** [February 19, 2010, 3:43pm UTC](https://www.ruby-forum.com/t/build-not-working-despite-being-has-one/183755 "2010-02-19T15:43:22Z")

</div>

Hey all, My intention here is just to create a corresponding contact when a user signs up, but the said contact is never created, despite using build\_\* with a has\_one: User model: belongs\_to :contact Users Controll…

---

## [Using Rails form helpers on non-existent methods](https://www.ruby-forum.com/t/using-rails-form-helpers-on-non-existent-methods/183744)

<div class="topic-metadata">

**Author:** [@niczm25](https://www.ruby-forum.com/u/niczm25)\
**Replies:** 2\
**Last updated:** [February 19, 2010, 3:12pm UTC](https://www.ruby-forum.com/t/using-rails-form-helpers-on-non-existent-methods/183744 "2010-02-19T15:12:42Z")

</div>

Normally, when using form helpers in Rails, each field directly correlates to a method on the appropriate object. However, I have a form (user signup) that needs to include fields that are not part of the user model i…

---

## [Show parents subpages if on a subpage](https://www.ruby-forum.com/t/show-parents-subpages-if-on-a-subpage/183704)

<div class="topic-metadata">

**Author:** [@Lasse](https://www.ruby-forum.com/u/Lasse)\
**Replies:** 3\
**Last updated:** [February 19, 2010, 3:10pm UTC](https://www.ruby-forum.com/t/show-parents-subpages-if-on-a-subpage/183704 "2010-02-19T15:10:03Z")

</div>

I am trying to display subpages from the subpages parent on a subpage. The code between the lines doesn’t work for me. Does anyone has an idea what would be a better code? pages and subpages are in the same controller…

---

## [Where to put require 'gem' statements?](https://www.ruby-forum.com/t/where-to-put-require-gem-statements/183750)

<div class="topic-metadata">

**Author:** [@pytlik](https://www.ruby-forum.com/u/pytlik)\
**Replies:** 1\
**Last updated:** [February 19, 2010, 2:07pm UTC](https://www.ruby-forum.com/t/where-to-put-require-gem-statements/183750 "2010-02-19T14:07:23Z")

</div>

Hello, I’ve seen all sorts of places where people put their ‘require’ statements, and I’m not sure what the best solution is. I’m currently using it directly in a model/csv\_processor.rb: require ‘fastercsv’ class …

---

## [Deployment issues](https://www.ruby-forum.com/t/deployment-issues/183736)

<div class="topic-metadata">

**Author:** [@farhad](https://www.ruby-forum.com/u/farhad)\
**Replies:** 1\
**Last updated:** [February 19, 2010, 1:07pm UTC](https://www.ruby-forum.com/t/deployment-issues/183736 "2010-02-19T13:07:41Z")

</div>

PLEASE HELP!!! I just did my first installation of ruby on rails. When I go to www.mysite.com I get the following error: We’re sorry, but something went wrong. We’ve been notified about this issue and we’ll take a lo…

---

## [First time rails install, help with gems](https://www.ruby-forum.com/t/first-time-rails-install-help-with-gems/183742)

<div class="topic-metadata">

**Author:** [@danwoods](https://www.ruby-forum.com/u/danwoods)\
**Replies:** 2\
**Last updated:** [February 19, 2010, 11:36am UTC](https://www.ruby-forum.com/t/first-time-rails-install-help-with-gems/183742 "2010-02-19T11:36:53Z")

</div>

Hello all, I just installed ruby enterprise edition with rails. I down loaded the latest version of gems and ran dan@dev:~/initial\_install/rubygems-1.3.5$ sudo ruby setup.rb Which returned: RubyGems 1.3.5 installe…

---

## [Problem with assert\_redirected\_to](https://www.ruby-forum.com/t/problem-with-assert-redirected-to/183743)

<div class="topic-metadata">

**Author:** [@tekhne](https://www.ruby-forum.com/u/tekhne)\
**Replies:** 2\
**Last updated:** [February 19, 2010, 11:33am UTC](https://www.ruby-forum.com/t/problem-with-assert-redirected-to/183743 "2010-02-19T11:33:22Z")

</div>

I have taken over some old Rails code and am trying to get the tests to run. In the functional test every time the assertion ‘assert\_redirected\_to’ is called I get the following error: test\_should\_update\_venue(Venue…

---

## [Can't daemonize server with rails3](https://www.ruby-forum.com/t/cant-daemonize-server-with-rails3/183747)

<div class="topic-metadata">

**Author:** [@Fritzek](https://www.ruby-forum.com/u/Fritzek)\
**Replies:** 0\
**Last updated:** [February 19, 2010, 11:32am UTC](https://www.ruby-forum.com/t/cant-daemonize-server-with-rails3/183747 "2010-02-19T11:32:11Z")

</div>

Hi folks when I start ‘rails server -e test’ it runs perfect (there is a process, I can find the server.pid file and run tests), but adding -d to the start command just shows the start of the server and nothing (no …

---

## [Paperclip and viewing images](https://www.ruby-forum.com/t/paperclip-and-viewing-images/183625)

<div class="topic-metadata">

**Author:** [@paradise](https://www.ruby-forum.com/u/paradise)\
**Replies:** 1\
**Last updated:** [February 19, 2010, 10:28am UTC](https://www.ruby-forum.com/t/paperclip-and-viewing-images/183625 "2010-02-19T10:28:30Z")

</div>

I have two objects Task and Asset and I want to view image in show task. Here is my to models Task.rb has\_many Assets :as =\> :attachable And Asset.rb has\_attached\_file :photo, :styles =\> { :large =\> “371251\>", :sma…

---

## [Transforming arguments to find\_by](https://www.ruby-forum.com/t/transforming-arguments-to-find-by/183407)

<div class="topic-metadata">

**Author:** [@acreadinglist](https://www.ruby-forum.com/u/acreadinglist)\
**Replies:** 3\
**Last updated:** [February 19, 2010, 9:52am UTC](https://www.ruby-forum.com/t/transforming-arguments-to-find-by/183407 "2010-02-19T09:52:41Z")

</div>

I have a model that contains a “normalized” 10-digit US phone number. I’d like my find\_by\_phone\_number method (and its variants) to be able to take unnormalized forms (eg, +1(555)555-5555). Is there a way for me to …

---

## [ANN: Gotham Ruby Conference Call for Proposals](https://www.ruby-forum.com/t/ann-gotham-ruby-conference-call-for-proposals/183738)

<div class="topic-metadata">

**Author:** [@jenlindner](https://www.ruby-forum.com/u/jenlindner)\
**Replies:** 0\
**Last updated:** [February 19, 2010, 9:20am UTC](https://www.ruby-forum.com/t/ann-gotham-ruby-conference-call-for-proposals/183738 "2010-02-19T09:20:29Z")

</div>

Hello all, The Gotham Ruby Conference, a one-day, single-track event in New York City, is now accepting proposal papers. GoRuCo will be held on Saturday May 22, 2010 on the Manhattan campus of Pace University, our ho…

---

## [Closed stream error running unit tests through rake](https://www.ruby-forum.com/t/closed-stream-error-running-unit-tests-through-rake/183734)

<div class="topic-metadata">

**Author:** [@subhransu\_behera](https://www.ruby-forum.com/u/subhransu_behera)\
**Replies:** 0\
**Last updated:** [February 19, 2010, 9:20am UTC](https://www.ruby-forum.com/t/closed-stream-error-running-unit-tests-through-rake/183734 "2010-02-19T09:20:29Z")

</div>

Hi, I have been trying to run unit tests through rake and getting closed stream error. The trace output is mentioned below: http://pastie.org/828398 I am on a Mac OSX 10.5.6 (leopard). And having the following setti…

---

## [\[JOBS\] Mid-Sr. Developer - Washington, DC (no telecommuting - sorry)](https://www.ruby-forum.com/t/jobs-mid-sr-developer-washington-dc-no-telecommuting-sorry/183733)

<div class="topic-metadata">

**Author:** [@kenp](https://www.ruby-forum.com/u/kenp)\
**Replies:** 0\
**Last updated:** [February 19, 2010, 9:20am UTC](https://www.ruby-forum.com/t/jobs-mid-sr-developer-washington-dc-no-telecommuting-sorry/183733 "2010-02-19T09:20:29Z")

</div>

Hello all, We currently have an opening for a Mid-Sr. Developer for our project team in Washington, DC. Though working with a team, you will be expected to handle full-cycle development tasks. As such you need to be…

---

## [Restful authentication question](https://www.ruby-forum.com/t/restful-authentication-question/183691)

<div class="topic-metadata">

**Author:** [@Dudebot](https://www.ruby-forum.com/u/Dudebot)\
**Replies:** 3\
**Last updated:** [February 19, 2010, 6:03am UTC](https://www.ruby-forum.com/t/restful-authentication-question/183691 "2010-02-19T06:03:16Z")

</div>

Does anyone have experience with the restful authentication plugin git://github.com/technoweenie/restful-authentication.git ? I’m trying to access the logged in user’s name outside of the users controller. Any sugge…

---

## [A single Administrator without boolean column in User's table?](https://www.ruby-forum.com/t/a-single-administrator-without-boolean-column-in-users-table/183721)

<div class="topic-metadata">

**Author:** [@AlwaysCharging](https://www.ruby-forum.com/u/AlwaysCharging)\
**Replies:** 1\
**Last updated:** [February 19, 2010, 5:41am UTC](https://www.ruby-forum.com/t/a-single-administrator-without-boolean-column-in-users-table/183721 "2010-02-19T05:41:26Z")

</div>

Hi, I’m using Ryan Bate’s CanCan gem for my authorization (coupled with Authlogic for my authentication). In his railscast, he uses a boolean column in the database to define roles. However, my app is super simple an…

---

## [Needed: Designer comfortable with Rails](https://www.ruby-forum.com/t/needed-designer-comfortable-with-rails/182722)

<div class="topic-metadata">

**Author:** [@mdaoust](https://www.ruby-forum.com/u/mdaoust)\
**Replies:** 2\
**Last updated:** [February 19, 2010, 5:34am UTC](https://www.ruby-forum.com/t/needed-designer-comfortable-with-rails/182722 "2010-02-19T05:34:31Z")

</div>

I’m a designer and Rails developer, I’m looking for a designer who’s comfortable working with Ruby on Rails projects to make changes for one of my existing clients (based in Oxford). The site is running on a bespoke C…

---

## [! The bundled mysql.rb driver has been removed from Rails](https://www.ruby-forum.com/t/the-bundled-mysql-rb-driver-has-been-removed-from-rails/183726)

<div class="topic-metadata">

**Author:** [@aashishkiran](https://www.ruby-forum.com/u/aashishkiran)\
**Replies:** 0\
**Last updated:** [February 19, 2010, 5:32am UTC](https://www.ruby-forum.com/t/the-bundled-mysql-rb-driver-has-been-removed-from-rails/183726 "2010-02-19T05:32:44Z")

</div>

i am running depot app using Groovy and Grails Programming i have mysql gem installed. but i am getting error !!! The bundled mysql.rb driver has been removed from Rails 2.2. Please install the mysql gem and try agai…

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

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