Ruby on Rails Wednesday, September 8, 2010

On Sep 8, 8:47 pm, Colin Law <clan...@googlemail.com> wrote:
> On 8 September 2010 17:58, Bigos <ruby.obj...@googlemail.com> wrote:
>
> >...
> > sucess!!!
>
> > view:
> > <%= render :partial => 'forum_posts/recursive_comments', :object =>
> > @forum_post %>
>
> > partial:
> > <%= link_to 'Reply',{:controller
> > => :forum_comments, :action=> :new,:parent_id=> comment.id,:forum =>
> > @forum_post.id } %>
>
> > The code above works, but still I can't understand why locals => {:foo
> > => @bar} doesn't work in this case.
>
> I wonder what version of Rails :locals was introduced at.  You said
> you were using version 2.5, I assumed you meant 2.3.5. (rails -v to
> find out).
>
> Colin

yes it's 2.3.5, congratulations on a good guess

--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment