photogram-industrial's Introduction
photogram-industrial's People
Forkers
bpurinton flealc armstrca andrewhcook johnleavell akincampbell carloscastanedadev saraschoonover thierryc-dpi dpi-aldo-portillo alinasapronova jsonh0 flstudio4 dpi-ruby-on-rails melo616 ethankh thatcantbeso brendareyes-techprep ajgarner98 samuel-lubliner alejlopez139 carmanchiu ajmompr brian-waddell hibbled jorge-pioquinto jacobhoffmann257 jptran0 rjdpi dpi-appdev dpi-appdev gomezzzer ciscovlahakis wcw789 josemdo reidaumann jeeheezy phamdvincent davidvle1 evolshenanigans sera-11 salcasta andrewp8 prettyalana joannarodriguez134 evilla092 mauriushill amandaag39 kscott675 romendi jjohnson606 ctlio jpfababaer lsampson1974 dylanm22 shafaq-juda marywebby ahuynh3a lateefidris daisychew jpanto21 benjaminguzman-ayala kterhar-edu donnellycarroll phosinsk-appdev roblusk rafa-montes-a rafa-montes-a-appdev rafa-montes-a-appdev aizatibraimova adolfonava brvarner rezahusain aborov apatel-ai borvux rayguna jniewiel dylansarikas mayas1111 fadibaker92 jb520 codex-y jrzricardo kcalva reherr cindellai jt-is-coding hcontr4 saradawner2000 youngsong99 mauritzkurtphotogram-industrial's Issues
Undefined method "simple_form_for"
I'm getting an ActionView::TemplateError when running rake grade. It seems like I need to add "simple_form" gem. It should be included with Devise? It's in the Gemfile.lock. When I add "simple_form" to the Gemfile the test passes.
![image](https://private-user-images.githubusercontent.com/127764786/272717211-845e6cd6-a3c2-4be6-8214-f07129cc5a17.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjMzMzk0MTEsIm5iZiI6MTcyMzMzOTExMSwicGF0aCI6Ii8xMjc3NjQ3ODYvMjcyNzE3MjExLTg0NWU2Y2Q2LWEzYzItNGJlNi04MjE0LWYwNzEyOWNjNWExNy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgxMVQwMTE4MzFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1kMGY2MDdhYTMyMDM4YmRiZmM1OGIzN2FhMDg2OTk4ODQ2NjNlYWZlODFiNzE4YTVhODAwM2Y0NDY3ZmI4ZTc5JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.Jcop9AId6BmAKDMubxtng2pL6u-m-RgWdpsj_bDm-GE)
cc: @heratyian
Sample Data
This is in relation to Photogram Industrial Part 2, when it is time to generate sample data.
With the Follow Requests, I noticed when running the provided code that it had users following themselves, which seems like unintentional behavior and causes the task to take longer than it should.
I solved this by adding next if first_user == second_user
to the sample data generation task:
users.each do |first_user|
users.each do |second_user|
next if first_user == second_user
I also added the following custom validation to the follow_requests table:
validate :sender_cant_follow_self
def sender_cant_follow_self
if sender_id == recipient_id
errors.add(:sender_id, "can't follow self")
end
end
Navbar photos link
Nevermind :)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.