search for: users_message_path

Displaying 1 result from an estimated 1 matches for "users_message_path".

2011 Nov 18
0
Jquery dialog
...ms[:message]) @message.receiver_id = @user.id respond_to do |format| if @message.save format.html {redirect_to user_url(current_user)} format.js end end end View file %div.jqmWindow#dialog %div.dialog_content -form_for Message.new,:url=>''users_message_path'',:remote=>true do |f| =hidden_field_tag :id,@user.login =f.text_area ''content'',:rows => 10, :cols => 25 =f.submit ''Send'' My js.erb $(''#dialog'').html("hello") Problem is ajax is requestuing the act...