gem - why does rails generate scaffold fail? message is add pg to gemfile -


rails generate scaffold user name:string email:string
fails message gem::loaderror

the error message indicates gemfile not have gem pg does. says ensure version of pg @ minimum required activerecord. not sure minimum version of pg be.

so created new app start. database=postgresql option.

rails new app --database=postgresql

and answered yes new things created. set gemfile corectly. , rails generate scaffold success .


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -

jdbc - Not able to establish database connection in eclipse -