Forward url on add bike/ don't display value if nil

This commit is contained in:
Jason Denney
2014-02-09 22:01:42 -05:00
parent 64d4186b57
commit 7b11da9583
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ $("#add_bike_submit").click(function(){
data: json_data,
dataType: "json",
success: function(data, status, xhr){
//window.location = "";
window.location = "/bikes/"+ data.bike.id;
},
error: function(data, status ){
displayFormErrors(data.responseJSON);