No description, website, or topics provided.
Ruby JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
config
db
doc
lib/tasks
public
script
test
vendor/plugins
.gitignore
Gemfile
Gemfile.lock
README-BACKUP.markdown
README.markdown
Rakefile
config.ru

README.markdown

Ponnyexpressen

Features

Authorization 1.0

  • Login through facebook with all normal functionality, and if it's the first time, save user information in the user database.

Routes

/auth/facebook/callback => "sessions#create"
/login => "auth#facebook"
/logout => "sessions#destroy"

Weblog 1.1

  • Each user should have a basic weblog.
  • Users should be able to post comments on other peoples blogs.

Profile 1.2

  • Each user should be able to update their user information.
  • Each user should have a profile page with basic information.

Jobs 1.3

  • Each user should be able to post jobs and edit their jobs.
  • Each user should be able to see all posted jobs.

Design 1.4

Administration

Advertising

Ponies for sale

Other

Newsletter? CV?

Models

User(1.0.0)

# 1.0.0       #1.0.0   #1.0.0#1.2.0           #1.2.0   #1.2.0                         #1.2.0 #1.2.0
#-------------#--------#-----#----------------#--------#------------------------------#------#------------#
|Name         |Provider|Uid  |Email           |Nickname|Facebook                      |Gender|Description |
|-------------|--------|-----|----------------|--------|------------------------------|------|------------|
|Emil Skogsund|Facebook|1    |Skogix@gmail.com|Skogix  |http://www.facebook.com/Skogix|Male  |My biography|
#-------------#--------#-----#----------------#--------#------------------------------#------#------------#

Post(1.1.0)

#1.1.0   #1.1.0           #1.1.0
#--------#----------------#--------#
|Title   |Content         |User_id*|
|--------|----------------|--------|
|My blog!|This is my blog!|1       |
#--------|----------------#--------#

Comment(1.1.3)

#1.1.3   #1.1.3   #1.1.3
#--------#--------#-----------#
|Post_id*|User_id*|Content    |
|--------|--------|-----------|
|2       |1       |My comment!|
#--------#--------#-----------#

Job(1.3.0)

#1.3.0          #1.3.0    #1.3.0       #1.3.0                     #1.3.0   #1.3.0
#---------------#---------#------------#--------------------------#--------#-------#
|Title          |Type     |Salary      |Description               |Location|User_id|
|---------------|---------|------------|--------------------------|--------|-------|
|Ruby programmer|Full time|24.000/month|Create homepages with RoR!|Sala    |1      |
#---------------#---------#------------#--------------------------#--------#-------#

Model relationships

Job

belongs_to :user

User

has_many :posts
has_many :comments
has_many :jobs

Post

belongs_to :user
has_many :comments

Comment

belongs_to :user
belongs_to :post

Routes

resources :comments
resources :posts
resources :user

Changelog

1.0

  • 1.0.0 Basic authorization with facebook.

1.1

  • 1.1.1 Created model post and controller posts for weblog. Also added a authorization function to deny access to posts controller except index and show.
  • 1.1.2 Created CRUD for posts controller and the belonging views. Also routed user to post.
  • 1.1.3 Added comments function.

1.2

  • 1.2.0 Added columns email, nickname, facebook, gender, description to user model. Updates with information from facebook callback.
  • 1.2.1 Added delete function for users.
  • 1.2.2 Added a profile page and users can now edit their profile.
  • 1.2.3 Redesigned the routing and changed some views.

1.3

  • 1.3.0 Added a basic job function.

1.4

  • 1.4.0 Initiated compass for design and added javascript to modify the text