Hi, I'm having a problem with regards to views in ruby on rails.
Basically I have a regular project which lists the details just fine on
http://localhost:3000/stores/
which loads the code found within index.html.erb
Now, i have scaffolding etc all in place, however when i try to load
http://localhost:3000/stores/search
which SHOULD load code from search.rhtml
(should this be changed to .html.erb or it doesnt make a difference?), its simply going to the file show.html.erb
and displaying that code instead (which results in an error due to properties not being passed etc).
I was wondering what i'm doing wrong, am i supposed to set something up in the routes.rb file?? (if this has anything to do with the issue?)
ActionController::Routing::Routes.draw do |map|
map.resources :stores
map.resources :stores
map.connect ':controller/:action/:id'
map.connect ':controller/:action/:id.:format'
end
Thanks a lot in advanced for any assistance as this is my first Ruby on Rails project