我很想知道,你们中是否有任何人对哪些是更好的,在利用其中一项要素时应考虑哪些因素。
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 ...
我很想知道,你们中是否有任何人对哪些是更好的,在利用其中一项要素时应考虑哪些因素。
我可以从另一个方面(Node.js)发言。 我刚刚写了一部与铁路3相结合的胶片,它利用 No子来聆听红星-PUBSUB电文,并相应地更新铁路头端。
Socket. IO + Node并非难以与铁路连接(特别是如果与舱面合作),而是取决于您的定向浏览器基础(如IE7),因此,在所有情况下都能获得工作权,即因为使用闪电报作为反馈(通常是在网络地图上没有工作的情况下)。
尽管如此,我高度建议Node.js + Socket。 IO。 它是超重的,有许多选择和灵活性,几乎是你想要做的事情。 我认为,铁路是建设需要计算重的前端的较大仪器的弹性网络框架。 我不会选择将其用于由事件驱动的小型应用,只是因为它只为框架使用如此多的记忆。 我热爱Ruby/Rails,但在需要一些东西来进行快速和清洁的事件处理/处理时,Node有我的投票权。
如果需要更具体的例子,我的项目Kthxbye(a Resque-esque Clone)会与Redis进行沟通,而Node则会听取他们的意见。 而联合材料则可以更新网络应用。
(对完全缺乏关于 no项目的文件表示歉意。)
我用 cr子和铁丝网 played三。 试图利用网上Socket建立动态更新观点,以便把数据反馈到客户和服务器之间。 它与“ Chrome”、“Sato 5”和“FF”合作,执行最近版本的“网络登记册”和“Cmp”没有,因此我无法在那里工作。
我同意,把鲁比拉用于整个脚步,但我感到很荣幸的是,现在的克拉普林在某些方面略低于曲线。
我决定用弹ite,用 no子(和SIOocket包) my。
亲爱!
此时,我用铁路(3)和克拉普一起书写了某种非游网。 我在诺伊斯没有经验,我只是刚刚开始使用克拉恩语,但看起来有希望。 我认为,能够使用鲁比拉是一大加一! (我开始使用“旋风”式(Python)并用该词。) Sorryshed fans!
倒数是,我发现很少关于克拉恩的第三方材料。 我猜测,考虑到新情况如何,这并不令人惊讶,但你自己还是多少回过。 如果你需要你的手,你或许应该使用 Cra。
Check out different repos of cramp. WebSockets are moving target, and living on the edge isn t that easy. github.com/maccman/cramp fork works with rescent websockets implementation, while original cramp is not up to date and under refactoring. Also take a look at eventmachine-websockets. Anyway - be prepeared to use thin+eventmachine on serverside. With cramp you should run thin in production mode , cramp is not that good yet.
为什么你把 yourself限制在废墟上?
您也可使用铁路进行实时电传:websocket-rails。
也可以使用实时框架,例如Plezi 或...... Volt和Plezi的工作都好于克拉普,我认为(但我说的是Plezi框架,我有偏见)。
这里是一个简单的对应网络服务器,有。 Plezi:
require plezi
class EchoCtrl
def index
redirect_to http://www.websocket.org/echo.html
end
def on_message data
# to broadcast the data add:
# broadcast :_send_message, data
_send_message data
end
def _send_message data
response << data
end
end
listen
# you can add, a socket.io route for JSON with socket.io
route /socket.io , EchoCtrl
route / , EchoCtrl
# exit the irb console to finish the setup and start the Plezi server
exit
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: ...