RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: vgracia
I'm surprised there were no comments about issues with adding an entry. This took me sometime to figure out so posing here.
I was getting a 500 error when trying to add a name entry:
Completed 500 Internal Server Error in 1ms
I guess in rails 4 some extra parameter requirements are needed:
more info here:
Here's my implementation of the fix. Let me know if I overlooked something and this is not really needed please!
class EntriesController < ApplicationController
respond_with Entry.update(params[:id], params[:entry])
# permissible attributes.
Uhg... spent so much time trying to figure this out ... THANKS!
I am new to rails/backbone so it was pretty confusing.