X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/4abd9cfcf19701bf43322374c5df6dd586449e54..f7492b0e4945a97db948a3df1d1dcd5f6684ebb1:/CONFIGURE.md 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) => #[ ... ]