Sign in through GitHub

emclab's Profile

GitHub User: emclab

Comments by

Avatar

We are trying to make the sample code working on post and user (instead of product and category) with user has_many posts and a post belongs_to a user. However there is a network error below. (even when source: was changed to source: ["choice1", "choice2"] and data: (autocomplete_search :@users.map(&:name)} in view file

"NetworkError: 404 Not Found - http://localhost:3000/ajax/users?term=cha"

Any idea about fixing the error?

Avatar

Here is the error running under 3.1.0. Can not figure out why. Any suggestions? thanks.

=========================error===
wrong number of arguments (1 for 0)

Rails.root: D:/rails_proj/emclab-failed
Application Trace | Framework Trace | Full Trace

config/initializers/accessible_attributes.rb:7:in mass_assignment_authorizer'
app/controllers/categories_controller.rb:20:in
create'