Displaying 1 result from an estimated 1 matches for "dialog_cont".
2011 Nov 18
0
Jquery dialog
...send_message
@message = current_user.messages.build(params[: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'...