no matter what I try, I do not see the partial render. If do see that
the variable is good, because I see the number “2” (I have 2 stories
in the dummy database). Also, If I put static html in the partial,
still, it doesn’t render. However, if I put some bogus embedded ruby
in the partial, it causes an error, so I know it’s reading the
partial.
no matter what I try, I do not see the partial render. If do see that
the variable is good, because I see the number “2” (I have 2 stories
in the dummy database). Also, If I put static html in the partial,
still, it doesn’t render. However, if I put some bogus embedded ruby
in the partial, it causes an error, so I know it’s reading the
partial.
You need <%= render :partial … not <% render :partial
In general things that are blatantly just going to produce a chunk of
html go in <%= blocks