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.
Using ECMAScript 6 with Rails 4.2 Projects
Babel is a JavaScript transpiler that turns your ES6+ code into ES5 friendly code. Learn how to use ECMAScript 6 with your Rails 4.2 projects with the help of Sprockets and Babel.
Improve session security in Rails apps with Authie
This is a Rails library which provides applications with a database-backed user sessions. This ensures that user sessions can be invalidated from the server and users activity can be easily tracked.
All about Rails, with Rails Core team members Rafael França and Carlos Antonio
Interview with Rails Core team members Carlos Antonio and Rafael França, about early days of their Rails contribution, Rails team, Brazil Rails community, their day to day tools of choice and workflow, and how everyone can help out with Rails.
4 Ruby methods that are an order of magnitude faster, and 22 other optimizations
Juanito Fatas’ fast-ruby benchmarks are a great collection of insights into the performance tradeoffs of the different ways Ruby let’s you skin a cat (or shave a yak). Sometimes it’s possible to achieve amazing increases in speed without sacrificing any readability in your code thanks to the last 2 decades the core Ruby team has spent optimizing common patterns.
New release of middleman-presentation
I released a new version of middleman-presentation. See this article or browse the repository for more information.
Writing methods for both class and instance levels
A DRY way to implement your methods in both the class and instance levels. http://6ftdan.com/allyourdev/2015/02/24/writing-methods-for-both-class-and-instance-levels/
Fragment Caching with Rails 4.2 Screencast (19:30 min.)
A beginner’s guide to use fragment caching in a Ruby on Rails 4.2 application. Source code, transcript and video at http://www.amooma.de/screencasts/2015-02-24-fragment-caching-rails-4.2/
How to configure your Rails app to ship
You’re ready to launch your first production app, and it’s time to get it talking to some external services. You still have to get everything hooked up. So what’s the best way to configure your services in production, without making things more complicated on your dev machine?
What You Need to Know When Working With External APIs in Rails
Accessing APIs seems to be pretty straight forward, until you actually do it. There are a few gotchas that I’d like to talk about to make your experience in working with external APIs a little bit more pleasant. Check out the post.
Class Inheritance: Singletons + Eigenclasses
Ever wondered what that crazy “class « self” syntax means? Feel like having your mind blown with some metaprogramming magic? Check out this post on class inheritance, covering singleton methods and eigenclasses.
Even More Diet for Fat Models
I just published a post introducing a new approach for dealing with fat models. In the contrary to Ania Ślimak’s proposition I suggest to make model fully isolated from validations and keep the data representation as its only job. The approach is more OO and closer to Single Responsibility Principle. Read more here »
EuRuKo 2015
We’re happy to announce that EuRuKo 2015 will be back on October 17—18, 2015 in Salzburg, Austria!
[TUTORIAL] Authenticating Sinch from your Rails App with Devise
This tutorial will walk you through authenticating users to the Sinch JavaScript SDK with a Rails backend. You will use the devise gem to securely authenticate and store your users’ info. Once users are authenticated with devise, you will generate a token and pass it to the Sinch JavaScript SDK. [more inside]
Building an Unbeatable TicTacToe Game in Ruby - Part 2
Part 2 in a short series of posts describing how I designed and implemented an unbeatable TicTacToe game using Ruby.
Announcing Haikunator, a Heroku-like memorable random name generator
It’s a simple, no BS gem, built to do one thing and one thing only. And, that’s to generate memorable random Heroku-like names. That can be used for sub-domains, emails, user names and whatnot in your apps or anywhere else. I wrote it for a side project and extracted it as my first gem.
Emails in Rails apps: table of contents
I’d like your comments on what I came up with as the table of contents for “Sending and Receiving Emails in Rails Apps” an ebook that will serve as a reference for sending and receiving emails in Rails apps. Tell me what you think about the table of contents.
Create maintainable mongodb queries in Ruby with query object and mongoid criterias
I wrote about creating maintainable mongodb queries in Ruby with query object and mongoid criterias http://teotti.com/create-maintainable-mongodb-queries-in-ruby-with-query-object-and-mongoid-criterias/
Thanking the unsung heroes of the Ruby community
Please take a second to nominate the unsung heroes of the Ruby community for a Ruby Hero award who made your life and your work easier this past year. Nominations will close soon in preparation for RailsConf 2015 in Atlanta, Georgia where the awards will be handed out. Thank you.
Nuts & Bolts #6: Create Twitter Cards and LinkedIn Previews with Rails
You want a nice preview when your content is shared on Twitter, LinkedIn and other sites? That’s a good idea – it looks better and people are more attracted to click. Let’s build a simple solution.
Bringing Ruby fetch to the Javascript world
If you are a Rubyist you are probably comfortable using the fetch method on a day-to-day basis but when you are developing in Javascript this sweetness is not immediately available. This is why I wrote underscorejs-fetch => http://goo.gl/fepkpE
cache me, if you can
A caching issue, causing 10,000 API RPM. Tips to catch a common caching bug, I frequently see. Also, my most clever blog title for Oscars: cache me if you can
Traveler - easily embrace Traveling Ruby awesomeness
Just released Traveler, a nifty wrapper for Traveling Ruby
Tutorial: Hangman on ruby on rails on foundation on fontawesome
Just published a tutorial for implementing the Hangman game using Rails 4, Foundation grid and FontAwesome.