Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

rails link_to example

<!-- app/views/posts/show.html.erb -->

<!-- ... -->

<div class="post">
  <!-- ... -->
</div>

<%= my_link_to 'Back to Posts', posts_path %>
<!-- generates... -->
<!-- <a href="/posts">Back to Posts</a> -->
Source by launchschool.com #
 
PREVIOUS NEXT
Tagged: #rails
ADD COMMENT
Topic
Name
3+8 =