Unable to create rails application with sqlserver

Could not find “config/databases/sqlserver.yml” in any of your source paths.

Your current source paths are:
$HOME/.rvm/gems/ruby-1.9.3-p194@rails3tutorial2ndEd/gems/railties-3.2.8/lib/rails/generators/rails/app/templates

Error:

Template sqlserver.yml file missing.

Solution:

Need to update sqlserver.yml file in the specific location to fix this issue.

Step1: Download sqlserver.yml configuration file.

Step2: Extract the downloaded zip file.

Step3: Copy extracted sqlserver.yml configuration file into the location which thrown error while creating sqlserver database rails application.

i.e,

$HOME/.rvm/gems/ruby-1.9.3-p194@rails3tutorial2ndEd/gems/railties-3.2.8/lib/rails/generators/rails/app/templates/config/databases/sqlserver.yml

Step4: Now create new rails application with database as sqlserver

rails new sqlserverProj -d sqlserver

It will create rails application without any error.

Permanent link to this article: https://blog.openshell.in/2013/04/unable-to-create-rails-application-with-sqlserver/

Leave a Reply

Your email address will not be published.