Rails 3.1.x

2 questions... Perhaps I am doing this too much in the raw of jquery but I 
can't seem to find any other way to do these things

1 - drag_drop.js has...

       $.post( "groups/add_member/", { "add": ui.draggable.text() } );
    which is almost everything I want but I want to add @group.id to the URL. 
How can I get the value of @group.id into the jquery string?

2 - my controller has 'render :partial => 'memberships' and I have a 
utilities/_memberships.html.erb file but it doesn't 'refresh' after the change 
has been made. How do I ensure that the partial is refreshed? Obviously I can 
reload the whole page but that seems unnecessary.

-- 
Craig White ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ craig.wh...@ttiltd.com
1.800.869.6908 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ www.ttiassessments.com 

Need help communicating between generations at work to achieve your desired 
success? Let us help!

-- 
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@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to