On May 5, 2015, at 10:37 AM, ganesh akella <
gann...@gmail.com> wrote:
>
> Can anyone help me regarding the database.yml file on connecting to sql server.
> And is it the only file which I need to look into or are there any other files which needs to be modified.?
> I tried to follow the instructions in some of the web forums suggesting to fix this, but I am getting an error when I give "rails console" command.
> I am trying to create a model and I am not able to do this.
1) It looks like you have not installed a connection adapter for SQL Server. Rails does not automatically come with adapters for all databases. I don’t use it myself, but googling for "ruby on rails microsoft sql server” gets the adapter as the first hit, followed by a number of articles giving advice.
2) Once you have that installed, then yes, that single .yml file is the only one you need to modify.
3) In the future, please just copy and paste errors rather than sending us off to a website with a screen capture.
--
Scott Ribe
scott...@elevated-dev.com
http://www.elevated-dev.com/
https://www.linkedin.com/in/scottribe/
(303) 722-0567 voice