Trying nokogiri

This commit is contained in:
Christophe Vilayphiou committed 2012-03-27 18:42:22 +08:00
1 parent f9c5ee5d18
commit f5fd3dec7a
10 files changed
+172 -75

No files matched your search

+1 -1
View File
@@ -47,7 +47,7 @@ class ApplicationController < ActionController::Base
# Render the page
def render_page(id = nil)
if @item
render :text => parse_page(@item, id)
render :text => process_page(@item, id), :layout => 'page_layout'
else
render :text => '404 Not Found'
end
+2
View File
@@ -1,5 +1,7 @@
class PagesController < ApplicationController
include ApplicationHelper
before_filter :get_item, :only => [:index_from_link, :show_from_link]
def index