A sample project is finally available! Thanks for your patience. Although the project is still being developed, there is a fair amount of functionality in place right now.
Installation
The project is part of the edge folder in SVN. You will need to check out the entire edge folder for the sample project to work correctly. Use this command:
> svn co http://svn.streamlinedframework.org/edge > cd edge/samples/sports
Once the project is checked out, create config/database.yml as necessary for your local instance of MySQL. (You don't even need to create the databases.) Or set it to use sqlite3. Next, run:
> rake app:setup # creates the database, runs migrations for you > ./script/server
The sample app should now be running at http://localhost:3000
If you are running rails-1.2.x, you may need to change the RAILS_GEM_VERSION inside config/environment.rb as follows:
#RAILS_GEM_VERSION = '2.0.3' unless defined? RAILS_GEM_VERSION RAILS_GEM_VERSION = '1.2.3' unless defined? RAILS_GEM_VERSION
Areas of Interest
The sample project allows you to manage a set of sports teams. Of special interest is the app/streamlined/team_ui.rb file. This is where the declarative statements for the team management UI live.
You'll notice that the :sport attribute uses an enumeration for its values, and also has the :create_only flag set to true. This means that the sport for a particular team can only be set once, when the team is first created.
There is also an addition attribute, :personnel, that is included via the TeamAdditions module. The value for :personnel is hard-coded right now, but will become more dynamic in the future.
Note that the content for the top menu is being generated from the #streamlined_top_menus method in ApplicationHelper.
