# Rails

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

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

---

## [Code to allow only friends](https://www.ruby-forum.com/t/code-to-allow-only-friends/152940)

<div class="topic-metadata">

**Author:** [@santoshturamari](https://www.ruby-forum.com/u/santoshturamari)\
**Replies:** 1\
**Last updated:** [November 11, 2008, 5:24pm UTC](https://www.ruby-forum.com/t/code-to-allow-only-friends/152940 "2008-11-11T17:24:42Z")

</div>

I have an app in which, I have profiles which has friends list… I want to apply some privacy settings as to allow, to visit only their friends in network…How to write the code in controller… can anybody pls explain me…

---

## [Ruby on Rails Developer](https://www.ruby-forum.com/t/ruby-on-rails-developer/153057)

<div class="topic-metadata">

**Author:** [@Hol](https://www.ruby-forum.com/u/Hol)\
**Replies:** 0\
**Last updated:** [November 11, 2008, 5:07pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-developer/153057 "2008-11-11T17:07:55Z")

</div>

Hi, I am currently recruiting for a company based in Merseyside and they are looking for Software Developers with any level of Ruby on Rails knowledge. If you could please email me your CV to removed\_email\_address@do…

---

## [Ruby on Rails Developers wanted!](https://www.ruby-forum.com/t/ruby-on-rails-developers-wanted/153056)

<div class="topic-metadata">

**Author:** [@Hol](https://www.ruby-forum.com/u/Hol)\
**Replies:** 0\
**Last updated:** [November 11, 2008, 5:07pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-developers-wanted/153056 "2008-11-11T17:07:55Z")

</div>

My client is a rapidly expanding wireless solutions company based in Merseyside who provides world class tailored wireless solutions that work across all platforms and on all devices. The software they develop enables…

---

## [Something strange about RJS, please help](https://www.ruby-forum.com/t/something-strange-about-rjs-please-help/153051)

<div class="topic-metadata">

**Author:** [@msmsms](https://www.ruby-forum.com/u/msmsms)\
**Replies:** 2\
**Last updated:** [November 11, 2008, 4:56pm UTC](https://www.ruby-forum.com/t/something-strange-about-rjs-please-help/153051 "2008-11-11T16:56:43Z")

</div>

Hello, thanks for reading this. :slight\_smile: I’ve got some problems with RJS in separate files. What’s the correct extension? When I name it \*.rjs / \*.js.rjs, Ruby on Rails complains that it in not able to find a \*…

---

## [Why is NFS insecure for storing open id sessions?](https://www.ruby-forum.com/t/why-is-nfs-insecure-for-storing-open-id-sessions/152931)

<div class="topic-metadata">

**Author:** [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Replies:** 3\
**Last updated:** [November 11, 2008, 2:10pm UTC](https://www.ruby-forum.com/t/why-is-nfs-insecure-for-storing-open-id-sessions/152931 "2008-11-11T14:10:35Z")

</div>

I am trying to set up openid in my application. I came across this plugin: In there it says: “Alternatively, you can use the file-based store, which just relies on tmp/openids being present in RAILS\_ROOT. But be a…

---

## [TATFT -- The Movie](https://www.ruby-forum.com/t/tatft-the-movie/153044)

<div class="topic-metadata">

**Author:** [@bryanl](https://www.ruby-forum.com/u/bryanl)\
**Replies:** 0\
**Last updated:** [November 11, 2008, 1:42pm UTC](https://www.ruby-forum.com/t/tatft-the-movie/153044 "2008-11-11T13:42:24Z")

</div>

If someone asked you what you thought about the state of testing in the Ruby community, what would you say? Are you for more testing, or are you testing enough? Are we doing it wrong, or are we on the right path? Or, …

---

## [Dynamic finder \> popularity](https://www.ruby-forum.com/t/dynamic-finder-popularity/153027)

<div class="topic-metadata">

**Author:** [@remco](https://www.ruby-forum.com/u/remco)\
**Replies:** 1\
**Last updated:** [November 11, 2008, 1:29pm UTC](https://www.ruby-forum.com/t/dynamic-finder-popularity/153027 "2008-11-11T13:29:43Z")

</div>

Hi, i have popularity table wich has a relationship with the bookings-destinations. Some destinations are booked more then others. The popularity table has the columns “primary-key” and a score. Example | TVC …

---

## [Captcha plugin](https://www.ruby-forum.com/t/captcha-plugin/153036)

<div class="topic-metadata">

**Author:** [@annalissa](https://www.ruby-forum.com/u/annalissa)\
**Replies:** 1\
**Last updated:** [November 11, 2008, 12:51pm UTC](https://www.ruby-forum.com/t/captcha-plugin/153036 "2008-11-11T12:51:50Z")

</div>

Hi all, I was working through the simply rails book, i have completed up to chapter 10, now i would like to add a captcha to my login form, where can i get the captcha plugin? can anybody suggest any links for captch…

---

## [Bizarre ruby debug behaviour when using variables beginning with character 'u' on windows](https://www.ruby-forum.com/t/bizarre-ruby-debug-behaviour-when-using-variables-beginning-with-character-u-on-windows/153037)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [November 11, 2008, 11:43am UTC](https://www.ruby-forum.com/t/bizarre-ruby-debug-behaviour-when-using-variables-beginning-with-character-u-on-windows/153037 "2008-11-11T11:43:36Z")

</div>

I’m using Instant Rails on windows. I’m also using ruby debug. I first stumbled across the problem when an array that I named utilities\_used = \[\] was misbehaving. I added some experimental code and set a breakpoint an…

---

## [Possibility of ActiveRecord in combining two same tables](https://www.ruby-forum.com/t/possibility-of-activerecord-in-combining-two-same-tables/153032)

<div class="topic-metadata">

**Author:** [@parkurm](https://www.ruby-forum.com/u/parkurm)\
**Replies:** 1\
**Last updated:** [November 11, 2008, 10:56am UTC](https://www.ruby-forum.com/t/possibility-of-activerecord-in-combining-two-same-tables/153032 "2008-11-11T10:56:38Z")

</div>

The title may be somehow puzzling. Suppose an Social Networking Site, we have one table to keep each person’s id and name. Then we need the function to have friends, so we’ll have to create a table to store the inform…

---

## [Representing left outer join in MySQL and Rails](https://www.ruby-forum.com/t/representing-left-outer-join-in-mysql-and-rails/153015)

<div class="topic-metadata">

**Author:** [@bruparel](https://www.ruby-forum.com/u/bruparel)\
**Replies:** 1\
**Last updated:** [November 11, 2008, 10:15am UTC](https://www.ruby-forum.com/t/representing-left-outer-join-in-mysql-and-rails/153015 "2008-11-11T10:15:53Z")

</div>

I have to create a query from two tables. Table 1 is the accounts table and table 2 is the payments table. Each account can have many payments. I have to create a query that lists all accounts with the last payment. …

---

## [BackgroundRB - not listening to mongrel/nginx](https://www.ruby-forum.com/t/backgroundrb-not-listening-to-mongrel-nginx/152955)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 3\
**Last updated:** [November 11, 2008, 10:13am UTC](https://www.ruby-forum.com/t/backgroundrb-not-listening-to-mongrel-nginx/152955 "2008-11-11T10:13:01Z")

</div>

I’m trying to get backgroundrb set up and working but i have a problem getting it to listen to our server. It works for me locally, with these settings - :backgroundrb: :ip: 0.0.0.0 :port: 11006 :environment: dev…

---

## [Simply rails 2.0](https://www.ruby-forum.com/t/simply-rails-2-0/153028)

<div class="topic-metadata">

**Author:** [@annalissa](https://www.ruby-forum.com/u/annalissa)\
**Replies:** 0\
**Last updated:** [November 11, 2008, 9:54am UTC](https://www.ruby-forum.com/t/simply-rails-2-0/153028 "2008-11-11T09:54:34Z")

</div>

Hi, I was working through the simply rails book, i have completed up to chapter 10, now i would like to add a captcha to my login form, where can i get the captcha plugin? can anybody suggest any links for captcha pl…

---

## [Juggernaut+ acts\_as\_chattable not working on firefox](https://www.ruby-forum.com/t/juggernaut-acts-as-chattable-not-working-on-firefox/153026)

<div class="topic-metadata">

**Author:** [@shalmali](https://www.ruby-forum.com/u/shalmali)\
**Replies:** 0\
**Last updated:** [November 11, 2008, 9:20am UTC](https://www.ruby-forum.com/t/juggernaut-acts-as-chattable-not-working-on-firefox/153026 "2008-11-11T09:20:39Z")

</div>

Hello all, I am using juggernaut + acts\_as\_chattable plugins for creating chat application on windows. This application is working fine on IE8, but not working on firefox 2 or 3. Its also not showing any error message…

---

## [Ruby on Rails on Smartfoxserver](https://www.ruby-forum.com/t/ruby-on-rails-on-smartfoxserver/153023)

<div class="topic-metadata">

**Author:** [@pain](https://www.ruby-forum.com/u/pain)\
**Replies:** 0\
**Last updated:** [November 11, 2008, 8:26am UTC](https://www.ruby-forum.com/t/ruby-on-rails-on-smartfoxserver/153023 "2008-11-11T08:26:13Z")

</div>

Hi guys, Have you heard smartfoxserver? Its quite pretty new and cool stuff, I bet you all should have at least heard of its name, haven’t you? I am wondering whether ruby on rails can integrate with smartfoxserver o…

---

## [Ruby on rails and Authorized.net](https://www.ruby-forum.com/t/ruby-on-rails-and-authorized-net/153016)

<div class="topic-metadata">

**Author:** [@Nuwan\_Chaturanga](https://www.ruby-forum.com/u/Nuwan_Chaturanga)\
**Replies:** 1\
**Last updated:** [November 11, 2008, 8:18am UTC](https://www.ruby-forum.com/t/ruby-on-rails-and-authorized-net/153016 "2008-11-11T08:18:35Z")

</div>

Do I need SSL on the webserver to test Authorized.net AIM. Anyone had experince with Rails and Authorized.net ?

---

## [Very weird rake message](https://www.ruby-forum.com/t/very-weird-rake-message/153019)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [November 11, 2008, 6:39am UTC](https://www.ruby-forum.com/t/very-weird-rake-message/153019 "2008-11-11T06:39:07Z")

</div>

When I try and run rake db:migrate, I get this error: rake aborted! uninitialized constant CreateUsers /Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active\_support/ dependencies.rb:266:in load\_missing\_constant'…

---

## [ActiveMerchant and PayPal FLow pro](https://www.ruby-forum.com/t/activemerchant-and-paypal-flow-pro/153020)

<div class="topic-metadata">

**Author:** [@zemariamm](https://www.ruby-forum.com/u/zemariamm)\
**Replies:** 0\
**Last updated:** [November 11, 2008, 6:08am UTC](https://www.ruby-forum.com/t/activemerchant-and-paypal-flow-pro/153020 "2008-11-11T06:08:14Z")

</div>

Hello guys, As far as I’ve seen, there is still no “official” SDK (from paypal) for ruby to access Paypal FLow pro accounts. I’ve registered for PayPal Flow pro, and got the following items: partner id,merchant ID an…

---

## [Problem : no such file to load -- sqlite3](https://www.ruby-forum.com/t/problem-no-such-file-to-load-sqlite3/152929)

<div class="topic-metadata">

**Author:** [@vlad](https://www.ruby-forum.com/u/vlad)\
**Replies:** 1\
**Last updated:** [November 11, 2008, 5:55am UTC](https://www.ruby-forum.com/t/problem-no-such-file-to-load-sqlite3/152929 "2008-11-11T05:55:15Z")

</div>

i followed a tutorial/course and it didn’t work so i copied the source files from it and it still doesn’t work MissingSourceFile in UsersController#index no such file to load – sqlite3 RAILS\_ROOT: C:/courses/LUGPC10…

---

## [Scaffold not working like i hoped](https://www.ruby-forum.com/t/scaffold-not-working-like-i-hoped/152877)

<div class="topic-metadata">

**Author:** [@SpudNerd](https://www.ruby-forum.com/u/SpudNerd)\
**Replies:** 8\
**Last updated:** [November 11, 2008, 4:31am UTC](https://www.ruby-forum.com/t/scaffold-not-working-like-i-hoped/152877 "2008-11-11T04:31:03Z")

</div>

Hi: i’ve tried this on three macs (tiger, panther, etc)… and my ROR is up to date on each. My models and controllers aren’t displaying all my mysql db fields. When I run script/generate scaffold Planner … it builds t…

---

## [Migration File](https://www.ruby-forum.com/t/migration-file/152974)

<div class="topic-metadata">

**Author:** [@bert\_a](https://www.ruby-forum.com/u/bert_a)\
**Replies:** 4\
**Last updated:** [November 11, 2008, 4:07am UTC](https://www.ruby-forum.com/t/migration-file/152974 "2008-11-11T04:07:13Z")

</div>

All of the books I have show the migration file naming convention is 001, 002, etc When I ran script/generate model, the migration file was named: 20081110174511\_create\_users.rb Why does it have this complex number i…

---

## [Can't figure out this error message please help](https://www.ruby-forum.com/t/cant-figure-out-this-error-message-please-help/153012)

<div class="topic-metadata">

**Author:** [@katchwreck](https://www.ruby-forum.com/u/katchwreck)\
**Replies:** 0\
**Last updated:** [November 11, 2008, 4:05am UTC](https://www.ruby-forum.com/t/cant-figure-out-this-error-message-please-help/153012 "2008-11-11T04:05:55Z")

</div>

Hi, my app was working fine until i messed around with the server (installing another service). now my home page has an error page tacked on the end of it! you can see it for yourself at http://rufus.stanford.edu (v…

---

## [Problem starting mongrel](https://www.ruby-forum.com/t/problem-starting-mongrel/153008)

<div class="topic-metadata">

**Author:** [@chandu4ruby](https://www.ruby-forum.com/u/chandu4ruby)\
**Replies:** 1\
**Last updated:** [November 11, 2008, 2:07am UTC](https://www.ruby-forum.com/t/problem-starting-mongrel/153008 "2008-11-11T02:07:08Z")

</div>

Hi, I am newbie started learning ruby on rails i had an application which used to run pretty well latter i upgraded from webbrick to mongrel 1.1.5 then I am getting the foloowing errors and a default application runs…

---

## [My crop - how to update thumbnails](https://www.ruby-forum.com/t/my-crop-how-to-update-thumbnails/152999)

<div class="topic-metadata">

**Author:** [@tomtoday](https://www.ruby-forum.com/u/tomtoday)\
**Replies:** 0\
**Last updated:** [November 11, 2008, 12:38am UTC](https://www.ruby-forum.com/t/my-crop-how-to-update-thumbnails/152999 "2008-11-11T00:38:52Z")

</div>

Hi, I made ruby do the resize based on JS cropper. The image is cropped and can be written to drive, but I dont know how to oryginal image and thumbs. Here is the code: def my\_crop(args={}) x1 = args\[:x1\].to\_i y1 …

---

## [Override precedence](https://www.ruby-forum.com/t/override-precedence/152997)

<div class="topic-metadata">

**Author:** [@giorgio](https://www.ruby-forum.com/u/giorgio)\
**Replies:** 3\
**Last updated:** [November 11, 2008, 12:27am UTC](https://www.ruby-forum.com/t/override-precedence/152997 "2008-11-11T00:27:38Z")

</div>

Hi, I am having trouble overriding methods in a plugin. I am trying to apply a patch to attachment\_fu by overriding a method in on of the attachment\_fu modules from with a file in my libs folder. I am using the sugge…

---

## [Securing the views](https://www.ruby-forum.com/t/securing-the-views/152993)

<div class="topic-metadata">

**Author:** [@panatura](https://www.ruby-forum.com/u/panatura)\
**Replies:** 3\
**Last updated:** [November 11, 2008, 12:06am UTC](https://www.ruby-forum.com/t/securing-the-views/152993 "2008-11-11T00:06:51Z")

</div>

Hi, what about writing \<%= h(@foo) %\> in the view? I heard it’s necessary for every information out of the database, I just couldn’t find any information 'bout that? … and what about writing -%\> ? What’s that for? In…

---

## [Override \[\] and \[\]= on an ActiveRecord](https://www.ruby-forum.com/t/override-and-on-an-activerecord/152994)

<div class="topic-metadata">

**Author:** [@jrochkind](https://www.ruby-forum.com/u/jrochkind)\
**Replies:** 1\
**Last updated:** [November 10, 2008, 11:47pm UTC](https://www.ruby-forum.com/t/override-and-on-an-activerecord/152994 "2008-11-10T23:47:45Z")

</div>

Okay, I finally figured out what was going on with my mysterious migrate-to-Rails2 problem. In Rails 1.x, I got away with over-riding \[\] and \[\]= on an ActiveRecord::Base model class. This made for some very convenient …

---

## [Rails 2.1.2 bug in include on has\_many?](https://www.ruby-forum.com/t/rails-2-1-2-bug-in-include-on-has-many/152708)

<div class="topic-metadata">

**Author:** [@jrochkind](https://www.ruby-forum.com/u/jrochkind)\
**Replies:** 10\
**Last updated:** [November 10, 2008, 11:46pm UTC](https://www.ruby-forum.com/t/rails-2-1-2-bug-in-include-on-has-many/152708 "2008-11-10T23:46:11Z")

</div>

In my continued efforts to port my rails 1.x app to Rails 2.1.2, I keep running into what appear to be ActiveRecord bugs. I am using an :include on a :has\_many definition: class Request \< ActiveRecord::Base has\_many …

---

## [Is there a "validates\_empty" method or a way to do this in a single line?](https://www.ruby-forum.com/t/is-there-a-validates-empty-method-or-a-way-to-do-this-in-a-single-line/152990)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 1\
**Last updated:** [November 10, 2008, 11:07pm UTC](https://www.ruby-forum.com/t/is-there-a-validates-empty-method-or-a-way-to-do-this-in-a-single-line/152990 "2008-11-10T23:07:03Z")

</div>

Hi, re Model validations: is there a “validates\_empty” method or a way to do this in a single line? tks

---

## [Curl::Multi post](https://www.ruby-forum.com/t/curl-multi-post/152980)

<div class="topic-metadata">

**Author:** [@casey.ellett](https://www.ruby-forum.com/u/casey.ellett)\
**Replies:** 1\
**Last updated:** [November 10, 2008, 10:44pm UTC](https://www.ruby-forum.com/t/curl-multi-post/152980 "2008-11-10T22:44:40Z")

</div>

I’m having trouble finding documentation on the curl-multi gem. I need to post some xml to a webservice - I’ve done this in PHP before. so far : require ‘curl-multi’ curl = Curl::Multi.new curl.post(“url”, “xml”, ?…

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

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