I am trying to create a hyperlink on an index page, but it does not appear, and it also does not give any errors. Here is my index.html.erb code.
<h1> Listing articles </h1> <% link_to 'New article', new_article_path %> <---- Everything works perfectly except this doesnt show anything <table> <tr> <th>Title</th> <th>Textssss</th> <tr> <% @articles.each do |article| %> <tr> <td><%= article.title %> </td> <td><%= article.text %> </td> </tr> <% end %> </table>
I checked my routes and I think they are ok too.
Prefix Verb URI Pattern Controller
I can manually access the article / new from the local host, but I do not think the problem. Any help is appreciated.
source share