0
如何为此添加类? <%= image_tag(event.actor.profile.photo.url(:tiny)) %>
如何为此添加课程?
如何为此添加类? <%= image_tag(event.actor.profile.photo.url(:tiny)) %>
如何为此添加课程?
试试这个:
<%= image_tag(event.actor.profile.photo.url(:tiny), :class => "foo") %>
啊我是在第二个''后面添加类的' – user730569 2011-05-09 04:50:20
你看过了'image_tag'的文档? – Wes 2011-05-09 04:49:08