[Rails] Re: partial + custom class

2009-01-16 Thread Franz Strebel
On Fri, Jan 16, 2009 at 1:47 PM, Petr Bobek rails-mailing-l...@andreas-s.net wrote: Hi all, I am using partial: %= render :partial = 'post', :collection = @posts % _post.rhtml li p class=dateem%= post.created_at %/em/p You can use the last method of Array to figure out if you're on

[Rails] Re: partial + custom class

2009-01-16 Thread Petr Bobek
% if post == @posts.last -% Hi Franz, works like a charm! Thank you. 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