* Refactored routes some
* Fixed some major bugs with pools and pool versioning
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
class AdvertisementHitsController < ApplicationController
|
||||
def create
|
||||
advertisement = Advertisement.find(params[:id])
|
||||
advertisement = Advertisement.find(params[:advertisement_id])
|
||||
advertisement.hits.create(:ip_addr => request.remote_ip)
|
||||
redirect_to advertisement.referral_url
|
||||
end
|
||||
|
||||
@@ -4,15 +4,15 @@ class PoolsPostsController < ApplicationController
|
||||
|
||||
def create
|
||||
@pool = Pool.find(params[:pool_id])
|
||||
@post = Post.find(params[:post_id])
|
||||
@post = Post.find(params[:id])
|
||||
@pool.add_post!(@post)
|
||||
respond_with(@pool)
|
||||
respond_with(@pool, :location => pool_path(@pool))
|
||||
end
|
||||
|
||||
def destroy
|
||||
@pool = Pool.find(params[:pool_id])
|
||||
@post = Post.find(params[:post_id])
|
||||
@post = Post.find(params[:id])
|
||||
@pool.remove_post!(@post)
|
||||
respond_with(@pool)
|
||||
respond_with(@pool, :location => pool_path(@pool))
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
class PostModerationDetailsController < ApplicationController
|
||||
def index
|
||||
class PostModerationController < ApplicationController
|
||||
def show
|
||||
end
|
||||
|
||||
def create
|
||||
Reference in New Issue
Block a user