I'm getting the following when I click on the submit button on my form:

Error: 405 Method Not Allowed

Sorry, the requested URL 
'http://127.0.0.1:8000/py4web_test/administration/links' caused an error:

Method not allowed.

My controller code:

@action('administration/links', methods=['GET', 'POST'])
@action.uses('grid.html', session, db, auth.user)
def links():
    url_path = 'administration/links'
    page['sub_title'] = A('LINKS', _href=URL(url_path))

    form = Form([Field('search', length=50)], formstyle=FormStyleBulma)

    query = db.link.id > 0
    fields = [db.link.id, db.link.name, db.link.table_name, db.link.
permission_name, db.link.method]

    grid = Grid(url_path, query, fields=fields,
                search_form=form,
                create_url=URL('administration/link/0'),
                edit_url=URL('administration/link'),
                delete_url=URL('administration/link/delete'))

    return dict(page=page, grid=grid, form=form)

I'm guessing there is something obvious I'm missing.  Can anyone see it?  
Any help would be appreciated.

-Jim


-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/49338241-2ca3-4068-9b2a-dde4d95a0bfe%40googlegroups.com.

Reply via email to