title: Trouble showing articles on Ruby on Rails?
body: <p>I created a form to create articles, but I can only see the published articles on the index page, and, I'm unable to see individual articles.</p>
  
  <p>Every time I click on 'show' for an individual article on the index, it opens a blank page with a URL like <code>localhost:3000/articles.1</code>, instead of <code>localhost:3000/articles/1</code>.</p>
  
  <p>I don't know what's wrong with the code, it's similar to the code I have for creating and editing articles as admin and it works there, but I keep getting this error.</p>
  
  <p>Here's the code:</p>
  
  <p>views/articles/show.html.erb:</p>
  
  <pre><code>&lt;h1&gt;&lt;%= @article.name %&gt;&lt;/h1&gt;   
  &lt;%= @article.content %&gt;
  &lt;%= image_tag @article.photo.url(:small) %&gt;
  
  &lt;p&gt;Tags: &lt;%= raw article.tag_list.map { |t| link_to t, tag_path(t) }.join(', ') %&gt;&lt;/p&gt;
  &lt;%= link_to 'Back', noticias_path %&gt;
  </code></pre>
  
  <p>views/articles/index.html.erb:</p>
  
  <pre><code>&lt;% @articles.each do |article| %&gt;
    &lt;div&gt;
    &lt;h2&gt;&lt;%= article.name %&gt;&lt;/h2&gt;
    &lt;%= article.content %&gt;
    &lt;p&gt;&lt;%= link_to 'Show', noticias_path(article) %&gt;&lt;/p&gt;
    &lt;p&gt;Tags: &lt;%= raw article.tag_list.map { |t| link_to t, tag_path(t) }.join(', ') %&gt;&lt;/p&gt;
    &lt;/div&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>articles_controller.rb:</p>
  
  <pre><code># GET /articles/1
  # GET /articles/1.json
  def show
    @article = Article.find(params[:id])
  end
  </code></pre>
  
  <p>routes.rb:</p>
  
  <pre><code>Blog::Application.routes.draw do 
    root to: 'welcome#index'
    get 'tags/:tag', to: 'noticias#index', as: :tag 
    get "noticias/index"
    get "dashboard/index" 
    get "/sitemap" =&gt; "sitemap#index", :as =&gt; :sitemap, :defaults =&gt; {:format =&gt; :xml} 
    match '/noticias', to: 'noticias#index', via: 'get' 
    get 'login', to: 'sessions#new', as: 'login' 
    get 'logout', to: 'sessions#destroy', as: 'logout' 
    resources :users 
    resources :sessions 
    namespace :admin do
      get '', to: 'dashboard#index', as: '/' 
      resources :noticias 
    end 
  end
  </code></pre>