Re: Extending methods in the module Inflector ?

Radek Hnilica
2005-07-19T18:14:31Z

On Tue, Jul 19, 2005 at 02:05:37PM -0400, Sean T Allen
wrote:
> I think paginate is causing the problem.
>
> Not in seznam
>
> but the default generated scaffolding for say list... doesnt pass
> :class_name to paginate
> thus causing a problem. definately a ''bug''...
>
> override or generate the scaffolding out and avoid it altogether...
>
> or modify the default scaffolding...

I''m so new to Rails that I do not know where and how to write own
scaffolding. :(, I''m playing with Rails just about 2 days.

Finaly I found a way how to kill the Inflector.  Magic disapears, and
all things automagicaly works including scaffolding.

I put following code at the end of environment.rb.

module Inflector
    def pluralize(word)
        word
    end
    def singularize(word)
        word
    end
end

Thanks for help.

--
Podepsána, swojí Wlastní rukou, jejich przeweliká dobrotiwost a pán
sítí jejich, jenz wládne nad pakety a smerowaci wsemi.

Radek Hnilica <Radek.Hnilica at Moraviapress dot CZ>
Radek Hnilica <Radek.Mobile at Moraviapress dot CZ>
Radek Hnilica <Radek at Hnilica dot CZ>  http://www.hnilica.cz
=============================================================No matter how far
down the wrong road you''ve gone, turn back.
						Turkish proverb
... so turn back ... Now!