<html>
<head>
<script>
function finddevice() {
var ua = navigator.userAgent.toLowerCase();
var isAndroid = ua.indexOf("android") > -1; //&& ua.indexOf("mobile");
if(isAndroid){
alert('Android....');
}else{
alert('Other Device');
}
}
</script>
</head>
<body onload="finddevice()">
<h1> Identify the Android device using javascript </h1>
</body>
</html>
Error: PG::DuplicateTable: ERROR: relation "taggings" already exists Solution : Already the table present in your database.But migration also trying to create a table in database.For this reason error occurred. So try to remove the table (taggings) from your database. postgresql : > DROP TABLE IF EXISTS taggings; Rails console : > ActiveRecord::Migration.drop_table(:taggings)
Comments
Post a Comment