0 Replies Last post: Nov 12, 2013 10:24 PM by Swapna Gupta  
Swapna Gupta Newbie 10 posts since
Jul 26, 2012
Currently Being Moderated

Nov 12, 2013 10:24 PM

Inspection Warning: Unexpected Parameter Value

Someone else posted this issue here (http://devnet.jetbrains.com/message/5458343#5458343) but there was no response, so I am starting a new discussion.

 

I have a model as below:

 

class ConcessionGroup < ActiveRecord::Base
  attr_accessible :location_id, :name, :sequence
  belongs_to :location
  has_many :concessions, dependent: :destroy
end

 

The inspection tool gives me following warnings about this code:

 

Unexpected parameter value 'location_id'

Unexpected parameter value 'name'

Unexpected parameter value 'sequence' or hash expected

 

Why these warnings? How can I resolve them?   

More Like This

  • Retrieving data ...