Skip to main content
Ask A Question
You’re not receiving notifications from this thread.

Pair Programming on Rails Scopes Discussion

General • Asked by Chris Oliver

For your business days scope, could you not use to keep it all ruby and DB agnostic, rather than using EXTRACT? (

The EXTRACT is required because you need something to pull out the week day inside the database so you can make the comparison. The Ruby method unfortunately can't help you here because this is running a query inside the database.

Are you going to do more pair programming videos in the future? This and the one where you're fixing a bug in Devise are my favourites.

Definitely planning to! I think it helps explain things a lot better with the discussion.

This sort of tutorial is really so helpful. It would have been more nice if we could watch how to change default week days and starting week day in rails.

Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 30,242+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.