Yes sure. 
*'layouts/user-layout.html.erb'*

<div class="btn-group btn-group-lg"><%= link_to 'Log out', user_path , 
method: :delete %></div>

I have a few more layouts and it does not work neither. But it does in 
'application.html.erb'. I think that some route configuration have to be 
set before this but I don´t know what. 

Thanks


El miércoles, 7 de mayo de 2014 12:58:15 UTC+2, bertly_the_coder escribió:
>
> How exactly are you trying to use the routes? Do you have some code you 
> could share?
>
> On Wednesday, May 7, 2014 1:27:45 PM UTC+3, Alfredo Barrero wrote:
>>
>> Hi guys, can someone tell me why I can't use routes like "user_path" in 
>> custom layouts like 'user-layout.html.erb' ??? 
>>
>> Thanks & regards. 
>>
>

-- 
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/b3f26175-047e-444c-94b5-6029425a5af2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to