OK , I found something,
I can use layouts, but I must have the separata layout for each action
in each controller''s view foldes. This rhtml file can be blank , but
must have the name with action''s name.
Isn''t it strange to use global layout ,but still must create blank
default action''s layouts ? Is the any way to override this?
On Sep 17, 7:38 am, pgega
<gega.pa...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Hello,
>
> Using layouts in very simple, but my applications seems to do not care
> about layouts at all.
>
> If I put the code..
>
> class IndexController < AppplicationController
> layout ''mylayout''
>
> def index
> end
>
> def list
> end
> end
>
> ..each of actions will try to open specific layout (corresponding to
> name) despite of that I specified a layout in top.
> I saw that there was a bug in rails , but It was long ago.
>
> What might be wrong ?
>
> P
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---