How to create a static link?

Hello,
I am trying to build a simple static link using Phoenix. So I have this
I defined that every thing under “/” goes to a WelcomeController. I have written a WelcomeView and I have also have index.html.eex and also faq.html.eex. In my Welcome controller I have defined a faq() which renders the template. Now I want to create a static link from index page. I have used this

  <% link "FAQ", to: welcome_path(@conn, :faq) %>

I got something weird. It compiles and I do not see any text and no linking action. Any suggestions?

Thanks.

1 Like

Try

<%= link "FAQ", to: welcome_path(@conn, :faq) %>
6 Likes

Thanks a lot.

3 Likes