ScienceGist / sciencegist

ScienceGist - Science for everyone
http://www.sciencegist.com
MIT License
15 stars 3 forks source link

new gist form doi lookup not working in Firefox #18

Open mlinksva opened 11 years ago

mlinksva commented 11 years ago

I tried to add a gist using browser

Mozilla/5.0 (X11; Linux i686; rv:26.0) Gecko/20100101 Firefox/26.0.

Provided DOI, none of the other fields filled.

Provided same DOI with

Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.57 Safari/537.36

and form worked just fine.

jure commented 11 years ago

Thanks for the issue. I got eleven errors from this, so I'm really sorry that you had a bad experience.

This is the error:

A NoMethodError occurred in papers#metadata:

 undefined method `inner_html' for nil:NilClass
 app/controllers/papers_controller.rb:18:in `metadata'

-------------------------------
Request:
-------------------------------

 * URL       : http://www.sciencegist.com/papers_metadata.json?q=doi%3A+10.1145%2F230538.230561+
 * IP address: 75.61.128.150
 * Parameters: {"q"=>"doi: 10.1145/230538.230561 ", "action"=>"metadata", "controller"=>"papers", "format"=>"json"}
 * Rails root: /home/deploy/apps/sg/releases/20130826193026
 * Timestamp : 2013-10-17 04:28:05 UTC

I'll take a look soon.