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.
Learn Ruby on Rails book review
I wrote review of Daniel Kehoe book Learn Ruby on Rails
Repository for Ruby domain objects in Elasticsearch
Check out a draft of Ruby domain objects persistence in Elasticsearch via the repository pattern. Live application available at http://bit.ly/persistence-sinatra (source at Github).
5 Starter Apps for Rails 4.1 from Rails Composer
Rails 4.1 was released today and Rails Composer is up to date with 5 Starter Apps for Rails 4.1.
CVE-2014-0160 (Heartbleed) & You
Ninefold just wanted to let everyone know that for our Rails deployment platform, you are not impacted by CVE-2014-0160 aka Heartbleed. [more inside]
A Guide to Choosing the Best Gems for Your Ruby Project
If you need something done in Ruby, a gem for it probably exists. Well, a dozen gems for it probably exist. Some of them are elegant, featureful, and well-maintained, and others were written to solve one use case the author ran into that one time. You have lots of gems to choose from, so how do you choose the right one? This choice is important — by the time you regret adding a gem to your project, it’s painful to change back.
Ruby and Rails Syntax Tips - The Difference Between blank?, nil?, and empty?
When working with Ruby and Rails, a common source of confusion involves mixing up nil?, blank?, and empty?. All three methods clearly deal with determining whether a data structure is assigned a value, but there are different degrees of nothingness, and in the world of programming those degrees are important. This blog post helps to dispel the confusion by working through a number of different examples.
Composable Operations
Composable Operations is a tool set for creating operations and assembling multiple of these operations in operation pipelines. They are especially useful in large-scale Rails applications to model complex business transactions. In other words, they can be used to implement a service layer.
An Introduction to json schemas and why you should use them
Here is a introduction to JSON schemas and why to use them.
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!