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.
Use context blocks to make specs more readable
Dennis Monsewicz wrote about the power of more readable specs using context blocks with RSpec over at his blog. Check it out.
Test state_machine workflow easily
Check out RSpec custom matcher for testing state_machine workflow: gist
Paggio, new opal-browser html/css DSL ported to your favorite Ruby impl.
Enter Paggo, the Ruby html/css builder that works on both your Ruby and on the browser! [more inside]
Time to do something about validate & validates?
I think it’s about time we did something about the validate and validates methods in ActiveModel. Having two methods with such similar names that do similar things but in a totally different way is extremely confusing. My proposal would rename one of them.
Varnish Cache Invalidation with Fastly Surrogate Keys
I’ve been seeing some seriously fast results using Fastly’s hosted Varnish service. This post covers purging the Varnish Page cache with Surrogate Keys.
5 ways to manage front-end assets in Rails
Aren’t yet ready to move fully to rails-assets.org? Here’s a summary of your options for getting those assets loaded: codefellows.org/blogs/five-ways-to-manage-front-end-assets-in-rails
Ruby interactive sublime debugger
I just launched Ruby inetractive debugger on sublime, support ruby 1.9.3 and 2.0.0. [more inside]
AngularJS and Rails 4 - A Step by Step Tutorial
Jason Swett just posted an epic tutorial: AngularJS and Rails 4 - A Step by Step Tutorial. It talks about using Angular in a real-world rails stack - not just in isolation.
Rails Assets, a frictionless proxy between Bundler and Bower
We’ve released Rails Assets, a frictionless proxy between Bundler and Bower. It automatically converts the packaged components into gems that are easily droppable into your asset pipeline and stay up to date. Story and presentation from London Ruby User Group can be found in a blog post.
Floats as array indexes: [ 1, 2 ][0.5] == 1.5 (Why? Because it's silly, that's why.)
The best jokes have have a huge build-up to the punch line. My build-up is writing a whole gem, Array-subindex, and the punch line is being able to index an array with classes of number other than integers. Confuse your friends and astound your enemies with code like this:
> [ 1, 2 ][0.5]
> # => 1.5 [more inside]
Maintainable and Scalable Systems with Rails Engines
We broke our company Rails app into engines. Here’s why, and what we learned along the way.
SpreeConf 2014 Announced: Feb 26-27 in NYC
Spree Commerce has just announced SpreeConf 2014 on Feb. 26-27, 2014 in New York City. Come learn about one of the most popular open source Ruby projects on Github and meet the people behind the technology as well as the stores that use it!
Team Subscriptions for MetaCasts.tv
I’m very excited to announce that the weekly Ruby, Rails and JavaScript screencast site, MetaCasts.tv now supports team subscription plans. [more inside]
iOS app development
Flat Stack, the global software development company in New Orleans that offer RoR development, ios app development and many more. Flatstack’s service is flexible and advanced as the same time.
Start a Rails 4 full-featured application with uWSGI
Start a Rails 4 full-featured application with uWSGI http://tmblr.co/ZuObpw10vGrAl
How to get More Bang for your Heroku Buck While Making Your Rails Site Super Snappy [Redux]
It’s been a year since I last wrote about getting the most from Heroku so I thought it was time for an update. It reflects changes in the Ruby hosting world and includes some new tips based on our experience over the last 12 months. [more inside]
I just asked a question on stackoverflow...
I just asked a question on stackoverflow How to fetch binary stored uuid as string from mysql?
Roar Got A New README!
Finally, the Roar README got completely rewritten - it now covers all the aspects as the underlying representable gem, rendering and parsing REST representations, nesting, coercion, HAL and Collection+JSON, client-side support and a lot more.
Moving Open Source Project Mailing Lists to Stack Overflow
For several years, there have been two ways of getting in touch with us for feedback regarding our open source projects: [more inside]