Well, it's all quite simple.
Create a model script/generate model team played_game:boolean
name:string
and it will generate model and migration for you :)

Just get trough the tutorial. I guarantee, you'll find all the
answers. For your particular application it will work 100%

On May 27, 2:40 pm, Roelof Wobben <[email protected]> wrote:
> Alex P wrote:
> > Actually, the goal is trivial.
> > Check outhttp://guides.rubyonrails.org/getting_started.html
>
> > Install ruby, gem, rails, and start developing, ask questions as you
> > go along. There's no such thing as tutorial for a menu or working
> > space.
> > Checking whether a team has already played the game is a matter of
> > your model. For instance, you have a model called Team, which has a
> > boolean field called played_game. So, you just get teams via
> > Team.find, and include your condition, or just use team.played_game
> > and check whether it's true or no.
>
> > Good luck
>
> Hello,
>
> Thank you.
> I will read the gettting_started tutorial.
>
> I like the idea of you.
> One question. How do I set the boolean field.
>
> My idea was to make a database of all the played games.
> Then read that database one or one if the user choose for making the
> rankings.
>
> I have he idea I have to read a lot to make this idea work.
>
> Roelof
> --
> Posted viahttp://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to