Files
nairobi/app/helpers/links_helper.rb
Javi Martín 629e208e9d Add and apply ArgumentAlignment rubocop rule
We're choosing the default `with_first_argument` style because it's the
one we use the most.
2023-08-18 14:56:16 +02:00

20 lines
627 B
Ruby

module LinksHelper
def render_destroy_element_link(builder, element)
link_to_remove_association element.new_record? ? t("links.form.cancel_button") :
t("links.form.delete_button"),
builder, class: "delete remove-element"
end
def link_to_signin(options = {})
link_to t("users.signin"), new_user_session_path, options
end
def link_to_signup(options = {})
link_to t("users.signup"), new_user_registration_path, options
end
def link_to_verify_account
link_to t("users.verify_account"), verification_path
end
end