Comment 7 for bug 1010406

Revision history for this message
Soonoh (chk0ndanger) wrote :

> "include" is not defined

lib/my_controller_patch.rb (comment render line)

#render :partial => 'users/avatar', :layout => false

I fixed "[partialname].html.erb" and..

app/views/users/_avatar.html.erb (add "=" before form_tag)

<%= form_tag( { :action => 'save_avatar', :id => @user }, :multipart => true) do %>

cp app/views/users/_avatar.html.erb app/views/my/avatar.html.erb