Skip to content

Approve new Speakerinnen* so they get published

tyranja edited this page Jan 20, 2014 · 7 revisions

New Speakerinnen* have the attribute published set to false by default.

They have to be approved by an admin. The admin has to change the status of published to true.

Workflow:

# Heroku Console: 
$ open heroku run console
# search profile: 
( >> profile = Profile.find_by(:email => "[email protected]") # does not work! DOTO ask Sven )
>> profile = Profile.find(idnumber)
# check: 
>> profile
# change status: 
>> profile.published = true
# Save:
>> profile.save