X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/9568c7fee85a615830ba78639b2ee8440da60668..a67ff9c0389702e169e44103d02d89886878a51d:/CONFIGURE.md?ds=inline diff --git a/CONFIGURE.md b/CONFIGURE.md index 96aac9f96..c165c6d46 100644 --- a/CONFIGURE.md +++ b/CONFIGURE.md @@ -28,7 +28,7 @@ If you create a user by signing up to your local website, you need to confirm th ``` $ bundle exec rails console ->> user = User.find_by_display_name("My New User Name") +>> user = User.find_by(:display_name => "My New User Name") => #[ ... ] >> user.status = "active" => "active" @@ -43,7 +43,7 @@ To give administrator or moderator permissions: ``` $ bundle exec rails console ->> user = User.find_by_display_name("My New User Name") +>> user = User.find_by(:display_name => "My New User Name") => #[ ... ] >> user.roles.create(:role => "administrator", :granter_id => user.id) => #[ ... ]