Ruby on Rails



  • Because it is a beginner, I may have a very simple question,
    I asked questions.

    Rails
    I have set up article CRUD processing, but I have trouble setting the link.

    For example:
    [localhost---/ cles/1 ]
    How can I create a link that can be accessed directly to an article (url)? ?



  • I don't know the current implementation, localhost:3000/articles/:id The following links: link_to I think it can be realized.

    <%= link_to '詳細', articles_path(@article) %>


Log in to reply
 


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2