RubyFlow The Ruby and Rails community linklog

×

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

You can use basic HTML markup (e.g. <a>) or Markdown.
Note that your post may be edited to suit the format of the site.

As you are not logged in, you will be
directed via GitHub to signup or sign in

Post Preview

Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.

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.

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!

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]

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.

abc20180823 atlanta braves jerseys uggs outlet store pandora charms oakley sung…
http://www.longchamp-outlet.us.com http://www.uggbootssale.in.net http://www.ad…
canada goose jackets coach outlet online ralph lauren polo shirt la…

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.

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!

Loading older posts