Hello rochacbruno, I loaded this application on two different machines/environments, and the information in the form is not being saved to the database song table. I tried this as both a logged in user, and not logged in user.
I began to trouble shoot, and modified the form from: def index(): form = SQLFORM(db.song) return dict(form = form) to the following: def index(): form = SQLFORM(db.song) if form.process().accepted: response.flash = 'form accepted' elif form.errors: response.flash = 'form has errors' else: response.flash = 'please fill out the form' return dict(form = form) It looks like the star rating value is not being sent from the form unfortunately because I get 'form has errors', 'value not allowed'. Any ideas? Best, Michael Gheith On Friday, February 8, 2013 5:33:24 PM UTC-6, rochacbruno wrote: > > > https://github.com/mdipierro/web2py-recipes-source/blob/master/apps/04_advanced_forms/web2py.app.star_rating.w2p?raw=true > > On Fri, Feb 8, 2013 at 8:52 PM, Michael Gheith <ghei...@aol.com<javascript:> > > wrote: > >> Hello web2py community :) >> >> I'm trying to implement a simple star rating for my site. I followed the >> steps in the web2py Application Development Cookbook, but it is not working >> unfortunately; I select 2 stars for example, but it's not being saved to >> the database. >> >> I have taken a look at the star rating widget in plugin_wiki, and could >> not get that to work either! >> >> Can any of you provide me with a .w2p of something that works? >> >> >> Hope to hear from any of you soon, thanks in advance! >> Michael Joseph Gheith >> >> -- >> >> --- >> You received this message because you are subscribed to the Google Groups >> "web2py-users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to web2py+un...@googlegroups.com <javascript:>. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.