On 13 August 2012 14:04, Lucas Lima de Souza [email protected]
wrote:
<%=category.name %>
error:
undefined method `name’ for nil:NilClass
Is it possible that in _category.html.erb you are assigning a value to
category that is overwriting the passed in value with nil? Try
accessing displaying category.name in the first line of the partial.
Colin
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.