Skip to content

Commit

Permalink
Merge pull request #8 from rianrainey/fixes/5
Browse files Browse the repository at this point in the history
Fixing html_safe output.
  • Loading branch information
rianrainey committed Apr 1, 2013
2 parents 0e52bfc + 7b0de81 commit 15f05a9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/controllers/admin/workouts_controller.rb
Expand Up @@ -62,10 +62,10 @@ def create
# PUT /workouts/1.json
def update
@workout = Workout.find(params[:id])

binding.pry
respond_to do |format|
if @workout.update_attributes(params[:workout])
format.html { redirect_to @workout, notice: 'Workout was successfully updated.' }
format.html { redirect_to workouts_path, notice: 'Workout was successfully updated.' }
format.json { head :no_content }
else
format.html { render action: "edit" }
Expand Down
2 changes: 1 addition & 1 deletion app/views/entries/index.html.erb
Expand Up @@ -13,7 +13,7 @@
<% @entries.each do |entry| %>
<tr>
<td><%= entry.date_performed.strftime("%m/%d/%y") %></td>
<td><%= entry.body %></td>
<td><%= entry.body.html_safe %></td>
<td><%= entry.rounds %></td>
<td><%= entry.repetitions %></td>
<td><%= entry.time %></td>
Expand Down
2 changes: 1 addition & 1 deletion app/views/workouts/individual_workouts.html.erb
Expand Up @@ -10,7 +10,7 @@
<tr>
<% if @workout %>
<td><%= @workout.title %></td>
<td><%= @workout.body %></td>
<td><%= @workout.body.html_safe %></td>
<td>
<% if user_signed_in? %>
<ul class="inline">
Expand Down

0 comments on commit 15f05a9

Please sign in to comment.