Hobo / hobo

The web app builder for Rails (moved from tablatom/hobo)
http://hobocentral.net
103 stars 39 forks source link

Rescue from missing partial by looking at the referer #123

Open iox opened 9 years ago

iox commented 9 years ago

I have seen several times that Ajax requests fails because the partial can't be found. Right now we rely on "page_path" for this. One simple solution would be trying to take a look at request.referer before throwing an error:

https://groups.google.com/forum/#!topic/hobousers/VAXRxs0dRec