Yeah.  I got you. I guess the difference is really pretty trivial.

With a "partial controller", you would define your code like this (made up
code incoming):

<%= render_partial 'some_partial', :controller => 'SomeClass' %>

Rails would then call a method on SomeClass before it renders the partial.
This would allow you to put some logic in SomeClass without adding any code
to the view itself.

The difference is simply semantic and not that important...  Just trying to
offer some understanding to the original question =]

On Fri, Jan 15, 2010 at 9:48 AM, Marnen Laibow-Koser
<[email protected]>wrote:

> James Englert wrote:
> > Maybe I'm misunderstanding you.  Your talking about putting a helper in
> > a
> > view, right?
> >
> > So
> >
> > <%= my_helper %>
> >
> > would be the code?
>
> Well, it would call FooHelper#my_helper, which would contain the code.
>
> >
> > On Fri, Jan 15, 2010 at 9:25 AM, Marnen Laibow-Koser
>
> Best,
> --
> Marnen Laibow-Koser
> http://www.marnen.org
> [email protected]
> --
> Posted via http://www.ruby-forum.com/.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<rubyonrails-talk%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>
>
>
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to