No route matches {:controller=>"welcome", :action=>"contact"}
- by jade
I'm new to rails so it may sound quite naive.I'm getting this error
No route matches {:controller=>"welcome", :action=>"contact"}
Here is my routes.rb
root :to => 'welcome#index'
Here is my controller
class WelcomeController < ApplicationController
def index
redirect_to :action => :contact
end
end
And i have a contact.html.erb in my app/view/.What am i doing wrong?