Skip to content

Commit

Permalink
fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
İsmail Akbudak committed Aug 3, 2016
1 parent dcf32d1 commit b0ea802
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion dump.rdb

This file was deleted.

4 changes: 2 additions & 2 deletions templates/app/controllers/user/profile_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class User::ProfileController < User::UserApplicationController

def show
add_breadcrumb @profile.full_name, user_profile_path
respond_with([:user, @profile])
respond_with(:user, @profile)
end

def edit
Expand All @@ -14,7 +14,7 @@ def edit

def update
@profile.update(profile_params)
respond_with([:user, @profile], location: user_profile_path)
respond_with(:user, @profile, location: user_profile_path)
end

private
Expand Down
3 changes: 3 additions & 0 deletions templates/app/views/user/profile/edit.html.haml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- content_for :form_title do
= t('tt.edit', resource_name: User.model_name.human)
= render 'form'
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.panel.panel-default
.panel-heading
%i.icon-edit.icon-large
= t('tt.show', resource_name: user.model_name.human)
= t('tt.show', resource_name: User.model_name.human)
.panel-body
= show_for @profile do |s|
= s.attribute :name
Expand Down
3 changes: 0 additions & 3 deletions templates/app/views/user/profiles/edit.html.haml

This file was deleted.

0 comments on commit b0ea802

Please sign in to comment.