RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: bodaonline
this works, thanks!
Mind you: In rails 4 dont use attr_accessible in the model, instead in the controller add:
private def post_params params.require(:post).permit(:title, :intro, :content, :user_id, :tag_list) end
ehh this took me an hour to figure out :)
ps: nice to add this in the modell though:
validates :tag_list, presence: true
this works, thanks!
Mind you: In rails 4 dont use attr_accessible in the model, instead in the controller add:
ehh this took me an hour to figure out :)
ps: nice to add this in the modell though: