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.
Transforming Hashes: A Refactoring Story
So many things are easy in Ruby. Transforming a complex hash is not one of them. I’ve yet to find a silver bullet for mapping complex hashes, but some approaches are better than others. Let’s take a look at how I got from bad to ugly to good enough.
Guide to 2016 Ruby Conferences / Camps @ Planet Ruby (Tip: Try $ rubyconf)
Hello, I’ve updated the Ruby Conference calendar for 2016. The Ruby Conference calendar is sourced by the awesome-events page @ Planet Ruby. Anything missing? Contributions welcome.
Tip: Use the $ rubyconf command line tool (bundled with the whatson gem) to get latest news e.g.:
Dealing with Common Capybara Feature Test Failures
Learn how to minimize wait time for the pdf file loading on the web browser and other common issue with Capybara 2.5 using Rspec 3.3.2 and Rails 4.2.5 projects : Dealing with Common Capybara Feature Test Failures
Rails 5 Basics : Restricting Operations
Learn how to use http basic authentication in the twelfth chapter of Rails 5 Quickly book onlie : Restricting Operations
Code Ruby like you build Lego
Split your app based on business logic bricks and assemble them Read more
Query traces
Sometimes you just can’t tell where SQL and cache requests come from. But then, using more gems, you can:
Monitoring services and adapters in Rails with Honeybadger, NewRelic and #prepend
The bigger your app gets the higher chance that it will need to integrate with multiple of external services, providers and APIs. Sometimes they work, sometimes they don’t. Sometimes it doesn’t matter when they are down or behaving problematically. Sometimes it costs your clients money. Read more
phoenixbricks
Rails bricks in a new name . Please contribute if you can.
Strategic Benefits of SaaS for businesses
For an effective business ecosystem, an organization need to sustain competitiveness by reducing risks and assuring relatively safer returns for their investments. Check out some benefits on why SaaS makes sense for your business. Read More
Rails 5 Basics : Delete Comment
Learn how to delete a nested resource, read the eleventh chapter from Rails 5 Quickly book online Delete Comment
Using helper methods inside your controllers
Have you ever needed to use a helper method inside your controller? I did, a few times. If you included the helper module inside the controller, since Rails 3, as I did many times before, you did it wrong. Read more
Migrations, seeds and pipelines
Keep your migrations to a minimum by letting your schema dictate the state of your database, and have your seed files be responsible for the data within:
New Gem Released "assign"
Now you can use any method inside a multiple assignment scenario. Read more
Why You Need A Ruby on Rails Expert
If you’re a non-technical founder who’s ready to launch a web app, there’s only one thing left to do: get yourself a Ruby on Rails expert.
Be aware of time operations when using cache with expires_in
In the last post I exposed some methods to calculate time difference in seconds, minutes and hours using Ruby on Rails. Today, we will explore how a small difference on time operations can become a nightmare when dealing with cache with expires_in parameter. Read more
25,000+ Req/s for Rack JSON API with MRuby
Use MRuby with H2O and Redis to build a Rack JSON API that serves 25,000+ requests per second.
Level Up Your Command-Line-Fu With Ruby
To really master the command line you have to master dozens - if not hundreds - of small utility programs. Fortunately, it’s possible to replace a lot of these single-purpose tools with a general-purpose programming language like Ruby. This post will show you how you can use your Ruby skills to level up your command-line game. http://blog.honeybadger.io/ruby-unix-command-line/
Speeding Up Bulk Imports in Rails
Leigh Halliday shows ways how to speed up bulk imports in Rails.
Inline form validations in Rails from scratch
Are you stuck with the ancient “after submit” validations and no javascript plugin does the trick and provides inline validations? Implement your own! In this blog post I show a way of implementing inline validations from scratch. Read more
4 ways to get the most out of your Rails logs
Logging is the lowest common denominator of monitoring. The downside of being a logging addict: logs can quickly become a noisy mess. Learn how to turn your Rails logs into a drool-worthy debugging tool.
Working with dates on Ruby on Rails
Working with dates can be hard. You need to consider time zones, understand how to store dates in your database, parse strings into dates or even format dates and display them to the user. And there’s the daylight saving time. See how to properly work with dates.
What's new in Ruby 2.3?
Ruby 2.3.0 will be released this Christmas, and will introduce some new features like the safe navigation operator and immutable string literals. Here’s a look at all the new features coming up:
A christmas tree formatter for RSpec!
We wrote a formatter for RSpec that outputs the familiar dots that you might be used to seeing , but in the form of a christmas tree; a great way to bring some holiday spirits into your test suite! A short blog post about it is on the Elabs blog: http://www.elabs.se/blog/76-a-christmas-tree-formatter-for-rspec The code is available on GitHub: https://github.com/elabs/christmas_tree_formatter
Rails Anti-Pattern: Fat Decorator
Using decorators in Rails makes models less fat and views less complicated. But what if the decorators become fat? Read on to learn how large decorators hurt your codebase and what you can do about it.
Demystifying the Gem Version Comparison
Learn how ruby gems implements the gem version comparison by reading the article : Demystifying the Gem Version Comparison