Coder Social home page Coder Social logo

apo's Introduction

APO Rho Pi

This is the repo for Rho Pi's website.

The basic layout is as follows:

  • config/routes matches url's to its respective controller (and action within the controller)

match '/user/:id', to: 'user#show', via: [:get], as: 'user'

'aporhopi.org/user/:id' will go to the show action within the user controller, which will show the profile of the user with the specified id.

The profile page will be displayed according to the app/views/user/show.html.erb file.

  • app/controllers/ contains all the controller files, each of which define related actions.

The user_controller.rb file contains actions such as "show," "greensheet, and "all" which contains the code relating to showing a user's profile, creating a user's greensheet, or displaying all the users.

Controllers set the instance variables (preceded by a '@') that are used in the corresponding view file with the same name.

  • app/models/ contains all the model files, each of which define a table in the database.

The user.rb file sets defines the relationships between users and different models (events, attendances, greensheets)

  • app/views/ contains all the view files, which contain the HTML (and Embedded Ruby to make it dynamic) that describes how to render the webpage.

The user/show.html.erb file contains the code to display a user's profile page.

  • db/migrate/ contains all the files that describe what properties each of the models contain.

2015..._add_fieldsto_user.rb describes that the user table in the database contains rows holding username, family, line, pledge class, and other relevant information.

  • app/assets/stylesheets/ contains all the files with the CSS code to format the views.

  • app/assets/javascripts/ contains all the JavaScript/CoffeeScript files.

apo's People

Contributors

matthew-chinn avatar kn-lim avatar lawrencepoynt avatar jsenar avatar y6mo avatar ando3 avatar sqrider avatar nratanap avatar ando3pan avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.