Topic: How can i get my image id to my URL

Hi,

  Can somebody help me, I'm new to rails i need to post the id of my image model id to my URL http://210.16.15.126:3000/images/:image.id/edit. Kindly refer to my edit action on my Controller at the back.

def edit
    @image = Image.find(params[:id])
   
    respond_to do |format|
    format.html # edit.html.erb
    format.xml {render :xml => @image}
    end
  end


Hopefully there's someone can help me and reply to me.

Thank you


Regards,
Joener