Make layout false

Hi
i am having lot of HTML files those files dont want layouts so, for
each rhtml i am mentioning in controller list.rhtml,edit.rhtml

def list
render :layout=>false
end

def edit
render :layout=>false
end

is any simple method to mention wat are the files dont want layout in
one line…

Hi,
You put all your html files in public directory. And just use url
like http://example.com/example.html, if you have example.html in your
public directory.

Thanks,
-Sadeesh.

On Aug 30, 10:03 am, babu nair [email protected]

Create a seperate controller and on top of that write
layout nil
Put all the methods which dont need layout on that controller and save
the corresponding views in the views/popup folder

Sijo

Sorry in the above controller name is popup (for example). I forgot to
add that

Excellent
Thank You…

Had u tried in this way

class PopUpController < ApplicationController
layout “main”, :except => [:ur_action1,:ur_action2,:ur_action3]…
:slight_smile:
Bala

On Sat, Aug 30, 2008 at 1:52 PM, Sijo Kg

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs