Hi all,
I am using partial:
<%= render :partial => 'post', :collection => @posts %>
_post.rhtml
<li>
<p class="date"><em><%= post.created_at %></em></p>
.
.
</li>
this will display my last 4 posts next to each other, but each of this
<li> blocks have right-margin 33px and I would liko to set the last <li>
block with no right-margin. What I need to do is to add <li
class="last"> to last <li> block to not to set the right margin.
Any help would be most welcome.
Cheers P.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---