mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-03-28 03:34:22 -04:00
It's under the /profile route rather than /user to avoid clashes with autogenerated Devise pages.
11 lines
215 B
Ruby
11 lines
215 B
Ruby
class ProfileController < ApplicationController
|
|
def show
|
|
@user = User.find(params[:id])
|
|
|
|
respond_to do |format|
|
|
format.html # show.html.erb
|
|
format.json { render json: @user }
|
|
end
|
|
end
|
|
end
|