-
Notifications
You must be signed in to change notification settings - Fork 9
From Merb to Rango
I recommend reading the FAQ first.
Execute rango create stack blog
to get an example of the most important files. Copy init.rb
and config.ru
into your merb project. Because Rango is quite free concerning file structure, you can keep the one from merb, just edit init.rb
to require your model/view files. Replace the Rakefile
, and merge the Gemfile
. Run gem bundle
once again, test everything with rake spec
and see what needs to be changed. Commit on your rango_migration branch :-)
I’d recommend rewriting your views to templates and your controllers probably need some updating as well, as Rango doesn’t support any display
method.
require 'rango/mixins/rendering'
class Application < Merb::Controller
include Rango::ImplicitRendering
end
If you prefer explicit rendering, it’s a bit more complicated. A lot more complicated. A lot of the Merb::Helpers won’t work. This application.rb
is a try to get it working:
Still stucks, no resource support, mostly nothing for rack. Work in progress.