How To Add jQuery and Ajax To Your Rails App

March 18, 2015

Wondering how to get started adding JavaScript to your Rails app? In this brief tutorial, we'll look at how to add some effects with jQuery and send Ajax requests in a Rails 4 app!

If any of the Rails concepts in this tutorial threw you for a loop—such as forms, partials, redirects, or other Rails conventions—check out our Ruby on Rails: Level I online course. You can start this course for free today and begin learning how to design Rails apps with confidence.

If you need a bit of help understanding Ruby blocks such as those we used with the respond_to method, give our Mastering Ruby Blocks & Iterators online course a look-see. Blocks are used pervasively in well-designed Ruby and Rails apps, and this short course will help you become a blocks master.

Thanks for watching and please feel free to leave a comment below!

How you can "feel newly empowered", too!

February 19, 2015

I really thought I had a good grasp on Ruby blocks, but I was mistaken. Thanks for taking the time to dig into blocks and iterators at this level of detail and thus saving me the time of exploring and uncovering these techniques and patterns on my own. I am NOW quite confident about my understanding of blocks, and mastery over them. I suddenly feel newly empowered!” — Thom Parkin

I love that Thom uses the word “empowered” to describe how he felt after our Mastering Ruby Blocks & Iterators course. That's exactly how I felt when I learned how to really use blocks in my own code. I'm not talking about how to write a block. Sure, understanding the basic block syntax and style is important and it's where we start in our course (free video). But using blocks effectively is about so much more than curly braces, vertical bars, and syntactic sugar. ...

[Continue Reading…]

"All the diagrams in your courses are total awesome-sauce!"

February 05, 2015

How do you learn new concepts best? I'm both a visual learner and a visual explainer. When it comes to learning something new, I'm a first-rate doodler. My brain engages more quickly when I can pick up a pen and draw circles, lines, squares, and all manner of arrows on a piece of paper.

The opposite is true too. When I try to explain something, I have a hard time conveying the topic with mere words. I'm compelled to draw it out. Mike, in a similar way, is compelled to code it out, as a way of explaining the concept.

MVC Diagram

It should come as no surprise then that our courses include lots of code examples and a bunch of diagrams! We don't hesitate to use squares, arrows, buttons, highlights, and whatever else it takes to help explain new concepts visually.

So we're especially delighted when we hear from our alumni that these diagrams and sketches help them really understand new Ruby and Rails concepts: ...

[Continue Reading…]

Daily course plans to help you learn Ruby or Rails in the New Year

January 19, 2015

Do you have a goal to finish your online Ruby and Rails courses soon? We know it's hard to hold fast to New Year’s resolutions once the familiar whirlwind kicks up. It can all be a bit dizzying!

Grab ahold of our daily course plans to help you stop the spinning and chart a realistic, incremental path for meeting your learning goals.

Download a plan, print it, and use your favorite-colored Sharpie to cross off the days. Each day you'll add one more facet of Ruby or Rails to your repertoire and make steady progress toward completing the course and meeting your goal. You can do this!

Guru's Reviews

January 13, 2015

"I am not sure if Pragmatic Studio guys have a 'PS I love you' sticker floating around but I would definitely put it up."

That comment on Guruprasad’s (Guru's) blog totally made us smile. Back in our early days, we did in fact have stickers!

We used to hand out these bumper stickers at the end of every public Rails courses. The stickers ended up on more laptops than actual bumpers, but by pairing them with our course evaluations as a little incentive for completing the form, we got invaluable feedback from our students.

In the case of Guru, he made up his own suggestion for a sticker and gave us a bunch of feedback! Check out his blog posts to hear more about his experience using our online courses to learn Ruby and Rails:...

[Continue Reading…]

Merry Christmas, Everyone!

December 23, 2014

Getting Started With Elm

December 19, 2014

Around this time of year I tend to go looking for something new to learn in the spare moments between holiday activities. It's a way of stepping back and getting a different perspective. This year the Elm language caught my eye. So on a whim one afternoon I cracked open the laptop and starting writing some Elm code, not really expecting my interest to outlast a log on the fire.

Well, it's been a week now and I'm still having fun goofing with Elm. Turns out this journey has been an unexpected gateway into functional programming, but with a graphical twist. I think the graphical part has been the key for me. That or the steady intake of sweets that keep finding their way to my desk. In any event, the whole experience has been so enjoyable and enlightening that I couldn't help but share.

If you've been wanting to try FP, I'd encourage you to give Elm a whirl! Here's how I got started...

Try Elm

The easiest way to get started with a quick win is by using the interactive online editor. Here's every newbie's favorite first program, Elm style: ...

[Continue Reading…]

Give the Gift of Learning

December 16, 2014

Got a developer on your gift-giving list? Give 'em a gift that lasts well after the holiday decorations have come down—the gift of practical can-do know-how. Our online, self-paced training courses make for awesome gifts and we'll even do the wrapping for you.

It's quick and easy to gift our courses. Just head on over to our course catalog, toss an online course or two into your cart, and enter the name and e-mail of the person to whom you're gifting the course.

Once the order is placed, our Ruby-powered elves will send your special developer an e-mail with instructions for accessing their online course(s). It's a great way for you to play secret Santa, or you can follow-up with a cheery note. And as a bonus, your developer automatically gets alumni status which means they'll save 25% on their next course. As they say, it's a gift that keeps on giving!...

[Continue Reading…]

Your Path to Mastering Ruby Blocks: Step 3

December 08, 2014

Mastering Ruby blocks is more than just being fluent with syntax and following the conventional styles. And mastery goes beyond simply using blocks when calling methods in Ruby’s standard library. Those fundamental skills ultimately lay the foundation for the final step: designing your own code to take advantage of the power of blocks!

Blocks offer a different, powerful style of programming that should influence the design of your code. Indeed, well-designed Ruby code uses blocks to elegantly solve common and recurring problems, including:

  • Writing custom iterators
  • Executing “around” code
  • Toggling around code
  • Initializing objects with a block
  • Managing resources consistently

In our new Mastering Ruby Blocks & Iterators course, you'll learn how to immediately apply these design techniques and patterns to your own code. You'll come away from this course not just understanding how blocks work but, more importantly, when and where to use them in your own code.

This online course will help you gain clarity and confidence designing with Ruby blocks. Pick up a copy today and jump on the path to mastery!...

[Continue Reading…]

Your Path to Mastering Ruby Blocks: Step 2

December 05, 2014

Now that you’re comfortable with the basic style and syntax of Ruby blocks, you're ready to use blocks to make your code more expressive, compact, and flexible. One way to do that is by using blocks to get the most out of the Ruby standard library. Indeed, many of Ruby’s most powerful methods take a block.

The methods in the Enumerable module—select, reject, map, reduce, and friends—are particularly great examples of the power of blocks. Master the Enumerable methods and you'll be a more efficient Ruby programmer!

Start saving time and improving your code by checking out the video below from our Mastering Ruby Blocks & Iterators course. It's part two of a two-part series on tapping into the Enumerable module....

[Continue Reading…]

« Older Posts