Skip to content
This repository has been archived by the owner on Feb 28, 2020. It is now read-only.

Put a link to "projects" on the front page #65

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

rfilmyer
Copy link

I accidentally donated to the general fund because I had no idea how to get to donate to a specific project... so I put a link on the front page.

I've literally never done anything rails related, so IDK if I should be doing some templating stuff or whatever, so I just did it in HTML. Hope that's fine.

@rfilmyer
Copy link
Author

rfilmyer commented Sep 14, 2016

here's what it looks like:
Responsive:
screen shot 2016-09-13 at 10 09 40 pm
Full width:
screen shot 2016-09-13 at 10 09 49 pm

@patrickod
Copy link
Member

instead of having a 3rd header with "projects", let's reorder the "Recent Donations" and "Current Projects" headers such that projects are surfaced first, and make the individual project list items link to the specific projects page. We could also make the "Projects" header a link to the /projects route which lists them all.

@patrickod
Copy link
Member

@rfilmyer
Copy link
Author

I'm trying to start up a test instance to make the change, but how do I bootstrap the database (I get this error:

PG::UndefinedTable: ERROR: relation "charges" does not exist LINE 7: WHERE a.attrelid = '"charges"'::regclass ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod, (SELECT c.collname FROM pg_collation c, pg_type t WHERE c.oid = a.attcollation AND t.oid = a.atttypid AND a.attcollation <> t.typcollation) FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"charges"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum
)

@patrickod
Copy link
Member

ah I should update the README with more comprehensive environment setup instructions.

The command you're looking for here is rake db:schema:load which will create the tables and other associations defined in db/schema.rb which is the versioned schema resulting from all the migrations in db/migrate/ being run.

@rfilmyer
Copy link
Author

How do I make a new project? Is there a config file somewhere that I add, or an admin interface I can go to?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants