For ruby I strongly recommend http://rubykoans.com/ . Execellent source of ruby basics. Regarding JS, it's always better to understand the basics (DOM, events) instead of just copy&paste of jquery snippets.