# Rails

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

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

---

## [Gem install sqlite3-ruby problem ,please help](https://www.ruby-forum.com/t/gem-install-sqlite3-ruby-problem-please-help/123931)

<div class="topic-metadata">

**Author:** [@mokkai](https://www.ruby-forum.com/u/mokkai)\
**Replies:** 12\
**Last updated:** [June 4, 2009, 7:22pm UTC](https://www.ruby-forum.com/t/gem-install-sqlite3-ruby-problem-please-help/123931 "2009-06-04T19:22:44Z")

</div>

user@ubuntu7.04:~$ gem install sqlite3-ruby Updating metadata for 7 gems from http://gems.rubyforge.org … complete Building native extensions. This could take a while… ERROR: Error installing sqlite3-ruby: ERROR:…

---

## [Attachment\_fu issue](https://www.ruby-forum.com/t/attachment-fu-issue/169464)

<div class="topic-metadata">

**Author:** [@milandobrota](https://www.ruby-forum.com/u/milandobrota)\
**Replies:** 4\
**Last updated:** [June 4, 2009, 7:01pm UTC](https://www.ruby-forum.com/t/attachment-fu-issue/169464 "2009-06-04T19:01:23Z")

</div>

When you use attachment\_fu plugin you have to use one of the image processing libraries. However, when more of them are installed I get the error: no such file to load – application.rb How can I force attachment\_fu to…

---

## [Cannot generate controller/scaffold after installing active\_scaffold plugin](https://www.ruby-forum.com/t/cannot-generate-controller-scaffold-after-installing-active-scaffold-plugin/169501)

<div class="topic-metadata">

**Author:** [@sultan](https://www.ruby-forum.com/u/sultan)\
**Replies:** 1\
**Last updated:** [June 4, 2009, 5:43pm UTC](https://www.ruby-forum.com/t/cannot-generate-controller-scaffold-after-installing-active-scaffold-plugin/169501 "2009-06-04T17:43:59Z")

</div>

script/generate controller admin c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active\_support/ core\_ext/module/aliasing.rb:33:in alias\_method': undefined methodfind\_full\_template\_path’ for class ActionView::B…

---

## [Controller method that doesn't require a view](https://www.ruby-forum.com/t/controller-method-that-doesnt-require-a-view/169494)

<div class="topic-metadata">

**Author:** [@JannaB](https://www.ruby-forum.com/u/JannaB)\
**Replies:** 9\
**Last updated:** [June 4, 2009, 5:31pm UTC](https://www.ruby-forum.com/t/controller-method-that-doesnt-require-a-view/169494 "2009-06-04T17:31:40Z")

</div>

I need to be able to write a controller method that does nothing to the view. That is, when the method in the controller terminates, I dont get an error in the browswer of: Template is missing Missing template blahb…

---

## [Enewsletter Application](https://www.ruby-forum.com/t/enewsletter-application/169506)

<div class="topic-metadata">

**Author:** [@Arabhorse](https://www.ruby-forum.com/u/Arabhorse)\
**Replies:** 0\
**Last updated:** [June 4, 2009, 5:19pm UTC](https://www.ruby-forum.com/t/enewsletter-application/169506 "2009-06-04T17:19:56Z")

</div>

Does anyone have information on where to find an email newsletter application that I can add to my existing site that was built in Rails ? Would like some to manage members, bounces, get stats, create lists, etc. Th…

---

## [Trying to get a job at Engine Yard](https://www.ruby-forum.com/t/trying-to-get-a-job-at-engine-yard/169503)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [June 4, 2009, 4:43pm UTC](https://www.ruby-forum.com/t/trying-to-get-a-job-at-engine-yard/169503 "2009-06-04T16:43:28Z")

</div>

This is sort of Rails-related :slight\_smile: I recently applied for a job at Engine Y. after meeting the staff at RailsConf 2009. EY as you probably know is one of the premiere hosting companies for Rails. The told me…

---

## [Navigation](https://www.ruby-forum.com/t/navigation/95695)

<div class="topic-metadata">

**Author:** [@jpfeifer](https://www.ruby-forum.com/u/jpfeifer)\
**Replies:** 5\
**Last updated:** [June 4, 2009, 4:38pm UTC](https://www.ruby-forum.com/t/navigation/95695 "2009-06-04T16:38:45Z")

</div>

Greetings, I appreciate the help from here as I seem to be asking the noob questions a lot, but what is a good way to deal with navigation pulled from a database? I have this in my view: \<% @nav\_buttons.each do |nav…

---

## [How to print a page using RJS](https://www.ruby-forum.com/t/how-to-print-a-page-using-rjs/169488)

<div class="topic-metadata">

**Author:** [@manisha](https://www.ruby-forum.com/u/manisha)\
**Replies:** 3\
**Last updated:** [June 4, 2009, 3:28pm UTC](https://www.ruby-forum.com/t/how-to-print-a-page-using-rjs/169488 "2009-06-04T15:28:19Z")

</div>

Hello everyone, I am trying to add an option to print my view, i.e the display webpage in my Rails application.At present I am using HTML DOM for that but I want to do that in ruby.Following some online tutorials, I a…

---

## [Rake + eval](https://www.ruby-forum.com/t/rake-eval/169359)

<div class="topic-metadata">

**Author:** [@destiney](https://www.ruby-forum.com/u/destiney)\
**Replies:** 3\
**Last updated:** [June 4, 2009, 3:14pm UTC](https://www.ruby-forum.com/t/rake-eval/169359 "2009-06-04T15:14:45Z")

</div>

I have a rake task that contains an eval call. namespace :db do namespace :load do desc ‘Loads factories into db’ task :factories =\> :environment do ActiveRecord::Base.establish\_connection( ENV\[ ‘RAILS\_ENV’ \] ) FAC…

---

## [Appending a Rails Partial with jQuery](https://www.ruby-forum.com/t/appending-a-rails-partial-with-jquery/169435)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [June 4, 2009, 3:02pm UTC](https://www.ruby-forum.com/t/appending-a-rails-partial-with-jquery/169435 "2009-06-04T15:02:19Z")

</div>

Im not sure which group to post in, so i thought i’d try both. Any Rails peeps that use jQuery? Im having a problem. I have followed Ryan B. Screencast about inserting a partial with jQuery and currently have it worki…

---

## [Exception Notifier on Windows](https://www.ruby-forum.com/t/exception-notifier-on-windows/169489)

<div class="topic-metadata">

**Author:** [@toby\_privett](https://www.ruby-forum.com/u/toby_privett)\
**Replies:** 1\
**Last updated:** [June 4, 2009, 2:53pm UTC](https://www.ruby-forum.com/t/exception-notifier-on-windows/169489 "2009-06-04T14:53:30Z")

</div>

Hello, I am trying to use the exception\_notification plugin in a rail app running on windows. The plugin doesn’t seem to be firing (there are no traces in the log file). The same app, configuration, etc, running on l…

---

## [Wrong number of arguments (1 for 0)](https://www.ruby-forum.com/t/wrong-number-of-arguments-1-for-0/169485)

<div class="topic-metadata">

**Author:** [@springbok](https://www.ruby-forum.com/u/springbok)\
**Replies:** 1\
**Last updated:** [June 4, 2009, 12:26pm UTC](https://www.ruby-forum.com/t/wrong-number-of-arguments-1-for-0/169485 "2009-06-04T12:26:20Z")

</div>

Hi, I hope someone can help me because this is driving me crazy, I’ve spent hours trying to track this down. I’m trying to convert a Rails 1.1 to Rails 2.3.2 and I’m getting the following error when trying to save a …

---

## [Autosave no longer a valid option for belongs\_to?](https://www.ruby-forum.com/t/autosave-no-longer-a-valid-option-for-belongs-to/162526)

<div class="topic-metadata">

**Author:** [@jfoxny](https://www.ruby-forum.com/u/jfoxny)\
**Replies:** 1\
**Last updated:** [June 4, 2009, 12:04pm UTC](https://www.ruby-forum.com/t/autosave-no-longer-a-valid-option-for-belongs-to/162526 "2009-06-04T12:04:34Z")

</div>

The Rails API doc (api.rubyonrails.org) says that :autosave is still a valid option for belongs\_to in the latest version of Rails. However, a look at the activerecord/lib/active\_record/associations.rb (line 1590) rev…

---

## [Thinking sphinx "-" operator](https://www.ruby-forum.com/t/thinking-sphinx-operator/169481)

<div class="topic-metadata">

**Author:** [@tilt](https://www.ruby-forum.com/u/tilt)\
**Replies:** 0\
**Last updated:** [June 4, 2009, 9:55am UTC](https://www.ruby-forum.com/t/thinking-sphinx-operator/169481 "2009-06-04T09:55:20Z")

</div>

Hi, Is there a way to turn off operators in a Sphinx search or to force an exact match? If we use TS for filtering we’re getting problems with our url keys otherwise. Thanks for advice! Best regards

---

## [Legacy db connection](https://www.ruby-forum.com/t/legacy-db-connection/169076)

<div class="topic-metadata">

**Author:** [@musty](https://www.ruby-forum.com/u/musty)\
**Replies:** 9\
**Last updated:** [June 4, 2009, 9:44am UTC](https://www.ruby-forum.com/t/legacy-db-connection/169076 "2009-06-04T09:44:12Z")

</div>

Hello All. I need to connect to an older db that doesn’t follow the rails naming structure. I can establish a connection ok and read data but am unable to join two tables together within that database. This is what I …

---

## [Error occuring 'ruby script/server -debugger'](https://www.ruby-forum.com/t/error-occuring-ruby-script-server-debugger/169413)

<div class="topic-metadata">

**Author:** [@kendall](https://www.ruby-forum.com/u/kendall)\
**Replies:** 7\
**Last updated:** [June 4, 2009, 9:41am UTC](https://www.ruby-forum.com/t/error-occuring-ruby-script-server-debugger/169413 "2009-06-04T09:41:14Z")

</div>

C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active\_support/core\_ext/ rocess/daemon.rb:4:in \`fork': fork() function is unimplemented on this machine NotImplementedError) from C:/Ruby/lib/ruby/gems/1.8/g…

---

## [Unit Testing with authlogic](https://www.ruby-forum.com/t/unit-testing-with-authlogic/169480)

<div class="topic-metadata">

**Author:** [@elioncho](https://www.ruby-forum.com/u/elioncho)\
**Replies:** 0\
**Last updated:** [June 4, 2009, 9:12am UTC](https://www.ruby-forum.com/t/unit-testing-with-authlogic/169480 "2009-06-04T09:12:31Z")

</div>

Hi guys, I am new to the testing world and was trying to test my user model. My user model has the acts\_as\_authentic line on it, so a number of things are added to it. I added the: require “authlogic/test\_case” to …

---

## [Logging with the daemons gem](https://www.ruby-forum.com/t/logging-with-the-daemons-gem/168318)

<div class="topic-metadata">

**Author:** [@pyr0](https://www.ruby-forum.com/u/pyr0)\
**Replies:** 1\
**Last updated:** [June 4, 2009, 8:30am UTC](https://www.ruby-forum.com/t/logging-with-the-daemons-gem/168318 "2009-06-04T08:30:29Z")

</div>

I am trying to leverage the daemons gem but I am confused about the proper way to set up logging. I am able pass options which configure stdout to go to a log file but it seems like all calls to Rails.logger are disa…

---

## [Can you set Base class attributes from a subclass?](https://www.ruby-forum.com/t/can-you-set-base-class-attributes-from-a-subclass/169472)

<div class="topic-metadata">

**Author:** [@clemrock](https://www.ruby-forum.com/u/clemrock)\
**Replies:** 7\
**Last updated:** [June 4, 2009, 8:24am UTC](https://www.ruby-forum.com/t/can-you-set-base-class-attributes-from-a-subclass/169472 "2009-06-04T08:24:25Z")

</div>

Hello, I’m overriding the initialize method of a base class and I’m trying to set a Base class variable in the overridden method and have it register in the Base class (hope that makes sense). Here’s my code: in Ra…

---

## [Error with Rails.logger: closed stream (IOError)](https://www.ruby-forum.com/t/error-with-rails-logger-closed-stream-ioerror/169468)

<div class="topic-metadata">

**Author:** [@cpher](https://www.ruby-forum.com/u/cpher)\
**Replies:** 0\
**Last updated:** [June 4, 2009, 2:29am UTC](https://www.ruby-forum.com/t/error-with-rails-logger-closed-stream-ioerror/169468 "2009-06-04T02:29:18Z")

</div>

Hi all. I am creating a plugin that uses the daemons gem to run some code in the background. In that code, I call Rails.logger.info “message”, but receive the following error. /opt/local/lib/ruby/gems/1.8/gems/activ…

---

## [Local file href or redirect](https://www.ruby-forum.com/t/local-file-href-or-redirect/169466)

<div class="topic-metadata">

**Author:** [@mk27](https://www.ruby-forum.com/u/mk27)\
**Replies:** 2\
**Last updated:** [June 4, 2009, 2:16am UTC](https://www.ruby-forum.com/t/local-file-href-or-redirect/169466 "2009-06-04T02:16:03Z")

</div>

If I include a link like this in a view: GO! The link works normally. But this: GO! is somehow blocked, and there is NO ERROR OR OTHER FORM OF EXPLANATION OR NOTIFICATION by webrick, rails, et. al. That is very un…

---

## [Mysql big decimal](https://www.ruby-forum.com/t/mysql-big-decimal/169378)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 10\
**Last updated:** [June 4, 2009, 2:12am UTC](https://www.ruby-forum.com/t/mysql-big-decimal/169378 "2009-06-04T02:12:13Z")

</div>

I am using a legacy database with mysql. I am working stuff through in the console and it tells me… @price = Price.find(:first, :conditions =\> \[“stockid = ? AND typeabbrev = ?”, @test, “WH”\]).price =\> #\<Price price: …

---

## [Ruby on Rails req - Seatle WA - Fulltime](https://www.ruby-forum.com/t/ruby-on-rails-req-seatle-wa-fulltime/169461)

<div class="topic-metadata">

**Author:** [@Alex1983smith](https://www.ruby-forum.com/u/Alex1983smith)\
**Replies:** 0\
**Last updated:** [June 3, 2009, 11:56pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-req-seatle-wa-fulltime/169461 "2009-06-03T23:56:18Z")

</div>

Hi, Greetings from ITM. One of our direct client is looking for Ruby on Rails Developer full time position. Position: Ruby on Rails Developer Seattle, WA. Fulltime Responsibilities • Participates in defining and …

---

## [Rspec Controller Generator](https://www.ruby-forum.com/t/rspec-controller-generator/169386)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 7\
**Last updated:** [June 3, 2009, 11:13pm UTC](https://www.ruby-forum.com/t/rspec-controller-generator/169386 "2009-06-03T23:13:09Z")

</div>

I’m using Ruby 1.9.1-p129 on Windows Rails 2.3.2 I have Rspec and Rspec\_generator and use Netbeans 6.5 IDE… When I try to generate Rspec Controller, everything works except for the final view which errors out because…

---

## [How do others handle no-cache?](https://www.ruby-forum.com/t/how-do-others-handle-no-cache/169455)

<div class="topic-metadata">

**Author:** [@pedz](https://www.ruby-forum.com/u/pedz)\
**Replies:** 0\
**Last updated:** [June 3, 2009, 11:02pm UTC](https://www.ruby-forum.com/t/how-do-others-handle-no-cache/169455 "2009-06-03T23:02:49Z")

</div>

The browser can append to the request a ‘no-cache’ option and other options. Firefox sets this if you do a refresh with the shift key down (at least on the Mac). I am considering expiring all of my fragments that are…

---

## [Model Association Question](https://www.ruby-forum.com/t/model-association-question/169387)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 5\
**Last updated:** [June 3, 2009, 10:25pm UTC](https://www.ruby-forum.com/t/model-association-question/169387 "2009-06-03T22:25:59Z")

</div>

It seems like there may be a rails method for the following situation: model User has\_many :appointments model Appointment has\_one :instruction belongs\_to :user model Instruction belongs\_to :appointment I would l…

---

## [Instance variable (conroller\>view) and RESTful](https://www.ruby-forum.com/t/instance-variable-conroller-view-and-restful/169184)

<div class="topic-metadata">

**Author:** [@zambezi](https://www.ruby-forum.com/u/zambezi)\
**Replies:** 9\
**Last updated:** [June 3, 2009, 8:46pm UTC](https://www.ruby-forum.com/t/instance-variable-conroller-view-and-restful/169184 "2009-06-03T20:46:55Z")

</div>

I’m a bit flummoxed by something and hoping someone can offer an explanation. If I create a controller (test) with a RESTfully named method and a view (…/test/index), the value of the instance variable passes to the …

---

## [Encoding issue](https://www.ruby-forum.com/t/encoding-issue/169429)

<div class="topic-metadata">

**Author:** [@mk27](https://www.ruby-forum.com/u/mk27)\
**Replies:** 2\
**Last updated:** [June 3, 2009, 8:37pm UTC](https://www.ruby-forum.com/t/encoding-issue/169429 "2009-06-03T20:37:25Z")

</div>

I’m having a problem with output gleaned from searching ISO-8859-9 web pages. I thought I had rectified this by opening the pages “r:ISO…”, and by using .force\_encoding and .encode! with the lines. This seems to work…

---

## [\[ANN\] Aloha on Rails, Hawaii Ruby on Rails Conference, Early Bird Registration (50% Off)](https://www.ruby-forum.com/t/ann-aloha-on-rails-hawaii-ruby-on-rails-conference-early-bird-registration-50-off/169444)

<div class="topic-metadata">

**Author:** [@seth](https://www.ruby-forum.com/u/seth)\
**Replies:** 0\
**Last updated:** [June 3, 2009, 8:33pm UTC](https://www.ruby-forum.com/t/ann-aloha-on-rails-hawaii-ruby-on-rails-conference-early-bird-registration-50-off/169444 "2009-06-03T20:33:54Z")

</div>

Aloha, We are proud to announce that the Aloha on Rails (http:// alohaonrails.com/), the Hawaii Ruby on Rails Conference, has opened the Super Early Bird Registration. The Aloha on Rails Conference, Oct 5-6 2009, is…

---

## [Methods or actions? ask or tell?](https://www.ruby-forum.com/t/methods-or-actions-ask-or-tell/169439)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 0\
**Last updated:** [June 3, 2009, 7:10pm UTC](https://www.ruby-forum.com/t/methods-or-actions-ask-or-tell/169439 "2009-06-03T19:10:34Z")

</div>

I have been pondering a routing issue for the past few days. This is an area of Rails that I have only recently started to study in any detail. So, I would appreciate any information you can give regarding the prefer…

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

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