<%= stylesheet_link_tag :all %> <%= javascript_include_tag :defaults %> <%= csrf_meta_tag %> <% if user_signed_in? %> <%= link_to 'new article', new_article_path %> | <%= link_to 'sign out', destroy_user_session_path %> <% else %> <%= link_to 'sign in', new_user_session_path %> | <%= link_to 'sign up', new_user_registration_path %> <% end %> | <%= link_to 'articles', articles_path %>
Article Search <%= form_tag search_articles_path, :method => :get do %> <%= text_field_tag :query %> <%= submit_tag 'Search' %> <% end %> <%= yield %>