I know that to change the index page for rails I need to do three things: delete the index.html, do something with routes.rb, and probably make an action that the route will point to. It's the details that I am a little fuzzy on :-)
+6
A:
Ok, I figured it out. Basically you
- Delete public.html
- Add 'map.root :controller => "foo"' to routes.rb
- and then of course create the controller foo with the action index.
Frew
2008-10-07 03:00:54
+2
A:
Follow Frew's steps and, as step 4, put a little html code in the index view file in the /views/foo folder to test it all.
Example:
<h1>My New Index Page</h1>
<p>Some text here.</p>
allesklar
2008-10-07 10:44:35