LanguagesNamedAfterCofee
LanguagesNamedAfterCofee

Reputation: 5952

New .railsrc giving me an error

I am running Rails 3.2.6 and in my .railsrc file I have -d postgresql -T. Whenever I run rails c on my app, it gives me an error

in `load': /Users/user/.railsrc:1: syntax error, unexpected tIDENTIFIER, expecting keyword_do or '{' or '(' (SyntaxError)

How can I fix this?

Upvotes: 0

Views: 294

Answers (2)

Mr. Black
Mr. Black

Reputation: 12092

-T is alias of --skip-test-unit.

You should add each flags one by one in .railsrc file. Otherwise just add the following command in the same.

ruby -d postgresql -T or

ruby -d postgresql --skip-test-unit

Upvotes: 0

bronislav
bronislav

Reputation: 782

Try to write every option from new line as follow:

--skip-test-unit
-d postgresql

It's work for me.

Upvotes: 0

Related Questions