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.
Tired of writing configurations for your gem?
tl;dr Go to github.com/beatrichartz/configurations and get MyGem.configure do ... end configuration functionality (plus bonus). [more inside]
sportweb - Instant Open Sports Web Browser (Server) e.g. Use $ sportweb football.db
I’ve bundled up the sport.db.admin web app (- demo running on heroku -) into an easy-to-use command line tool, that is, sportweb for (local) use on your own machine. Let’s say you have an SQLite database - e.g. football.db - in your folder, than just type $ sportweb and that’s it - open your browser (e.g. use localhost:3000) and start browsing your local SQLite sports database. Cheers.
Get to Know a Gem: 'Main' Chapter 3
Final post on looking into the Gem Main check it out!
RailsApps Update for Devise 3.3
Devise default views now say “Log in” instead of “Sign in.” And the wording of error messages has changed. My blog post on the RailsApps Update for Devise 3.3 contains links for the details.
Release equatable v0.4.0
Released update to equatable to help implementing equality comparison in ruby objects.
Semaphore CI is now free for open source
Semaphore, a hosted CI & deployment service is now free to use fo open source projects. There are also accounts for open source organizations, coupled with public profiles to show off your work. :)
The Vibe: Magic Mushrooms, Microservices vs Monoliths,What Ruined Rails and more.
This week/s I have been mostly programming Ruby and Go, occasionally thinking about monoliths and services. My general feeling at the moment on rearchitecting your app is nope. Push it out as far as you can and take steps to postpone the inevitable (in Rails land, that’s engines, components and gems). Feel the Vibe
Rails Misapprehensions: Replace Helpers With View Models!
The new Cells view model allows replacing helpers and partials with a clean, encapsulated component by introducing a badly needed new abstraction layer.
Useful FactoryGirl methods
I did this brief post about some methods and configs in FactoryGirl that are very useful. Check it out: some groovy thing.
kibana-rack 0.1.4 released
I just released version 0.1.4 of kibana-rack! This release has a set of fixes and refinements to the Elasticsearch proxy, thanks to @dcarley. Notably, proxying to the internal Kibana index is now working. [more inside]
Kaminari-Cells Is Ready!
The new kaminari-cells gem allows using kaminari’s pagination in cells.
Keep FactoryGirl's factories integral
Identify a problem when you have inconsistent test environment with FactoryGirl and solve the issue in this post.
Using Clearance with RailsAdmin
Where there is an admin interface, there is also authentication. Most of the documentation out there covers how to integrate RailsAdmin with Devise. But setting up RailsAdmin with Clearance is easy, too!
"Easy Active Record for Rails Developers" Book Now Available!
I’m very pleased to announce the release of a book I’ve been working on for some time now, “Easy Active Record for Rails Developers”. The book covers everything under the sun pertaining to Active Record, including model and schema management, validations, queries, data management, extensive coverage of associations, nested forms, model testing using RSpec and FactoryGirl, and much, much more. Readers learn through walkthroughs of many examples based around a real-world project called ArcadeNomad that tracks the location of retro 1980’s arcade games.
Inch CI: Introducing Suggestions
I justed blogged about a new feature on Inch CI called Suggestions. [more inside]
Ruby, Rails companies in Pune, India
If you are looking at outsourcing your work to companies, in Pune India, that execute projects / develop products using Ruby and Ruby on Rails this list will be very helpful. [more inside]
Running GitLab 7.1 using Puma instead of a Unicorn
Theoretically it is not recommended but on the other hand, sometimes you just have to do some things not as they were described in a default tutorial. Here’s a description of how to run GitLab 7.1 using Puma instead of a Unicorn.
How to Add User Karma to Rails App
In short tutorial I will explain how to add user karma in Rails
Where are all the intermediate Rails resources?
So, you’ve finished a few Rails tutorials. You might have taken a class or two or watched some screencasts. You’ve followed along and built a copy of some tutorial apps. It’s pretty clear that it’s time to move to the next level in your Rails development. Somehow, though, you’re stuck. There are tons of books, classes, and videos for people just starting out. But where are all the tutorials for intermediate Rails devs?
Managing Environment Configuration Variables in Rails
Wonder how to manage environment variables in Rails? In this article we discussed a few different solutions including Figaro, dotenv and Rails’ built in secret.yml [more inside]
football.db - New 2014/15 Seasons - HTTP JSON API for Premier League, Bundesliga, Ligue 1, etc.
Hello, The plain text football fixtures for leagues, teams, match schedules, stadiums, and more that you can read with the sportdb gem into your SQL database of choice now includes the 2014/15 seasons for the English Premier League, the Deutsche Bundesliga, the French Ligue 1, and more. Or try the HTTP JSON API e.g. event/en.2014_15/teams or event/en.2014_15/round/1 and so on or better build your own HTTP JSON API using the starter kit. All data, code and samples public domain. Enjoy. Cheers.
Simple Benchmarking in Ruby
I wrote about a simple way to benchmark slow code in your Ruby & Rails apps.