svenfuchs's rails-i18n at master - GitHub

Central point to collect locale data for use in Ruby on Rails.

paperplanes. run_later Gets Some Rails 2.3 Middleware Love

In earlier version I needed to do an awkward thing that only affected development mode, where Rails unloads all classes after each request. run_later runs code in a separate thread, and depending on how long that code runs the classes would be unloaded when they're still accessed from the worker.

Rails Envy: 6 Reasons to use Webbynode

Webbynode is a very affordable VPS host (256 RAM for $15) which has great support for Rails applications.

Codaset // joelmoss / Rails Concerns

Concerns is a simple Rails plugin that provides you with a simple way to organise your Controllers, Models and Mailers, and split them into smaller chunks of logic. It is especially useful when you have lengthly models, and you get fed with having to scroll through several hundred lines of code.

has_many :bugs, :through => :rails: Active Record Query Interface 3.0

So here’s an overview of how things are going to work in Rails 3.

assignable_values 0.10.0 released

assignable_values 0.10.0 adds support for Rails 4.1 and Ruby 2.1.0.

Consul 0.12.0 released

Consul 0.12.0 adds support for Rails 4.1 and Ruby 2.1, expanding compatibility for projects using newer framework and language versions.

How much should I refactor?

Balancing refactoring with complexity is difficult when new patterns promise cleaner, more testable Rails code. Choosing when to apply them keeps code maintainable without overengineering.

Tod: A Gem for handling daytime without a date

Tod handles time-of-day values without dates, avoiding timezone-related bugs when parsing, comparing, formatting, or storing hours, minutes, and seconds.

Redactor WYSIWYG html editor

Lightweight WYSIWYG HTML editing for web apps, with a cleaner interface than TinyMCE or CKEditor and Rails integration.

Difference between class_inheritable_attribute and class_attribute | martinciu's dev blog

class_attribute behavior in Rails can differ from the removed class_inheritable_attribute, especially when inheritable class state is needed across subclasses.

Update: Aggregated RSpec/Cucumber test coverage with RCov

Aggregated test coverage for RSpec and Cucumber with rcov:all now supports Rails 2 and 3 and can ignore shared traits.

Databound

Provides JavaScript with a simple API for Ruby on Rails model CRUD, useful when direct browser access to create, read, update, and delete operations is needed.

ActiveRecord's where.not

Rails 4.0 adds where.not for cleaner ActiveRecord queries, making negative conditions easier to read and write.

King of Nothing, the DCI paradigm is a scam

Frustration with DCI and Clean Ruby centers on ambitious promises that feel unfinished and oversold in large Ruby on Rails applications.

RubyMine 4.5.1: Sass/SCSS Support Improvements

Sass/SCSS autocompletion and syntax highlighting in RubyMine 4.5 had annoying bugs that made Rails web development harder.

Modifying Rake Tasks - Dan Manges's Blog

Custom Rake tasks are meant to stay unchanged, but vendor tasks such as Rails task definitions can be extended with additional behavior.

fnando/i18n-js

Rails I18n translations become available in JavaScript clients through a small library for sharing locale data outside the server.

Cucumber.yml was found, but could not be parsed.

cucumber fails because cucumber.yml cannot be parsed; removing rerun.txt in the Rails directory often fixes the invalid rerun state.

Fix "undefined method `destroy'" in reset_session

Rails 2.3.11 has a bug where reset_session raises undefined method destroy'; copying an initializer to config/initializers` works around it until a maintenance release.

Turn off SSL for scenarios with Selenium

Selenium on WEBrick fails on HTTPS pages because the server does not speak SSL. Disabling SSL only for those scenarios avoids Cucumber browser test failures.

Use find_in_batches or find_each to deal with many records efficiently

Processing large record sets can exhaust memory when loading everything at once. find_in_batches and find_each keep memory usage lower for long-running data updates.

Incredibly fast web apps // Speaker Deck

Performance tuning for Ruby on Rails web apps reduces slow page loads and sluggish interactions by improving frontend and backend efficiency.

ActiveRecord autosave

Child objects can be saved automatically with their parent in Rails, reducing manual persistence work and keeping associated records consistent.