On 22 April 2013 16:06, Aldila Iswari <[email protected]> wrote: > hi all. I am having a problem, it would be really nice, if guys could help > me. > I am making an app, a simple one. There is a table, lets just say it is a > recipe table. This app is devided into an admin page and user page. the > admin can edit, delete and add new recipe, and user can only search the > recipe. So far the App works well, but I want to add an option. The user has > the ability to suggest new recipe and admin can decide whether it is going > to released or not. I have no idea how does that work.
First decide what the user interface should look like for the user and the admin. Perhaps you already know that. Next decide what data must be saved when the user suggests a recipe - perhaps he just adds a recipe into the table with a flag to say that it has not been reviewed by the admin yet. Next write the automated tests for what should happen. Write the code to migrate the database, for the user to add the recipe and the admin to review and release it (which may just be a matter of setting the 'reviewed' flag). 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 [email protected]. To post to this group, send email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

