Skip to content
New issue

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

UI not updating realtime #223

Open
faethonm opened this issue May 3, 2016 · 0 comments
Open

UI not updating realtime #223

faethonm opened this issue May 3, 2016 · 0 comments

Comments

@faethonm
Copy link

faethonm commented May 3, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant