Ruby on Rails Wednesday, January 5, 2011

Check out Fred's earlier example. Using the count of courses with only
one courses_times row in conjunction with the having clause you can
filter out courses scheduled on more than one day.

The only potential problem I could foresee with this would be if a
course could be scheduled for multiple times on the same day. But
that's not reflected in the data model you posted so it shouldn't be
an issue.

On Jan 5, 1:50 pm, Fernando Leandro <fernandoleandro1...@gmail.com>
wrote:
> yes.. its exactly this... but how can i do that in another way?

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment