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.
Creating configuration files for Ruby programs
Some ideas about how to create configurations for ruby programs.
Reform 1.2 Is Out!
The popular form object for Ruby and Rails, Reform, got some new amazing features. It now allows dynamic syncing and saving, got a 85% speedup, a dirty tracker and more.
Pastel v0.3.0 released
pastel got even stabler and faster. Fixed bugs concerned with nested styles, improved speed and added ability to alias colors at runtime through environment variable and library interface. This is a component that will be part of tty toolkit
image_optim v0.19: better gif optimization and optional lossy jpeg worker
I’ve just released v0.19 of image_optim with improved gif optimization and new optional lossy worker for jpeg files which uses jpeg-recompress.
activerecord-after-transaction 0.1.0 Release!
I just launched activerecord-after-transaction which provide a function to execute a proc after the transaction.
Time zones and Daylight Saving Time
I wrote a blog post about considerations on Daylight Saving Time when using time zones.
Rails Stats: External and more complete "rake stats"
Check out your app’s stats. The tool is here. The blog post here has example output.
How to serialize Date and DateTime to JSON without losing information
This blog post teaches you that depending on the way you serialize your Date and DateTime values to JSON, you could lose information. [more inside]
Continuous Static Analysis using Pronto
A short walkthrough of how to configure Pronto to do static analysis on every pull request with the help of Travis. Can also be applied to other CI servers.
Nuts & Bolts #3: Show and tail multiple production remote logs with Capistrano
Sometimes you want to see what’s happening in your production log files right now. You can use log management tools like Loggly or Papertrail for this, but there is also an easy way to stream your log files with Capistrano. [more inside]
scriptster: Making your Ruby scripts pretty
I would like to introduce to you a small gem that I released last weekend. It’s called scriptster and its aim is to help you make your Ruby scripts a bit nicer (especially those that depend on many external tools).
Beer-A-Day - Open Data "Eternal" Page-A-Day Calender - beer.db Web App Sample in Rails
Hello, As an example of using the beer.db - open public domain beer n brewery data - I’ve put together a page-a-day “eternal” calendar serving a different beer w/ every request. See a live demo with an all-Austrian taproom or build your own. All code and data is public domain. Cheers. Prost. Kampai.
2014 Rails Rumble Gem Teardown
I just finished the 2014 Rails Rumble Gem Teardown, which is a detailed analysis of the gemfiles used by the rail rumble teams. A ton of fascinating stuff this year, including the rise of Bootstrap, Rails Assets usage, Autoprefixer domination, etc.
Codeship now integrating with Ninefold
For anybody using Ninefold and/or Codeship: The two services now integrate. [more inside]
`respond_to` without all the pain
When you generate a scaffold in Rails, you’ll see the usual respond_to blocks. But some of your actions, like index, don’t have them. And those actions, when hit with a bad format, will raise the wrong kind of error. You want to handle bad formats correctly, but littering all your controllers with big respond_to blocks is crazy. It feels un-Rails-ish. So what do you do?
An example of dependency inversion
I recently stumbled on such a good example of the Dependency Inversion principle being applied that I had to blog about it.
Rails Disco: Get Down with Event Sourcing
I wrote this post on using the rails-disco gem to implement Event Sourcing. The basics of ES are explained using a demo Rails app. Boogie!
Benchmarking Rack Middleware
How do you benchmark rack middleware? Well read this blog post then go make your code faster.
Introducing "The Bike Shed", a web development podcast from thoughtbot
We’re excited to announce the release of The Bike Shed, hosted by Sean Griffin and Derek Prior. It is a biweekly podcast discussing thoughtbot’s experiences in web development. [more inside]
Optimizing images from terminal, ruby project or Ruby on Rails application
Few days ago I’ve released a satellite gem for image_optim called image_optim_pack. It contains latest versions of nearly all binaries required by image_optim for Mac OS X and Linux platforms (e.g. works on Heroku). It should make optimizing images from terminal, ruby project or Ruby on Rails application even easier.
Tropical Ruby 2015 CFP is open
Tropical Ruby 2015, the beach Ruby conference, will take place during March 5–8th at Porto de Galinhas, a paradisiac beach located in the Brazilian northeast coast. [more inside]
BDD on Rails with Minitest tutorial, Part 2: Implementing a Feature
Check out the second part of BDD on Rails with Minitest by Chris Kottom to see a step-by-step guide how you can use Minitest for complete feature implementation.
Growth Trumps Everything (For Startups)
You can’t expect customers to beat a path to your door because you have a great product. To succeed as a startup, you have to go out and recruit customers manually. Traction: A Startup Guide To Getting Customers gives a primer on how to market effectively. I’ve shared some nuggets and added some commentary as to why it matters for startups.
Find your happy_place with javascript and Rails
happy_place allows you to call js functions and pass in variables and partials. It has a simple interface which allows you to write object oriented javascript and use these objects in your controllers. [more inside]