app/helpers/vln_related_items_helper.rb
#Resource hash for lazy loaded tabs, key: resource_type, value: resource
#Each hash value
Resource hash for lazy loaded tabs, key: resource_type, value: resource
Each hash value
Resource hash for lazy loaded tabs key : resource_type value : resource Each hash value
def link_to_view_all_in_new_window item, resource_type
    path = item ? [item, resource_type.tableize] : eval("#{resource_type.pluralize.underscore}_path")
    link_text = item ? "View all items with nested url in new window" : "View all items in new window"
    link_to link_text, path, {:target => "_blank"}
  end
def link_to_view_all_in_new_window item , resource_type path = item ? [ item , resource_type . tableize ] : eval ( "#{resource_type.pluralize.underscore}_path" ) link_text = item ? "View all items with nested url in new window" : "View all items in new window" link_to link_text , path , { :target => "_blank" } end
Resource hash for lazy loaded tabs, key: resource_type, value: resource
Each hash value
Resource hash for lazy loaded tabs key : resource_type value : resource Each hash value
item
resource_type