# Rails

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

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

---

## [Detecting width overflow in serialized column with mysql](https://www.ruby-forum.com/t/detecting-width-overflow-in-serialized-column-with-mysql/151469)

<div class="topic-metadata">

**Author:** [@jrochkind](https://www.ruby-forum.com/u/jrochkind)\
**Replies:** 6\
**Last updated:** [October 22, 2008, 10:41pm UTC](https://www.ruby-forum.com/t/detecting-width-overflow-in-serialized-column-with-mysql/151469 "2008-10-22T22:41:37Z")

</div>

So I’ve got an ActiveRecord model pointing to a MySQL db, with an auto-serialized column (“serialize :columnName”). Thing is, MySQL, depending on how it’s configured (like, by default), has a bad habit of just truncat…

---

## [Reading Recommendation on Database Design?](https://www.ruby-forum.com/t/reading-recommendation-on-database-design/151540)

<div class="topic-metadata">

**Author:** [@Chris-Aix](https://www.ruby-forum.com/u/Chris-Aix)\
**Replies:** 1\
**Last updated:** [October 22, 2008, 10:21pm UTC](https://www.ruby-forum.com/t/reading-recommendation-on-database-design/151540 "2008-10-22T22:21:05Z")

</div>

Hi there, throughout my studies I build all the protoypes with Rails and it was great fun. But I never had to build a site with a login and role management, so now I am a little bit stuck. I searched for a while abou…

---

## [Js solution to sort/edit tables with ajax](https://www.ruby-forum.com/t/js-solution-to-sort-edit-tables-with-ajax/151556)

<div class="topic-metadata">

**Author:** [@gazoduc](https://www.ruby-forum.com/u/gazoduc)\
**Replies:** 1\
**Last updated:** [October 22, 2008, 10:04pm UTC](https://www.ruby-forum.com/t/js-solution-to-sort-edit-tables-with-ajax/151556 "2008-10-22T22:04:37Z")

</div>

What is your best solution to table display/edit/sort using ajax ? I’ve bumped into these: dhtmlxGrid: JavaScript DataGrid (DataTable) UI Widget - DHTMLX Grid tablekit: http://www.millstream.com.au/view/code/tablekit/ …

---

## [European Date Format (newbie!)](https://www.ruby-forum.com/t/european-date-format-newbie/151494)

<div class="topic-metadata">

**Author:** [@Nicktabs](https://www.ruby-forum.com/u/Nicktabs)\
**Replies:** 3\
**Last updated:** [October 22, 2008, 9:26pm UTC](https://www.ruby-forum.com/t/european-date-format-newbie/151494 "2008-10-22T21:26:24Z")

</div>

Rails 2.0 Hi there, There are a few topics on here that relate to my problem but none are helping as i’m new to this and there are lots of confusing posts on google. I need to chage the way dates are input and displ…

---

## [Can not figure out why validation fails](https://www.ruby-forum.com/t/can-not-figure-out-why-validation-fails/151420)

<div class="topic-metadata">

**Author:** [@evan](https://www.ruby-forum.com/u/evan)\
**Replies:** 11\
**Last updated:** [October 22, 2008, 9:25pm UTC](https://www.ruby-forum.com/t/can-not-figure-out-why-validation-fails/151420 "2008-10-22T21:25:48Z")

</div>

Good morning. I can not for the life of me figure out why validation of objects of one of my classes always fails. http://pastebin.com/m754b5bee The highlighted lines are where I am getting errors. The unit test fai…

---

## [Revising named\_scope semantics in associated classes](https://www.ruby-forum.com/t/revising-named-scope-semantics-in-associated-classes/151541)

<div class="topic-metadata">

**Author:** [@sven](https://www.ruby-forum.com/u/sven)\
**Replies:** 3\
**Last updated:** [October 22, 2008, 8:12pm UTC](https://www.ruby-forum.com/t/revising-named-scope-semantics-in-associated-classes/151541 "2008-10-22T20:12:11Z")

</div>

Suppose I have the following models: class Post \< ActiveRecord::Base has\_and\_belongs\_to\_many :categories named\_scope :active, :conditions =\> {:active =\> true} end class Category \< ActiveRecord::Base has\_and\_belongs…

---

## [Recreated app and now it can't load OpenSSL](https://www.ruby-forum.com/t/recreated-app-and-now-it-cant-load-openssl/151545)

<div class="topic-metadata">

**Author:** [@dino\_d](https://www.ruby-forum.com/u/dino_d)\
**Replies:** 2\
**Last updated:** [October 22, 2008, 8:02pm UTC](https://www.ruby-forum.com/t/recreated-app-and-now-it-cant-load-openssl/151545 "2008-10-22T20:02:48Z")

</div>

hi - i have a hosted app on dreamhost, i made some change to environment.rb and it totally screwed up my app. I cannot remember what i did. So, i decided to recreate it by deleting environment.rb and running rails …

---

## [Preventing the user from navigating away without completing a selection (not a form) link\_to](https://www.ruby-forum.com/t/preventing-the-user-from-navigating-away-without-completing-a-selection-not-a-form-link-to/151444)

<div class="topic-metadata">

**Author:** [@ami](https://www.ruby-forum.com/u/ami)\
**Replies:** 6\
**Last updated:** [October 22, 2008, 7:28pm UTC](https://www.ruby-forum.com/t/preventing-the-user-from-navigating-away-without-completing-a-selection-not-a-form-link-to/151444 "2008-10-22T19:28:46Z")

</div>

Hi i have a page (assign role to user) in which i can add or remove a role. i have a people model that is tied to the user model with has one role , changing the role changes the person type thus, if you remove a ro…

---

## [Testing time-dependent named\_scopes](https://www.ruby-forum.com/t/testing-time-dependent-named-scopes/151544)

<div class="topic-metadata">

**Author:** [@sven](https://www.ruby-forum.com/u/sven)\
**Replies:** 6\
**Last updated:** [October 22, 2008, 7:03pm UTC](https://www.ruby-forum.com/t/testing-time-dependent-named-scopes/151544 "2008-10-22T19:03:34Z")

</div>

Suppose I have the following model, which defines a named\_scope that filters out some instances based on the current time: class Post \< ActiveRecord::Base named\_scope :current, lambda { { :conditions =\> \[‘do\_not\_show…

---

## [Setting session id for first visit](https://www.ruby-forum.com/t/setting-session-id-for-first-visit/151536)

<div class="topic-metadata">

**Author:** [@gwgeller](https://www.ruby-forum.com/u/gwgeller)\
**Replies:** 3\
**Last updated:** [October 22, 2008, 6:40pm UTC](https://www.ruby-forum.com/t/setting-session-id-for-first-visit/151536 "2008-10-22T18:40:39Z")

</div>

I am logging web visits with a before\_filter on the application controller. The issue I’m having is that the initial visit does not return a session id. I’m using the SqlSessionStore and the function MysqlSession.find…

---

## [Running Multiple Rails Apps in Developer Machine](https://www.ruby-forum.com/t/running-multiple-rails-apps-in-developer-machine/151529)

<div class="topic-metadata">

**Author:** [@rocknrollcar](https://www.ruby-forum.com/u/rocknrollcar)\
**Replies:** 4\
**Last updated:** [October 22, 2008, 4:51pm UTC](https://www.ruby-forum.com/t/running-multiple-rails-apps-in-developer-machine/151529 "2008-10-22T16:51:41Z")

</div>

Hi. I use a Windows XP system for development. Suppose i am doing a project in Rails. I am having another application in Rails which is used to create and view code snippets so that i can copy paste in my other projec…

---

## [Help with Ruby on Rails](https://www.ruby-forum.com/t/help-with-ruby-on-rails/151496)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [October 22, 2008, 4:26pm UTC](https://www.ruby-forum.com/t/help-with-ruby-on-rails/151496 "2008-10-22T16:26:33Z")

</div>

I work for a recruiting/consulting company and we are needing someone to help on a quick phone conference to discuss the uses and benefits of Ruby on Rails. It would be a very basic conversation talking to a novice a…

---

## [Liquid\_markup for rails](https://www.ruby-forum.com/t/liquid-markup-for-rails/151311)

<div class="topic-metadata">

**Author:** [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Replies:** 1\
**Last updated:** [October 22, 2008, 4:00pm UTC](https://www.ruby-forum.com/t/liquid-markup-for-rails/151311 "2008-10-22T16:00:14Z")

</div>

Hi, I have some problem to understand “Liquid\_markup” plugin. I searched on net but still I am not able to understand what is the use of this plugin? Thanks, Tushar

---

## [Broken Gems on Windows (still)](https://www.ruby-forum.com/t/broken-gems-on-windows-still/151530)

<div class="topic-metadata">

**Author:** [@johnt519](https://www.ruby-forum.com/u/johnt519)\
**Replies:** 0\
**Last updated:** [October 22, 2008, 3:38pm UTC](https://www.ruby-forum.com/t/broken-gems-on-windows-still/151530 "2008-10-22T15:38:21Z")

</div>

Hello… Is there any word on when the eventmachine 0.12.2 and sqlite3-ruby 1.2.4 gems are going to be fixed to work when updating gems on a Windows (xp) system? Doing a ‘gem update’ will cause errors for both, which ca…

---

## [Haml](https://www.ruby-forum.com/t/haml/115927)

<div class="topic-metadata">

**Author:** [@Luzzy](https://www.ruby-forum.com/u/Luzzy)\
**Replies:** 11\
**Last updated:** [October 22, 2008, 3:35pm UTC](https://www.ruby-forum.com/t/haml/115927 "2008-10-22T15:35:01Z")

</div>

Anyone use HAML out in the wild? What do people think? Worth the effort? Or is HTML sprinkled with RHTML the thing to stick to and do right?

---

## [Doubt in web space Allocation](https://www.ruby-forum.com/t/doubt-in-web-space-allocation/151526)

<div class="topic-metadata">

**Author:** [@dark2imperial](https://www.ruby-forum.com/u/dark2imperial)\
**Replies:** 3\
**Last updated:** [October 22, 2008, 3:30pm UTC](https://www.ruby-forum.com/t/doubt-in-web-space-allocation/151526 "2008-10-22T15:30:53Z")

</div>

Suppose there is a social networking site for uploading and sharing videos developed in rails. It has subscription packages like Free - 1 gb, Pro - 5 gb and Plus - 10 gb. How do they allocate the space for a particula…

---

## [Help with regex needed](https://www.ruby-forum.com/t/help-with-regex-needed/151493)

<div class="topic-metadata">

**Author:** [@kim](https://www.ruby-forum.com/u/kim)\
**Replies:** 2\
**Last updated:** [October 22, 2008, 3:27pm UTC](https://www.ruby-forum.com/t/help-with-regex-needed/151493 "2008-10-22T15:27:06Z")

</div>

Hi here is the array I am scanning: \["\\n \<a href="/search~S13?/rWR%20121/rwr+121/1,7,9,B/ frameset~2489041&FF=rwr+121&1,1,"\>The Academic Writer: A Brief Guide\</ a\>\\n\\n\\n Ede, Lisa\\n\\n\\n\\n Valley Reserves – VR 282 –…

---

## [Uninitialized constant error, help me](https://www.ruby-forum.com/t/uninitialized-constant-error-help-me/151491)

<div class="topic-metadata">

**Author:** [@sukury47](https://www.ruby-forum.com/u/sukury47)\
**Replies:** 1\
**Last updated:** [October 22, 2008, 3:24pm UTC](https://www.ruby-forum.com/t/uninitialized-constant-error-help-me/151491 "2008-10-22T15:24:07Z")

</div>

Hi, I’m a rails\_fan in korea. As korean web site has a little information about rails I’m tryig to ask google groups users of my question \<% for reserve in @plan.reserves %\> This line make error like this ‘uninitiali…

---

## [Help in this code](https://www.ruby-forum.com/t/help-in-this-code/151432)

<div class="topic-metadata">

**Author:** [@jicksta](https://www.ruby-forum.com/u/jicksta)\
**Replies:** 3\
**Last updated:** [October 22, 2008, 3:15pm UTC](https://www.ruby-forum.com/t/help-in-this-code/151432 "2008-10-22T15:15:12Z")

</div>

Hi, I’m trying to validate couple of things in the controller as I couldn’t figure out how I can implement the same in the models. I’m trying to check the ‘children’ field in the form and if its nil, it checks the ‘fa…

---

## [Rails 2.1, version\_fu, ActAsVersioned and =\> "undefined method \`find\_version"](https://www.ruby-forum.com/t/rails-2-1-version-fu-actasversioned-and-undefined-method-find-version/151522)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [October 22, 2008, 2:04pm UTC](https://www.ruby-forum.com/t/rails-2-1-version-fu-actasversioned-and-undefined-method-find-version/151522 "2008-10-22T14:04:10Z")

</div>

I’ve updated and old app to Rails 2.1, and now I can’t get ActAsVersioned to work anymore. I’ve updated to last version who is updated for Rails 2.1, and also tried VerdsionFU but both give me error message “undefined…

---

## [Capistrano without ssh (local)](https://www.ruby-forum.com/t/capistrano-without-ssh-local/151527)

<div class="topic-metadata">

**Author:** [@gazoduc](https://www.ruby-forum.com/u/gazoduc)\
**Replies:** 0\
**Last updated:** [October 22, 2008, 2:00pm UTC](https://www.ruby-forum.com/t/capistrano-without-ssh-local/151527 "2008-10-22T14:00:38Z")

</div>

Hello ! Is there a way to use capistrano without ssh ? (remote == local) The idea is to use the deploy tasks on a local machine. Thanks for any idea. Gaspard project: zena, incredible rails CMS (http://zenadmin.org)…

---

## [Run rails on cd](https://www.ruby-forum.com/t/run-rails-on-cd/151410)

<div class="topic-metadata">

**Author:** [@shuaib85](https://www.ruby-forum.com/u/shuaib85)\
**Replies:** 7\
**Last updated:** [October 22, 2008, 1:44pm UTC](https://www.ruby-forum.com/t/run-rails-on-cd/151410 "2008-10-22T13:44:46Z")

</div>

Dear is there a way that we can rails on cd. for example, a dictionary book has a cd and they asked me to do software for that. since i am familiar with rails, i prefer to do it on rails. So, can we have a way to run…

---

## [How to send instant message to skype](https://www.ruby-forum.com/t/how-to-send-instant-message-to-skype/196827)

<div class="topic-metadata">

**Author:** [@srijith](https://www.ruby-forum.com/u/srijith)\
**Replies:** 1\
**Last updated:** [October 22, 2008, 1:34pm UTC](https://www.ruby-forum.com/t/how-to-send-instant-message-to-skype/196827 "2008-10-22T13:34:44Z")

</div>

Hi all, In our application we are having one option for invite users,when i click invite button then instant message will go to their respective skype account,i dont know how to send message to skype.If any one knows …

---

## [Undefined method \`target' in Rails associations (1.2)](https://www.ruby-forum.com/t/undefined-method-target-in-rails-associations-1-2/83572)

<div class="topic-metadata">

**Author:** [@nate](https://www.ruby-forum.com/u/nate)\
**Replies:** 7\
**Last updated:** [October 22, 2008, 1:33pm UTC](https://www.ruby-forum.com/t/undefined-method-target-in-rails-associations-1-2/83572 "2008-10-22T13:33:33Z")

</div>

I’m having trouble with one of my Rails model associations. They seem simple enough, I have 99% of them working. But in one of them, when I try to access a foreign key record, I get: undefined method \`target’ for #Env…

---

## ["Temporary failure in name resolution" for requests but not from console](https://www.ruby-forum.com/t/temporary-failure-in-name-resolution-for-requests-but-not-from-console/151386)

<div class="topic-metadata">

**Author:** [@Bill\_Horsman](https://www.ruby-forum.com/u/Bill_Horsman)\
**Replies:** 2\
**Last updated:** [October 22, 2008, 1:08pm UTC](https://www.ruby-forum.com/t/temporary-failure-in-name-resolution-for-requests-but-not-from-console/151386 "2008-10-22T13:08:53Z")

</div>

Hello, I’ve been banging my head against this problem for a while now. I’m using Net::HTTP.get(URI.parse(url)) to fetch a response from another server. It looks like this: module Hxml def self.fetch // Not really u…

---

## [Latest rails version](https://www.ruby-forum.com/t/latest-rails-version/151523)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 1\
**Last updated:** [October 22, 2008, 1:03pm UTC](https://www.ruby-forum.com/t/latest-rails-version/151523 "2008-10-22T13:03:01Z")

</div>

Hi I would like to know the latest stable version of rails http://rubyforge.org/frs/?group\_id=307 shows a number of versions?In that which is the latest stable? Thanks in advance Sijo

---

## [To install rails from Ruby forge](https://www.ruby-forum.com/t/to-install-rails-from-ruby-forge/151524)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 0\
**Last updated:** [October 22, 2008, 12:52pm UTC](https://www.ruby-forum.com/t/to-install-rails-from-ruby-forge/151524 "2008-10-22T12:52:51Z")

</div>

Hi How can In install a particular version of rails(for example gem version 1.2.5) from http://rubyforge.org/frs/?group\_id=307 I am using Fedora Thanks in advance Sijo

---

## [Setting up staging server - setting environment](https://www.ruby-forum.com/t/setting-up-staging-server-setting-environment/151302)

<div class="topic-metadata">

**Author:** [@jeffpritchard](https://www.ruby-forum.com/u/jeffpritchard)\
**Replies:** 5\
**Last updated:** [October 22, 2008, 12:51pm UTC](https://www.ruby-forum.com/t/setting-up-staging-server-setting-environment/151302 "2008-10-22T12:51:32Z")

</div>

Hi, I thought it would be easy to get a staging server working. I’m using capistrano 2 and the ext gem. I already had everything working with capistrano for a production deployment… I added this to my deploy.rb r…

---

## [Simple dumb rails from datastore question](https://www.ruby-forum.com/t/simple-dumb-rails-from-datastore-question/151520)

<div class="topic-metadata">

**Author:** [@cogrady2k](https://www.ruby-forum.com/u/cogrady2k)\
**Replies:** 1\
**Last updated:** [October 22, 2008, 12:33pm UTC](https://www.ruby-forum.com/t/simple-dumb-rails-from-datastore-question/151520 "2008-10-22T12:33:51Z")

</div>

hi, ive just started learning rails and im trying to make a simple blog app i have the following code on my index page i can add articles ok but i cant display them everything ive tried to put between the h1 tags fai…

---

## [Sending thousands of email with ar\_mailer](https://www.ruby-forum.com/t/sending-thousands-of-email-with-ar-mailer/151512)

<div class="topic-metadata">

**Author:** [@g0nzo](https://www.ruby-forum.com/u/g0nzo)\
**Replies:** 1\
**Last updated:** [October 22, 2008, 12:33pm UTC](https://www.ruby-forum.com/t/sending-thousands-of-email-with-ar-mailer/151512 "2008-10-22T12:33:42Z")

</div>

Hi, to send an email with ar\_mailer I need to generate it and save it to the db, right? Currently the code looks very simple: Newsletter.recepients.each do |recepient| NewsletterMailer.deliver\_dedicated(request, rec…

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

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