beny 18241 wrote:
> Sharagoz -- wrote:
>> So you want to be able to set a differnt style to cells that are empty.
>> You can do something like:
>> 
>> In the view:
>> <td<%= ' class="empty"' if(list.commm.blank?) %>>
>>   <%=h list.comm %>
>> </td>
>> 
>> In the css:
>> 
>> .list-line-even.empty, .list-line-even1.empty {
>>   color: #F00;
>> }
> 
> THANKS WORKS !!

Sorry i need to add another question how to make it that way that i have 
2 css defined ?

I mean:


<% for list in @lists -%>
<tr class="<%= 'list-line-even' -%>" >
<tr class="<%= 'list-line-even1' if list.od.blank? -%>" >
....
<td><%=h list.id -%>)</td>
<td><%=h list.title %></td>
<td><%=h list.body %></td>
<td><%=h list.char %></td>
<td><%=h list.sim %></td>
<td><%=h list.oth %></td>
<td><%=h list.wyp %></td>
<td><%=h list.od %></td>
<td><%=h list.comm %></td>


Regards
beny18241
-- 
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.

Reply via email to