This repository has been archived on 2020-05-27. You can view files and clone it, but cannot push or open issues/pull-requests.
barleysodas/app/helpers/styles_helper.rb

16 lines
409 B
Ruby

module StylesHelper
def new_style_link
link_to 'New Style', new_style_path, { :title => 'Create a new style' }
end
def show_style_link(style)
link_to style.title, style_path(style.page.title_for_url),
{ :title => style.title }
end
def edit_style_link(style)
link_to 'Edit Style', edit_style_path(style.page.title_for_url),
{ :title => "Edit #{style.title}" }
end
end