Skip to content

Commit

Permalink
visualizing
Browse files Browse the repository at this point in the history
  • Loading branch information
jphager2 committed Apr 7, 2015
1 parent e114003 commit 46032bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/controllers/clients_controller.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
require 'pp'
class ClientsController < AdminController
before_action :authenticate
before_action :set_client, only: [:show, :edit, :update, :destroy]
Expand Down Expand Up @@ -43,6 +44,7 @@ def create
def update
respond_to do |format|
if @client.update(client_params)
@client_params = client_params
format.html { redirect_to @client, notice: 'Client was successfully updated.' }
format.json { render :show, status: :ok, location: @client }
else
Expand Down
2 changes: 2 additions & 0 deletions app/views/clients/show.html.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
= @client.attributes
= @client_params
<p id="notice"><%= notice %></p>

<p>
Expand Down

0 comments on commit 46032bf

Please sign in to comment.