Question about link_to_remote


#1

Hi,

I got the following problem

this is my code for link_to_remote
[<%= link_to_remote(“Delete”, {:url =>
members_article_image_url(list_item), :method => :delete, :article_id
=> @article.id}, :confirm => “are you sure?”) %>]

But rails seems to ignore the article_id parameter and doesn’t pass it
on.
from the console: Parameters: {"_method"=>“delete”,
“action”=>“destroy”, “id”=>“21”, “controller”=>“members/
article_images”}

Isn’t rails supposed to create the parameter or am I doing something
wrong?

thanks for your help

Marc


#2

I figured it out
sorry about the stupid question.
Obviously the :article_id=@article.id gotta go into the :url parameter