makandra dev
github.com

Now supports Rails 4.1 and Ruby 2.1.

makandra dev

assignable_values now supports Rails 4.1 and Ruby 2.1.0.

Travis CI is a free continuous integration testing service. However, it is really fragile and will break more than it...

makandra dev
github.com

EdgeRider 0.3.0 adds support for Rails 4.1 and Ruby 2.1. It forward-ports ActiveRecord::Base.scoped to Rails 4.1.

RSpec 3.0 deprecates the :should way of writing specs for expecting things to happen. However, if you have tests you...

Sometimes you're getting an ActiveSupport deprecation warning that you cannot or don't want to fix. In these cases...

Warnings like those below may originate from rspec or shoulda-matchers or other gems that have not updated yet to...

SimpleForm is a great approach to simplifying your forms, and it comes with lots of well-defined input types. However...

When your Rails controller action responds with only a simple text, render text: 'Hello' may not be what you want...

If you parse this Yaml ... yes: 'Totally' no: 'Nope' ... you get this Ruby hash: { true: 'Totally', false: 'Nope' }

stackoverflow.com

Create, or edit your ~/.irbrc file to include: require 'irb/ext/eval_history' # was 'irb/ext/save-history' for versions prior to Ruby 3.3 IRB.conf[:SAVE...

guides.rubyonrails.org

config.action_controller.action_on_unpermitted_parameters enables logging or raising an exception if parameters that are not explicitly permitted are...

github.com

quiet_assets helps with disabling asset pipeline log messages in the development log. When the gem is added, asset pipeline...

Edge Rider gives your relations a method #origin_class that returns the class the relation is based on.

makandra dev

Spring is a Rails application preloader. When debugging e.g. the rails gem, you'll be wondering why your raise, puts...

Programatically invoke Rails generators Require the generator, instantiate it and invoke it (because generators are Thor::Groups, you need...

With this command you can initiate an application restart without touching restart.txt. Unlike touching restart.txt, this tool initiates the restart...

If you regularly get ActionView::MissingTemplate exceptions, maybe some bot visits your site requesting silly formats like: http://www.rails-app.com/makandra.html-username-2000...

If you are using Angular and want something like Rails' simple_format which HTML-formats a plain-text input into...

makandra dev
sitepoint.com

A look at Prawn, PDFKit, and Wicked PDF

robots.thoughtbot.com

Declare an enum attribute where the values map to integers in the database, but can be queried by name.

everydayrails.com

I recently had a need to demonstrate a data-heavy application to potential customers. Demonstrating the application with bogus numbers...

medium.com

When you, as a developer, look at the choices used to build a particular application, you’re blown away at...

gist.github.com

How to remove/disable the automatic XSS protection helper html escaping for Rails 3. This is probably a horrible idea.