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.
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.
Tutorial: How to Build a CMS in Ruby on Rails
I’ll try to show you how to build a flexible, reusable CMS engine using various features offered by Ruby on Rails and Postgres. [more inside]
football.json - Free open public domain football data in JSON incl. Premier League...
Hello, I’ve put together a new repo, that is, /football.json that offers (auto-)generated match schedules (fixtures and results) and club listings for the major football leagues e.g. English Premier League, Deutsche Bundesliga, Italian Seria A, etc. See the 2015-16 season folder for (static) JSON examples. No API key required ;-) All data public domain. Enjoy the beautiful game. Cheers. PS: Ruby works great for generating JSON; see the json.rb script for the code.
Ruby 2.2.2 Array Basics : Part 3
Ruby 2.2.2 array methods such as equal?, try_convert and []. Watch it here: here
Building a Ruby on Rails App Part 3: Importing book details from Amazon
The third instalment of our Building a Ruby on Rails series is now out. It was really interesting to fetch the book details from this vast API that is Amazon AWS using the amazon-ecs gem. We also used rmagick to fetch the book cover image from Amazon, resize it and store locally.
5 ways APIs drive business value
In the previous lesson of Build Less, But Better Software email course, we concluded that your software businesses should start with private APIs then pivot to partner and public APIs when you’re confident with your ability to keep supporting the API. In lesson 4, we’ll look at 5 ways APIs drive business value.