Example of Ruby on Rails project
Ruby CSS CoffeeScript JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
config
db
doc
lib
log
public
script
test
tmp/cache
vendor
Gemfile
Gemfile.lock
README.md
README.rdoc
Rakefile
config.ru

README.md

RailsExample

This is an example of Ruby on Rails project. It creates lightweight collaborative blog platform with the following features:

  • Login, logout, register users
    • Change password
    • Redirect to previous page after login
    • Forgot password form
    • Send confirmation emails
    • TODO: Resend confirmation emails
  • Create posts
  • Create comments
  • Create tags
  • Some handmade ACL (view side and controller side):
    • Only authorized users can create new posts, new comments
    • Only authors can edit and delete own posts
    • Only authors delete own comments
  • Other security things:
    • Personal user salt hash
    • Reset session after successful login
    • Remove unused routes
    • TODO: Prevent CSRF
    • TODO: Prevent XSS
  • Different titles on different pages
  • Hide Comments and Tags captions if no items
  • TODO: Internationalization

Requirements

  • Ruby 1.9
  • gem tool

Tehnologies

  • Ruby 1.9
  • Ruby on rails 3.2 (guide)
  • mod_passenger for apache (guide)
  • Twitter bootstrap (guide)