Skip to content

Instantly share code, notes, and snippets.

@codepedia
Last active January 30, 2016 05:08
Show Gist options
  • Save codepedia/126f996a7bee7841b3fb to your computer and use it in GitHub Desktop.
Save codepedia/126f996a7bee7841b3fb to your computer and use it in GitHub Desktop.
rails notes
<!-- <%= link_to ' log out ', destroy_user_session_path, :method => :delete %>
<%= link_to(
#want to read more about this helper ...content_tag =>> http://apidock.com/rails/ActionView/Helpers/TagHelper/content_tag
content_tag(
# adda div or h3 here for "log out"
:i,
nil,
class: 'fa fa-user-times'
),
destroy_user_session_path, method: :delete, :class => "btn btn-large",
data: {
confirm: 'Are you sure?'
}
)
%> -->
<td><%= link_to content_tag(:i, "show", :class => "fa fa-pencil fa-fw"), name_of_link %></td>
<!-- This page is not really doing anything except displaying links to the sign-in/sogn-out pages
<button type="button" class="btn btn-default btn-lg btn-block"><h2> <%= link_to 'sign-in' , new_user_session_path, :class => "fa fa-sign-in" %></h2></button>
<button type="button" class="btn btn-default btn-lg btn-block"> <h2><%= link_to 'sign-up' , new_user_registration_path, :class => "fa fa-sign-in" %></h2></button>
-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment