Class: Junebug::Controllers::Backlinks
- Inherits:
-
R
- Object
- R
- Junebug::Controllers::Backlinks
- Defined in:
- lib/junebug/controllers.rb
Instance Method Summary collapse
Instance Method Details
#get(page_name) ⇒ Object
128 129 130 131 132 133 134 |
# File 'lib/junebug/controllers.rb', line 128 def get page_name page_name_spc = page_name.gsub(/_/,' ') @page = Page.find_by_title(page_name_spc) @page_title = "Backlinks for: #{page_name_spc}" @pages = Page.find(:all, :conditions => ["body LIKE ? OR body LIKE ?", "%[[#{page_name_spc}]]%", "%[[#{page_name_spc}|%"]) render :backlinks end |