beny 18241 wrote:
> Hi,
> 
> I have a list of things in my application (let it be list with something
> to borrow).
> I wanted to change in css and view something.
> 
> I wanted to see row with has one field empty (let us say it will be
> given back date) in different color(red or something)
> 
> Fragement of my view ...
> 
> <% for list in @lists -%>
> <tr class="<%= 'list-line-even' -%>" >

Just a quick question: why are you using <% %> with a literal string? 
Since the value of the string will never change, you don't need the <% 
%>.

(And you really should try Haml instead of ERb.)

Best,
-- 
Marnen Laibow-Koser
http://www.marnen.org
[email protected]
-- 
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