rubymine complaining about rails controller scaffold syntax

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?

Answers suggests that you set the SDK to ruby 1.9 to get this working.

Need Your Help

http post request with x-auth(mean stack)

post authorization mean-stack

My mean stack sample application which i got from this link : runs perfectly on my heroku server, posts and logins without any failure. It uses tokens when ...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.