What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2022-03-27 21:20:04
set user as admin gitlab
# Open the rails console, i.e: sudo gitlab-rails console -e production # Excute the follwing: # Find user user = User.find_by(username: 'my_username') # Make the desired change user.admin = true # Save the changes user.save! # Exit the console exit # Lo... Add solution -
Ruby 2022-03-18 22:15:07
rails command line
rails new app_name #creates a new rails application rails server or rails s #runs the rails server rails generate or rails g #gives a list of available generators rails console or rails c #opens up the rails console that allows you # to interact ... Add solution
Best helpers
Alexvoda
+5
Alkasm
+5
Ron Short
+5
Newby
+5
Srihari
+5
RiCo
+5
Mostafa 36a2
+5
Dan Aloni
+5
Beatriz LO
+5