Hackathon portal.
emilyengle / hackathon-portal Goto Github PK
View Code? Open in Web Editor NEWHackathon portal.
License: MIT License
Hackathon portal.
License: MIT License
this needs the following methods:
index
, show
, new
, create
, edit
, update
, destroy
everything but new
and create
should require authentication.
This will most likely be nested something like this: /sponsors/sponsor1/pledges/new
Only admins can create/view these.
Needs the following:
index
, new
, create
, edit
, update
, destroy
requires authentication
name
string
description
string
completed
boolean
related_url
string
has_many :sponsor_tasks
has_many :sponsors, :through => :sponsor_tasks
NoMethodError in SponsorsController#show
undefined method `contacts' for nil:NilClass
Extracted source (around line #67):
def verify_correct_user
unless current_user.admin? || @sponsor.contacts.includes?(current_user)
flash[:error] = "You are not authorized to view this page."
redirect_to root_path
end
end
@kylekthompson do today or have to pay
This is the main area for the sponsor/admin views (to see anything related to sponsors).
This needs the following:
index
, show
, new
, create
, edit
, update
, destroy
everything here requires authentication
first_name
string
last_name
string
email
string
password_digest
string
phone_number
integer
username
string
user_type
enum (:hacker
, :admin
, :sponsor
)
has_many :sponsor_users
has_many :sponsors, :through => :sponsor_users
Not sure what this will look like yet!
level
enum (what are the sponsor pledge levels?)
pledge_type
enum (:monetary
, :inkind
, :both
)
amount_pledged
integer
amount_paid
integer
inkind_pledged
integer
inkind_received
integer
sponsor_id
belongs_to :sponsor
sponsor_id
integer
task_id
integer
belongs_to :sponsor
belongs_to :task
Session stores user id, if account is deleted or id changed, etc. then error occurs.
this needs the following methods:
new
, create
, destroy
these are needed for login/logout
This should only be accessible by admins and should have the following:
index
, show
, new
, create
, edit
, update
, destroy
authentication required
add a filter for tasks
name
string
logo
string
registration_password
string
active
boolean
inactive_reason
string
fiscal_year_start_month
integer
notes
text
has_many :pledges
has_many :sponsor_tasks
has_many :tasks, :through => :sponsor_tasks
has_many :sponsor_users
has_many :contacts
=> slightly gross SQL query
has_one :primary_assignee
=> gross SQL query
has_one :secondary_assignee
=> gross SQL query
sponsor_id
integer
user_id
integer
role
enum (:primary
, :secondary
, :sponsor
)
belongs_to :user
belongs_to :sponsor
Fix add pledges button to display the add pledges fields (cough you had one job, @unkrich )
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.