diff --git a/rails-migrations.md b/rails-migrations.md index 4d555b22..557a3d90 100644 --- a/rails-migrations.md +++ b/rails-migrations.md @@ -46,7 +46,6 @@ category: Rails add_column :users, :first_name, :string remove_column :users, :first_name, :string - change_column :users, :first_name, :text change_column :users, :first_name, :text change_column_default :users, :admin, nil diff --git a/rails-routes.md b/rails-routes.md index 84fc39f0..1745ba0c 100644 --- a/rails-routes.md +++ b/rails-routes.md @@ -5,7 +5,7 @@ category: Rails ## Multiple resources (`resources`) - resources :books + resources :photos # PhotosController: # index => GET /photos @@ -17,9 +17,9 @@ category: Rails # delete => DELETE /photos/:id # # Helpers: - # new_book_path - # book_path(id) - # edit_book_path(id) + # new_photo_path + # photo_path(id) + # edit_photo_path(id) ### Custom actions