Fixing Markaby in Edge Rails
February 13, 2008
I really like 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.
# :nodoc:
@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!