when i use just product.category it just show this: 
<https://lh3.googleusercontent.com/-PP9wvO0RW1I/VXZUVaDzOWI/AAAAAAAABGE/W62hXVbHg9I/s1600/Screenshot%2Bfrom%2B2015-06-08%2B23%253A49%253A32.png>


Em segunda-feira, 8 de junho de 2015 22:32:28 UTC-3, Cristiano de Araujo 
Bezerra escreveu:
>
>
> <https://lh3.googleusercontent.com/-aDE9XsbglcU/VXZBvfID_PI/AAAAAAAABF0/TYOq7kaOzb8/s1600/Screenshot%2Bfrom%2B2015-06-08%2B22%253A30%253A10.png>
> this is my app running in my personal computer. the category is a link. 
> when i click on it the app takes me to another paage showing all the 
> products related with this categories.
>
> Em segunda-feira, 8 de junho de 2015 22:29:11 UTC-3, Cristiano de Araujo 
> Bezerra escreveu:
>>
>> i don't know to to se the Mongoid.raise_not_found_error config option to 
>> false
>>
>> Em segunda-feira, 8 de junho de 2015 22:27:53 UTC-3, Cristiano de Araujo 
>> Bezerra escreveu:
>>>
>>> i think is not a question of error but a question of what should i do to 
>>> get the right way. i am tottaly newbie. all that i know is when i clone my 
>>> app in other computer
>>> i get this message. i'd like to know if i can avoid this message. in the 
>>> image the red text tells me what to do but where i can edit i have no idea.
>>>
>>> Em segunda-feira, 8 de junho de 2015 17:51:26 UTC-3, Colin Law escreveu:
>>>>
>>>> On 8 June 2015 at 21:30, Cristiano de Araujo Bezerra 
>>>> <[email protected]> wrote: 
>>>> > ... 
>>>> > this code (products/index) generates the error: 
>>>> > 
>>>> > <td><%= link_to Category.find(product.category_id).name, 
>>>> category_path(product.category_id) %></td> 
>>>>
>>>> You have told us it generates an error, but not what the error is. 
>>>> Please copy/paste the full text of the error here (from the server 
>>>> window). 
>>>>
>>>> By the way, it would be better to use product.category rather than 
>>>> Category.find(product.category_id). 
>>>>
>>>> Colin 
>>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/8c8c1367-de26-4f7f-a739-5da853ba237e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to