Hear us Roar
Article:
 |
|
Ajax on Rails
|
| Subject: |
|
Def index...needed? |
| Date: |
|
2006-07-31 11:41:07 |
| From: |
|
Damaris
|
|
|
|
In the first page you add a
def index
end
to tell the controller you have your own index view. I guess you don't need that. Rails tests always if it can render an index.rhtml of the user when you type /demo/index before rendering its own view templates.
(I think this answers my own question posted in http://www.oreillynet.com/cs/user/view/cs_msg/84357)
I have tested and it works with the def index.
|
|
| |