dynamic linking in layout.erb