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.
markdown 1.1.1 - Markdown Engine Wrapper Now Includes HTTP API / Web Service
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.
Learn Ruby on Rails from beginners
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!
Phusion Passenger 4.0.3 released
This release comes with important features and bug fixes.
Rails recipe: How to change objects in Rails [Flowchart]
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.
Paperclip, Bootstrap and SimpleForm working together on Rails
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
7 secrets every Ruby developer should know before getting into a manager or lead role
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.
Attrio – Typed Attributes for Ruby Objects
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. [more inside]
Using the Google Maps API with Ruby on Rails and Coffeescript
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
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.
Talk: An Intervention for ActiveRecord
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!
byebug & pry-byebug - Finally debugging in ruby 2.0!
Can’t use gem ‘debugger’ since you upgraded to Ruby 2.0? Next behaving like step? Checkout byebug or pry-byebug!
Using Sprockets to Manage the Asset Pipeline in Padrino
I wrote a blog post about Using Sprockets to Manage the Asset Pipeline in Padrino. Please give me feedback!
AngularJS with Rails 4
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/
Song Lyrics for your Ruby apps.
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!
Avoid duplicate imports with LESS preprocessor - Blog post
Top 5 Cucumber best practices
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? [more inside]
ActionWidgets: Rails helpers on steroids
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
I just wrote a blog post, Taming Rails Apps with Engines, about using Rails Engines to break down a large Rails project.
Testing Against Multiple Rails Versions
Find out how to test your libraries against multiple versions of Rails so your gems will be ready when Rails 4 comes out.
Webhooks, upload notifications and background image processing
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.
Introducing Searchlight, the lightweight search gem
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. [more inside]
Rails authentication using has_secure_password
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.
equatable Ruby Objects Comparison
A small nifty gem equatable to help value objects express their equality.