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.
Hurley: The New Man in Charge?
While honing my open source garden tending skills on Faraday, I got a glimpse of the leading candidate for the next protector of lostisland.
Spring Is Dead to Me
Who doesn’t enjoy a good rant every once in a while. The target of my frustration in this particular rant is Rails’ automagical Spring library.
Nuts & Bolts #5: Create a simple Sitemap with Rails and Ping it to Google with Rake
You just finished that new blog post or optimized your copy. And Google should know about it. Now you can wait for Google to fetch the changes – or just ping them. [more inside]
Using Rails Fixtures To Seed a Database
I wrote a new post on Using Rails Fixtures To Seed a Database. Hope you enjoy!
The Rails API Mini Guide
Rails makes writing APIs a cinch, but there are a number of things I wish I had known before I started. [more inside]
Using Ruby Object Type Classes to Safely Build Data
Helping simplify and protect collection creation when grouping data. http://6ftdan.com/allyourdev/2015/02/04/using-ruby-object-type-classes-to-safely-build-data/
Ruby wrapper for the ProZ.com API
ProZ is a Ruby wrapper for the ProZ.com API. The ProZ.com 2.0 API is a REST-like API for interacting with ProZ.com services.
Setting up Ember.js with Rails
This article shows how to setup a Rails app with Ember.js and QUnit testing (both in-browser and terminal runner) in a simple way!
Keep ahead of the curve
Rails land is constantly changing, to be employable you need to keep your skills sharp. Follow these rails blogs to keep ahead of the curve http://www.rubyonrails365.com/newsletters-blogs-for-ruby-on-rails-developers/
Domain Driven Design Quickly - Book Review
Review and discussion of applying the concepts in the context of Rails projects: http://bparanj.blogspot.com/2007/11/domain-driven-design-quickly-book.html
Splitting a Rails controller
Do the typical Rails controllers really follow the Single Responsibility Principle? [more inside]
New Jekyll Theme of the Month Series @ Planet Jekyll - #1 Poole, #2 Shiori
Hello, I’ve started a new Jekyll Theme of the Month series on Planet Jekyll that presents a new Jekyll theme every month. The first entries include: #2015.2 - Shiori by Elle Kasai and #2015.1 - Poole by Mark Otto. New theme entries welcome. Cheers.
Building business processes in rails applications
If you ask Rails developer about implementing business processes, 9 of 10 will start talking about state_machine and similar gems which is great but it is not a real workflow.
Finding your way around a new Rails project
You’ve got a new Rails app to learn, and not a lot of time to learn it. But after you git clone and open app/models, you’re totally lost. Even though the Rails structure is the same as what you’re used to, it’s impossible to find your way around the code. So what’s the fastest way to learn this new, unfamiliar Rails app?
New Methods in Ruby 2.2
Most of the fanfare around Ruby 2.2 has focused on garbage collection (GC) upgrades. The GC will now clean up symbols and has a new incremental algorithm that reduces the pause time. These changes are very exciting, but there were some new methods added as well. Let’s see what other new toys 2.2 delivered.
TDDing a unit, not a class
One approach to TDD is to write a test per each class. In this blogpost I’m showing an alternative way - we focus on the unit as a whole. This results in a top-down approach and a bit different tests.
Rails: Rescue From All Foreign Key Violations at Once
If you are using foreign keys in your Rails application, it’s easy to come across the situation where your application crashes due to an attempt to destroy a resource which id is a foreign key of another one. Trying to handle these situations on a case-by-case basis is quite painful, but with a very simple trick we can rest assured that it won’t happen. [more inside]
SAP Hana Rails App with SAP Authorization system - short tutorial.
If you have a Rails application running on the SAP Hana platform the issue you may encounter is how to allow users to login with their SAP account. We’ve managed to accomplish it and we would like to share with you a small tutorial about how we did that. Find out more.
Robot, you have one job
An exploration of the Single Responsibility Principle and how tests can reveal code that has too many responsibilities. This week’s post on Design is Refactoring
Deploying Ruby on Rails Apps On VPS
Every web developer has written at least one application and dreamed of sharing it with friends, but not everyone has a DevOps skills. We’d like to introduce you to an easy method for deploying Ruby on Rails apps entirely on your own terms. No need to explore the secrets of DevOps! Deploying Ruby on Rails Apps On VPS
Gutter - Linux-Ruby DashBoard
https://github.com/rajeevkannav/gutter A beautiful web-based dashboard for monitoring server info Live, on-demand monitoring of RAM, Load, Uptime, Disk Allocation, Users and many more system stats Drop-in install for servers with Apache2/nginx + Ruby Click and drag to re-arrange widgets Support for wide range of linux server flavors
Fixtures in real life, part 1
As promised, here’s my new blog post about using fixtures in a production application. Part one talks about coherent naming and visibility testing. More coming soon, hope you like it!
Opal 0.7.0: require, kwargs, docs, testing, lots of fixes
Opal 0.7.0 has been released, and comes with some fantastic features, read on in the official blog post: http://opalrb.org/blog/2015/02/02/opal-0-7-0/
Evolution of Rails from 1.0, 2.0 and 4.0
Evolution of the Rails framework summarized in 3 pictures.
Ansible for Rubyists
Have you ever struggled with server configuration? Are you Ruby developer? You don’t have to be afraid of infrastructure configuration any more! Check Ansible for Rubyists.