2009/3/4 Juan Kinunt <[email protected]>

>
> Hi,
>
> I would like to hear your opinions about how do you think I can
> implement this.
> I have a @events array where I have events each one with its datetime,
> and ordered by it.
> I would like to show a list of these events in a table. I would like to
> put a blank row in the table after each group of events with the same
> date.
> I don't know if it is better to separate the events in groups in the
> controller or if I can use an 'if' in the view to insert this blank row.
>

I would suggest this is to do with how you want to view the data, it is not
inherent in the data itself, so it should go in the view.


>
> Thanks.
> --
> 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