Code: if @current_user.name == "DFYX" and Time.now.day == 26 and Time.now.month == 8 page :happy_brithday, render_to_string(:template => 'birthday', :layout => false) end Wenig spektakulär, aber du kannst dir denken, wo es im Einsatz ist.
if @current_user.name == "DFYX" and Time.now.day == 26 and Time.now.month == 8 page :happy_brithday, render_to_string(:template => 'birthday', :layout => false) end
Foren-Regeln