Hey Everyone,
I just started the tutorial for "Creating a Custom Page Type"
and I'm not getting the expected results.

I started with a new Roasters project using version 0.8.1.  Then I ran
the script/generate extension_model tennis PlayerPage command and it
generated everything that it was supposed to (using the normal path:
app/models/player_page.rb)... next I changed the class that was
created to inherit from "Page."  Next the tutorial says to start-up
the server to make sure that PlayerPage is in the Page Type list on
the edit screen.  When I start the server I get a message that says :
"#<NameError: uninitialized constant TennisExtension>" and the type
does not show up in the list!

What am I doing wrong here?  I can see that the generate script
created a migration that sets up a table... do I need to run a some
sort of rake migrate task?  There aren't too many steps to this part
of the tutorial so I don't think I've missed one.  There is a
Troubleshooting part that says if I don't see my custom type I
probably put the player_page.rb file somewhere other than app/models/
.... but the file is there, so I don't know what to do now.

Any help or pointers would be greatly appreciated... Thanks,
Radiant mailing list
Post: Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Radiant: http://radiantcms.org
Extensions: http://ext.radiantcms.org

Reply via email to