Removed class 'small' for some buttons. Fixed issue creation

This commit is contained in:
randx 2012-08-30 20:00:16 +03:00
parent d246a68a24
commit 92137b7beb
7 changed files with 15 additions and 8 deletions

View file

@ -60,7 +60,13 @@ class IssuesController < ApplicationController
@issue.save
respond_to do |format|
format.html { redirect_to project_issue_path(@project, @issue) }
format.html do
if @issue.valid?
redirect_to project_issue_path(@project, @issue)
else
render :new
end
end
format.js
end
end