Re: Extending methods in the module Inflector ?

Radek Hnilica
2005-07-19T09:46:42Z

Please, please, please,

I''m new to Rails, trying to study it and build some simple
applications.  But I''m not able to do anything.  I traced the errors
and it seems that the great source of all problems I have is the
pluras mechanism.  It just rename things under my hands without a
notice so nothing works and all table/class names are wrong.

Please, pleas, please, is there a way to completly shoot down this
autorenaming feature?

My last problem is: I have table ''pokus''.  Using
http://wiki.rubyonrails.com/rails/show/HowToUseLegacySchemas I
wrote/rewrote model to:

File: app/models/pokus.rb
class Pokus < ActiveRecord::Base
    def self.table_name()
        ''pokus''
    end
end
---EOF

And the controller in file app/controllers/pokus_controller.rb to:
class PokusController < ApplicationController
    model :pokus
    scaffold :pokus
end
---EOF

and the application displays error
 NameError in Pokus#index
 uninitialized constant Poku

I can''t find where and how to map all the things than Rails maps
behaind the scene with autorenaming.