public Method

NameError.missing_name?(name)

Was this exception raised because the given name was missing?

Source Code

# File active_support/core_ext/name_error.rb, line 9
def missing_name?(name)
  if name.is_a? Symbol
    last_name = (missing_name || '').split('::').last
    last_name == name.to_s
  else
    missing_name == name.to_s
  end
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.