mardi 20 décembre 2016

I am not able to load layout while rendering in rails

can anybody help me out , why i am not able to load particular layout for particular action with
render :layout => "application"
application.html.erb present in layouts folder.
is i have to do some settings for layout?

my code is :-

class PageController < ApplicationController
layout false
def index1
render :layout => "application"
end
end

Aucun commentaire:

Enregistrer un commentaire