I really like the Markaby a lot, but it seems like it hasn't been updated in ages. Getting it to work with the post Rails 2 Edge (e.g. 8858) needed a bit of tweaking. Thanks fully it's not much.Find the
rails.rb inside vendor/plugins/markaby. Replace the
ActionViewTemplateHandler class with this one.
class ActionViewTemplateHandler < ActionView::TemplateHandler def render(template, local_assigns)
@markaby_template = Template.new(template)
@markaby_template.render(@view.assigns.merge(local_assigns), @view)
end
end
Now, let's get rid of the whole portion on top (from
module ActionView to
end). That's it!