RubyFlow : The Ruby Community Blog

Home   Submit   Sign Up   Log In   leaders   Twitter   RSS Feed  
 
May 25, 2013
The Markdown Engine Wrapper (markdown) gem that lets you use your markdown library of choice (e.g. kramdown, redcarpet, maruku, etc.) now includes a builtin web service/server. Try the markdown HTTP API running on heroku or start your own `markdown server`. More info. Cheers.
Codelearn.org launched an experiment called Learn Ruby on Rails from Beginners, the experiment got 10k hits in one day and was on the front page of HN for a long time!
This release comes with important features and bug fixes.
May 24, 2013
I just published a new Rails recipe about "How to change objects". The flowchart helps you decide when to use Rails Magic, and when use Object Oriented best practices like Service Objects. Comes with example scenarios and code.
I just wrote a post about integrating Paperclip with Bootstrap and SimpleForm without the need for f.error elements. In my opinion this approach is way more cleaner that the basic one. You can check it out here: Paperclip, Bootstrap and SimpleForm working together on Rails
At some point of time in your career, you have to decide if you want to continue on a technical path or to take up a management role. Pramod Paranjape explains how your life would look like if you have taken up a management role.
This yet another attempt to reinvent the wheel??? No no no!
This is how typed attributes should be done from the beginning. Attrio is simple, configurable, without ANY dependencies and works with all major versions of Ruby.

GitHub Repository
Blog Post


May 23, 2013
I just launched a new tutorial about Using the Google Maps API with Ruby on Rails and Coffeescript. Please take a look.
Spree 2.0 has been Released  spreecommerce.com
Spree 2.0 is now available. Spree is the world's most flexible e-commerce platform. It is used by over 15,000 stores worldwide and it's 100% open source. The new version includes support for multiple stock locations and shipments. The UI functionality has also been broken out into separate frontend and backend gems to make it easier to replace the views or do client-side rendering.
Confreaks just posted my talk from RailsConf 2013, "An Intervention for ActiveRecord". Video, slides, and SpeakerRate are all right here. If you'd like to take a whirlwind tour of some things that may surprise you about ActiveRecord, please have a look!
Can't use gem 'debugger' since you upgraded to Ruby 2.0? Next behaving like step? Checkout byebug or pry-byebug!
I wrote a blog post about Using Sprockets to Manage the Asset Pipeline in Padrino. Please give me feedback!
AngularJS with Rails 4  coderberry.me
I recently posted a couple of articles on using AngularJS with Rails 4. Check them out at http://coderberry.me/blog/2013/04/22/angularjs-on-rails-4-part-1/
Here's a quick blogpost on how to find basic security vulnerabilities blogpost in Rails apps.
May 22, 2013
I just launched a gem called Lyricfy that let you fetch song lyrics from many sources from a single and clean interface. Check it out here and let me know your thoughts on this.
@import-once in LESSCSS, way handier!  blog.idyllic-software.com
Avoid duplicate imports with LESS preprocessor - Blog post
May 21, 2013
An introduction to reducing your Rails test suite run time.
Once you get started with Cucumber, the question is how to write your features. How can you keep your features maintainable so you don’t have to correct them after each change in the application? How can you reuse steps most efficiently? What are typical Cucumber smells?

Following is a list of 5 best practices that can help in your daily Cucumber life.

Top 5 Cucumber best practices
Writing clean view code in Ruby on Rails is hard. More often than not, the separation between style and structure doesn't work out as intended. Some user interface widgets are just not easily expressed with a few HTML tags. I just published a blog post describing how you can build powerful helpers that will clean up your view code a lot.
Taming Rails Apps with Engines  blog.socialcast.com
I just wrote a blog post, Taming Rails Apps with Engines, about using Rails Engines to break down a large Rails project.
Find out how to test your libraries against multiple versions of Rails so your gems will be ready when Rails 4 comes out.
This blog post details how you can use Cloudinary to perform asynchronous background image processing in the cloud and receive web notifications when uploading and image manipulation are completed. Sample code in Ruby is included.
May 20, 2013
Searchlight is a lightweight gem for building searches in your app. Searchlight follows the same philosophy as Authority: low-magic, very little DSL. Mostly you'll write plain Ruby methods for your logic; Searchlight just helps you tie it together.

