Use a partial in a partial?
Posted
by
Greg Wallace
on Programmers
See other posts from Programmers
or by Greg Wallace
Published on 2012-07-27T20:56:15Z
Indexed on
2012/09/17
15:52 UTC
Read the original article
Hit count: 421
ruby-on-rails
I'm a Rails newbie, so bear with me.
I have a few places, some pages, some partials that use:
<%= link_to "delete", post, method: :delete,
data: { confirm: "You sure?" },
title: post.content %>
Would it make sense to make this a partial since it is used repeatedly, sometimes in other partials too?
Is it o.k. to put partials in partials?
© Programmers or respective owner