I need to render some views without layout. To skip line :render :layout=>false and if else logic from controller actions, i have custom mime type like phtml (plain html).<
You can use the layout method in your controller directly:
layout
class ProductsController < ApplicationController layout "product", :except => [:index, :rss] end
Or to use no layout at all:
class ProductsController < ApplicationController layout nil end
Check out the guide for more info.