We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi Im trying to setup sync gem in my project but the ui is not updating real time I am using Rails 5 beta 4, In my gemfile i have
gem 'faye' gem 'thin', require: false gem 'sync'
class ListItemsController < ApplicationController enable_sync
def create @list = List.find(params[:id]) @list_item = @list.list_items.create(list_item_params) @list_item.save sync_new @list_item redirect_to @list end show.html.erb <%= sync partial: 'list_item', collection: @list.list_items %>
_list_item.html.erb <%= best_in_place list_item, :name, :as => :input%>
The template is rendering but doesnt refresh automatically
Thank you
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi Im trying to setup sync gem in my project but the ui is not updating real time
I am using Rails 5 beta 4,
In my gemfile i have
Sync
gem 'faye'
gem 'thin', require: false
gem 'sync'
class ListItemsController < ApplicationController
enable_sync
def create
@list = List.find(params[:id])
@list_item = @list.list_items.create(list_item_params)
@list_item.save
sync_new @list_item
redirect_to @list
end
show.html.erb
<%= sync partial: 'list_item', collection: @list.list_items %>
_list_item.html.erb
<%= best_in_place list_item, :name, :as => :input%>
The template is rendering but doesnt refresh automatically
Thank you
The text was updated successfully, but these errors were encountered: