500 on viewing snippet
Created by: brototyp
If I want to view a snippet i get a 500 error.
The log is the following:
Started GET "/alp4/snippets/1" for __IP__ at 2012-06-19 21:25:46 +0200
Processing by SnippetsController#show as HTML
Parameters: {"project_id"=>"alp4", "id"=>"1"}
Rendered projects/_project_head.html.haml (77.8ms)
Rendered snippets/show.html.haml within layouts/project (296.2ms)
Completed 500 Internal Server Error in 337ms
ActionView::Template::Error (TypeError: function() takes at least 2 arguments (0 given)):
15: %strong= @snippet.file_name
16: .view_file_content
17: %div{:class => current_user.dark_scheme ? "black" : ""}
18: = raw @snippet.colorize(options: { linenos: 'True'})
19:
20: = render "notes/notes", :tid => @snippet.id, :tt => "snippet"
app/views/snippets/show.html.haml:18:in `_app_views_snippets_show_html_haml__207708678030828589_101114280'