Results 1 to 2 of 2

Thread: Need help with Instiki

  1. #1
    Join Date
    Apr 2006
    Beans
    114

    Need help with Instiki

    Hey everyone,

    Yeah I found an Instiki site, and I pretty much built most of the code I need for my Instiki but the only problem is I can't figure out a way to how to implement a correct Destroy method...here's what I have so far for the destroy method

    def destroy
    Page.find(params[:id]).destroy
    redirect_to :action => 'index'
    end

    I keep getting a error when every i click on the destroy button says that there is no id for the page that I created and tried to destroy. Anyone got any ideas? or do you need me to post more of the code for you to see what's going on?

    And before anyone suggests I have went out looking at others code to see what I am doing wrong, and alot of people don't seem to have a destroy option for there Instiki. So no I am not trying to re-Invent the wheel.


    Thanks
    ~BT
    Last edited by Blacktalon; September 22nd, 2006 at 09:24 PM.

  2. #2
    Join Date
    Apr 2006
    Beans
    114

    Re: Need help with Instiki

    *bump*

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •