HI i am new to rails i started working on one existing project. i want to integrate new page to website. I created new page under folder Sites(page name xxxx.html.erb) which have controller named sites.and created method within controller
def xxxx
end
when i tried access that page following error is showing
The action ‘show’ could not be found for SitesController
i think it is problem with routes.rb file please help me
i tried to add this
match “xxxx” => “Sites#xxxx” but not working …….
Sorry all i got answer problem with i used capital “S” in Sites routes file and used capital “s” in link also
<%= link_to "Profile", :controller => "**Sites**", :action => "xxxxx"%>