[Rails] Re: Attach an action to a partial?

2010-01-15 Thread Marnen Laibow-Koser
Aldric Giacomoni wrote: Is it possible to render a partial with an action attached to it, just like the regular views? Or should I just call the action which renders the partial? Uh...what? How does any view, partial or not, have an action attached? What in the world do you mean? Best, -- 

Re: [Rails] Re: Attach an action to a partial?

2010-01-15 Thread James Englert
Like a tile controller from the java world I would suppose. Essentially a block of code in an .rb file that gets executed every time the partial is rendered. I don't think you can do that? Can you? On Fri, Jan 15, 2010 at 9:00 AM, Marnen Laibow-Koser li...@ruby-forum.comwrote: Aldric

[Rails] Re: Attach an action to a partial?

2010-01-15 Thread Aldric Giacomoni
Marnen Laibow-Koser wrote: Aldric Giacomoni wrote: Is it possible to render a partial with an action attached to it, just like the regular views? Or should I just call the action which renders the partial? Uh...what? How does any view, partial or not, have an action attached? What in the

[Rails] Re: Attach an action to a partial?

2010-01-15 Thread Marnen Laibow-Koser
Aldric Giacomoni wrote: Marnen Laibow-Koser wrote: Aldric Giacomoni wrote: Is it possible to render a partial with an action attached to it, just like the regular views? Or should I just call the action which renders the partial? Uh...what? How does any view, partial or not, have an

Re: [Rails] Re: Attach an action to a partial?

2010-01-15 Thread Colin Law
2010/1/15 Aldric Giacomoni li...@ruby-forum.com: Marnen Laibow-Koser wrote: Aldric Giacomoni wrote: Is it possible to render a partial with an action attached to it, just like the regular views? Or should I just call the action which renders the partial? Uh...what?  How does any view,

[Rails] Re: Attach an action to a partial?

2010-01-15 Thread Aldric Giacomoni
Marnen Laibow-Koser wrote: Aldric Giacomoni wrote: Marnen Laibow-Koser wrote: So when you go to index, Rails calls the Ruby method index in the appropriate controller, doesn't it? Assuming standard routing, yes. This does not make your original question any more comprehensible. :)