1
How do I add a render inside an HTML tag?
For example, this works okay:
<%= render :partial => "feed/new_card", :locals => {
:main_image => image_tag('feed/new_badge.jpg')
} %>
<div><%= main_image %></div>
But I’d like to do something like this:
<%= render :partial => "feed/new_card", :locals => {
:main_image => <%= render feed/new_album %>
} %>
<div><%= main_image %></div>
is it possible? Because this way is going wrong here =/
Thank you.