我有一个带有网址选项的表单。
- form_for [@organization, @video], :url => organization_media_videos_with_session_path(@organization), :html => { :multipart => true } do |f|
这个URL特别是我在这里写的帮手:
def organization_media_videos_with_session_path(organization)
session_key = ActionController::Base.session_options[:key]
organization_media_videos_path(organization, session_key => cookies[session_key], request_forgery_protection_token => form_authenticity_token)
end
我的问题是这个......
在我的工作制作中,表格HTML如下所示:
<form method="post" id="new_video" enctype="multipart/form-data" class="new_video dirtyform" action="/organizations/470/media/videos">
在我的非工作测试服务器上,表单HTML如下所示:
<form method="post" id="new_video" enctype="multipart/form-data" class="new_video" action="/organizations/1/media/videos?_hq_channel_session=BAh7CjoQX2NzcmZfdG9rZW4iMTVrM3NyWkMzVGk5OGJFNXR6WTZ1V3djWWtyUThnS01OaFlDZVBsUzA5SEU9IhV1c2VyX2NyZWRlbnRpYWxzIgGAODQ4NjQwMzViZTNkODkyYmQ1NmNkY2U3ZTcxOTBhYzc2ZGFhMWNlMGQ0ZjVhOGFlMDZjODUyZGU5N2MzMzM5MGFhOTRkNmZlNmNhMGQ1N2Y3YmU4NzY2OWJjYzk1ZDhiOWVkNzQ3OGQxOTJjMGViMDdiZWQ1MGI0NmZhODQ4YWUiCmZsYXNoSUM6J0FjdGlvbkNvbnRyb2xsZXI6OkZsYXNoOjpGbGFzaEhhc2h7AAY6CkB1c2VkewAiGHVzZXJfY3JlZGVudGlhbHNfaWRpBjoPc2Vzc2lvbl9pZCIlZDk4Mjg0MTBkOGZiMGJkOTYxNDMyZmY5NzNkMGE1NDY%3D--c46c8a31da47833661393e399510802b2924f128&authenticity_token=5k3srZC3Ti98bE5tzY6uWwcYkrQ8gKMNhYCePlS09HE%3D">
怎么会这样?