This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.input | |
= f.text_area :body | |
= f.hidden_field :commented_by, :value => current_user.email |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def create | |
@comment = @issue.comments.build(params[:comment]) | |
if @comment.save | |
redirect_to project_issue_path(@issue.project, @issue) | |
else | |
render :new | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- content_for(:heading) do | |
= @project.name | |
#inner | |
%h2= "Comment on #{@issue.name}" | |
= form_for [:project, :issue, @comment] do |f| | |
= render :partial => "form", :locals => { :f => f, :comment => @comment } | |
.input | |
= f.submit "Add Comment", :class => "blue-button medium" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment