On Tue, Jan 5, 2010 at 1:44 AM, Gabriel Sosa <[email protected]> wrote:
> 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 > > Hola Gabriel, como estas. No te faltará la opcion para poder hacer update ? class Client < ActiveRecord::Base has_permalink :title, :update => true end Saludos.- -- Martin
_______________________________________________ Ruby mailing list [email protected] http://lista.rubyargentina.com.ar/listinfo.cgi/ruby-rubyargentina.com.ar
