profile_editor_controller.rb 342 Bytes
class ProfileEditorController < ProfileAdminController
  helper :profile

  # edits the profile info (posts back)
  def edit
    if request.post?
      profile.info.update_attributes(params[:info])
      redirect_to :action => 'index'
    else
      @info = profile.info
      render :action => @info.class.name.underscore
    end
  end
end