According to what i have read rails redirects the request to a view
with the same name as the controller.
This is supposed to work even if you don't explicitly give a
render :template => call in your controller.
But some how this is not working.
I have store_controller.rb in controllers and store.rthml in layouts .
Yet Rails is complaining about a missing template.
According to what i have read rails redirects the request to a view
with the same name as the controller.
<...>
Well it is action, not controller. In case when action is not
specified Rails will
use 'index' as default.
I have store_controller.rb in controllers and store.rthml in layouts .
Yet Rails is complaining about a missing template.
am i missing something here ?
Yes i am trying out the depot example from the rails book.
But i do have a index action in the store_controller.rb and also app/
views/store/index.rhtml
Also i am trying to use /app/views/layouts/store.rthml for creating
the layout.