Hello :-),
i want to use ''link_to_remote'' to create a simple form on the
website.
The form is a simple editor to post a comment to an article. I need to
know the article_id in the new view/controller. With ''render''
everything works fine, but ''link_to_remote'' doesnt work with
:params :-
(
here is my code of the article view:
<div id="editor">
</div>
<%= link_to_remote("new comment", :update =>
''editor'', :url => new_comment_path,
:params => {:article_id => @article.id}) %>
My db layout: http://erdbeere.net/media/db_layout.png
If anyone have an idea i would be happy to read it^^. I used google to
find any useful information, but i failed. The only parameter I found
is '':with'', but it looks, that it is only for javascript.
Have a nice day,
Patrick
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---