fixed app crash on new issue via get

This commit is contained in:
Dmitriy Zaporozhets 2012-04-17 20:35:27 +03:00
parent 3250a024ef
commit ac7bb20682

View file

@ -1,9 +1,5 @@
%div.issue-form-holder
%h3= @issue.new_record? ? "New Issue" : "Edit Issue ##{@issue.id}"
- unless request.xhr?
.back_link
= link_to project_issue_path(@project, @issue) do
← back to show page
= form_for [@project, @issue], :remote => request.xhr? do |f|
-if @issue.errors.any?
.alert-message.block-message.error