title: I'm getting error "uninitialized constant SongsController" on ruby on rails
body: <p>I'm getting an error like that, I'm new in rails.</p>
  
  <p>my routes.rb</p>
  
  <pre><code>Rails.application.routes.draw do
  get 'welcome' =&gt; 'page#search'
  
  resources :songs
  end
  </code></pre>
  
  <p>search.html.erb</p>
  
  <pre><code>&lt;%=form_for @song do |f|%&gt;
  &lt;%=f.text_field :search%&gt;
  &lt;%=f.submit 'Search'%&gt;
  &lt;%end%&gt;
  </code></pre>
  
  <p>page_controller.rb</p>
  
  <pre><code>class PageController &lt; ApplicationController
  attr_accessor :a
  
  def search
    @songs = Song.all
    @song = Song.new
  end
  
  def new
    @song = Song.new
  end
  
  def Create
    @song = Song.new()
   if @song.save 
    rediect_to ''
   else
    render new
   end
  end
  
   def parameter
    params.require(@song)
   end
  end
  </code></pre>
  
  <p>path</p>
  
  <blockquote>
    <p>welcome_path GET /welcome(.:format)  page#search 
    song_new_path POST    /song/new(.:format) song#new 
    songs_path    GET /songs(.:format)    songs#index 
    POST  /songs(.:format)    songs#create 
    new_song_path GET /songs/new(.:format)    songs#new 
    edit_song_path    GET /songs/:id/edit(.:format)   songs#edit 
    song_path GET /songs/:id(.:format)    songs#show 
    PATCH /songs/:id(.:format)    songs#update
        PUT   /songs/:id(.:format)    songs#update
        DELETE    /songs/:id(.:format)    songs#destroy</p>
  </blockquote>