Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Commented out the functions we don't want users to be able to use (fo…

…r now.)
  • Loading branch information...
commit 1241144dcad7ebdeea1c88349b3d506d18d9b893 1 parent d31314e
@leenookx authored
View
38 app/controllers/links_controller.rb
@@ -132,18 +132,18 @@ def create
# PUT /links/1.xml
# #####################################################
def update
- @link = Link.find(params[:id])
-
- respond_to do |format|
- if @link.update_attributes(params[:link])
- flash[:notice] = 'Link was successfully updated.'
- format.html { redirect_to(@link) }
- format.xml { head :ok }
- else
- format.html { render :action => "edit" }
- format.xml { render :xml => @link.errors, :status => :unprocessable_entity }
- end
- end
+# @link = Link.find(params[:id])
+#
+# respond_to do |format|
+# if @link.update_attributes(params[:link])
+# flash[:notice] = 'Link was successfully updated.'
+# format.html { redirect_to(@link) }
+# format.xml { head :ok }
+# else
+# format.html { render :action => "edit" }
+# format.xml { render :xml => @link.errors, :status => :unprocessable_entity }
+# end
+# end
end
# #####################################################
@@ -151,13 +151,13 @@ def update
# DELETE /links/1.xml
# #####################################################
def destroy
- @link = Link.find(params[:id])
- @link.destroy
-
- respond_to do |format|
- format.html { redirect_to(links_url) }
- format.xml { head :ok }
- end
+# @link = Link.find(params[:id])
+# @link.destroy
+#
+# respond_to do |format|
+# format.html { redirect_to(links_url) }
+# format.xml { head :ok }
+# end
end
private
View
38 app/controllers/user_links_controller.rb
@@ -86,18 +86,18 @@ def create
# PUT /user_links/1.xml
# #####################################################
def update
- @user_link = UserLink.find(params[:id])
-
- respond_to do |format|
- if @user_link.update_attributes(params[:user_link])
- flash[:notice] = 'UserLink was successfully updated.'
- format.html { redirect_to(@user_link) }
- format.xml { head :ok }
- else
- format.html { render :action => "edit" }
- format.xml { render :xml => @user_link.errors, :status => :unprocessable_entity }
- end
- end
+# @user_link = UserLink.find(params[:id])
+#
+# respond_to do |format|
+# if @user_link.update_attributes(params[:user_link])
+# flash[:notice] = 'UserLink was successfully updated.'
+# format.html { redirect_to(@user_link) }
+# format.xml { head :ok }
+# else
+# format.html { render :action => "edit" }
+# format.xml { render :xml => @user_link.errors, :status => :unprocessable_entity }
+# end
+# end
end
# #####################################################
@@ -105,13 +105,13 @@ def update
# DELETE /user_links/1.xml
# #####################################################
def destroy
- @user_link = UserLink.find(params[:id])
- @user_link.destroy
-
- respond_to do |format|
- format.html { redirect_to(user_links_url) }
- format.xml { head :ok }
- end
+# @user_link = UserLink.find(params[:id])
+# @user_link.destroy
+#
+# respond_to do |format|
+# format.html { redirect_to(user_links_url) }
+# format.xml { head :ok }
+# end
end
private
Please sign in to comment.
Something went wrong with that request. Please try again.