What do you want to save?
Add Code snippet
New code examples
-
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 -
Ruby 2021-11-20 10:47:18
rails g model
$ rails generate model Article title:string text:text Add solution -
-
Ruby 2021-10-28 05:47:12
how to add column to table rails
rails g migration add_description_to_users description:string #'g' means generate, the 'add' in 'add_description_to_users' tells #Rails you want to add a column, the 'description' is the new column name, #and the 'users' is the table you want to add it t... Add solution -
Other 2021-10-25 06:30:18
creating model in ruby on rails
rails generate model T name:string body:text Add solution