我的手法是“你”的。 我如何证实这一点?
collection_select and select Rails helpers: Which one should I use? I can t see a difference in both ways. Both helpers take a collection and generates options tags inside a select tag. Is there a ...
我的手法是“你”的。 我如何证实这一点?
您是否希望在用户终端或服务器终端上验证? 我曾经有需要这样做的形式。 我的解决办法是使用javascript,将嵌入的代码直接插入网页,从而允许用户在最后提交表格之前对其复制/印刷工作进行预审。 “Face”在张贴“YouP”链接时大体相同。
On the server-side, there are two things that I think could help you: the Youtube API, and the fact that every video on Youtube has a "v" parameter. The API allows for searching by this video id. (Details here: http://code.google.com/apis/youtube/2.0/developers_guide_protocol_video_entries.html)
然后,你将从APIC的答复中确定是否存在该录像。 唯一另一个微小部分可能是将“v”参数放在嵌入的法典中,因为我认为所穿的代码有时会发生变化。 例
... param name="movie" value="http://www.youtube.com/v/5p0QtJMKt1s?version=3" ...
is part of the embed code. And this is the link to that same video on YouTube:
http://www.youtube.com/watch?v=5p0QtJMKt1s
此外,如果你刚刚从旧法典中删除了URL,并把它压在你们的浏览器上,那么它实际上也发挥了作用。
http://www.youtube.com/v/5p0QtJMKt1s
So, in summary, get acquainted with the Youtube API in your language of choice, figure out how to parse the "v" parameter from embed code, and use them together.
If your user is just giving you the video number, then YouTube effectively validates it for you - if the video is invalid YouTube will say so.
我建议不要允许用户进入整部旧的代码,因为他们可以进入对你来说没有意义的其他选择。
一种方式是向用户证实他们已经正确进入,即使录像在被插入的代码中打字之后,能够立即得到反馈。
和我一样,你只能验证旧法的格局,但不能说,如果这部法典有某种有效的录像。
collection_select and select Rails helpers: Which one should I use? I can t see a difference in both ways. Both helpers take a collection and generates options tags inside a select tag. Is there a ...
We ve deployed our rails app to EC2. In our setup, we have two proxies on small instances behind round-robin DNS. These run nginx load balancers for a dynamically growing and shrinking farm of web ...
As part of a web application I need an auth-code to pass as a URL parameter. I am currently using (in Rails) : Digest::SHA1.hexdigest((object_id + rand(255)).to_s) Which provides long strings like : ...
I ve installed RubyCAS-Client version 2.1.0 as a plugin within a rails app. It s working, but I d like to remove the ?ticket= in the url. Is this possible?
I have a these 3 models: class User < ActiveRecord::Base has_many :permissions, :dependent => :destroy has_many :roles, :through => :permissions end class Permission < ActiveRecord::...
I m building an xml document from a hash. The xml attributes need to be in order. How can this be accomplished? hash.to_xml
guys which text editor is good for Rubyonrails? i m using Windows and i was using E-Texteditor but its not free n its expired now can anyone plese tell me any free texteditor? n which one is best an ...
I’m developing an application dedicated to generate statistical reports, I would like that user after saving their stat report they save sql queries too. To do that I wrote the following module: ...