[Rails] Re: sortable values

2011-06-07 Thread Adel Mediouni
SO this is the view: tr bgcolor='#A4A4A4' th %= sortable_column username % /th th %= sortable_column email %/th th %= sortable_column sign_in_count %/th th %= sortable_column amis %/th th/th th/th th/th /tr tr height=4pxtd/td/tr % i = 0 % % @user.each do |user| %

[Rails] Re: sortable values

2011-06-07 Thread Adel Mediouni
dont care about the temp ligne lol, i forget to erase it :) On Jun 7, 12:26 pm, Adel Mediouni mediouni.a...@gmail.com wrote: SO this is the view: tr bgcolor='#A4A4A4'    th %= sortable_column username % /th    th %= sortable_column email %/th   th %= sortable_column sign_in_count %/th   th

Re: [Rails] Re: sortable values

2011-06-07 Thread Colin Law
On 7 June 2011 11:26, Adel Mediouni mediouni.a...@gmail.com wrote: SO this is the view: tr bgcolor='#A4A4A4'   th %= sortable_column username % /th   th %= sortable_column email %/th  th %= sortable_column sign_in_count %/th  th %= sortable_column amis %/th    th/th    th/th    th/th  

Re: [Rails] Re: sortable values

2011-06-07 Thread Adel Mediouni
yes its users not user :s i will the sort_by method its a good think :) thanks 2011/6/7 Colin Law clan...@googlemail.com On 7 June 2011 11:26, Adel Mediouni mediouni.a...@gmail.com wrote: SO this is the view: tr bgcolor='#A4A4A4' th %= sortable_column username % /th th %=

[Rails] Re: sortable values

2011-06-07 Thread Tim Shaffer
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

Re: [Rails] Re: sortable values

2011-06-07 Thread Adel Mediouni
:) 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