Dropbox Install Lecture SyntaxError in ListingsController#index

Gemfile source 'https://rubygems.org' ruby "2.2.1" # Bundle edge Rails instead: gem 'rails', github: 'rails/rails' gem 'rails', '4.2.5.1' # Use sqlite3 as the database for Active Record listing.rb cclass Listing < ActiveRecord::Base has_attached_file :image, :styles => { :medium => "200x", :thumb => "100x100>" }, :default_url => "default.jpg", :storage => :dropbox, :dropbox_credentials => Rails.root.join("config/dropbox.yml") validates_attachment_content_type :image, :content_type => /\Aimage\/.*\Z/ end

Posted over 3 years ago by Roman Granskyi