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.
Just learn Rails (Part 3) HTTP status codes
So you want to be a Rails superstar? To live large, big servers, requesting tars. Writing code all over the world, gotta make commits constantly. Great, I feel the same way. [more inside]
Fixing Command Injection Vulnerabilities in Ruby/Rails
How do you prevent command injection vulnerabilities? By not allowing them in the first place! Learn how to safely make system calls in ruby & rails
Introspection by Design in Ruby
Using messaging as a pattern for return objects allows for powerful introspection, simpler system design, and better Tell Don’t Ask systems. Read more: Introspection by Design in Ruby
Ruby on a Plane
In the past few years I’ve spent an awful lot of time at airports, on airplanes, and in trains. I love my job, it gets me to places I never would have dreamed I’d ever go, but it can be damn hard on someone who needs a decent wifi connection to do be productive. [more inside]
Ruby's built-in databases - meet PStore and YAML::Store
Ruby has two fantastic methods built-in that let you save data without using a full-blown database. Learn about PStore and YAML::Store and how to use them!
any_login - one more way to make your deveplement life easier
Please check my first gem https://github.com/igorkasyanchuk/any_login . It can really make your life easier with changing logged in user. Your feedback is appreciated. Video: https://www.youtube.com/watch?v=978DlHvufSY&feature=youtu.be
The History of Ruby on Rails
Known as ‘Ruby on Rails’, ‘RoR’ or ‘Rails’, Ruby on Rails is a rapid web development framework developed in Ruby. Created in 2003 by David Heinemeier Hansson, while working on the code base for Basecamp, a project management tool, by 37signals, it was officially released in July of 2004 as open source code. Visit RailsCarma Blog , to read full article.
Ruby 2.2.2 Array Basics : Part 5
Ruby 2.2.2 Array methods such as any?, assoc, at, bsearch and clear. Watch it here here
Don't tell me what to do
Do you know what’s wrong with articles or solutions saying that you should ditch your ORM, abstract everything from the framework, create six layers of abstraction and break you app into dozens of microservices? There’s no silver bullet. Read more.
rugby.db - Free Open Public Domain Datasets - Incl. Rugby World Cup 2015 England
Hello, Not interested in football? No worries ;-) For the Rugby World Cup 2015 now taking place in England - from Sep 18 to Oct 31 - I’ve put together free open public domain datasets in the new /rugby.db repo that you can read into your SQL database of choice (e.g. SQLite, PostgreSQL, etc.) with the sportdb machinery (gems ‘n’ scripts in Ruby). Note: The repo includes an inline (in-situ) datafile, thus, to build yourself a copy, use: $ sportdb build That’s it. Enjoy. Cheers.
Pronto can now make your Rubies go fasterer!
Pronto performs quick automated code reviews with the help of various analysis tools (RuboCop, Brakeman, Flay, etc.) by checking only the introduced changes. And now it also can make your Rubies go fasterer with the help of, you guessed it, fasterer! Check it out: Pronto and pronto-fasterer.
Programming beyond practices
Writing code is the easy part of software development. I’ve started a new email newsletter that’s meant to teach you about the other 90% of programming.
Serving files from local directories via HTTP
If you need to share files from your local system with others, you’ve got plenty of options. In this article I am going to show you, how I solved the problem.
Ruby 2.2.2 Array Basics : Part 4
Ruby 2.2.2 Array manipulations using &, *, +, -, «, <=> and ==. Watch the video
5th edition of RubyIssue(s)
A curated list of ruby related issues collected from GitHub. Bi-monthly email delivery. This edition points to issues of ROM, shoes, rorganize.it and the open data maker project of 18F. It also honors people fixing issues from the last edition.
ASP.NET to Rails - The Journey
A high level article that covers some of the unknowns if you want to convert from ASP.NET to Rails. http://blog.chadwilken.com/the-great-shift-asp-net-to-rails/.
Brittle Code in Rails Projects
The Fishbone Diagram, Why-Why Diagram and How-How Diagram are extremely useful to solve problems. It can be used to analyze a problem in a systematic way and discuss the alternative solutions to any problem. You can use them with other developers to come up with better design for your software projects. Read about it here: Problem Solving Techniques for Developers
A Middleware Stack Without Rack
A brief examination of the Rack middleware stack, and how to apply it as a pattern to something outside of Rack or web request handling. http://www.blrice.net/blog/2015/09/18/a-middleware-stack-without-rack/
Jobless - generate your CV with Ruby
Jobless is a simple DSL written in Ruby for generating CVs. It generates HTML files, which can be easily converted to PDF format if needed. https://github.com/dabrorius/jobless
Log File Rotation Using Logger
Log files can get pretty large if you leave them long enough. Here I describe how to setup log rotation using the ruby Logger. I find this contains the apps logic better than defining it in the OS’ log rotate. View the article here: http://solidfoundationwebdev.com/posts/rails-log-file-rotation
One Repo to Rule Them All
How keeping multiple Rails apps and gems in a single repo can make your life easier, by simplifying code re-use, testing, and pull requests.