RubyMine: expected; or end of line after some colon

My rails project works fine. But rubimine highlights an error expected ; or end of line

after some colon :

. for example

before_action :set_answer, only: [:show, :edit, :update, :destroy]
format.html { redirect_to @answer, notice: 'Answer was successfully created.' }

      

In the above ruby, an error stands out after only:

and notice:

. But it doesn't highlight the error after :set_answer, :show, :edit, :update or :destroy

.

What is the reason for this and how can I fix it?

+3


source to share


1 answer


With more recent versions of RubyMine on Mac: go to preferences -> Language and Framework -> Ruby SDK and Gems and go to restart Ruby 2.0 SDK and it should work.



+1


source







All Articles