Created
September 7, 2011 14:26
-
-
Save WaYdotNET/1200703 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # check if exist real page ! | |
| if template_exists?(params[:id], "frontend", false) | |
| render "frontend/#{params[:id]}" and return | |
| end |
begin
render :index, :layout_engine => :haml, :layout => :"application.html"
rescue Padrino::Rendering::TemplateNotFound
render :template_error
rescue Errno::ENOENT
render :file_not_found
endi've found this solution...
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
relative function in padrino exist ?