# Rails

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

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

---

## [Help required - undefind method it says bot method exists!](https://www.ruby-forum.com/t/help-required-undefind-method-it-says-bot-method-exists/185154)

<div class="topic-metadata">

**Author:** [@newb](https://www.ruby-forum.com/u/newb)\
**Replies:** 1\
**Last updated:** [March 15, 2010, 10:36am UTC](https://www.ruby-forum.com/t/help-required-undefind-method-it-says-bot-method-exists/185154 "2010-03-15T10:36:53Z")

</div>

def list #------- @contacts = \[\] @total\_contacts = \[\] get\_access(@contacts,@total\_contacts) end def get\_access(contacts,total\_contacts) #--------------------------------------- puts “inside” end when i run my l…

---

## [Newbie seek for help about paperclippolymorph](https://www.ruby-forum.com/t/newbie-seek-for-help-about-paperclippolymorph/185041)

<div class="topic-metadata">

**Author:** [@2tcreative](https://www.ruby-forum.com/u/2tcreative)\
**Replies:** 2\
**Last updated:** [March 15, 2010, 3:08am UTC](https://www.ruby-forum.com/t/newbie-seek-for-help-about-paperclippolymorph/185041 "2010-03-15T03:08:49Z")

</div>

Hi All, I am new to rails and I need to upload multiple images with paperclippolymorph http://github.com/heavysixer/paperclippolymorph , I have a model “scene” like this: class Scene \< ActiveRecord::Base belongs…

---

## [Coding a migration to change a column's attribute](https://www.ruby-forum.com/t/coding-a-migration-to-change-a-columns-attribute/185104)

<div class="topic-metadata">

**Author:** [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Replies:** 7\
**Last updated:** [March 15, 2010, 1:01am UTC](https://www.ruby-forum.com/t/coding-a-migration-to-change-a-columns-attribute/185104 "2010-03-15T01:01:48Z")

</div>

Hi All, I want a migration to change the Amount column of the Expense table to the precision/scale to 10/2. It’s easy to say in one sentence. It’s a little harder to do. 1 Ran: ruby script/generate migration ChangeE…

---

## [Determining where a function is called from](https://www.ruby-forum.com/t/determining-where-a-function-is-called-from/185137)

<div class="topic-metadata">

**Author:** [@Will\_Merrell](https://www.ruby-forum.com/u/Will_Merrell)\
**Replies:** 0\
**Last updated:** [March 14, 2010, 11:07pm UTC](https://www.ruby-forum.com/t/determining-where-a-function-is-called-from/185137 "2010-03-14T23:07:05Z")

</div>

I have a function that I use in my code in a number of places. It does some database lookup, processes it and returns some content to display. However, it needs to know where it was called from so that it can set up s…

---

## [Integrating beast in existing rails app (database conflict)](https://www.ruby-forum.com/t/integrating-beast-in-existing-rails-app-database-conflict/185134)

<div class="topic-metadata">

**Author:** [@rick\_2047](https://www.ruby-forum.com/u/rick_2047)\
**Replies:** 0\
**Last updated:** [March 14, 2010, 10:57pm UTC](https://www.ruby-forum.com/t/integrating-beast-in-existing-rails-app-database-conflict/185134 "2010-03-14T22:57:08Z")

</div>

Hi, I want to integrate the beast forums in an existing rails app, but there is a database conflict. I already have a “post” model for the blog and beast requires it. How do I eliminate the problem. Regards, Paresh

---

## [Install rails3 --pre on snow leopard w ruby 1.8.7 -- memcache\_client gem problems](https://www.ruby-forum.com/t/install-rails3-pre-on-snow-leopard-w-ruby-1-8-7-memcache-client-gem-problems/184930)

<div class="topic-metadata">

**Author:** [@benissimo](https://www.ruby-forum.com/u/benissimo)\
**Replies:** 2\
**Last updated:** [March 14, 2010, 9:44pm UTC](https://www.ruby-forum.com/t/install-rails3-pre-on-snow-leopard-w-ruby-1-8-7-memcache-client-gem-problems/184930 "2010-03-14T21:44:34Z")

</div>

Hello, Following the indications listed here: in other words: sudo gem install tzinfo builder memcache-client rack rack-test rack- mount erubis mail text-format thor bundler i18n sudo gem install rails --pre The f…

---

## [Noob: database selection question](https://www.ruby-forum.com/t/noob-database-selection-question/185082)

<div class="topic-metadata">

**Author:** [@lsumnler](https://www.ruby-forum.com/u/lsumnler)\
**Replies:** 1\
**Last updated:** [March 14, 2010, 6:37pm UTC](https://www.ruby-forum.com/t/noob-database-selection-question/185082 "2010-03-14T18:37:17Z")

</div>

I am reading through “Agile Web D. with Rails” 3rd edition. My question is this; The book seems to suggest that development should be done using sqlite3 and that the testing and/or production can be switched to some …

---

## [A Unique Ruby on Rails Opportunity](https://www.ruby-forum.com/t/a-unique-ruby-on-rails-opportunity/184885)

<div class="topic-metadata">

**Author:** [@Priyanka\_D](https://www.ruby-forum.com/u/Priyanka_D)\
**Replies:** 1\
**Last updated:** [March 14, 2010, 4:57pm UTC](https://www.ruby-forum.com/t/a-unique-ruby-on-rails-opportunity/184885 "2010-03-14T16:57:12Z")

</div>

Passionate Java Developer / Ruby on Rails/ Agile Environment (Perm position) Top $$$ on offer Central Location Fun and Challenging role We are looking for a strong, passionate developer, specializing in Java Develo…

---

## [Unit testing and activerecord (mis)behavior](https://www.ruby-forum.com/t/unit-testing-and-activerecord-mis-behavior/185119)

<div class="topic-metadata">

**Author:** [@Rajinder\_Y](https://www.ruby-forum.com/u/Rajinder_Y)\
**Replies:** 2\
**Last updated:** [March 14, 2010, 2:16pm UTC](https://www.ruby-forum.com/t/unit-testing-and-activerecord-mis-behavior/185119 "2010-03-14T14:16:50Z")

</div>

In my active record model I have declared a ‘before\_save’ callback, that populates other fields before saving the data. However I am finding all my unit test cases are breaking because it seems the ‘before\_save’ callb…

---

## [How can I conditional the validation on a model validation?](https://www.ruby-forum.com/t/how-can-i-conditional-the-validation-on-a-model-validation/185101)

<div class="topic-metadata">

**Author:** [@jorgegetafe](https://www.ruby-forum.com/u/jorgegetafe)\
**Replies:** 2\
**Last updated:** [March 14, 2010, 12:30pm UTC](https://www.ruby-forum.com/t/how-can-i-conditional-the-validation-on-a-model-validation/185101 "2010-03-14T12:30:55Z")

</div>

I’m making an application in Ruby, but I create records from text files, which contain basic information to create a record. Then I modify the records from the website, but now validating all fields. What I do is vali…

---

## [Oniguruma and Ultraviolet on Windows 7](https://www.ruby-forum.com/t/oniguruma-and-ultraviolet-on-windows-7/184256)

<div class="topic-metadata">

**Author:** [@amacgregor](https://www.ruby-forum.com/u/amacgregor)\
**Replies:** 3\
**Last updated:** [March 14, 2010, 11:56am UTC](https://www.ruby-forum.com/t/oniguruma-and-ultraviolet-on-windows-7/184256 "2010-03-14T11:56:23Z")

</div>

Hi I have been tying to install the followings gems in order to add code syntax highlighting to my application: -Oniguruma -Ultraviolet -Harsh Unfortunately I have been running into the the following errors when ru…

---

## [Unique index question](https://www.ruby-forum.com/t/unique-index-question/185100)

<div class="topic-metadata">

**Author:** [@Rajinder\_Y](https://www.ruby-forum.com/u/Rajinder_Y)\
**Replies:** 2\
**Last updated:** [March 14, 2010, 4:41am UTC](https://www.ruby-forum.com/t/unique-index-question/185100 "2010-03-14T04:41:01Z")

</div>

Hi in my development build using sqlite3, I specified email in my Account model to be a unique index as shown below, so why it the db happy adding the same emails? this type of insert should fail! class CreateAccounts…

---

## [Render :partial and DOM manipulation](https://www.ruby-forum.com/t/render-partial-and-dom-manipulation/185099)

<div class="topic-metadata">

**Author:** [@PierreW](https://www.ruby-forum.com/u/PierreW)\
**Replies:** 1\
**Last updated:** [March 14, 2010, 12:57am UTC](https://www.ruby-forum.com/t/render-partial-and-dom-manipulation/185099 "2010-03-14T00:57:27Z")

</div>

Hi guys, I am stuck with something, I was hoping someone could point me in the right direction… In short: I need to render a bunch of partials (corresponding to models) I need to do some DOM logic on them (check if …

---

## [Form\_for, submit, and parameters disappearing](https://www.ruby-forum.com/t/form-for-submit-and-parameters-disappearing/184688)

<div class="topic-metadata">

**Author:** [@ralphshnelvar](https://www.ruby-forum.com/u/ralphshnelvar)\
**Replies:** 7\
**Last updated:** [March 14, 2010, 12:55am UTC](https://www.ruby-forum.com/t/form-for-submit-and-parameters-disappearing/184688 "2010-03-14T00:55:11Z")

</div>

Consider the following:

---

## [Authlogic -\> Production Server](https://www.ruby-forum.com/t/authlogic-production-server/185112)

<div class="topic-metadata">

**Author:** [@brianp](https://www.ruby-forum.com/u/brianp)\
**Replies:** 0\
**Last updated:** [March 14, 2010, 12:10am UTC](https://www.ruby-forum.com/t/authlogic-production-server/185112 "2010-03-14T00:10:03Z")

</div>

Sorry if this is a repost. I never received a successful post msg. So this is my first deployment. I’ve used Capistrano and Git. CPanel to install all the gems (with some added server support for additional gems). CPa…

---

## ["We're sorry, but something went wrong." from RoR app](https://www.ruby-forum.com/t/were-sorry-but-something-went-wrong-from-ror-app/185064)

<div class="topic-metadata">

**Author:** [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Replies:** 7\
**Last updated:** [March 13, 2010, 10:41pm UTC](https://www.ruby-forum.com/t/were-sorry-but-something-went-wrong-from-ror-app/185064 "2010-03-13T22:41:06Z")

</div>

Hi All, “We’re sorry, but something went wrong.” is the message I got when I started up an RoR app in the environment: Rails 2.3.5 Ruby 1.8.6 WinXP-Pro/SP3 Firefox 3.6 MySQL 5.0.37-community-nt Mongrel The app u…

---

## [Signout codes](https://www.ruby-forum.com/t/signout-codes/185110)

<div class="topic-metadata">

**Author:** [@jeff](https://www.ruby-forum.com/u/jeff)\
**Replies:** 0\
**Last updated:** [March 13, 2010, 10:41pm UTC](https://www.ruby-forum.com/t/signout-codes/185110 "2010-03-13T22:41:06Z")

</div>

Hi, Does anyone know how to write signout codes. Once signed out, wud be redirecting to the main index page and when clicking the back button of the browser, the control should stay put…ie should not login… Please k…

---

## [Chatroulette Clone using Ruby on Rails](https://www.ruby-forum.com/t/chatroulette-clone-using-ruby-on-rails/185105)

<div class="topic-metadata">

**Author:** [@Learn\_by\_D](https://www.ruby-forum.com/u/Learn_by_D)\
**Replies:** 0\
**Last updated:** [March 13, 2010, 7:57pm UTC](https://www.ruby-forum.com/t/chatroulette-clone-using-ruby-on-rails/185105 "2010-03-13T19:57:50Z")

</div>

Do you know any Chatroulette Clone using Ruby on Rails? This clone: http://www.camcarousel.com/ is not. If you haven’t heard of Chatroulette. Read about this Internet sensation: Chatroulette - Wikipedia . Thanks…

---

## [Find first or create](https://www.ruby-forum.com/t/find-first-or-create/185097)

<div class="topic-metadata">

**Author:** [@milandobrota](https://www.ruby-forum.com/u/milandobrota)\
**Replies:** 6\
**Last updated:** [March 13, 2010, 6:50pm UTC](https://www.ruby-forum.com/t/find-first-or-create/185097 "2010-03-13T18:50:31Z")

</div>

Is there any ActiveRecord’s dynamic finder that can allow me to find first association or create it if it doesn’t exist. Something like this (not this code is conceptual - it does not work!): Comment.posts.find\_or\_cre…

---

## [Decimal item gets truncated at DB-storage time](https://www.ruby-forum.com/t/decimal-item-gets-truncated-at-db-storage-time/185083)

<div class="topic-metadata">

**Author:** [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Replies:** 4\
**Last updated:** [March 13, 2010, 6:27pm UTC](https://www.ruby-forum.com/t/decimal-item-gets-truncated-at-db-storage-time/185083 "2010-03-13T18:27:42Z")

</div>

Hi All, I created a new Expense item. In particular, the value I entered in the Amount field was 14.99. In the scaffold invocation for this field, I declared its type to be Decimal. The log for the creation of this…

---

## [Protecting static assets](https://www.ruby-forum.com/t/protecting-static-assets/185054)

<div class="topic-metadata">

**Author:** [@Geoffroy\_G](https://www.ruby-forum.com/u/Geoffroy_G)\
**Replies:** 2\
**Last updated:** [March 13, 2010, 12:34pm UTC](https://www.ruby-forum.com/t/protecting-static-assets/185054 "2010-03-13T12:34:44Z")

</div>

How can I protect static assets behind authentication. I’m familliar with protecting dynamic pages but how to protect static files? An example would be : someone login to my application, upload a picture and authoriz…

---

## [Mysql on mongrel vs apache](https://www.ruby-forum.com/t/mysql-on-mongrel-vs-apache/185080)

<div class="topic-metadata">

**Author:** [@Learn\_by\_D](https://www.ruby-forum.com/u/Learn_by_D)\
**Replies:** 5\
**Last updated:** [March 13, 2010, 10:44am UTC](https://www.ruby-forum.com/t/mysql-on-mongrel-vs-apache/185080 "2010-03-13T10:44:44Z")

</div>

Does mysql performance with mongrel and Snow Leopard differ from its performance with Apache and Ubuntu? I am experiencing the issue of slow performance in Ubuntu production environment compared to my Leopard develop…

---

## [Weird memory leak when using Observe Field (?)](https://www.ruby-forum.com/t/weird-memory-leak-when-using-observe-field/185087)

<div class="topic-metadata">

**Author:** [@andy](https://www.ruby-forum.com/u/andy)\
**Replies:** 0\
**Last updated:** [March 13, 2010, 10:11am UTC](https://www.ruby-forum.com/t/weird-memory-leak-when-using-observe-field/185087 "2010-03-13T10:11:23Z")

</div>

Hi, I have a few users who are complaining that two pages on my website are “locking up their browser” such that they can’t click on the javascript menu I have. The only thing in common with the two pages is that the…

---

## [Newbie over here](https://www.ruby-forum.com/t/newbie-over-here/185052)

<div class="topic-metadata">

**Author:** [@woodsy0130](https://www.ruby-forum.com/u/woodsy0130)\
**Replies:** 3\
**Last updated:** [March 13, 2010, 9:11am UTC](https://www.ruby-forum.com/t/newbie-over-here/185052 "2010-03-13T09:11:07Z")

</div>

How do you specifiy a relationship between a many to many decomposition table? I have been experiementing with has many through etc but i cant seem to get it working… My tables are student and award and the ‘relation…

---

## [OpenId + authlogic + communityengine](https://www.ruby-forum.com/t/openid-authlogic-communityengine/185085)

<div class="topic-metadata">

**Author:** [@Abhishek\_shukla](https://www.ruby-forum.com/u/Abhishek_shukla)\
**Replies:** 0\
**Last updated:** [March 13, 2010, 8:02am UTC](https://www.ruby-forum.com/t/openid-authlogic-communityengine/185085 "2010-03-13T08:02:40Z")

</div>

Hello Friends, this is the first time i am integrating OpenId with Authlogic on CommunityEngine As mentioned in #170 OpenID with Authlogic - RailsCasts I have implemented the same In the session\_controller #for log…

---

## [\[JOBS\] Looking for a senior RoR developer - Full time position (telecommuting)](https://www.ruby-forum.com/t/jobs-looking-for-a-senior-ror-developer-full-time-position-telecommuting/185036)

<div class="topic-metadata">

**Author:** [@Blanee\_Jobs](https://www.ruby-forum.com/u/Blanee_Jobs)\
**Replies:** 1\
**Last updated:** [March 13, 2010, 7:14am UTC](https://www.ruby-forum.com/t/jobs-looking-for-a-senior-ror-developer-full-time-position-telecommuting/185036 "2010-03-13T07:14:40Z")

</div>

Hello, I am Youssef Akiki, project manager of Blanee. Blanee is a user reviews and recommendations website intended for the moroccan market. We are currently looking for a senior RoR developer to launch version 1. W…

---

## [Showing video questions](https://www.ruby-forum.com/t/showing-video-questions/185066)

<div class="topic-metadata">

**Author:** [@soesan01](https://www.ruby-forum.com/u/soesan01)\
**Replies:** 2\
**Last updated:** [March 13, 2010, 5:42am UTC](https://www.ruby-forum.com/t/showing-video-questions/185066 "2010-03-13T05:42:47Z")

</div>

Hi guys, I need help about how I can display a video using javascript in ruby on rails? I would like to display a video like in this example site http://www.origamirisk.com/ (if you see new video at the bottom, when …

---

## [Ruby on Rails blog](https://www.ruby-forum.com/t/ruby-on-rails-blog/185070)

<div class="topic-metadata">

**Author:** [@pankaj](https://www.ruby-forum.com/u/pankaj)\
**Replies:** 1\
**Last updated:** [March 13, 2010, 12:10am UTC](https://www.ruby-forum.com/t/ruby-on-rails-blog/185070 "2010-03-13T00:10:56Z")

</div>

Hi Everyone, I am very happy to announce that I have started a blog at http://www.railsguru.org I have learnt a lot from the ruby and rails community, now it is time to give back. Broad Category of posts which can b…

---

## [Plugin path](https://www.ruby-forum.com/t/plugin-path/185071)

<div class="topic-metadata">

**Author:** [@tommy](https://www.ruby-forum.com/u/tommy)\
**Replies:** 1\
**Last updated:** [March 13, 2010, 12:07am UTC](https://www.ruby-forum.com/t/plugin-path/185071 "2010-03-13T00:07:26Z")

</div>

I am a newbie of rails. Recently I stuck in using plugins. I guess I have problem to set the path to call the plugins under …/vendor/ plugins. I downloaded and install a grid plugin under …\\vendor\\plugins. It has som…

---

## [Create links with gsub](https://www.ruby-forum.com/t/create-links-with-gsub/185062)

<div class="topic-metadata">

**Author:** [@perezda](https://www.ruby-forum.com/u/perezda)\
**Replies:** 2\
**Last updated:** [March 12, 2010, 11:17pm UTC](https://www.ruby-forum.com/t/create-links-with-gsub/185062 "2010-03-12T23:17:41Z")

</div>

Hello, So I have a text area that displays a products description, in the products description I would like to be able to create links to other products through the product’s id. Mainly because the url’s will change…

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

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