# Rails

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

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

---

## [Thinking sphinx startup issue](https://www.ruby-forum.com/t/thinking-sphinx-startup-issue/195958)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 7\
**Last updated:** [October 4, 2010, 4:54am UTC](https://www.ruby-forum.com/t/thinking-sphinx-startup-issue/195958 "2010-10-04T04:54:21Z")

</div>

when I do rake ts:start I get this error, mac: private method \`new’ called for ThinkingSphinx::Configuration:Class Ideas??

---

## [Question about Drag-and-Drop element](https://www.ruby-forum.com/t/question-about-drag-and-drop-element/195960)

<div class="topic-metadata">

**Author:** [@lambda](https://www.ruby-forum.com/u/lambda)\
**Replies:** 0\
**Last updated:** [October 4, 2010, 4:35am UTC](https://www.ruby-forum.com/t/question-about-drag-and-drop-element/195960 "2010-10-04T04:35:31Z")

</div>

Hi, I am testing the helper “drop\_receiving\_element” refer to the ROR book. the sample code like this : \<%= drop\_receiving\_element(‘completed\_todos’, :accept =\> ‘pending\_todo’, :complete =\> “$(‘spinner’).hide();” , …

---

## [Printing special characters on screen in Ruby](https://www.ruby-forum.com/t/printing-special-characters-on-screen-in-ruby/194962)

<div class="topic-metadata">

**Author:** [@dmcclean](https://www.ruby-forum.com/u/dmcclean)\
**Replies:** 9\
**Last updated:** [October 4, 2010, 3:25am UTC](https://www.ruby-forum.com/t/printing-special-characters-on-screen-in-ruby/194962 "2010-10-04T03:25:24Z")

</div>

I have a website that is working fine, except I cannot get it to print out characters other than plain text. Characters such as ', :, " and others like degrees print with the dreaded black diamond with a ? inside. An…

---

## [Error Running Rails 3 Application under Phusion Passenger](https://www.ruby-forum.com/t/error-running-rails-3-application-under-phusion-passenger/195935)

<div class="topic-metadata">

**Author:** [@mfaine](https://www.ruby-forum.com/u/mfaine)\
**Replies:** 4\
**Last updated:** [October 3, 2010, 11:57pm UTC](https://www.ruby-forum.com/t/error-running-rails-3-application-under-phusion-passenger/195935 "2010-10-03T23:57:12Z")

</div>

I have a rails 3 application that runs without problems under WebRick (on Ubuntu) that generates the following error in the browser when I run under Apache2 with Phusion Passenger: Ruby (Rack) application could not be…

---

## [How to write a test hash for a nested form?](https://www.ruby-forum.com/t/how-to-write-a-test-hash-for-a-nested-form/195918)

<div class="topic-metadata">

**Author:** [@ntk](https://www.ruby-forum.com/u/ntk)\
**Replies:** 2\
**Last updated:** [October 3, 2010, 9:51pm UTC](https://www.ruby-forum.com/t/how-to-write-a-test-hash-for-a-nested-form/195918 "2010-10-03T21:51:54Z")

</div>

How to write a hash for a nested form?? Example form fields (main model is Practice, nested is User): practice\[name\] practice\[users\_attributes\]\[0\]\[email\] I want to do this: post: post :create, :practice =\> { :name …

---

## [Newbie - submit\_tag with link?](https://www.ruby-forum.com/t/newbie-submit-tag-with-link/195938)

<div class="topic-metadata">

**Author:** [@Anders\_P](https://www.ruby-forum.com/u/Anders_P)\
**Replies:** 4\
**Last updated:** [October 3, 2010, 8:40pm UTC](https://www.ruby-forum.com/t/newbie-submit-tag-with-link/195938 "2010-10-03T20:40:29Z")

</div>

Hello! I have a systemwide search field with a submit button (submit\_tag). Like so: \<%= submit\_tag “Search” %\> I wonder if there is a way to link to a chosen path when the user presses the submit button, in my case …

---

## [Rails 3 observers](https://www.ruby-forum.com/t/rails-3-observers/195939)

<div class="topic-metadata">

**Author:** [@IAmNan](https://www.ruby-forum.com/u/IAmNan)\
**Replies:** 1\
**Last updated:** [October 3, 2010, 7:09pm UTC](https://www.ruby-forum.com/t/rails-3-observers/195939 "2010-10-03T19:09:44Z")

</div>

Rails Guides says: …the UserObserver … would be saved as app/models/user\_observer.rb and registered in config/environment.rb this way: config.active\_record.observers = :user\_observer But the observer registration abo…

---

## [Basic question on controller; "no route matches for hello/world"](https://www.ruby-forum.com/t/basic-question-on-controller-no-route-matches-for-hello-world/195924)

<div class="topic-metadata">

**Author:** [@dangermoose](https://www.ruby-forum.com/u/dangermoose)\
**Replies:** 4\
**Last updated:** [October 3, 2010, 10:55am UTC](https://www.ruby-forum.com/t/basic-question-on-controller-no-route-matches-for-hello-world/195924 "2010-10-03T10:55:11Z")

</div>

Just starting out with RoR3, and have tried to render first page. Here is code for hello\_controller.rb class HelloController \< ApplicationController def world render :text =\> “ Hello world!” end end Did not make a…

---

## [Routes are not available in RSpec integration test](https://www.ruby-forum.com/t/routes-are-not-available-in-rspec-integration-test/195933)

<div class="topic-metadata">

**Author:** [@paul](https://www.ruby-forum.com/u/paul)\
**Replies:** 0\
**Last updated:** [October 3, 2010, 10:54am UTC](https://www.ruby-forum.com/t/routes-are-not-available-in-rspec-integration-test/195933 "2010-10-03T10:54:00Z")

</div>

My RSpec integration tests do not seem to have access to the rails routes methods. Here’s a link to my more descriptive question on stack overflow: Does anyone know how to fix this?

---

## [General Arel, ActiveRecord Adapter question?](https://www.ruby-forum.com/t/general-arel-activerecord-adapter-question/195911)

<div class="topic-metadata">

**Author:** [@dancinglightning](https://www.ruby-forum.com/u/dancinglightning)\
**Replies:** 3\
**Last updated:** [October 3, 2010, 8:43am UTC](https://www.ruby-forum.com/t/general-arel-activerecord-adapter-question/195911 "2010-10-03T08:43:30Z")

</div>

Hi, I’m considering to make my database\* ActiveRecord compatible. To this end I have some questions, or would appreciate pointers where to ask: as the db is not sql, I think writing an ActiveRecord/sql adapter isn’t…

---

## [Need a way to use sort\_by with possible nil values](https://www.ruby-forum.com/t/need-a-way-to-use-sort-by-with-possible-nil-values/195847)

<div class="topic-metadata">

**Author:** [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Replies:** 6\
**Last updated:** [October 3, 2010, 7:52am UTC](https://www.ruby-forum.com/t/need-a-way-to-use-sort-by-with-possible-nil-values/195847 "2010-10-03T07:52:04Z")

</div>

In my view, I do a \<%= render :partial =\> ‘person’, :collection =\> @household.people.sort\_by(&:birthday) %\> household has a has\_many relationship with person, and this works fine until… an errant user creates a new …

---

## [Can't stop webrick with ctrl-c or ctrl-d on linux host](https://www.ruby-forum.com/t/cant-stop-webrick-with-ctrl-c-or-ctrl-d-on-linux-host/195914)

<div class="topic-metadata">

**Author:** [@maunzinha](https://www.ruby-forum.com/u/maunzinha)\
**Replies:** 6\
**Last updated:** [October 3, 2010, 2:24am UTC](https://www.ruby-forum.com/t/cant-stop-webrick-with-ctrl-c-or-ctrl-d-on-linux-host/195914 "2010-10-03T02:24:23Z")

</div>

Hi All I have setup a new dev system running LinuxMint 9 (Ubuntu 10.4). Running ruby 1.9.2, rails 3.0, RVM etc. One issue I have run into is that I can’t stop webrick with ctrl+c or ctrl+d and killing the terminal…

---

## [Nested Resourced, Books \> Authorsâ€¦ Creatin g Records for Authorsâ€¦](https://www.ruby-forum.com/t/nested-resourced-books-authorsa-creatin-g-records-for-authorsa/195915)

<div class="topic-metadata">

**Author:** [@nobosh](https://www.ruby-forum.com/u/nobosh)\
**Replies:** 6\
**Last updated:** [October 3, 2010, 1:55am UTC](https://www.ruby-forum.com/t/nested-resourced-books-authorsa-creatin-g-records-for-authorsa/195915 "2010-10-03T01:55:41Z")

</div>

Hello, I have the following Rails3 nested resource in my routes.rb: resources :books do resources :authors end My authors table has ID | name | book\_id Given I’m at the URL /books/312/authors/new I’m having proble…

---

## [Re: Lacking some enlightenment on why rspec says I have a 200 response when I do not (SOLVED)](https://www.ruby-forum.com/t/re-lacking-some-enlightenment-on-why-rspec-says-i-have-a-200-response-when-i-do-not-solved/195917)

<div class="topic-metadata">

**Author:** [@ntk](https://www.ruby-forum.com/u/ntk)\
**Replies:** 0\
**Last updated:** [October 2, 2010, 9:16pm UTC](https://www.ruby-forum.com/t/re-lacking-some-enlightenment-on-why-rspec-says-i-have-a-200-response-when-i-do-not-solved/195917 "2010-10-02T21:16:32Z")

</div>

Please pretend I never sent this. My test had the wrong action (new instead of index). No duh it was not hitting the code.

---

## [Lacking some enlightenment on why rspec says I have a 200 response when I do not](https://www.ruby-forum.com/t/lacking-some-enlightenment-on-why-rspec-says-i-have-a-200-response-when-i-do-not/195913)

<div class="topic-metadata">

**Author:** [@ntk](https://www.ruby-forum.com/u/ntk)\
**Replies:** 0\
**Last updated:** [October 2, 2010, 8:59pm UTC](https://www.ruby-forum.com/t/lacking-some-enlightenment-on-why-rspec-says-i-have-a-200-response-when-i-do-not/195913 "2010-10-02T20:59:33Z")

</div>

I am writing a few low level tests for my controllers to verify security. New to rspec and am seeing some unexpected activity: If I run this spec: describe “GET index” do it “does not load for guest role” do get :n…

---

## [Paperclip not executing FFMPEG properly](https://www.ruby-forum.com/t/paperclip-not-executing-ffmpeg-properly/195866)

<div class="topic-metadata">

**Author:** [@zurich\_by\_night](https://www.ruby-forum.com/u/zurich_by_night)\
**Replies:** 20\
**Last updated:** [October 2, 2010, 8:05pm UTC](https://www.ruby-forum.com/t/paperclip-not-executing-ffmpeg-properly/195866 "2010-10-02T20:05:07Z")

</div>

Im using a customs processor to run ffmpeg on a video to create a thumbnail. So far so good. Except when I do: cmd = “-i #{@file.path} -f flv -s 320x240 ~/Downloads/foobar/q.flv” success = Paperclip.run(‘ffmpeg’, cmd…

---

## [How to upload mp3 with custom duration/length](https://www.ruby-forum.com/t/how-to-upload-mp3-with-custom-duration-length/195906)

<div class="topic-metadata">

**Author:** [@zurich\_by\_night](https://www.ruby-forum.com/u/zurich_by_night)\
**Replies:** 4\
**Last updated:** [October 2, 2010, 7:14pm UTC](https://www.ruby-forum.com/t/how-to-upload-mp3-with-custom-duration-length/195906 "2010-10-02T19:14:48Z")

</div>

Does anyone know the right approach to change the duration/length of an uploaded mp3 file? User has the option to upload mp3 file as full, 30 secs or 90 secs. So far, I have gotten it to work for full. Do I have to us…

---

## [Great rails forum software](https://www.ruby-forum.com/t/great-rails-forum-software/195896)

<div class="topic-metadata">

**Author:** [@ksader](https://www.ruby-forum.com/u/ksader)\
**Replies:** 2\
**Last updated:** [October 2, 2010, 6:58pm UTC](https://www.ruby-forum.com/t/great-rails-forum-software/195896 "2010-10-02T18:58:25Z")

</div>

Hi all, Anyone interested in collaborating with me to develop great rails forum software? This will be a rails 3 engine that makes it very easy to plug into an existing app, integrating with your existing user model …

---

## [Problems Installing Rails 3 on a new Machine](https://www.ruby-forum.com/t/problems-installing-rails-3-on-a-new-machine/195898)

<div class="topic-metadata">

**Author:** [@nobosh](https://www.ruby-forum.com/u/nobosh)\
**Replies:** 2\
**Last updated:** [October 2, 2010, 6:54pm UTC](https://www.ruby-forum.com/t/problems-installing-rails-3-on-a-new-machine/195898 "2010-10-02T18:54:54Z")

</div>

Trying to install rails 3 on a new macbook pro. $ rails -v Could not find bcrypt-ruby-2.1.2 in any of the sources Try running bundle install. $ bundle install . . Installing bcrypt-ruby (2.1.2) with native extensi…

---

## [Application to replay through Exchange 2007](https://www.ruby-forum.com/t/application-to-replay-through-exchange-2007/195844)

<div class="topic-metadata">

**Author:** [@Suriya](https://www.ruby-forum.com/u/Suriya)\
**Replies:** 1\
**Last updated:** [October 2, 2010, 6:37pm UTC](https://www.ruby-forum.com/t/application-to-replay-through-exchange-2007/195844 "2010-10-02T18:37:21Z")

</div>

I have a developer who using Ruby on Rails to develop application for our company. I’m work as Exchange admin. The developer will develop an application (intranet) which will trigger email and relay via our exchange 2…

---

## [Newbe question](https://www.ruby-forum.com/t/newbe-question/195616)

<div class="topic-metadata">

**Author:** [@dazuma](https://www.ruby-forum.com/u/dazuma)\
**Replies:** 5\
**Last updated:** [October 2, 2010, 2:11pm UTC](https://www.ruby-forum.com/t/newbe-question/195616 "2010-10-02T14:11:01Z")

</div>

Hello everybody, I’m new to ROR and i’m building a test “job board” project just to see how far i wil come with ruby. i’m already familiar with the MVC model (currently using Zend Framework) and RESTfull webservices a…

---

## [Add wiki link to sequel backend gem](https://www.ruby-forum.com/t/add-wiki-link-to-sequel-backend-gem/195396)

<div class="topic-metadata">

**Author:** [@corin](https://www.ruby-forum.com/u/corin)\
**Replies:** 1\
**Last updated:** [October 2, 2010, 12:48pm UTC](https://www.ruby-forum.com/t/add-wiki-link-to-sequel-backend-gem/195396 "2010-10-02T12:48:29Z")

</div>

Hi! Could you please add a link to http://ruby-i18n.org/wiki for “I18n backend which allows to store/get the translations from a database using sequel.” Thanks, Corin

---

## [Legacy Single Table Inheritance - Specify Discriminator?](https://www.ruby-forum.com/t/legacy-single-table-inheritance-specify-discriminator/195893)

<div class="topic-metadata">

**Author:** [@comtux](https://www.ruby-forum.com/u/comtux)\
**Replies:** 1\
**Last updated:** [October 2, 2010, 10:23am UTC](https://www.ruby-forum.com/t/legacy-single-table-inheritance-specify-discriminator/195893 "2010-10-02T10:23:21Z")

</div>

I have a legacy database that was designed to work with Hibernate. I have the following class hierachry: class Status \< ActiveRecord::Base class ItemStatus \< Status set\_inheritance\_column :item\_type class MediaItem…

---

## [Cucumber, Capybara + Bespin/Skywriter](https://www.ruby-forum.com/t/cucumber-capybara-bespin-skywriter/195897)

<div class="topic-metadata">

**Author:** [@ramontayag](https://www.ruby-forum.com/u/ramontayag)\
**Replies:** 0\
**Last updated:** [October 2, 2010, 7:55am UTC](https://www.ruby-forum.com/t/cucumber-capybara-bespin-skywriter/195897 "2010-10-02T07:55:18Z")

</div>

I know that my question requires knowledge of Cucumber, Capybara, and Skywriter so I just wanted to do a shout-out to anyone that has come across this. Has anyone been able to make a Cucumberhttp://github.com/aslakh…

---

## [Rails 3 Plugin v Gem using /app](https://www.ruby-forum.com/t/rails-3-plugin-v-gem-using-app/195789)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 6\
**Last updated:** [October 2, 2010, 5:31am UTC](https://www.ruby-forum.com/t/rails-3-plugin-v-gem-using-app/195789 "2010-10-02T05:31:22Z")

</div>

I’m accustomed to making plugins for Rails 2, and recently updated those for Rails 3 (minor differences in structure). Spent most of this week figuring out how to make most of those gems. One of them I am having troub…

---

## [Ajax observe\_field not vorking on Rails](https://www.ruby-forum.com/t/ajax-observe-field-not-vorking-on-rails/195892)

<div class="topic-metadata">

**Author:** [@site-master](https://www.ruby-forum.com/u/site-master)\
**Replies:** 0\
**Last updated:** [October 2, 2010, 3:23am UTC](https://www.ruby-forum.com/t/ajax-observe-field-not-vorking-on-rails/195892 "2010-10-02T03:23:14Z")

</div>

down vote favorite I am trying to create some kind of search in my ruby on rails application and I want to add ajax support. I want when a user types in a search box a word, ajax automatically generates the results. …

---

## [NoMethodError](https://www.ruby-forum.com/t/nomethoderror/195874)

<div class="topic-metadata">

**Author:** [@pedro](https://www.ruby-forum.com/u/pedro)\
**Replies:** 13\
**Last updated:** [October 2, 2010, 1:26am UTC](https://www.ruby-forum.com/t/nomethoderror/195874 "2010-10-02T01:26:48Z")

</div>

Hi there! Im new on ruby/rails, and im tying to run the rake task below but I got an error. After I tested on script/console and I got the same error. Could you helpe me, please? Thanks! Pedro Rake Task: namespac…

---

## [Database localization in Rails 3.0: best practices?](https://www.ruby-forum.com/t/database-localization-in-rails-3-0-best-practices/195838)

<div class="topic-metadata">

**Author:** [@Clay\_H](https://www.ruby-forum.com/u/Clay_H)\
**Replies:** 2\
**Last updated:** [October 1, 2010, 11:45pm UTC](https://www.ruby-forum.com/t/database-localization-in-rails-3-0-best-practices/195838 "2010-10-01T23:45:33Z")

</div>

Hi, I’m working on a project that has to be localized into 4 different languages. I have no problem localizing the non-database-driven strings, but there is some database content that also requires localization. For i…

---

## [(assessments/quizes/surveys)/questions/answers](https://www.ruby-forum.com/t/assessments-quizes-surveys-questions-answers/195887)

<div class="topic-metadata">

**Author:** [@AppleII717](https://www.ruby-forum.com/u/AppleII717)\
**Replies:** 0\
**Last updated:** [October 1, 2010, 11:45pm UTC](https://www.ruby-forum.com/t/assessments-quizes-surveys-questions-answers/195887 "2010-10-01T23:45:32Z")

</div>

I have been experimenting with a generic Assessments concept that could turn into an engine/plugin/gem. I’ve actually have used this concept for a couple of years directed to a specific requirement - gathering a large…

---

## [How to run a CRON task at midnight of each user's local time](https://www.ruby-forum.com/t/how-to-run-a-cron-task-at-midnight-of-each-users-local-time/195854)

<div class="topic-metadata">

**Author:** [@bertly\_the\_coder](https://www.ruby-forum.com/u/bertly_the_coder)\
**Replies:** 2\
**Last updated:** [October 1, 2010, 11:09pm UTC](https://www.ruby-forum.com/t/how-to-run-a-cron-task-at-midnight-of-each-users-local-time/195854 "2010-10-01T23:09:15Z")

</div>

I have a job I want to run at midnight of whatever timezone the user is in. Right now it runs at midnight, server time. I want to make it run every hour and only affect the user’s whose local time, at time of running …

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

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