# Rails

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

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

---

## [Template is missing](https://www.ruby-forum.com/t/template-is-missing/140373)

<div class="topic-metadata">

**Author:** [@changwu](https://www.ruby-forum.com/u/changwu)\
**Replies:** 3\
**Last updated:** [June 16, 2008, 9:37am UTC](https://www.ruby-forum.com/t/template-is-missing/140373 "2008-06-16T09:37:43Z")

</div>

I meet a strange problem, my application works well on development environment, but when I switch it to production environment, a strange problem of ‘Template is missing’ ,which have troubled me for several days. fol…

---

## [Simple rails login system](https://www.ruby-forum.com/t/simple-rails-login-system/140551)

<div class="topic-metadata">

**Author:** [@dreamwave](https://www.ruby-forum.com/u/dreamwave)\
**Replies:** 2\
**Last updated:** [June 16, 2008, 6:32am UTC](https://www.ruby-forum.com/t/simple-rails-login-system/140551 "2008-06-16T06:32:04Z")

</div>

Hey All, Just started to play around with rails a bit today by creating a login system, but I’ve run into a glitch. ###user\_controller.rb### class UserController \< ApplicationController def login @title = “Log In” …

---

## [Getting "no block given" on find method - rails 2.1](https://www.ruby-forum.com/t/getting-no-block-given-on-find-method-rails-2-1/140542)

<div class="topic-metadata">

**Author:** [@chrisolsen](https://www.ruby-forum.com/u/chrisolsen)\
**Replies:** 7\
**Last updated:** [June 16, 2008, 4:11am UTC](https://www.ruby-forum.com/t/getting-no-block-given-on-find-method-rails-2-1/140542 "2008-06-16T04:11:10Z")

</div>

I am trying to do a simple find through the current\_user but get an exception. Either someone spiked my Starbucks coffee and I am screwing up all over the place or there is something wrong. def index @league = curre…

---

## [Helper update are not taked into account when I refresh page](https://www.ruby-forum.com/t/helper-update-are-not-taked-into-account-when-i-refresh-page/140546)

<div class="topic-metadata">

**Author:** [@victordeandres](https://www.ruby-forum.com/u/victordeandres)\
**Replies:** 0\
**Last updated:** [June 16, 2008, 3:51am UTC](https://www.ruby-forum.com/t/helper-update-are-not-taked-into-account-when-i-refresh-page/140546 "2008-06-16T03:51:46Z")

</div>

When I update an helper used on current page and I refresh the page, updates don’t appears I need to restart the server (webrick on dev) to see my modifications I suppose it exists a way to remove this caching Anyone…

---

## [My app is still in development... should I upgrade it to 2.1?](https://www.ruby-forum.com/t/my-app-is-still-in-development-should-i-upgrade-it-to-2-1/139878)

<div class="topic-metadata">

**Author:** [@wemagor](https://www.ruby-forum.com/u/wemagor)\
**Replies:** 5\
**Last updated:** [June 16, 2008, 3:24am UTC](https://www.ruby-forum.com/t/my-app-is-still-in-development-should-i-upgrade-it-to-2-1/139878 "2008-06-16T03:24:15Z")

</div>

Well, this is probably a pretty straightforward question. I started developing an app a few weeks ago with Rails 2.0.2, since 2.1 was still in RC status. The app is still in development, and probably about a quarter…

---

## [Nicer routes in RESTful Rails...?](https://www.ruby-forum.com/t/nicer-routes-in-restful-rails/131171)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 18\
**Last updated:** [June 16, 2008, 2:50am UTC](https://www.ruby-forum.com/t/nicer-routes-in-restful-rails/131171 "2008-06-16T02:50:18Z")

</div>

Hi all Recently I updated my whole website to RESTful Rails. Before I had nice hierarchical routes like music/ =\> MusicController music/artists =\> MusicArtistsController music/albums =\> MusicAlbumsController music/…

---

## [Help please on Ruby on Rails Migrations: "rake aborted! undefined local variable or method name 'ss](https://www.ruby-forum.com/t/help-please-on-ruby-on-rails-migrations-rake-aborted-undefined-local-variable-or-method-name-ss/140531)

<div class="topic-metadata">

**Author:** [@rubynewbie](https://www.ruby-forum.com/u/rubynewbie)\
**Replies:** 2\
**Last updated:** [June 16, 2008, 2:08am UTC](https://www.ruby-forum.com/t/help-please-on-ruby-on-rails-migrations-rake-aborted-undefined-local-variable-or-method-name-ss/140531 "2008-06-16T02:08:12Z")

</div>

Environment: Windows Vista, running Ruby 1.8.6 on Rails 2.1, MySql 5.0/ PostGreSql 8.3.1 I’m enjoying going through a ruby on rails example and learning the power of ruby and rails. I’m in need of help. The migration…

---

## [Rails relations](https://www.ruby-forum.com/t/rails-relations/140157)

<div class="topic-metadata">

**Author:** [@Israel\_G](https://www.ruby-forum.com/u/Israel_G)\
**Replies:** 6\
**Last updated:** [June 16, 2008, 1:03am UTC](https://www.ruby-forum.com/t/rails-relations/140157 "2008-06-16T01:03:50Z")

</div>

Hi ppl. I am noob in rails and started an app to learn. I have the following scenario: table client with fileds: name, second\_name table phone with fields: number, client\_id table address with fields: street, number…

---

## [Doofus - cookies](https://www.ruby-forum.com/t/doofus-cookies/140538)

<div class="topic-metadata">

**Author:** [@softf5ajivanet](https://www.ruby-forum.com/u/softf5ajivanet)\
**Replies:** 0\
**Last updated:** [June 16, 2008, 12:39am UTC](https://www.ruby-forum.com/t/doofus-cookies/140538 "2008-06-16T00:39:13Z")

</div>

ugh, somedays i can be really overtaxed, worked out why cookies weren’t working, had the code in the controllers (server-side), so switching the cookie handler code over to the views (client-side) soon got the cookies …

---

## [Build process failing](https://www.ruby-forum.com/t/build-process-failing/140539)

<div class="topic-metadata">

**Author:** [@chrisolsen](https://www.ruby-forum.com/u/chrisolsen)\
**Replies:** 0\
**Last updated:** [June 16, 2008, 12:28am UTC](https://www.ruby-forum.com/t/build-process-failing/140539 "2008-06-16T00:28:43Z")

</div>

I am unable to call the build method for a has\_many :through relation: class League \< ActiveRecord::Base has\_many :league\_admins has\_many :league\_users, :through =\> :league\_admins, :source =\> :user end class User \< …

---

## [\[ Please Help Me, Urgent \] About concurrent proses](https://www.ruby-forum.com/t/please-help-me-urgent-about-concurrent-proses/140536)

<div class="topic-metadata">

**Author:** [@malioboro](https://www.ruby-forum.com/u/malioboro)\
**Replies:** 0\
**Last updated:** [June 16, 2008, 12:11am UTC](https://www.ruby-forum.com/t/please-help-me-urgent-about-concurrent-proses/140536 "2008-06-16T00:11:10Z")

</div>

Dear All; I would like to ask information or theory about ruby on rails. I have question about 2 the proses concurrently that are run together in ruby on rails. But ruby doesnt run those proses concurrently, ruby ru…

---

## [Mongrels apache configuration problem](https://www.ruby-forum.com/t/mongrels-apache-configuration-problem/140491)

<div class="topic-metadata">

**Author:** [@bellani](https://www.ruby-forum.com/u/bellani)\
**Replies:** 1\
**Last updated:** [June 15, 2008, 10:56pm UTC](https://www.ruby-forum.com/t/mongrels-apache-configuration-problem/140491 "2008-06-15T22:56:11Z")

</div>

Help! I am trying to configure apache to use the mongrel cluster, but I know I’m doing something tragically wrong, and am at my wits’ end. My project is called “plx”; if I use the apache config shown below, then try h…

---

## [PLEASE! Need help with my RoR app](https://www.ruby-forum.com/t/please-need-help-with-my-ror-app/140505)

<div class="topic-metadata">

**Author:** [@RoR\_Nb](https://www.ruby-forum.com/u/RoR_Nb)\
**Replies:** 6\
**Last updated:** [June 15, 2008, 9:50pm UTC](https://www.ruby-forum.com/t/please-need-help-with-my-ror-app/140505 "2008-06-15T21:50:50Z")

</div>

Hi there, this is my first time setting up a ruby on rails container, ran script/generate controller main index, its working fine, but then i ran script/generate scaffold thoughts title:string body:text (just to test …

---

## [Add a class attribut into a form\_tag](https://www.ruby-forum.com/t/add-a-class-attribut-into-a-form-tag/140529)

<div class="topic-metadata">

**Author:** [@z4n9ief](https://www.ruby-forum.com/u/z4n9ief)\
**Replies:** 2\
**Last updated:** [June 15, 2008, 9:33pm UTC](https://www.ruby-forum.com/t/add-a-class-attribut-into-a-form-tag/140529 "2008-06-15T21:33:14Z")

</div>

Hi, do you know how to add into this balise a class attribut: \<% form\_tag :action =\> ‘search’ do -%\> in order to do this in HTML: I had try to use the official documentation (Peak Obsession) but that don’t seems …

---

## [Different password validation on create and on update](https://www.ruby-forum.com/t/different-password-validation-on-create-and-on-update/140469)

<div class="topic-metadata">

**Author:** [@taro](https://www.ruby-forum.com/u/taro)\
**Replies:** 4\
**Last updated:** [June 15, 2008, 9:03pm UTC](https://www.ruby-forum.com/t/different-password-validation-on-create-and-on-update/140469 "2008-06-15T21:03:35Z")

</div>

I’ve got a model Officer that relies on password validation in all cases, but I need it to validate the password at different times. For on create, I want to verify that the password and password confirmation exists …

---

## [\[javascript\] Check if the dynamically generated checkbox is checked!](https://www.ruby-forum.com/t/javascript-check-if-the-dynamically-generated-checkbox-is-checked/140528)

<div class="topic-metadata">

**Author:** [@flaubert](https://www.ruby-forum.com/u/flaubert)\
**Replies:** 1\
**Last updated:** [June 15, 2008, 8:30pm UTC](https://www.ruby-forum.com/t/javascript-check-if-the-dynamically-generated-checkbox-is-checked/140528 "2008-06-15T20:30:36Z")

</div>

hello all, I have a table. the rows of this table are generated dynamically. some “tds” have informations and one of them have a checkbox. looping through this table I need to check if the chekbox in that “TD” is che…

---

## [Inconsistent routes](https://www.ruby-forum.com/t/inconsistent-routes/140387)

<div class="topic-metadata">

**Author:** [@chovy](https://www.ruby-forum.com/u/chovy)\
**Replies:** 1\
**Last updated:** [June 15, 2008, 8:18pm UTC](https://www.ruby-forum.com/t/inconsistent-routes/140387 "2008-06-15T20:18:43Z")

</div>

I have a case where my production server is not handling the routes properly (mongrel) Webrick handles them fine locally, and I also tested with mongrel locally and it works as well. I have a link to /admin/orders/li…

---

## [Vanilla Rails 2.1 and Unit Test Error](https://www.ruby-forum.com/t/vanilla-rails-2-1-and-unit-test-error/139450)

<div class="topic-metadata">

**Author:** [@Derek\_P](https://www.ruby-forum.com/u/Derek_P)\
**Replies:** 1\
**Last updated:** [June 15, 2008, 7:49pm UTC](https://www.ruby-forum.com/t/vanilla-rails-2-1-and-unit-test-error/139450 "2008-06-15T19:49:03Z")

</div>

I did a basic rails 2.1 command and made a basic model and ran the unit tests with rake, I get this error: LoadError: no such file to load — test\_helper I went back and compared my old unit tests from other projects t…

---

## [Separate logic for API and Application](https://www.ruby-forum.com/t/separate-logic-for-api-and-application/140516)

<div class="topic-metadata">

**Author:** [@ADADAD](https://www.ruby-forum.com/u/ADADAD)\
**Replies:** 0\
**Last updated:** [June 15, 2008, 3:33pm UTC](https://www.ruby-forum.com/t/separate-logic-for-api-and-application/140516 "2008-06-15T15:33:40Z")

</div>

Hello, I am a strong believer of the value of REST , especially when it comes to being able to offer an API “for free”. Consolidating logic so that your web application and your API use the same service layer is ce…

---

## [The error occurred while evaluating nil.each](https://www.ruby-forum.com/t/the-error-occurred-while-evaluating-nil-each/140506)

<div class="topic-metadata">

**Author:** [@RoR\_Nb](https://www.ruby-forum.com/u/RoR_Nb)\
**Replies:** 2\
**Last updated:** [June 15, 2008, 2:53pm UTC](https://www.ruby-forum.com/t/the-error-occurred-while-evaluating-nil-each/140506 "2008-06-15T14:53:39Z")

</div>

I’m leaving some fields empty and after i sibmited it shows me teh following error, THIS IS THE ERROR THAT IT DISPLAYS NoMethodError in Item\_packages#create Showing item\_packages/\_form.erb where line #3 raised: You h…

---

## [Rake displays Can't connect local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'](https://www.ruby-forum.com/t/rake-displays-cant-connect-local-mysql-server-through-socket-var-run-mysqld-mysqld-sock-2/140434)

<div class="topic-metadata">

**Author:** [@RoR\_Nb](https://www.ruby-forum.com/u/RoR_Nb)\
**Replies:** 5\
**Last updated:** [June 15, 2008, 12:18pm UTC](https://www.ruby-forum.com/t/rake-displays-cant-connect-local-mysql-server-through-socket-var-run-mysqld-mysqld-sock-2/140434 "2008-06-15T12:18:11Z")

</div>

i have a small problem every time i run “rake db:migrate” it shows me an error Can’t connect local MySQL server through socket ‘/var/run/mysqld/ mysqld.sock’ (2)’ can somebody help me?

---

## [Dreamhost or SilverRack VPS?](https://www.ruby-forum.com/t/dreamhost-or-silverrack-vps/140499)

<div class="topic-metadata">

**Author:** [@eddiewould](https://www.ruby-forum.com/u/eddiewould)\
**Replies:** 3\
**Last updated:** [June 15, 2008, 11:42am UTC](https://www.ruby-forum.com/t/dreamhost-or-silverrack-vps/140499 "2008-06-15T11:42:54Z")

</div>

I’m on site5 and they don’t offer the rails support I’m looking for. For small web apps would you recommend a VPS so I have more control or dreamhost? Thanks

---

## [Ouch! Can't figure out this file upload issue](https://www.ruby-forum.com/t/ouch-cant-figure-out-this-file-upload-issue/140502)

<div class="topic-metadata">

**Author:** [@ron](https://www.ruby-forum.com/u/ron)\
**Replies:** 11\
**Last updated:** [June 15, 2008, 8:19am UTC](https://www.ruby-forum.com/t/ouch-cant-figure-out-this-file-upload-issue/140502 "2008-06-15T08:19:27Z")

</div>

Okay, so this is driving me crazy. I’m trying to do a file upload using code from a book. What happens: I get wrong number of arguments (1 for 0) in the upload controller save action. No idea why. Schema: The sch…

---

## [Css class as parameter](https://www.ruby-forum.com/t/css-class-as-parameter/140476)

<div class="topic-metadata">

**Author:** [@arte\_fact](https://www.ruby-forum.com/u/arte_fact)\
**Replies:** 4\
**Last updated:** [June 15, 2008, 7:18am UTC](https://www.ruby-forum.com/t/css-class-as-parameter/140476 "2008-06-15T07:18:50Z")

</div>

hello, I would like to know how could it be possible to set a css class as parameter and a default one. For instance class=“active” will be located on the first, second lines, depending on the action. application.ht…

---

## [Is Ruby on Rails the next step for the new generation?](https://www.ruby-forum.com/t/is-ruby-on-rails-the-next-step-for-the-new-generation/140474)

<div class="topic-metadata">

**Author:** [@wixmom](https://www.ruby-forum.com/u/wixmom)\
**Replies:** 3\
**Last updated:** [June 15, 2008, 7:07am UTC](https://www.ruby-forum.com/t/is-ruby-on-rails-the-next-step-for-the-new-generation/140474 "2008-06-15T07:07:32Z")

</div>

Hi my 12 year old, WIX, is an amazing auto deductive computer whiz. I have to keep up… He is an excellent VB programmer and knows JAVA. I have been told ROR is the future. I want to guide WIX so he can build up a goo…

---

## [Trouble with Ruby Install](https://www.ruby-forum.com/t/trouble-with-ruby-install/140498)

<div class="topic-metadata">

**Author:** [@jeff](https://www.ruby-forum.com/u/jeff)\
**Replies:** 1\
**Last updated:** [June 15, 2008, 6:59am UTC](https://www.ruby-forum.com/t/trouble-with-ruby-install/140498 "2008-06-15T06:59:17Z")

</div>

Hi I recently installed Ruby on my new iMac running Leopard and am getting the following error when trying to run irb: dyld: NSLinkModule() error dyld: Symbol not found: \_rl\_filename\_completion\_function Referenced f…

---

## [Method Common to Several Actions](https://www.ruby-forum.com/t/method-common-to-several-actions/140490)

<div class="topic-metadata">

**Author:** [@doug](https://www.ruby-forum.com/u/doug)\
**Replies:** 3\
**Last updated:** [June 15, 2008, 4:27am UTC](https://www.ruby-forum.com/t/method-common-to-several-actions/140490 "2008-06-15T04:27:51Z")

</div>

If one wanted to write a method to be used by several different actions, where would that method be placed? Thanks for any input. ... doug

---

## [Rails bug or breaking convention?](https://www.ruby-forum.com/t/rails-bug-or-breaking-convention/140497)

<div class="topic-metadata">

**Author:** [@matt](https://www.ruby-forum.com/u/matt)\
**Replies:** 1\
**Last updated:** [June 15, 2008, 1:52am UTC](https://www.ruby-forum.com/t/rails-bug-or-breaking-convention/140497 "2008-06-15T01:52:56Z")

</div>

I had a unique instance where I needed a model called “MRA”. When I built my scaffolded resource I get the following: mwilliams@Danzig:~/Documents/Projects/TestApp$ ruby script/generate scaffold MRA exists app/model…

---

## [How do I import data FAST? (AR-extensions)](https://www.ruby-forum.com/t/how-do-i-import-data-fast-ar-extensions/119952)

<div class="topic-metadata">

**Author:** [@lusid](https://www.ruby-forum.com/u/lusid)\
**Replies:** 1\
**Last updated:** [June 15, 2008, 12:15am UTC](https://www.ruby-forum.com/t/how-do-i-import-data-fast-ar-extensions/119952 "2008-06-15T00:15:29Z")

</div>

I need to import large amounts of data records into a database with my rails application. The problem: It’s REALLY SLOW. I found Zach D.’ ActiveRecord-extensions to be extremely interesting: http://www.rubyinside.com…

---

## [Testing helper plugin "with-this-asserts-do"](https://www.ruby-forum.com/t/testing-helper-plugin-with-this-asserts-do/140493)

<div class="topic-metadata">

**Author:** [@frogstarr78](https://www.ruby-forum.com/u/frogstarr78)\
**Replies:** 0\
**Last updated:** [June 14, 2008, 11:46pm UTC](https://www.ruby-forum.com/t/testing-helper-plugin-with-this-asserts-do/140493 "2008-06-14T23:46:15Z")

</div>

Testing helper plugin http://code.google.com/p/with-this-asserts-do/

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

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