diff --git a/app/controllers/services_controller.rb b/app/controllers/services_controller.rb index d6a7db8a7..373eb100e 100644 --- a/app/controllers/services_controller.rb +++ b/app/controllers/services_controller.rb @@ -34,7 +34,7 @@ class ServicesController < ApplicationController type = 'feed' @res = MiniFB.post(@access_token, id, :type=>type, :metadata=>true, :params=>params) - redirect_to user_edit_url current_user + redirect_to edit_user_url current_user end end diff --git a/app/views/users/edit.html.haml b/app/views/users/edit.html.haml index 5f8e1e4f6..1c345559e 100644 --- a/app/views/users/edit.html.haml +++ b/app/views/users/edit.html.haml @@ -57,29 +57,33 @@ %br - %h2 Services - - %h3 Facebook - %p - - if @logged_in - Connected to facebook as - - @response_hash = MiniFB.get(@access_token, 'me') - = @response_hash[:name] - - - - form_tag :controller => "services", :action => "fb_post" - = text_area_tag "message" - = submit_tag "send it off" - - = link_to "Disconnect from Facebook", services_destroy_path - - else - = link_to "Connect to Facebook", @fb_access_url #submit_block = link_to "Cancel", root_path or = f.submit "Update Profile" + + + +%h2 Services + +%h3 Facebook +%p + - if @logged_in + Connected to facebook as + - @response_hash = MiniFB.get(@access_token, 'me') + = @response_hash[:name] + + + - form_tag :controller => "services", :action => "fb_post" do + = text_area_tag "message" + = submit_tag "send it off" + + = link_to "Disconnect from Facebook", services_destroy_path + - else + = link_to "Connect to Facebook", @fb_access_url + - end #content_bottom .back