RailsCasts Pro episodes are now free!

Learn more or hide this

bodaonline's Profile

GitHub User: bodaonline

Comments by

Avatar

Mind you: In rails 4 dont use attr_accessible in the model, instead in the controller add:

ruby
   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:

ruby
  validates :tag_list, presence: true