Re: Extending methods in the module Inflector ?

Sean T Allen
2005-07-19T18:05:37Z

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...


Radek Hnilica wrote:

>On Tue, Jul 19, 2005 at 01:14:29PM -0400, Sean T Allen wrote:
>
>
>>http://api.rubyonrails.com/classes/ActionController/Scaffolding/ClassMethods.html#M000107
>>
>>scaffold(model_id, options = {})
>>
>>
>
>...cut...
>
>I wrote following into controller:
>class PokusController < ApplicationController
>    scaffold :pokus, :class_name => ''Pokus''
>    def seznam
>        @pokus_pages, @pokusy = paginate :pokus, :per_page =>20,
:class_name => ''Pokus''
>    end
>end
>
>What I''m doing wrong?  Still do not work. The same error.
>uninitialized constant Poku
>This error occured while loading the following files:
>   poku.rb
>
>the method seznam seems to be right.  But scaffolding no.
>
>
>



_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org