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.
Migrating existing session cookies while upgrading to Rails 4.1 and above
Read about how to migrate existing session cookies to Rails 4.1 and above safely .
Ruby on Rails Consulting Services- RailsCarma
We provide end to end Ruby on Rails consulting to companies around the globe. We support our clients with tools and techniques and innovative approaches to solve mission critical business problems. Our mission is to revolutionize the process involved in solving the strategic or routine IT problems that effect business growth. [more inside]
5 Early Lessons from Rapid, High Availability Scaling with Rails
At Ello, we were blindsided by the amount of traffic we were receiving. Right time, right place, I guess. One week, we’re seeing a few thousand daily sessions. The following week, a few million. This insurgence of users meant the software we built was contorted in directions we never thought possible. [more inside]
Dynamic Heroku Unicorn Worker Count
Optimize the number of unicorn workers within each of your Heroku environments. [more inside]
Why Hackathons Are Always a Good Idea
A bunch of open source, mostly Ruby on Rails apps, our team developed during a single day internal hackathon. Feel free to share & contribute! :Why Hackathons Are Always a Good Idea.
search_cop v1.0.4 is out
I just released v1.0.4 of search_cop to fix a another issue regarding Rails 4.2. [more inside]
Ruby on Rails Development – How To Do it Agile?
Ruby on Rails Development – How To Do it Agile? [more inside]
Security Fix and Concerns
ror_ecommerce had its first security announcement. Once this announcement became public, I have become very concerned about how to make these announcements and think the community needs to find a better way.
tty-progressbar v0.3.0 released
The newest tty-progressbar offers automatic resizing, optimisation of formatting tokens, easier configuration and ability to clear progress once finished. Please give it a whirl!
jekyll-planet gem - Add Articles, Blogs to Your Site via Web Feeds (and Planet Pluto)
Hello, the jekyll-planet gem lets you generate Jekyll posts for your static site using the Planet Pluto machinery. Add articles or blog posts syndicated via web feed to your site in three steps: Step 1: Use a Planet Pluto configuration e.g. planet.ini to build your local planet.db SQLite feed cache. Step 2: Generate planet posts for Jekyll (from the planet.db cache) using the jekyll-planet Ruby script. Step 3: Use Jekyll as usual to build your site. That’s it. Happy Planet. Cheers.
Add Twitter cards to your Rails site with metamagic
Here’s all you need to add Twitter cards to your Rails site, using the metamagic gem.
Any gem as standalone binary that works with any ruby -- rubinjam
Rubinjam any gem (w/o native ext) into a binary curl https://rubinjam.herokuapp.com/pack/rake > rake && chmod +x rake && ./rake –version
Lifetime Ruby on Rails Mentorship giveaway
Hey! Just wanted to share this exciting Christmas giveaway of Lifetime access to Rails mentorship. 4 days left to join so hurry up :D
Hash19: A Ruby gem to map complex JSON to objects
I just wrote a JSON aggregation library that I thought would be a fairly common use-case. A write up on that is available here
Opal under a microscope: Object creation in Ruby and JavaScript
In this post we’ll learn how Ruby objects are mapped in JavaScript-land by the Opal compiler, how to call methods on them and how object instantiation works for both Ruby and JavaScript.
Video Tutorial: Deploy Ruby on Rails To Your Own Server
Learn how to Deploy Ruby on Rails To Your Own Server with this video tutorial series using Ubuntu, Postgres, Nginx, and Unicorn.
Repository Driven Infrastructure
Repository Driven Infrastructure helps managing your infrastructure from your repository. Developers describe their intent to deploy, the system picks it up and follows through on it. [more inside]
Rails Fundamentals: Introducing Strong Parameters
One of Rails’ most visible historical protections against malicious data corruption involved using the attr_accessible method within a model to identify which model attributes could be passed into methods like new and update_attributes for mass assignment. This changed with Rails 4, thanks to a new approach for managing mass assignment behavior. Known as strong parameters, the task of defining which parameters are available for mass assignment has been moved out of the model and into the controllers, allowing developers to define mass assignment behavior according to action. In this tutorial, I’ll introduce you to strong parameters, and include several usage examples.
search_cop v1.0.3 released
I just released v1.0.3 of search_cop which brings support for Rails 4.2. Happy searching.
Elegant permalinks in Rails
Small guide about adding elegant permalinks to your Rails app using the friendly_id gem.
You lose context when using an API
Just blogged about the difference between server side HTML rendering and the use of an API. [more inside]
Hashie Considered Harmful - An Ode to Hash and OpenStruct
Have you ever used Hashie? You may (not) be surprised that it’s a horrible idea. But you may interested to learn hashie is responsible for a 5% decrease in all app speed if you’re using omniauth. To learn more about why having an object that inherits from hash and acts like an object, read hashie considered harmful
A Ruby Refactor: Exploring Dependency Injection Options
I wrote a new post titled A Ruby Refactor: Exploring Dependency Injection Options. Hope you enjoy!