[Nitro] render.rb stange methods

George Moschovitis george.moschovitis at gmail.com
Sat Feb 10 16:18:27 EST 2007


please, show me the build_form method source code.

-g.

On 2/10/07, transfire at gmail.com <transfire at gmail.com> wrote:
>
>
>
> On Feb 10, 10:37 am, "George Moschovitis"
> <george.moschovi... at gmail.com> wrote:
> > > I was suprised to see these two entries at the top of this list:
> >
> > >    "Glue", "ORMSupport"
> >
> > > How are they methods!?
> >
> > no idea... very strange indeed...
> >
> > I discovered this b/c I'm getting an error
> >
> >
> >
> > >   undefined method `mount_path' for Nitro::Context:Class
> >
> > > for the first line of render:
> >
> > >   path = "#{self.class.mount_path}/#{path}".squeeze('/') unless path
> > > =~ /^\//
> >
> > self.class should be a controller not a context. how are you calling
> > render() ?
>
> via #build -- I've been working on implementing the Facets builder.
>
>   def index
>     build do
>       h1 "Hello World"
>       build_form( :object=> mymodel )
>     end
>   end
>
> the build_form method routes to FormBuilder#form which it gets by
> including FormHelper.
>
> I'm wondering if the fact that the new builder uses
> instance_eval(&builder_block) is going to be a problem?
>
> T.
>
> _______________________________________________
> Nitro-general mailing list
> Nitro-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/nitro-general
>



-- 
http://blog.gmosx.com
http://cull.gr
http://www.joy.gr
http://nitroproject.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/nitro-general/attachments/20070210/5b3fa706/attachment.html 


More information about the Nitro-general mailing list