Searchlight integrates nicely with ActiveRecord and Rails forms, but can be used in any Ruby program. Check it out on Github or Rubygems.
There are many options when it comes to building authentication into you rails app. A popular option is to use devise, but for more simple projects, Rails inbuilt has_secure_password feature is a valid option. I blogged about it.
May 19, 2013
A small nifty gem equatable to help value objects express their equality.
I just released github_api with support for media types, statistics api and more.
May 18, 2013
Building a Tested, Documented and Versioned JSON API Using Rails 4
Blog post
If you have objects bigger then 1MB try large_object_store!
May 17, 2013
Why ruby 2.0.0 runs slower than 1.9.3? (hint: because I have asked it to be slower). In fact, it's nearly as fast as 1.9.3 with falcon-gc.
I just pushed chef-handler-librato 1.1.6 update with some minor bug fixes.
We've just written a blog post about Futuroscope, a new Ruby gem that makes working with parallelism a piece of cake.
The gem macros4cuke allows you to define macro-steps directly in your Cucumber scenarios without fiddling step definitions. Data arguments can be passed from the macro-steps to their sub-steps. Macro-steps can invoke other macro-steps, sub-steps can be made conditional... More details and examples can be found here.
May 16, 2013
Discover Bower and how to integrate it in your rails app.
I just released a new tutorial Upload and Parse a XML File with Ruby on Rails, Paperclip and Nokogiri. Please take a look.
Chef.bscott.me  chef.bscott.me
I just launched Chef Daily Newspaper , Content will start showing up shortly.
May 15, 2013
Ruby Daily goes mobile  stream.rubydaily.org
Yesterday I’ve rolled out a couple of features for my ruby and web development news project - Ruby Daily. Hope you find them cool and useful.
Feel free to submit new articles or subscribe to newsfeed.
This blog will take you through the process of setting up alternative authentication system for your application using service providers like FB, Twitter.
May 14, 2013
Most of us developer types have at least two machines we use routinely, and managing that can be a chore. Homeboy is a set of small, plain BASH scripts to synchronize core config files, update system packages, upgrade development libraries, and pull git clones every morning in one shot by running `homeboy'. [release overview] [github]

I just launched some groovy thing and yada yada.
In this screencast we look at the two Selenium tools Selenium IDE and Selenium WebDriver. Selenium is a remote control for your browser. Selenium lets you perform browser actions by creating scripts instead of using your mouse or keyboard. Let's have a look!

Test your web apps with Selenium
If you have a Rails side project hosted with Heroku and you're using the basic or dev database with the fixed row counts, you might want to consider reading this post I wrote about monitoring the total row counts and receiving email notifications when you get close that to nasty 10,000 or 10 mil mark.

Heroku Postgres Row Limit Email Notifications
Ever wished you could do multipass rendering with Mustache? Ever wonder why you might want to? Ever wondered how the heck Mustache works? Do I have the blog post for you!
I just launched Hakiri—a web app that gives you peace of mind about your web projects' security. Just select versions of technologies that you use in your projects and Hakiri will notify you via email when new vulnerabilities are discovered so you can update quickly.

Hakiri currently supports a limited set of technologies like Ruby/Rails, Postgres, Java, etc. I plan to add more soon.
I've just written how to increase confidence of isolated specs with Bogus.
Let's look at how to get visibility into an important component of any complex system: the messaging queue. Specifically, let’s look at how to trace a job from Rails using Resque. Read more here.
May 13, 2013
A different take on User Registration; one that keeps user registration out of the User class, the controller and implements it using a Form Object.
Us pirates don't like paying for things which is why we love Open Source software. But that doesn't mean we don't want to give back! With that in mind we'd like to give away 2 tickets for the next edition of ArrrrCamp in October. All you need to do is submit as many pull requests for open source projects as you want.
Compose and manage domain logic and data persistence separately and intelligently, Datamappify is loosely based on the Repository Pattern and Entity Aggregation.

Datamappify is built using Virtus and existing ORMs (ActiveRecord and Sequel, etc). The design goal is to utilise the powerfulness of existing ORMs as well as to separate domain logic (model behaviour) from data persistence.

Attributes lazy loading has just been implemented, check it out: https://github.com/fredwu/datamappify
Isn't Cloudinary great?  millwoodonline.co.uk
Since discovering Cloudinary I have have been finding handling images less of a chore. It takes out so much of the effort when dynamically resizing and cropping images. I put together a tutorial on how to use it. Uploading many images to Cloudinary with Carrierwave
Yandex::Webmaster gem and some bonus  igor-alexandrov.github.io
I just released Yandex::Webmaster. It is an API wrapper for Yandex.Webmaster tools. Now you can easily integrate information from Yandex into your Ruby application.

Read about it in my blog: http://igor-alexandrov.github.io/blog/2013/05/13/yandex-webmaster-gem-and-something-more/ and don't forget to find bonus at the of the post that will be interesting for developers from all over the world (not only those who use Yandex.Webmaster)