On 28 September 2014 15:33, Joseph Wilks <lists@ruby-forum.com> wrote:
> Colin Law wrote in post #1158601:
>> On 28 September 2014 05:17, Joseph Wilks <lists@ruby-forum.com> wrote:
>>> REST/CRUD actions (i'm not creating, updating, or destroying anything...
>>> they're just doing a quiz and getting badges and xp when they complete
>>> them..).
>>
>> Do the quiz information and challenge set data change over time? If
>> so then you need to create, update and destroy them.
>>
>> What other information needs to be remembered from one session to the
>> next?
>>
>> Colin
>
> Hi Colin
>
> The quizzes will remain the same, although obviously I will add new ones
> myself over time.
So you need to be able to create, edit, destroy those. So pretty
standard REST interface there. You could use the rails scaffold for
this as it is only an admin interface rather than a user i/f.
> The user just reads some information (which could be
> on the same page as the quiz, using a little ajax box with multiple
> tabs), does a small quiz, and all that needs to be remembered is a
> boolean which says whether that quiz has been successfully completed or
> not (I think).
So that is a boolean saying that this user has completed that quiz?
So you could use a join table between users and quiz for that.
>
> I want to have it so that the URL's are like:
>
> example.com/comedy/1 (for quiz 1 of the comedy tv section of questions)
>
> and then if it has multiple pages I guess I'd need it to be /comedy/1/3
> or whatever.
Don't worry about what the urls look like, work out what functionality
you want, and go from there. The requirements drive the urls not the
other way round. Think of it as an application not a series of web
pages.
>
> What's the standard way to do this?
Standard way to do what?
Colin
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLumq6EkBT7dLmBuwAmrND4xhEqCTyK0nvB8xjwz7XL%2BkQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment