Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def show
- page_id = "pages/#{(params[:id] || 'home').to_s}"
- @partial_title = params[:id] || "Home"
- logger.debug(page_id)
- if template_exists?(page_id)
- render :template => page_id
- else
- raise ActiveRecord::RecordNotFound, "Couldn't find the page #{params[:id]}"
- end
- end
Add Comment
Please, Sign In to add comment