Just create admin.html.erb  like application.html.erb under views/layouts/

And

Just mentions in your controller which ever controller you need to use
admin layout

  class TestController < InheritedResources::Base
   layout "admin"
  end



On Thu, Oct 11, 2012 at 1:13 AM, Johann Christoph Gorzny <
li...@ruby-forum.com> wrote:

> hello,
> individual actions can render specific layouts.
>
> def show
>   render(layout: "layouts/show")
> end
>
> def edit
>   render(layout: "layouts/edit")
> end
>
> def new
>   render(layout: "layouts/new")
> end
>
> but i dont know how to avoid double rendering
>
> --
> Posted via http://www.ruby-forum.com/.
>
> --
> 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@googlegroups.com.
> To unsubscribe from this group, send email to
> rubyonrails-talk+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>


-- 
Regards by
Saravanan.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@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to