# Rails

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

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

---

## [Give me Suggestion To run ruby file by sciTE in Ubuntu](https://www.ruby-forum.com/t/give-me-suggestion-to-run-ruby-file-by-scite-in-ubuntu/182524)

<div class="topic-metadata">

**Author:** [@Paul\_OM](https://www.ruby-forum.com/u/Paul_OM)\
**Replies:** 2\
**Last updated:** [January 29, 2010, 10:53am UTC](https://www.ruby-forum.com/t/give-me-suggestion-to-run-ruby-file-by-scite-in-ubuntu/182524 "2010-01-29T10:53:21Z")

</div>

I am a newcomer in Ruby. Recently, I am trying to run ruby at Ubuntu. It works well, but the problem occurs when i try to run the program through sciTE at ubuntu. it shows error for ‘gets’ as below: gets’: Bad file de…

---

## [Need help -Video upload progress bar](https://www.ruby-forum.com/t/need-help-video-upload-progress-bar/182454)

<div class="topic-metadata">

**Author:** [@shyam\_mohan](https://www.ruby-forum.com/u/shyam_mohan)\
**Replies:** 2\
**Last updated:** [January 29, 2010, 6:31am UTC](https://www.ruby-forum.com/t/need-help-video-upload-progress-bar/182454 "2010-01-29T06:31:43Z")

</div>

Hi all I want to show progress of video file upload. I google about this but can’t find easier way to do this… if some one know it, please tell me process or link. Thanks Regards, Shyam +91-971-618-9650 removed…

---

## [Rails gem download problem](https://www.ruby-forum.com/t/rails-gem-download-problem/182458)

<div class="topic-metadata">

**Author:** [@senling](https://www.ruby-forum.com/u/senling)\
**Replies:** 2\
**Last updated:** [January 29, 2010, 5:25am UTC](https://www.ruby-forum.com/t/rails-gem-download-problem/182458 "2010-01-29T05:25:00Z")

</div>

Hi, I’m setting the rails environment in my windows machine. While downloading the gems from https://rubyforge.org/, it seems very slow downloading i’m trying to download rubygem from this url : http://files.rubyfo…

---

## [Session being lost before TwitterOauth callback](https://www.ruby-forum.com/t/session-being-lost-before-twitteroauth-callback/226058)

<div class="topic-metadata">

**Author:** [@acreadinglist](https://www.ruby-forum.com/u/acreadinglist)\
**Replies:** 0\
**Last updated:** [January 29, 2010, 5:08am UTC](https://www.ruby-forum.com/t/session-being-lost-before-twitteroauth-callback/226058 "2010-01-29T05:08:01Z")

</div>

I’m building something like a multi-twitter-feed-manager, using the TwitterOauth plugin to handle authorization with Twitter. Before redirecting to Twitter, I add some data to the session. When Twitter redirects to …

---

## [Noob question: create a link to google a parameter](https://www.ruby-forum.com/t/noob-question-create-a-link-to-google-a-parameter/182337)

<div class="topic-metadata">

**Author:** [@radu\_puspana](https://www.ruby-forum.com/u/radu_puspana)\
**Replies:** 18\
**Last updated:** [January 29, 2010, 5:08am UTC](https://www.ruby-forum.com/t/noob-question-create-a-link-to-google-a-parameter/182337 "2010-01-29T05:08:01Z")

</div>

Hi guys, can you spare a sec? My question is: how can I create a link so that a customer, when clicking an author;s name, can find the results of that name googled already(like rails entering something in the search b…

---

## [Rails3 + Ruby 1.9.1 p376 + mySQL Test Server for everybody](https://www.ruby-forum.com/t/rails3-ruby-1-9-1-p376-mysql-test-server-for-everybody/182506)

<div class="topic-metadata">

**Author:** [@ialuronico](https://www.ruby-forum.com/u/ialuronico)\
**Replies:** 0\
**Last updated:** [January 29, 2010, 2:54am UTC](https://www.ruby-forum.com/t/rails3-ruby-1-9-1-p376-mysql-test-server-for-everybody/182506 "2010-01-29T02:54:28Z")

</div>

Hi everybody, right now I’m paying around on this configuration if you need a check for a gem or an application just let me know and I will try to see if it works on this machine. Later I will post the script for an…

---

## [Collection\_select](https://www.ruby-forum.com/t/collection-select/182492)

<div class="topic-metadata">

**Author:** [@scrozier](https://www.ruby-forum.com/u/scrozier)\
**Replies:** 3\
**Last updated:** [January 29, 2010, 2:14am UTC](https://www.ruby-forum.com/t/collection-select/182492 "2010-01-29T02:14:20Z")

</div>

I’m rendering my form in a partial, as below: … \<%= f.collection\_select :color\_id, @colors, :id, :name, {:include\_blank =\> false, :prompt =\> ‘What color?’} %\> … Now, I’m rendering this partial in both the new and ed…

---

## [Exception\_notification error: custom\_require.rb:31:in \`gem\_original\_re quire': no such file to load](https://www.ruby-forum.com/t/exception-notification-error-custom-require-rbin-gem-original-re-quire-no-such-file-to-load/182405)

<div class="topic-metadata">

**Author:** [@rtacconi](https://www.ruby-forum.com/u/rtacconi)\
**Replies:** 1\
**Last updated:** [January 28, 2010, 11:36pm UTC](https://www.ruby-forum.com/t/exception-notification-error-custom-require-rbin-gem-original-re-quire-no-such-file-to-load/182405 "2010-01-28T23:36:41Z")

</div>

I am trying to use exception\_notification but I get this error: $ script/server =\> Booting Mongrel =\> Rails 2.3.4 application starting on http://0.0.0.0:3000 c:/ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:…

---

## [How do I properly create a menu with optgroup labels?](https://www.ruby-forum.com/t/how-do-i-properly-create-a-menu-with-optgroup-labels/166556)

<div class="topic-metadata">

**Author:** [@jimb](https://www.ruby-forum.com/u/jimb)\
**Replies:** 9\
**Last updated:** [January 28, 2010, 11:00pm UTC](https://www.ruby-forum.com/t/how-do-i-properly-create-a-menu-with-optgroup-labels/166556 "2010-01-28T23:00:38Z")

</div>

Hi, I’m trying to produce a select menu with “optgroup” tags. The HTML output should look like this: Denmark Germany France United States Canada In rails I’m typing this: \<%= f.select :…

---

## [Fields\_for object methods - no you see them, now you don't](https://www.ruby-forum.com/t/fields-for-object-methods-no-you-see-them-now-you-dont/182477)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 4\
**Last updated:** [January 28, 2010, 10:51pm UTC](https://www.ruby-forum.com/t/fields-for-object-methods-no-you-see-them-now-you-dont/182477 "2010-01-28T22:51:37Z")

</div>

I have this: \<%-f.fields\_for(:clearances, :index =\> \[\]) do |ff| puts ff.object.methods.sort if ff.object.newrecord? ff\_id = "new\_" else ff\_id = "sho…

---

## [What is the purpose of :conditions on a belongs\_to association?](https://www.ruby-forum.com/t/what-is-the-purpose-of-conditions-on-a-belongs-to-association/182478)

<div class="topic-metadata">

**Author:** [@dnstevenson](https://www.ruby-forum.com/u/dnstevenson)\
**Replies:** 5\
**Last updated:** [January 28, 2010, 10:49pm UTC](https://www.ruby-forum.com/t/what-is-the-purpose-of-conditions-on-a-belongs-to-association/182478 "2010-01-28T22:49:16Z")

</div>

Say I have the following association with an attached condition: belongs\_to :admin\_user, :class\_name =\> 'User', :foreign\_key =\> :admin\_user\_id, :conditions=\> 'users.admin=TRUE' # or any variation with hash o…

---

## [Testing errors](https://www.ruby-forum.com/t/testing-errors/182344)

<div class="topic-metadata">

**Author:** [@vihrao](https://www.ruby-forum.com/u/vihrao)\
**Replies:** 14\
**Last updated:** [January 28, 2010, 9:56pm UTC](https://www.ruby-forum.com/t/testing-errors/182344 "2010-01-28T21:56:34Z")

</div>

I have this method in user\_controller\_test.rb file def test\_auth\_bob #check we can login post :login, :user=\> { :login =\> “bob”, :password =\> “test” } assert\_session\_has :user assert\_equal @bob, session\[:user\] asse…

---

## [Rails 3 and destroying models](https://www.ruby-forum.com/t/rails-3-and-destroying-models/182483)

<div class="topic-metadata">

**Author:** [@hatless](https://www.ruby-forum.com/u/hatless)\
**Replies:** 1\
**Last updated:** [January 28, 2010, 9:32pm UTC](https://www.ruby-forum.com/t/rails-3-and-destroying-models/182483 "2010-01-28T21:32:00Z")

</div>

Has anyone been playing around with the Rails 3 code? I’m having an issue with destroying models. I started an app using Yehuda’s “Spinning up a new Rails app” example. Worked great. “script/generate scaffold Post ti…

---

## [Form\_for helper?](https://www.ruby-forum.com/t/form-for-helper/182485)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 0\
**Last updated:** [January 28, 2010, 8:55pm UTC](https://www.ruby-forum.com/t/form-for-helper/182485 "2010-01-28T20:55:07Z")

</div>

How would make this a helper? I would like to send in some parameters as a hidden field dynamically. \<% form\_for :file, :url =\> file\_upload\_path(:format =\> ‘js’), :html =\> { :multipart =\> true, :target =\> ‘upload\_fil…

---

## [Creating executable rails 3 generators](https://www.ruby-forum.com/t/creating-executable-rails-3-generators/182472)

<div class="topic-metadata">

**Author:** [@Kristian](https://www.ruby-forum.com/u/Kristian)\
**Replies:** 1\
**Last updated:** [January 28, 2010, 6:41pm UTC](https://www.ruby-forum.com/t/creating-executable-rails-3-generators/182472 "2010-01-28T18:41:04Z")

</div>

For inspiration I have been looking into rails 3.0pre I found this in the file bin/rails … require ‘rails/generators’ require ‘generators/rails/app/app\_generator’ Rails::Generators::AppGenerator.start Aha! Require t…

---

## [Playing a sound with flash](https://www.ruby-forum.com/t/playing-a-sound-with-flash/182448)

<div class="topic-metadata">

**Author:** [@hostep](https://www.ruby-forum.com/u/hostep)\
**Replies:** 1\
**Last updated:** [January 28, 2010, 4:36pm UTC](https://www.ruby-forum.com/t/playing-a-sound-with-flash/182448 "2010-01-28T16:36:59Z")

</div>

Hi Guys I am writing a chatlike application with Ruby on Rails. I have come across the problem that I need to subtly alert a user that a comment has been made in the case where the user has minimised the browser, or i…

---

## [Validates preference of at least one param](https://www.ruby-forum.com/t/validates-preference-of-at-least-one-param/182445)

<div class="topic-metadata">

**Author:** [@df-sean](https://www.ruby-forum.com/u/df-sean)\
**Replies:** 1\
**Last updated:** [January 28, 2010, 4:15pm UTC](https://www.ruby-forum.com/t/validates-preference-of-at-least-one-param/182445 "2010-01-28T16:15:30Z")

</div>

I have a simple RESTful search scaffold that finds data in a separate model and controller. \<h1\>New search\</h1\> \<% form\_for(@search) do |f| %\> \<%= f.error\_messages %\> \<p\> \<%= f.label :category\_id %\>\<br /\> …

---

## [Rails files are missing](https://www.ruby-forum.com/t/rails-files-are-missing/182461)

<div class="topic-metadata">

**Author:** [@sgsgsg](https://www.ruby-forum.com/u/sgsgsg)\
**Replies:** 1\
**Last updated:** [January 28, 2010, 2:41pm UTC](https://www.ruby-forum.com/t/rails-files-are-missing/182461 "2010-01-28T14:41:40Z")

</div>

I’ve built the slackware packages of rails. rails path is: /frm/ruby/1.8.6/lib/ruby/site\_ruby/1.8 RUBYLIB : /frm/ruby/1.8.6/lib/ruby/site\_ruby/1.8:/frm/ruby/1.8.6/lib/ ruby/site\_ruby/1.8/i686-linux/ I could created t…

---

## [Which is the best forums software for Rails?](https://www.ruby-forum.com/t/which-is-the-best-forums-software-for-rails/182455)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 0\
**Last updated:** [January 28, 2010, 11:07am UTC](https://www.ruby-forum.com/t/which-is-the-best-forums-software-for-rails/182455 "2010-01-28T11:07:23Z")

</div>

I would like to find a forums plugin (or not plugin if it can’t be possible) compatible with Rails 2.3.5. Which is the best?

---

## [\[JOBS\] Seeking bright SW Engineer for funded startup in San Mateo - multiple languages including Ru](https://www.ruby-forum.com/t/jobs-seeking-bright-sw-engineer-for-funded-startup-in-san-mateo-multiple-languages-including-ru/182451)

<div class="topic-metadata">

**Author:** [@Leah\_Blalock](https://www.ruby-forum.com/u/Leah_Blalock)\
**Replies:** 0\
**Last updated:** [January 28, 2010, 9:06am UTC](https://www.ruby-forum.com/t/jobs-seeking-bright-sw-engineer-for-funded-startup-in-san-mateo-multiple-languages-including-ru/182451 "2010-01-28T09:06:54Z")

</div>

This funded startup is looking for a senior level software engineer to work on building large-scale web apps and infrastructure for other developers to use. You’ll use your mastery of multiple languages with a stron…

---

## [Language issue in console](https://www.ruby-forum.com/t/language-issue-in-console/182444)

<div class="topic-metadata">

**Author:** [@toddf](https://www.ruby-forum.com/u/toddf)\
**Replies:** 2\
**Last updated:** [January 28, 2010, 7:43am UTC](https://www.ruby-forum.com/t/language-issue-in-console/182444 "2010-01-28T07:43:48Z")

</div>

Hi, We’re trying to search our database in Thai, but it seems the ruby console doesn’t recognise the characters. Can someone shead some light on this please? Some text input would be “à¸à¸£à¸¸à¸‡à¹€à¸—à¸žà¸¯” And t…

---

## [A more graceful friendly url method?](https://www.ruby-forum.com/t/a-more-graceful-friendly-url-method/182385)

<div class="topic-metadata">

**Author:** [@brianp](https://www.ruby-forum.com/u/brianp)\
**Replies:** 2\
**Last updated:** [January 28, 2010, 4:35am UTC](https://www.ruby-forum.com/t/a-more-graceful-friendly-url-method/182385 "2010-01-28T04:35:57Z")

</div>

Hey, I’m almost done a project and only now am I implementing friendly URLs. I’m using the method from “Simply Rails 2” by Patrick Lenz. This involves the following addition to the model: def to\_param “#{id}-#{name}…

---

## [Named\_scope not working](https://www.ruby-forum.com/t/named-scope-not-working/182431)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 1\
**Last updated:** [January 28, 2010, 1:29am UTC](https://www.ruby-forum.com/t/named-scope-not-working/182431 "2010-01-28T01:29:51Z")

</div>

I am just trying to have the current\_user only view students from his or her site. I wrestled with this many times and others say this should work but it only returns an empty set: StudentsController def index\_scoper …

---

## [Better way to count Active Record Data?](https://www.ruby-forum.com/t/better-way-to-count-active-record-data/182433)

<div class="topic-metadata">

**Author:** [@mrkohrea](https://www.ruby-forum.com/u/mrkohrea)\
**Replies:** 4\
**Last updated:** [January 28, 2010, 12:39am UTC](https://www.ruby-forum.com/t/better-way-to-count-active-record-data/182433 "2010-01-28T00:39:38Z")

</div>

I am trying to get hourly counts of orders between different price ranges from my database. I’m thinking there has got to be a better way than looping through each record and checking if the created\_at time fits betw…

---

## [Rails and php mixed](https://www.ruby-forum.com/t/rails-and-php-mixed/182432)

<div class="topic-metadata">

**Author:** [@fRAnKEnSTEin](https://www.ruby-forum.com/u/fRAnKEnSTEin)\
**Replies:** 4\
**Last updated:** [January 28, 2010, 12:28am UTC](https://www.ruby-forum.com/t/rails-and-php-mixed/182432 "2010-01-28T00:28:19Z")

</div>

Hi, I have a rails site hosted in a mediatemple DV plan. I am not using mongrels as web server, instead i am using passenger and it works great. Now what i want to do, is to host a PHP legacy site inside my public’s …

---

## [ActiveRecord method creation issue](https://www.ruby-forum.com/t/activerecord-method-creation-issue/182430)

<div class="topic-metadata">

**Author:** [@barorg](https://www.ruby-forum.com/u/barorg)\
**Replies:** 1\
**Last updated:** [January 28, 2010, 12:09am UTC](https://www.ruby-forum.com/t/activerecord-method-creation-issue/182430 "2010-01-28T00:09:20Z")

</div>

Sorry in advance if this is on the wrong forum/topic. I’m a novice ruby developer, starting to use ActiveRecord, and am getting stuck with the following problem: I have a class defined: class User \< ActiveRecord::Bas…

---

## [Redirection problem](https://www.ruby-forum.com/t/redirection-problem/182343)

<div class="topic-metadata">

**Author:** [@CiriusMex](https://www.ruby-forum.com/u/CiriusMex)\
**Replies:** 19\
**Last updated:** [January 27, 2010, 10:07pm UTC](https://www.ruby-forum.com/t/redirection-problem/182343 "2010-01-27T22:07:56Z")

</div>

Hello, I’m developping an application using rails 2.3.5 and ruby 1.8.7 and I’m having a problem I never had before with ruby on rails. The redirect and link\_to functions create me urls of this type: http://pizarro.co…

---

## [Exchange Server](https://www.ruby-forum.com/t/exchange-server/182397)

<div class="topic-metadata">

**Author:** [@eggie5](https://www.ruby-forum.com/u/eggie5)\
**Replies:** 2\
**Last updated:** [January 27, 2010, 6:42pm UTC](https://www.ruby-forum.com/t/exchange-server/182397 "2010-01-27T18:42:57Z")

</div>

I’m looking into interacting with a Microsoft exchange server with ruby. Any pointers? It seems not promising, i can’t seem to find anything good. Maybe I’m looking in the wrong places… Any pointers?

---

## [Help with a bit of logic](https://www.ruby-forum.com/t/help-with-a-bit-of-logic/182411)

<div class="topic-metadata">

**Author:** [@mercurius](https://www.ruby-forum.com/u/mercurius)\
**Replies:** 3\
**Last updated:** [January 27, 2010, 6:21pm UTC](https://www.ruby-forum.com/t/help-with-a-bit-of-logic/182411 "2010-01-27T18:21:31Z")

</div>

I have two tables: ‘owner\_changes’, ‘tasks’ ‘tasks’ has a primary key of ‘id’. ‘owner\_changes’ uses a ‘task\_id’ foreign key to relate the tables. ‘owner\_changes’ contains records for every instance of a task owner cha…

---

## [Restful\_authentication - some default tests failing](https://www.ruby-forum.com/t/restful-authentication-some-default-tests-failing/182410)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 2\
**Last updated:** [January 27, 2010, 6:11pm UTC](https://www.ruby-forum.com/t/restful-authentication-some-default-tests-failing/182410 "2010-01-27T18:11:47Z")

</div>

Hey all I just installed restful\_authentication in a new project and have run it’s specs. I’m getting a few failures. Just looking at the first, i can’t understand why it’s failing - can anyone see? #failing line f…

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

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