-
Notifications
You must be signed in to change notification settings - Fork 8
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. Rango doesn’t support any magic @instance_variable transfer to view either. Use
def index
render 'posts', posts: Post.all
endand
= block(:content) do
- for post in posts
-# go on...instead of @posts magic.
Still stucks, no resource support, mostly nothing for rack. Work in progress.