gente,

tengo instalado permalink_fu y cada vez que intento hacer un update falla

este es mi modelo (obviamente en la tabla clients tengo el campo permalink)

class Client < ActiveRecord::Base

  has_permalink :title

  validates_presence_of :title, :warning_timeout, :critical_timeout
  validates_numericality_of :warning_timeout, :critical_timeout,
:only_integer => true
  validates_uniqueness_of :permalink

end

y cuando corro el update me tira:

You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.-


/Users/gabriel/Sites/dynip2/vendor/plugins/permalink_fu/lib/permalink_fu.rb:122:in
`create_common_permalink'
/Users/gabriel/Sites/dynip2/vendor/plugins/permalink_fu/lib/permalink_fu.rb:127:in
`create_unique_permalink'
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.4/lib/active_support/callbacks.rb:178:in
`send'
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.4/lib/active_support/callbacks.rb:178:in
`evaluate_method'
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.4/lib/active_support/callbacks.rb:166:in
`call'
....

y si comento la linea

  has_permalink :title

todo anda de maravillas...

alguna idea que puede ser?

saludos

-- 
Gabriel Sosa
Si buscas resultados distintos, no hagas siempre lo mismo. - Einstein
_______________________________________________
Ruby mailing list
[email protected]
http://lista.rubyargentina.com.ar/listinfo.cgi/ruby-rubyargentina.com.ar

Responder a