Re: [Rails] Re: Layouts

2014-05-19 Thread Colin Law
On 20 May 2014 03:57, Duong vong veasna wrote: > Hi guys > I have problem when i try to link to my new page, can any one help me. > > thanks and regard. > > get "link/home" > get "link/about" Probably someone will help if you describe the problem. Also I am not sure what this has to do with th

[Rails] Re: Layouts

2014-05-19 Thread Duong vong veasna
Hi guys I have problem when i try to link to my new page, can any one help me. thanks and regard. get "link/home" get "link/about" On Wednesday, May 7, 2014 7:00:17 AM UTC-7, Pratap Patil wrote: > > Hi guys >Firstly rake routes on console , check existing path is available. Not > availabl

[Rails] Re: Layouts

2014-05-07 Thread Pratap Patil
Hi guys Firstly rake routes on console , check existing path is available. Not available then need define path in route file On Wednesday, May 7, 2014 3:57:45 PM UTC+5:30, Alfredo Barrero wrote: > > Hi guys, can someone tell me why I can't use routes like "user_path" in > custom layouts like

[Rails] Re: Layouts

2014-05-07 Thread Alfredo Barrero
Yes sure. *'layouts/user-layout.html.erb'* <%= link_to 'Log out', user_path , method: :delete %> 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

[Rails] Re: Layouts

2014-05-07 Thread bertly_the_coder
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 & regar

[Rails] Re: Layouts in Rails 3.0

2010-09-08 Thread jhaagmans
Hi Ar, Thanks! I added that statement because my layout wouldn't show. So with or without it, it makes no difference. Regards, Jaap Haagmans On Sep 8, 6:01 pm, Ar Chron wrote: > Jaap Haagmans wrote: > > In my controller: > > > class ApplicationController < ActionController::Base > >   protect

[Rails] Re: Layouts in Rails 3.0

2010-09-08 Thread Ar Chron
Jaap Haagmans wrote: > In my controller: > > class ApplicationController < ActionController::Base > protect_from_forgery > > layout 'application' > end > Yank the layout 'application' statement and you should be fine. My out-of-the-generator Rails 3 app honors the application.html.erb w

[Rails] Re: Layouts in Rails 3.0

2010-09-08 Thread jhaagmans
Hi James, Thanks for your thinking with me. I haven't upgraded from Rails 2.3.x, I've started a new Rails 3 application and edited the generated application.html.erb. I've also tried creating a new one called main.html.erb and pointing to that in my ApplicationController, but that didn't work as

[Rails] Re: Layouts in Rails 3.0

2010-09-07 Thread james
On Sep 7, 5:51 pm, jhaagmans wrote: > Hi, > > I've just started my first Rails 3 stable app from scratch and still > looking at all the changes. Most things are wonderful. However, I > can't figure out what happened to the layout structure. > > In my controller: > > class ApplicationController < A

[Rails] Re: Layouts in Rails 3.0

2010-08-26 Thread Bharat Ruparel
Hello Johndel, Thanks for your response. Unfortunately, it did not work. I typed in layout "admin" instead of layout :admin Still. No luck. Bharat -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Tal

[Rails] Re: Layouts in Rails 3.0

2010-08-26 Thread Yiannis
I think it should be layout "admin" . For some reason symbols in the layout doesn't work. On 26 Αύγ, 06:22, Bharat Ruparel wrote: > I have an admin section in my rails 3 app. where I want to use a > different layout than the main layouts/application.html.haml layout. > Here is the snippet of th

[Rails] Re: Layouts and content_for

2008-09-17 Thread Lost Warrior
deegee wrote: > You have to keep in mind how views are being called: > - The browser makes a request to a URL > - The Rails routing rules determine which controller/action the URL > resolves to > - The action is called > - The corresponding view (assuming the action doesn't redirect to a > new act

[Rails] Re: Layouts and content_for

2008-09-17 Thread deegee
You have to keep in mind how views are being called: - The browser makes a request to a URL - The Rails routing rules determine which controller/action the URL resolves to - The action is called - The corresponding view (assuming the action doesn't redirect to a new action) is being called - The c