How do I add a render inside an HTML tag?
For example, this works here ok :
<%= render :partial => "feed/new_card", :locals => {
:main_image => image_tag('feed/new_badge.jpg')
} %>
<div><%= main_image %></div>
But I would 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 is giving error here = /
Thank you.