The Ruby and Rails community linklog
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
Submit a post
Post Preview
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
rpbundle - Use Gemfiles in your ruby-processing sketches
I just released rpbundle, an extension to ruby-processing which allows you to use rubygems in ruby-processing sketches and manage gem dependencies of your sketches using bundler.
nokogiri_bang_finders
Suppose you’re using Nokogiri to parse some HTML or XML, and an element you need is missing. What should happen? If you said “An exception”, try my tiny new gem, nokogiri_bang_finders. It simply adds lookup methods to Nokogiri that raise if nothing is found: at!, at_xpath!, and at_css!
Howto write a blog CMS with Sinatra
During a hack day at Contentful two weeks ago, Andreas Tiefenthaler (Software Developer) wrote a simple Sinatra blog app, using the Contentful Ruby Gem, and deployed it on anynines. We asked him to share his experience by means of a guest post.
Custom Table View Cells and AutoLayout with RubyMotion
Both AutoLayout and the creation of custom UITableViewCell subclasses is extremely important when doing iOS development, so once you’ve finished watching this episode, I’d like you to take away the knowledge of “Why is AutoLayout important?”, “Why create custom table view cells?”, “How AutoLayout works”, and finally “How to use AutoLayout when creating custom cells”. You’re going to learn these things while we take a look at our example RubyMotion application “Tasker”, and there is some new parts to MotionInMotion in this episode where I change up the format a little, with a bit more “Why” than just how, as well as a challenge for you at the end to practice your skills. [more inside]
Dealing with Technical Debt
Every developer has to deal with technical debt sooner or later, here’s how I deal with it.
Workflow Gem Explained
A look into the internals of Workflow and how it enables an easy interface to create a state machine. Check it out.
TheSotrableTree 2.5.0
TheSotrableTree is popular render-helper for AwesomeNestedSet trees. The Magick of this gem in simplicity of implementation. Gem used recursive function to render tree. But recursion is very slow when tree contain more then 100 items. This problem solved with index-hash. Yesterday I patched this index-hash, because I found logic mistake. Previous versions should works fine, but current version more stable. Please, read release note to know more.
Debug a Stuck Cache With a Simple Code Change
Partial caching is a great way to get some major page speed improvements without a lot of work. But if you forget a touch: true on one of your associations, or your template dependencies aren’t working right, your cached partials won’t get updated. Rails’ development environment usually runs with caching disabled, so you’ll need a simple way of enabling caching temporarily to investigate and reproduce your caching bugs.
How to create todo list app in rails, adding, removing and completing tasks
I wrote second part of tutorial about how to create todo list app in rails
When should I use a Set in Ruby?
Array is so common in Ruby and well done (especially as a litteral) that it’s usually the first choice as a collection. But sometimes we need to avoid duplicates, and we end to duplicate a lot of checks to do that. The post explains that use case and suggests a solution..
RubyMine 6.3 is Out!
RubyMine 6.3 is finally ready with Rails 4.1, Slim 2.0, AngularJS, and much more on board. More details.
reveal-ck screencasts: intro, markdown, and haml
Want to create a good looking presentation without using Powerpoint or Keynote? Would you like to use your favorite editor and Ruby, instead? [more inside]
Keep Your Secrets Secret
Take control of your Rails app’s configuration and keep your secrets secret.
Help fund Rails Girls Summer of Code 2014!
Rails Girls Summer of Code offers three-months full time scholarships to programming newcomers. We aim to support 20 students (10 teams) to work full-time, expanding their knowledge and coding skills by/while contributing to a great Open Source project. Last year’s Summer of Code has been a raging success. This year we will make it happen again with your help!
Integrate Magnolia CMS with Ruby on Rails using a document based HTTP API
My name is Daniel Trierweiler and I work for a german digital advertising agency. We have developed a library in order to integrate Magnolia CMS within a Ruby on Rails application using a document based HTTP API. [more inside]
Build forms with Form Builder
I just wrote an article about how to subclass the default form builder to create complex and structured forms. [more inside]
Svitla Ruby Conference Kyiv, 31 MAY - 1 June 2014
In May 31 - June 1 Kiev will host the second RubyC conference, dedicated to Ruby and Ruby on Rails [more inside]
Surviving APIs with Rails - Code School
Code School just launched a new course covering how to build and test REST APIs with Rails. The first level of the course is free, if you’re interested in checking it out.
An email course about Rake
I’ve just launched a 4 days FREE email course about Rake. If you are interested please sign up on this page: The 4 days Rake Guide.
Write Your Git Hooks in Ruby (with Ruby Git Hooks)
Remember the last time you accidentally checked in a gigantic file you didn’t mean to, and had to dig through the Git history for it? And everybody had to update their history and that one guy accidentally blew away all his changes? [more inside]
Preview emails for any user with Rails 4.1
I just posted Preview emails for any user with Rails 4.1, explaining how to have a custom ActionMailer preview for every user of your system.
Paginating Database Results In Rails Active Record
Paginating database results is a standard feature of most web applications, yet isn’t something you’d want to necessarily implement on your own. Fortunately, Rails developers have a whole host of options at their disposal, including the will_paginate gem. This post shows you how to easily integrate will_paginate into your Rails application. Read the post.
Start using refinements now!
I just updated the zucker core extension library and it is now completely based on refinements. It is organized in very small units and playing around with it is a great way to get familiar with Ruby’s new refinements!