NoamB/sorcery — Issue #154: edit user profile with sorcery
Author: blawzoo
Created: 2011-11-18 19:22:42+00:00
State: open

Hello everybody I'm having a hard time right now, trying to edit my user's informations(name, adress.etc).I've set the _form.html.erb and edit.html.erb views, with their controllers too.Everything is done the rails normal way.

I can create a user nicely but every time I try to edit it or show it, I get the following message error:

#### ActiveRecord::RecordNotFound in UsersController#edit
Couldn't find User without an ID

#### edit.html.erb

def edit
@user = User.find(params[:id])
end

#### show.html.erb

def show
@user = User.find(params[:id])

respond_to do |format|
format.html # show.html.erb
format.json { render json: @user }
end
end

Please can anyone help on this one