Class: Junebug::Controllers::Backlinks

Inherits:
R
  • Object
show all
Defined in:
lib/junebug/controllers.rb

Instance Method Summary collapse

Instance Method Details

#get(page_name) ⇒ Object



91
92
93
94
95
96
# File 'lib/junebug/controllers.rb', line 91

def get page_name
  @page = Page.find_by_title(page_name)
  @page_title = "Backlinks for: #{page_name}"
  @pages = Page.find(:all, :conditions => ["body LIKE ?", "%#{page_name}%"])
  render :backlinks
end