--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Returns true if the specified <tt>attribute</tt> has errors associated with it.
- !ruby/struct:SM::Flow::H 
  level: 4
  text: Examples
- !ruby/struct:SM::Flow::VERB 
  body: "  my_resource = Disk.find(1)\n  my_resource.errors.add('location', 'must be Main') unless my_resource.location == 'Main'\n  my_resource.errors.on('location')\n  # =&gt; 'must be Main!'\n\n  my_resource.errors.invalid?('location')\n  # =&gt; true\n  my_resource.errors.invalid?('name')\n  # =&gt; false\n"
full_name: ActiveResource::Errors#invalid?
is_singleton: false
name: invalid?
params: (attribute)
visibility: public
