{{{ The “representable gem”:https://github.com/apotonick/representable helps to keep parsing and rendering representations in one place. Once defined, it gives your model @#to_xml@, @#from_xml@ and more. The initial version was released today, let’s see how it helps *cleaning up your representation code*. h3. Let’s write a Blog app! Since your imaginery blog app has a REST API… Continue reading Representable gem released: Improve your REST representation code!
Tag: gem
Testing your Rails 3 Engine sitting in a Gem
or Making your Rails gem suck less When people refer to gems they usually think of new methods and classes popping up in your Ruby application as soon as you require the gem. However, with Rails 3, gems (and plugins) can also add behaviour, controllers, views, routes and all the other well-known pieces of Rails… Continue reading Testing your Rails 3 Engine sitting in a Gem
Releasing Gems self-opinionated
Packaging and releasing gems is easy. Many people simply use jeweler to handle all the tiresome tasks. Others try to avoid 3rd-party tools and don’t take any “opinionated” shortcuts at all. Not that I would care about opinions, anyway. However, I catched myself using a mixture of all ruby release tools, so here’s my current… Continue reading Releasing Gems self-opinionated
Receiving Pingbacks on Rails sites
If you’ve never heard of pingbacks before, you’re out. Go home. Ok, pingbacks are this mysterical feature when you write on your blog A and refer to some article on blog B. After you publish your article on blog A, something happens behind the curtain. Suddenly there’s a new comment on the blog B article… Continue reading Receiving Pingbacks on Rails sites