:) thank you
im a beginer in ror,and i dont know whats the importance of the helper o_O
!! and what is the difference between run a task (in file .rake) or write
the method directly in the controller !!?

2011/6/7 Tim Shaffer <timshaf...@me.com>

> On Tuesday, June 7, 2011 6:26:16 AM UTC-4, Adel Mediouni wrote:
>
>> <% i = i +1 %>
>> <% if i.modulo(2) == 0 %>
>> <% color = '#E6E6E6' %>
>> <% else %>
>> <% color = '#D8D8D8' %>
>> <% end %>
>>     <tr align=center bgcolor = <%= color %> >
>>
>>
> Not related to your problem, but there's an easier way to do this part of
> your code using a helper:
>
> <tr align="center" bgcolor="<%= cycle('#D8D8D8', '#E6E6E6') %>" >
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/rubyonrails-talk/-/bUhfRmxyWERzcVlK.
>
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To unsubscribe from this group, send email to
> rubyonrails-talk+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>



-- 
Mediouni Adel
Tunis
www.metal-tn.xooit.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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to