Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

92
Views
how to disable link in Ruby on rails which has embeded ruby and js
  <th><%= Programme.human_attribute_name("sample_file_path") rescue "Uploaded Sample File" %></th>
                  <td>
                    <%= link_to @programme.file_path, class: "list-group-item", target: :_blank do %>
                      <i class='icon-file'></i>
                      <%= @programme.sample_file_path.file.filename rescue "No File Uploaded" %>
                    <% end %>
                  </td>

this is my view part code where i need to change, here i need if condition because in the above code irrespective of file uploaded or not it is acting as a link without file also. "No File Uploaded" this is also acting as link now

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!