Skip to content

Commit

Permalink
Fixing documentation and code indentations issue alaashafaee#211
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohamed Fadel authored and Mohamed Fadel committed Apr 23, 2014
1 parent b0444b2 commit d1e3683
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
7 changes: 3 additions & 4 deletions tutor/app/controllers/hints_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@ class HintsController < ApplicationController

# [Delete a Hint - Story 4.21]
# This action takes the hint id, removes it from the database
# and then redirects the user to the edit page accompanied
# with a "Hint deleted" message.
# and then redirects the user to the edit page accompanied
# with a "Hint deleted" message.
# Parameters:
# params[:id]: The current hint's id
# Returns:
# none
# Returns: none
# Author: Mohamed Fadel
def destroy
hint = Hint.find_by_id(params[:id])
Expand Down
3 changes: 1 addition & 2 deletions tutor/app/views/model_answers/_index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ Author: Mohamed Fadel-->

<th style = "width:20%">Delete</th>

<td><%= button_to "Delete", {controller: :hints, action: :destroy, id: hint1.id},
:method => :delete, class: 'btn btn-primary btn-xs' %></td>
<td><%= button_to "Delete", {controller: :hints, action: :destroy, id: hint1.id}, :method => :delete, class: 'btn btn-primary btn-xs' %></td>

0 comments on commit d1e3683

Please sign in to comment.