class <%= @class_name %>Routes def self.routings Rails.application.routes.draw do scope "rails_view_component/<%= @file_path %>", module: "<%= @file_path %>" do <% @args.map{|arg|arg.split(":")}.each do |name,method| %> <%= method || "post" %> "<%= name %>" => "<%= @file_name %>#<%= name %>" <% end %> end end end end