lundi 12 septembre 2016

PaperClip gem and Strong Parameters in Ruby on Rails.

I am using paperclip gem to upload images in my ruby on rails app. I have followed every step in the documentation and it seems like paperclip is not a problem its the strong params.

The error Im getting is as in the image.

I have mentioned image in my params code like this.

def room_params
    params.require(:room).permit(:title, :description, :image)
  end

Please help! if any other information required please tell me!

Aucun commentaire:

Enregistrer un commentaire