fix favoriting
This commit is contained in:
@@ -29,6 +29,7 @@ class FavoritesController < ApplicationController
|
|||||||
format.html do
|
format.html do
|
||||||
redirect_to(mobile_post_path(@post))
|
redirect_to(mobile_post_path(@post))
|
||||||
end
|
end
|
||||||
|
format.js
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -40,6 +41,7 @@ class FavoritesController < ApplicationController
|
|||||||
format.html do
|
format.html do
|
||||||
redirect_to(mobile_post_path(@post))
|
redirect_to(mobile_post_path(@post))
|
||||||
end
|
end
|
||||||
|
format.js
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user