Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Prelaunch fixes

  • Loading branch information...
commit e3f7048076a2abf983686261beb1e399c1fe7b28 1 parent 0d806ef
Rian Rainey authored
5 app/controllers/users_controller.rb
View
@@ -3,10 +3,7 @@ class UsersController < ApplicationController
# GET /users/1
# GET /users/1.json
def show
- #@user = User.find(params[:id])
- puts current_user.id
- puts params[:id]
- @user = User.find(1) #current_user
+ @user = User.find(current_user.id)
respond_to do |format|
format.html # show.html.erb
2  app/models/notifier.rb
View
@@ -1,5 +1,5 @@
class Notifier < ActionMailer::Base
- default :from => "crossfit@rianrainey.com"
+ default :from => "Crossfit West Nashville <crossfit@rian.me>"
# send a signup email to the user, pass in the user object that contains the user’s email address
def signup_email(user)
1  app/views/admin/roles/edit.html.erb
View
@@ -2,5 +2,4 @@
<%= render 'form' %>
-<%= link_to 'Show', @role %> |
<%= link_to 'Back', admin_roles_path %>
2  app/views/admin/workouts/index.html.erb
View
@@ -10,7 +10,7 @@
<% @workouts.each do |workout| %>
<tr>
<td><%= workout.title %></td>
- <td><%= workout.body %></td>
+ <td><%= workout.body.html_safe %></td>
<td>
<div class="btn-group">
<a href="#" class="btn dropdown-toggle" data-toggle="dropdown">Action<span class="caret"></span></a>
2  app/views/admin/workouts/show.html.erb
View
@@ -6,7 +6,7 @@
<p>
<b>Body:</b>
- <%= @workout.body %>
+ <%= @workout.body.html_safe %>
</p>
2  app/views/entries/new.html.erb
View
@@ -2,4 +2,4 @@
<%= render 'form' %>
-<%= link_to 'Back', workout_entries_path(2) %>
+<%= link_to 'Back', workout_entries_path(params[:workout_id]) %>
1  app/views/users/show.html.erb
View
@@ -14,6 +14,5 @@
<%= @user.email %>
</p>
-
<%= link_to 'Edit', edit_user_path(@user) %> |
<%= link_to 'Back', user_path %>
Please sign in to comment.
Something went wrong with that request. Please try again.