quickstartforrailsusers

Installing gems.

gem install merb merb-core merb-more merb-plugins

Generators.

merb-gen app app_name

Default Merb application layout is very similar to Rails.

To create a new model: [From the app directory]

merb-gen model model_name # like user, user_session, whatever

Models.

Models are same if you use ActiveRecord. If you want to use DataMapper, StrokeDB, Sequel and so forth, refer to pages on that.

Controllers.

Merb controllers have important difference with those of Rails: make sure you read Rendering page.

Views.

Merb uses different Erb tags, make sure to read Yehuda’s blog post about reasons behind it. If you use Haml or Markaby, there are separate pages on those topics.

Edit Page | History | Version: