Activity
Mind to elaborate more on your issue? What happens if you didn't set config.assets.compile = true
? Does the assets not served? Is the stylesheet/ javascript tag correctly placed in views?
If you are using ActiveStorage, check out this gem : https://github.com/igorkasyanchuk/active_storage_validations
You can use square aspect validation on this gem : validates :avatar, aspect_ratio: :square
Hmm maybe
articles = Article.where(category: params[:category])
articles = articles.where(author_id: author.id) if author.present?
# use your articles here...
You can tag specs, say for specs related to checkout flow, you can tag them as "checkout" like this :
# specs/discount_checkout_spec.rb
it "should checkout with discount", :checkout do
# some test code here
end
then you can specify rspec to only run tests are tagged with :checkout like this : rspec spec --tag checkout
Posted in Mysql2::Error::ConnectionError: Access denied for user 'root'@'localhost' (using password: NO)
If you are using Homebrew and Mac for the MySQL installation, try this : https://stackoverflow.com/a/44147346