Changelog

Rails Icon

Rails

Ruby on Rails (Rails) is a web application framework written in Ruby.
71 Stories
All Topics

Elixir Icon infinum.co

Things I wish ActiveRecord had after using Ecto

Great list, and I agree with many of Vladimir's points. However, I have to admit that Ecto's take on preloading still bugs me after years of use. I find myself doing the preload dance all over the place even when I'm well aware of the performance issues around N+1 queries. I thought I'd get used to it over time, but it still irks me every time I see an Ecto.Association.NotLoaded exception.

read more...
logged by @jerodsanto 2018-01-30T22:45:00.010628Z permalink #elixir #rails

Rails Icon github.com

passwordless

A project after my own heart: 🗝 Add authentication to your Rails app without all the icky-ness of passwords We've been password-free on Changelog.com for awhile now. It's not without drawbacks, but you can definitely sleep better knowing that even a database breach can't compromise your users' passwords. Because there aren't any.

read more...
logged by @jerodsanto 2017-12-12T17:59:00.010714Z permalink #rails #security

Mike Perham Avatar The Changelog #274

Faktory and the future of background jobs

Mike Perham is back for his 4th appearance to talk about his new project Faktory, a new background job system that's aiming to bring the best practices developed over the last five years in Sidekiq to every programming language. We catch up with Mike on the continued success and model of Sidekiq, the future of background jobs, his thoughts on RocksDB in Faktory vs BoltDB, Redis, or SQLite, how he plans to support Sidekiq for the next 10 years, and his thoughts on Faktory being a SaaS option in the future.

read more...
Play
logged by @logbot 2017-11-18T20:00:00Z permalink #ruby #rails

Sean Griffin Avatar The Changelog #270

Rails as a Day Job, Diesel on the Side with Sean Griffin

Sean Griffin joins the show to talk about doing Rails full-time, his love of Rust. and his project Diesel - a safe, extensible ORM and query builder for Rust. We discuss Sean’s path to working full-time on Rails, what he works on specifically, why Rust, why Diesel, and how much of Diesel’s design and featureset is a product of his experience with ActiveRecord and Rails.

read more...
Play
logged by @logbot 2017-11-04T18:30:00Z permalink #ruby #rails #rust

Rails Icon changelog.com

CanCanCan picks up where CanCan left off

Ryan Bates' unfortunate burnout-induced hiatus from open source left his projects unmaintaned. CanCan — the much beloved authorization gem for Ruby on Rails — was no exception. CanCan may be dead, but long live CanCanCan! This repo is a continuation of the dead CanCan project. Our mission is to keep CanCan alive and moving forward, with maintenance fixes and new features. Pull Requests are welcome! This is what I love about open source. Great ideas aren't bound to their creators. All it takes is one person who cares enough to pick up the torch and run with it.

read more...
logged by @logbot 2014-06-05T13:24:54Z permalink #rails #ruby

Rails Icon changelog.com

Rails 4.1 to get a Spring in its step

A lot of focus lately has been put on improving Rails' speed in dev mode. John Leighton's Spring gem is a result of some of that focus. It preloads your Rails application and keeps it running in the background so you don't need to boot it every time you run a test, rake task, or migration. As of this commit Spring will be installed by default on newly generated Rails 4.1 apps.

read more...
logged by @logbot 2013-12-04T22:25:53Z permalink #rails

Rails Icon changelog.com

View Rails debug messages in the browser console with Rconsole

Using log messages in Rails can be a huge timesaver when you are debugging. With Rconsole you can save even more time by having those messages appear in the browser console. Rconsole is a fairly new gem with a lot of potential. Installation is super simple. First add it to your Gemfile: group :development do gem 'rconsole', '~> 0.1.0' end Then run bundle install. Add to your layout view: javascript_include_tag(:rconsole) if Rails.env.development? To use Rconsole simply add rconsole.log messages where you would normally insert logger.debug, etc. def show rconsole.log 'Hello, Changeloggers!' ... end Now your browser will display your messages: In addition to debugging, Rconsole is particularly useful when working with students or new rubyists to show the connection between what's happening in the controller and the view. The entire code base is open source and available on GitHub.

read more...
logged by @logbot 2013-09-18T13:06:46Z permalink #rails

Ruby Icon changelog.com

A startup template for Ruby on Rails 4 applications

Way back in January, I wrote a blog post called "Rails has two default stacks". In it, I discussed how people like to customize the defaults that Ruby on Rails gives you. Your company might prefer Postgres/HAML/RSpec, for example, over the default MySQL/ERB/MiniTest. There's an under-used feature of Rails that allows you to automate the creation of your own stack: templates. Check it: $ rails --help Usage: rails new APP_PATH [options] Options: -r, [--ruby=PATH] # Path to the Ruby binary of your choice # Default: /opt/rubies/ruby-2.0.0-p195/bin/ruby -m, [--template=TEMPLATE] # Path to some application template (can be a filesystem path or URL) Application template? Yep. There's very little documentation on this feature, unfortunately. There is a work in progress Rails Guide that gives some answers, but it's not done yet. Anyway, the TL;DR is this: you can write a little script to help initialize a Rails app just the way you want to. And Rails startup template is exactly that. Here's some of the things it gives you out of the box: Adds analytics-ruby, simple_form, uuidtools, rspec, guard-rspec, and bourbon gems, as well as a few more. Creates a new git repository, and optionally a new one on GitHub Sets up foreman for easy environment variable and background service config. Removes include_tree . from your application.css, since the author prefers to require things manually. There are some other features, as well. Check it out on GitHub and vote it up on Hacker News.

read more...
logged by @logbot 2013-08-13T15:39:49Z permalink #ruby #rails
0:00 / 0:00