New to Ruleby, asking for help getting set up in Rails

15 views
Skip to first unread message

Jesse

unread,
Mar 1, 2010, 2:00:43 PM3/1/10
to Ruleby
Hi, I've watched the video with J Kutner, and looked over the examples
in the source. I need to use Ruleby for a game, where the players
have game phases and milestones. How do I set up a very basic file
that I can begin writing simple rules, just to get the gist and flow
from w/in Rails?

I have required the gem (in rails 2.3.5):
config.gem 'ruleby', :lib => 'ruleby', :version => '0.6'

I placed a file: lib/ruleby_basics.rb:

##
include Ruleby

##

... but I am unsure how to proceed. The most basic thing that I can
think of, is that when the user installs the game, they have an
attribute: user.milestone == 'preproduction_1_get_started'

where preproduction is the phase, '1' is the milestone level, and
'get_started' for finding the correct view. Each milestone has
many :progressions with only a name attribute (and milestone_id)

Your help is greatly appreciated. Thank you.

Reply all
Reply to author
Forward
0 new messages