2

I'm scaffolding with rails, and the following code is being generated

format.json { render json: @leg, status: :created, location: @leg }

But RubyMine is complaining unless I switch it to

format.json { render :json => @leg, :status => :created, :location => @leg }

Can anyone elaborate?

mu is too short
  • 426,620
  • 70
  • 833
  • 800
Chris Barry
  • 4,564
  • 7
  • 54
  • 89

1 Answers1

4

http://youtrack.jetbrains.com/issue/RUBY-12466 suggests that you set the SDK to ruby 1.9 to get this working.

Sascha Kaestle
  • 1,293
  • 12
  • 15