On 16 March 2011 00:21, Rodrigo Alves Vieira <[email protected]> wrote:
> Oh yes, actually, this code isn't a actual spec, it is a file in
> spec/acceptance/support/paths.rb, there is the code:
>
> module NavigationHelpers
>   def products_page category
>     "/categories/#{category.id}/products"
>   end
>
> please tell me what's wrong with this,

I would be most suspicious of the products_page method... as Fred
said, the "category" is likely to be nil.
Can you debug at that point?

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to