How To Start A Rails Edge App The Easy Way

There’s a lot of cool stuff pooring in about what’s new in Rails Edge (which will become Rails 2.3 and/or Rails 3). Most likely you can’t wait to get started with these new features, especially when you’re about to start a new project, which doesn’t have to be stable yet, but will be by the time 2.3⁄3.0 come out. This post shows you the way to create a new Rails app based on the most current Rails code, also called Edge Rails.

ActiveRecord Read Only Model

ActiveRecord is great in providing CRUD for your data models. In some cases, however, it’s necessary to prevent write access to these models. The data may be provided by an external source and should only be used as a reference in your application, for example. I’m going to show you how you can easily mark a Model as read only all the time. In this example I have a Item model like this: