[Nitro] Problems with templates

George Moschovitis george.moschovitis at gmail.com
Fri Aug 5 08:28:59 EDT 2005


Hello,

In your case, you probably want to do:

def my_action
end
alias_action :index, :my_action

anyway, you are probably looking for:

def index
end
action :index, :view => 'your view...'

I should probably add a render template method though.

-g.


On 8/5/05, Michael Neumann <mneumann at ntecs.de> wrote:
> Hi,
> 
> I've a controller mounted as /main:
> 
> class MainController < Nitro::Controller
>    def index
>      # render_template 'templates/this_or_that_template'
>    end
> end
> 
> I'd like to render a template from within an action. How can I achieve
> that, without need of a special directory layout?
> 
> Regards,
> 
>    Michael
> 
> _______________________________________________
> Nitro-general mailing list
> Nitro-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/nitro-general
> 


-- 
http://www.gmosx.com
http://www.nitrohq.com
http://www.joy.gr




More information about the Nitro-general mailing list