Last active
August 29, 2015 14:01
-
-
Save tihuan/31c8ff6abaedd1b7e831 to your computer and use it in GitHub Desktop.
Rails - Using Partials
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="part"> | |
>>>I'm a partial<<< | |
</div> | |
<ol> | |
<div class="url"> | |
<li><%= link_to url.short_url, "http://#{url.url}" %> - <%="#{url.url}"%></li> | |
</div> | |
</ol> | |
<div class="part"> | |
>>>I'm a partial<<< | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%= render "part" %> | |
<ol> | |
<%= render @urls %> | |
</ol> | |
<%= render "part" %> | |
<%= link_to "Shorten URL", new_url_path %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment