summaryrefslogtreecommitdiff
path: root/app/helpers/link_helper.rb
blob: 33d8a060382dbc434f302c8c2fffa22455c8c2df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
module LinkHelper
  
  def link_to_path title, path
    params[:locale] ||= I18n.locale
    
    link_to( 
      title,
      :controller => :content,
      :action => :render_page,
      :locale => params[:locale],
      :page_path => path
    )
  end
  
end