# Rails

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

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

---

## [Ajax problem migrating to Rails 2.0](https://www.ruby-forum.com/t/ajax-problem-migrating-to-rails-2-0/137775)

<div class="topic-metadata">

**Author:** [@Franklin](https://www.ruby-forum.com/u/Franklin)\
**Replies:** 3\
**Last updated:** [May 25, 2008, 4:01pm UTC](https://www.ruby-forum.com/t/ajax-problem-migrating-to-rails-2-0/137775 "2008-05-25T16:01:54Z")

</div>

Hi, I was developping an application and everything was working properely, until I decided to migrate to RoR 2.0. I was using Scriptaculous to add new itens to a list using Highlight visual effect. But in RoR 2.0 when…

---

## [Why is the benefit of svn:externals (or Piston)?](https://www.ruby-forum.com/t/why-is-the-benefit-of-svn-externals-or-piston/138598)

<div class="topic-metadata">

**Author:** [@wemagor](https://www.ruby-forum.com/u/wemagor)\
**Replies:** 1\
**Last updated:** [May 25, 2008, 3:39pm UTC](https://www.ruby-forum.com/t/why-is-the-benefit-of-svn-externals-or-piston/138598 "2008-05-25T15:39:02Z")

</div>

I realize this is probably a very n00bish question, but there’s something I’m not understanding about this. Maybe it’s because my background is .NET, so we don’t really have the concept of plugins, but I’m not gettin…

---

## [Problem with validation](https://www.ruby-forum.com/t/problem-with-validation/138577)

<div class="topic-metadata">

**Author:** [@mazraelle](https://www.ruby-forum.com/u/mazraelle)\
**Replies:** 5\
**Last updated:** [May 25, 2008, 3:07pm UTC](https://www.ruby-forum.com/t/problem-with-validation/138577 "2008-05-25T15:07:34Z")

</div>

hi i define in my model for example this validation: validates\_presence\_of :commentaires but when in my form my field is empty i have this error You have a nil object when you didn’t expect it! You might have expect…

---

## [Rendering and custom routes](https://www.ruby-forum.com/t/rendering-and-custom-routes/138570)

<div class="topic-metadata">

**Author:** [@wemagor](https://www.ruby-forum.com/u/wemagor)\
**Replies:** 3\
**Last updated:** [May 25, 2008, 2:55pm UTC](https://www.ruby-forum.com/t/rendering-and-custom-routes/138570 "2008-05-25T14:55:44Z")

</div>

Quick, probably n00bish question, but I can’t seem to figure it out. I am developing a contact management application, and while I am using REST, I have also defined a custom route to make it more understandable to th…

---

## [Restful routing link\_to format](https://www.ruby-forum.com/t/restful-routing-link-to-format/138596)

<div class="topic-metadata">

**Author:** [@roa](https://www.ruby-forum.com/u/roa)\
**Replies:** 3\
**Last updated:** [May 25, 2008, 2:34pm UTC](https://www.ruby-forum.com/t/restful-routing-link-to-format/138596 "2008-05-25T14:34:25Z")

</div>

Hi, I can’t seem to find how to define the format in my links. My link looks like this now: \<%= link\_to ‘Show’, resource\_path(@resource) %\> But how do I specify the format? Do I realy need to create the url myself? …

---

## [Accent interpretation function](https://www.ruby-forum.com/t/accent-interpretation-function/138466)

<div class="topic-metadata">

**Author:** [@z4n9ief](https://www.ruby-forum.com/u/z4n9ief)\
**Replies:** 1\
**Last updated:** [May 25, 2008, 11:01am UTC](https://www.ruby-forum.com/t/accent-interpretation-function/138466 "2008-05-25T11:01:26Z")

</div>

Hi, I have in my database some words like “touchÃ©” saved in this format: touché And my problem is that, when Rails publish this kind of word in a page, it write: touch&eacute; Is there a function for saying to Rail…

---

## [Test:prepare failure with enum columns](https://www.ruby-forum.com/t/test-prepare-failure-with-enum-columns/138561)

<div class="topic-metadata">

**Author:** [@marmolin](https://www.ruby-forum.com/u/marmolin)\
**Replies:** 2\
**Last updated:** [May 25, 2008, 9:58am UTC](https://www.ruby-forum.com/t/test-prepare-failure-with-enum-columns/138561 "2008-05-25T09:58:53Z")

</div>

Hi, I have a MySQL database that I use with my Rails application. I attempted to use “rake db:test:prepare” to create a test database. (Very cool, feature, by the way.) I then get the error rake aborted! You have a …

---

## [Database Associations Help](https://www.ruby-forum.com/t/database-associations-help/138582)

<div class="topic-metadata">

**Author:** [@GarrettB](https://www.ruby-forum.com/u/GarrettB)\
**Replies:** 3\
**Last updated:** [May 25, 2008, 8:31am UTC](https://www.ruby-forum.com/t/database-associations-help/138582 "2008-05-25T08:31:24Z")

</div>

So I have a Post model, and a Category model. I can’t wrap my head around trying to find the number of posts inside each category. I believe you would use a join for this, or some sort of association. The “models/cat…

---

## [Non-database Model for validations](https://www.ruby-forum.com/t/non-database-model-for-validations/138513)

<div class="topic-metadata">

**Author:** [@ccuilla](https://www.ruby-forum.com/u/ccuilla)\
**Replies:** 1\
**Last updated:** [May 25, 2008, 2:57am UTC](https://www.ruby-forum.com/t/non-database-model-for-validations/138513 "2008-05-25T02:57:44Z")

</div>

I want to have a model (e.g., a “credit\_card” object) that behaves like an ActiveRecord model in every way EXCEPT saving to the database. The use case is like this: User gets a signup screen with a credit card form U…

---

## [My migrations are causing SQL problems](https://www.ruby-forum.com/t/my-migrations-are-causing-sql-problems/138535)

<div class="topic-metadata">

**Author:** [@GarrettB](https://www.ruby-forum.com/u/GarrettB)\
**Replies:** 8\
**Last updated:** [May 25, 2008, 1:37am UTC](https://www.ruby-forum.com/t/my-migrations-are-causing-sql-problems/138535 "2008-05-25T01:37:16Z")

</div>

I am running: rake db:migrate, and I am getting this error. I am some what of a beginner, and I can’t seem to understand migrations, because I can’t fix this problem :frowning: == 2 CreateWorks: migrating – create\_tab…

---

## [Resultset empty?](https://www.ruby-forum.com/t/resultset-empty/138529)

<div class="topic-metadata">

**Author:** [@joel](https://www.ruby-forum.com/u/joel)\
**Replies:** 4\
**Last updated:** [May 25, 2008, 12:41am UTC](https://www.ruby-forum.com/t/resultset-empty/138529 "2008-05-25T00:41:39Z")

</div>

Hello people, still a newbie and just wanted to know how to actually test if resultset from find method is empty or net. Regards, Joel

---

## [Stars to input integer in form](https://www.ruby-forum.com/t/stars-to-input-integer-in-form/138580)

<div class="topic-metadata">

**Author:** [@pepa007](https://www.ruby-forum.com/u/pepa007)\
**Replies:** 0\
**Last updated:** [May 25, 2008, 12:33am UTC](https://www.ruby-forum.com/t/stars-to-input-integer-in-form/138580 "2008-05-25T00:33:27Z")

</div>

Hi, I’d like to input an integer into form by simply clicking stars (i.e. the click translates into integer 1-5). I don’t need a complex star rating system. Any suggestions? Thank you very much

---

## [Place to crash ng for the rails confernece 08 in Portland](https://www.ruby-forum.com/t/place-to-crash-ng-for-the-rails-confernece-08-in-portland/138571)

<div class="topic-metadata">

**Author:** [@GabrielG1976](https://www.ruby-forum.com/u/GabrielG1976)\
**Replies:** 0\
**Last updated:** [May 24, 2008, 10:35pm UTC](https://www.ruby-forum.com/t/place-to-crash-ng-for-the-rails-confernece-08-in-portland/138571 "2008-05-24T22:35:34Z")

</div>

Hello Im a student coming from washington Looking for a place to carsh for the 4 day confernece if any one can help out it be great I can be contacted at thanks to all Gabriel Garrod removed\_email\_address@domain.inv…

---

## [Update multiple rows -- detect failure how?](https://www.ruby-forum.com/t/update-multiple-rows-detect-failure-how/138566)

<div class="topic-metadata">

**Author:** [@djlewis](https://www.ruby-forum.com/u/djlewis)\
**Replies:** 1\
**Last updated:** [May 24, 2008, 10:31pm UTC](https://www.ruby-forum.com/t/update-multiple-rows-detect-failure-how/138566 "2008-05-24T22:31:28Z")

</div>

I want to update multiple rows using ActiveRecord#update, especially because params for the table contains just the right data structure for the update method (an array of attribute/value hashes, one per record). But…

---

## [Regexp in sql-statement](https://www.ruby-forum.com/t/regexp-in-sql-statement/138564)

<div class="topic-metadata">

**Author:** [@der\_guido](https://www.ruby-forum.com/u/der_guido)\
**Replies:** 1\
**Last updated:** [May 24, 2008, 8:35pm UTC](https://www.ruby-forum.com/t/regexp-in-sql-statement/138564 "2008-05-24T20:35:46Z")

</div>

Hi there… easy question and I hope I will get an easy anwser… I have in my database a table named “my\_table” and a column ‘my\_column’ in my\_column I have five entries as string “123” “123 45” “45 123” “12345” “45123…

---

## [Simple unit test failure](https://www.ruby-forum.com/t/simple-unit-test-failure/138554)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 6\
**Last updated:** [May 24, 2008, 8:25pm UTC](https://www.ruby-forum.com/t/simple-unit-test-failure/138554 "2008-05-24T20:25:05Z")

</div>

Snipping out unnecessary, /test/unit/personnel\_test.rb… def setup @first = “Test” @last = “User” @new\_id = ‘1000’ end def test\_create\_read\_update\_delete person = Personnel.new(:id =\> @new\_id, :first\_name =\> @fir…

---

## [Complicated association finder query](https://www.ruby-forum.com/t/complicated-association-finder-query/138560)

<div class="topic-metadata">

**Author:** [@samuelzx](https://www.ruby-forum.com/u/samuelzx)\
**Replies:** 0\
**Last updated:** [May 24, 2008, 7:05pm UTC](https://www.ruby-forum.com/t/complicated-association-finder-query/138560 "2008-05-24T19:05:11Z")

</div>

Hi Guys, If I may explain my problem with an example. Models: Monitor (computer monitors) has\_many :features Feature: name = \[big, small, black, white\] I want to find a Monitor that is BOTH white and big. My firs…

---

## [Will paginate + Google Maps = craziness](https://www.ruby-forum.com/t/will-paginate-google-maps-craziness/138547)

<div class="topic-metadata">

**Author:** [@J\_Poz](https://www.ruby-forum.com/u/J_Poz)\
**Replies:** 0\
**Last updated:** [May 24, 2008, 12:58pm UTC](https://www.ruby-forum.com/t/will-paginate-google-maps-craziness/138547 "2008-05-24T12:58:31Z")

</div>

Hello all, I’ve got a problem, and I’m totally stumped. I’m using the Geokit plugin (finds lat/lng of addresses) along with the will\_paginate gem. What I’m trying to do is have paginate search for the closest locatio…

---

## [Replacing elements/changing attributes with 'remote\_function'?](https://www.ruby-forum.com/t/replacing-elements-changing-attributes-with-remote-function/138546)

<div class="topic-metadata">

**Author:** [@Hadmut](https://www.ruby-forum.com/u/Hadmut)\
**Replies:** 0\
**Last updated:** [May 24, 2008, 12:57pm UTC](https://www.ruby-forum.com/t/replacing-elements-changing-attributes-with-remote-function/138546 "2008-05-24T12:57:21Z")

</div>

Hi, how could I replace more than just the innerHTML of an element with a remote function? The given problem: I’d like to update table row in a table of the style ... ... ... where not only the contents o…

---

## [Ruby on Rails Authentication & Access Control](https://www.ruby-forum.com/t/ruby-on-rails-authentication-access-control/138358)

<div class="topic-metadata">

**Author:** [@Walter\_Lockhart](https://www.ruby-forum.com/u/Walter_Lockhart)\
**Replies:** 5\
**Last updated:** [May 24, 2008, 10:40am UTC](https://www.ruby-forum.com/t/ruby-on-rails-authentication-access-control/138358 "2008-05-24T10:40:41Z")

</div>

Hi Forum, I hope someone can help me. I have a client who has asked me to develop a project status tracking application using Ruby on Rails which will enable various business partners to view the status of various pr…

---

## [Create a collection select from a array of numbers 1-50](https://www.ruby-forum.com/t/create-a-collection-select-from-a-array-of-numbers-1-50/138350)

<div class="topic-metadata">

**Author:** [@skirkpatrick](https://www.ruby-forum.com/u/skirkpatrick)\
**Replies:** 8\
**Last updated:** [May 24, 2008, 3:37am UTC](https://www.ruby-forum.com/t/create-a-collection-select-from-a-array-of-numbers-1-50/138350 "2008-05-24T03:37:35Z")

</div>

@make\_num = (1…50).entries something like? \<%= f.collection\_select(:make\_num, @make\_num.collect {|c| \[c, c\]}) %\> i get wrong number of arguments (2 for 4) thanks!

---

## [Correct use of ":polymorphic =\> true"?](https://www.ruby-forum.com/t/correct-use-of-polymorphic-true/138530)

<div class="topic-metadata">

**Author:** [@ldk](https://www.ruby-forum.com/u/ldk)\
**Replies:** 0\
**Last updated:** [May 24, 2008, 3:06am UTC](https://www.ruby-forum.com/t/correct-use-of-polymorphic-true/138530 "2008-05-24T03:06:53Z")

</div>

I’m in the process of familiarizing myself with both RoR and database design, which has me seeking some resurance (or tips for change) on my current problem. I’m creating a list of journal articles, books and book cha…

---

## [Kitchen expected, got String](https://www.ruby-forum.com/t/kitchen-expected-got-string/138453)

<div class="topic-metadata">

**Author:** [@maged](https://www.ruby-forum.com/u/maged)\
**Replies:** 6\
**Last updated:** [May 24, 2008, 2:44am UTC](https://www.ruby-forum.com/t/kitchen-expected-got-string/138453 "2008-05-24T02:44:53Z")

</div>

Hi All, I have an object called kitchen that belong to another object called house in a one to many relationship. For a new house, I collect some info in the index page and then from the internal page and every time …

---

## [Unpredictable aliases of tables relationships](https://www.ruby-forum.com/t/unpredictable-aliases-of-tables-relationships/138459)

<div class="topic-metadata">

**Author:** [@alexmic](https://www.ruby-forum.com/u/alexmic)\
**Replies:** 2\
**Last updated:** [May 24, 2008, 1:01am UTC](https://www.ruby-forum.com/t/unpredictable-aliases-of-tables-relationships/138459 "2008-05-24T01:01:09Z")

</div>

This issue is slightly complex so here is a bit of background: I’m developing a wrapper that allows you to easily integrate extjs with rails. At the moment i’m developing with the “grid widget”. The point of the widg…

---

## [Webrick start error in Ubuntu](https://www.ruby-forum.com/t/webrick-start-error-in-ubuntu/138506)

<div class="topic-metadata">

**Author:** [@apicito](https://www.ruby-forum.com/u/apicito)\
**Replies:** 3\
**Last updated:** [May 24, 2008, 12:59am UTC](https://www.ruby-forum.com/t/webrick-start-error-in-ubuntu/138506 "2008-05-24T00:59:48Z")

</div>

Hi, I’m running Ubuntu gutsy and am trying to get RoR running. I followed the standard step by step installation of all the components and all seems to go well until I try to start WEBrick. Here’s what I’ve done: i…

---

## [Moving positions between lists with ajax](https://www.ruby-forum.com/t/moving-positions-between-lists-with-ajax/138518)

<div class="topic-metadata">

**Author:** [@anka](https://www.ruby-forum.com/u/anka)\
**Replies:** 1\
**Last updated:** [May 24, 2008, 12:38am UTC](https://www.ruby-forum.com/t/moving-positions-between-lists-with-ajax/138518 "2008-05-24T00:38:33Z")

</div>

I want to put two lists on one page: list of users (not belong to group) and list of group users (users which are belong to group). I want to move users between this two lists with ajax, but save changes at the end - …

---

## [Shopping Cart System?](https://www.ruby-forum.com/t/shopping-cart-system/138524)

<div class="topic-metadata">

**Author:** [@joel](https://www.ruby-forum.com/u/joel)\
**Replies:** 1\
**Last updated:** [May 24, 2008, 12:35am UTC](https://www.ruby-forum.com/t/shopping-cart-system/138524 "2008-05-24T00:35:38Z")

</div>

Hello, anyone knows a shopping cart tutorial or example code implemented in rails. Best Regards, Joel

---

## [User Authentication](https://www.ruby-forum.com/t/user-authentication/138497)

<div class="topic-metadata">

**Author:** [@dustin](https://www.ruby-forum.com/u/dustin)\
**Replies:** 3\
**Last updated:** [May 24, 2008, 12:34am UTC](https://www.ruby-forum.com/t/user-authentication/138497 "2008-05-24T00:34:26Z")

</div>

I’m new to Rails and I’m having trouble wrapping my brain around it to be honest. I want to create a user registration, login system. It seems this is common are there any tutorials that walk you through doing this in…

---

## [Help needed with where and how best to set a param](https://www.ruby-forum.com/t/help-needed-with-where-and-how-best-to-set-a-param/137754)

<div class="topic-metadata">

**Author:** [@newrubygirl](https://www.ruby-forum.com/u/newrubygirl)\
**Replies:** 7\
**Last updated:** [May 23, 2008, 11:33pm UTC](https://www.ruby-forum.com/t/help-needed-with-where-and-how-best-to-set-a-param/137754 "2008-05-23T23:33:02Z")

</div>

Once again, I’m writing about a pop-up window issue and need some help. Trying to insert a new record prior to the pop-up and other sorts of things has proven to be a much bigger problem so instead I’ll have a default…

---

## [\[ANN\] the return of Rails Components](https://www.ruby-forum.com/t/ann-the-return-of-rails-components/138516)

<div class="topic-metadata">

**Author:** [@lance](https://www.ruby-forum.com/u/lance)\
**Replies:** 0\
**Last updated:** [May 23, 2008, 9:46pm UTC](https://www.ruby-forum.com/t/ann-the-return-of-rails-components/138516 "2008-05-23T21:46:32Z")

</div>

Hey y’all, I’ve worked up a simple Rails components plugin, originally based on Nick and Peter’s Cells plugin. Features include: encapsulation: All data must come from method arguments or database records - there is…

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

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