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
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
I figured it out sorry about the stupid question. Obviously the :article_id=@article.id gotta go into the :url parameter On Jul 27, 11:21 pm, MarcS <marcschue...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I want to use Ajax.Updater to dynamically update a div with an
option { insertion:Insertion.Bottom }, but I can''t find the equivalent
in
link_to_remote.
--
http://sourceforge.net/projects/mycodeline/
http://rubyforge.org/projects/ropenwiki/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
huang zhimin wrote:> I want to use Ajax.Updater to dynamically update a div with an > option { insertion:Insertion.Bottom }, but I can''t find the equivalent > in > link_to_remote.you do it in the controller / rjs on the server side ( controller ) rather than in the rhtml ; http://api.rubyonrails.com/classes/ActionView/Helpers/PrototypeHelper/JavaScriptGenerator/GeneratorMethods.html hth shai -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---