On 27 Aug 2012, at 4:56 PM, SeamusSeamus <morrisjamespatr...@gmail.com> wrote: > nevermind I fixed it. Not sure why, but if it was named 'equipment' the > controller showed up...any other name it doesnt. I just renamed
Because you also have an application named 'equipment', so some URLs are ambiguous. > > On Monday, August 27, 2012 5:05:44 PM UTC-6, SeamusSeamus wrote: > ah, yes, all is well now...however, this is strange. > Now, when I click the link on the table to take me to the 'equipment.html' > page (I renamed it from details.html), it shows the controller in the URL: > www.mysite.com/default/equipment/id/title > > how do I make it so the 'default' does not show up? It didnt show up before > it looked like this: > > links = [lambda row: A('Details',_href=URL('default', 'details', > args=[row.id, row.slug]))] > I changed to > links = [lambda row: A('Details',_href=URL('default', 'equipment', > args=[row.id, row.slug]))] > > I also changed the controller from def default to def equipment, and also > changed default.html to equipment.html in views... > > now it shows the controller in the URL... > > my routes looks like this > > routers = dict( > BASE = dict(default_application='equipment', > default_controller = 'default',), > ) --