Ruby on Rails Wednesday, May 7, 2014

No. In case that would be the problem I could use any other route but that is not the case. I cannot use any other route in the custom layout...



El 07/05/2014, a las 12:50, bertly_the_coder <muchira@gmail.com> escribió:

it's users_path

On Wednesday, May 7, 2014 1:44:26 PM UTC+3, Alfredo Barrero wrote:
Yes, I'm trying all the routes and no one works. It says 'cannot find user_path'. These are the routes that I have. 

 user GET    /users/:id(.:format)         users#show
                PATCH  /users/:id(.:format)         users#update
                PUT    /users/:id(.:format)         users#update
                DELETE /users/:id(.:format)         users#destroy

In the application.layout those routes are working, I have to specify any special route tu use a different layout?. 


Thanks


El miércoles, 7 de mayo de 2014 12:40:28 UTC+2, Gitted escribió:
does the route exist? what is the error you get?

try rake routes to see if user_path exists.


On Wed, May 7, 2014 at 6:27 AM, Alfredo Barrero <abarr...@gmail.com> 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 rubyonrails-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/989a71d9-1b0c-43e6-a5d4-b7d0e180ce1a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to a topic in the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rubyonrails-talk/fE1n2Fsq0oU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/f2b9cb5e-3b18-483e-af68-850fc21e7a62%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment