diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 4bf4ce4a3..9a32f9721 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -36,38 +36,6 @@ module ApplicationHelper tag.li(link_to(text, url, id: "#{id}-link", **options), id: id, class: klass) end - def fast_link_to(text, link_params, options = {}) - if options - attributes = options.map do |k, v| - %{#{k}="#{h(v)}"} - end.join(" ") - else - attributes = "" - end - - if link_params.is_a?(Hash) - action = link_params.delete(:action) - controller = link_params.delete(:controller) || controller_name - id = link_params.delete(:id) - - link_params = link_params.map {|k, v| "#{k}=#{u(v)}"}.join("&") - - if link_params.present? - link_params = "?#{link_params}" - end - - if id - url = "/#{controller}/#{action}/#{id}#{link_params}" - else - url = "/#{controller}/#{action}#{link_params}" - end - else - url = link_params - end - - raw %{#{text}} - end - def format_text(text, **options) raw DTextRagel.parse(text, **options) rescue DTextRagel::Error => e diff --git a/app/views/posts/show.html.erb b/app/views/posts/show.html.erb index a2c139ad6..1863d503f 100644 --- a/app/views/posts/show.html.erb +++ b/app/views/posts/show.html.erb @@ -28,11 +28,11 @@

History