Rails Icon

Rails

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

Ruby changelog.com/posts

That app is Phat

We all know the Rails Can’t Scale line to be bunk, but that doesn’t mean we stop looking for ways to speed up Rails apps. Mike Perham says his apps are Phat, and yours can be, too. Phat is a Rails app pattern that employs a single Thread, multiple Fiber model in Ruby 1.9 to async-ify an otherwise vanilla Rails app behind Thin. Phat uses rack-fiber_pool, Mike’s Rack Middleware to execute each request in a Fiber. Phat also configures Fiber-enabled async libraries including em_postgresql, memcache-client, and em-resolv-replace to achieve some impressive scalability: # Asynchronous DNS lookup require 'em-resolv-replace' require 'rack/fiber_pool' # Pull in the evented memcache-client. # You'll need to configure config.cache_store as normal. require 'memcache/event_machine' Rails::Initializer.run do |config| config.cache_store = :mem_cache_store # Run each request in a Fiber config.middleware.use Rack::FiberPool # Get rid of Rack::Lock so we don't kill our concurrency config.threadsafe! end [Source on GitHub] [Mike’s Blog Post]

read more

Ruby changelog.com/posts

Shop til you drop: Spree hits 0.10.0

Spree, the leading Rails storefront project, has released version 0.10.0 with some big new changes: Named scopes and product groups Pluggable search (with extension support for Xapian, Sphinx and Solr.) Theming New and improved multi-step checkout Improved gateway configuration Multiple payment methods Refunds and credits SEO improvements RESTful API Support for Rails 2.3.5 and Ruby 1.9 The docs have also been refreshed to cover the new enhancements. If you’re new to Spree, take a test drive. If you need a more custom storefront, you can join the ranks of 300+ forks on the Hub. [Source on GitHub] [New since 0.9.4]

read more

Rails changelog.com/posts

Mongrations - migrations for MongoMapper

Why would a schema-less database need migrations? Simple: to help you keep old data fresh as you change your data format. Recently added new columns to your MongoMapper model and need to update old values in your MongoDB collection? Terry Heath gives you Mongrations: script/generate mongration update_followers_count_for_existing You’ll get a new file with the familiar Rails migration format: class UpdateFollowersCountForExisting < MongoMapper::Mongration def self.up end def self.down end end Just add your own code to manipulate your data and call rake db:mongrate. Mongrations include rake tasks for db:mongrate:redo, db:mongrate:up, db:mongrate:down, db:mongrate:rollback. [Source on GitHub] [Blog post]

read more

Rails changelog.com/posts

WebROaR: Ruby/Rack/Rails Application Server

WebROaR aims to make the deployment of Ruby on Rails applications more easier, and provide an integrated solution to monitor the performance of the application and track its exceptions. This is made possible by a simple and easy to use admin panel of the server. It also is the best performing server as per the developers benchmarks. Although, they do encourage you to perform your own tests and arrive at the same conclusion. Features: Simplified deployment with maximum performance Runs Ruby on Rails as well as other Rack compliant applications Run multiple applications simultaneously Intelligent load balancing Dynamically reap stuck Ruby processing instances Provides run time performance data for the deployed applications Generates notifications in case exceptions occur in any of the deployed applications Hat tip: @igrigorik - http://twitter.com/igrigorik/status/6143783082 [code at GitHub] [homepage] [documentation]

read more

Rails changelog.com/posts

Rails 2.3.5 released

Unofficial release notes from Mike Gunderloy: An XSS vulnerability in strip_tags is fixed. Several Ruby 1.9 compatibility fixes :_delete option in nested attributes has been renamed to :_destroy The MySQL adapter is updated to allow the use of stored procedures Rails is tested with newer versions of Rack (1.0.1), the MySQL adapter (2.8.1), Mocha (0.9.8), and the sqlite3-ruby adapter (1.2.5). sqlite 2 is only supported if you’re using Ruby 1.8.x. [view full story] [Release on GitHub]

read more

0:00 / 0:00