Permalink
Switch branches/tags
Nothing to show
Commits on May 18, 2012
  1. assignment 5

    dexterogieosahon-duplicate committed May 18, 2012
Commits on Apr 24, 2012
  1. ex 4

    dexterogieosahon-duplicate committed Apr 24, 2012
Commits on Apr 17, 2012
  1. exercise 3

    dexterogieosahon-duplicate committed Apr 17, 2012
  2. exercise 3

    Dexter Ogie-osahon committed Apr 17, 2012
Commits on Mar 2, 2012
  1. Exercise2: Ajaxifying reservation create/free:

    * Make reservation form remote
    * Extract reservation status and links to partials
    * Add JavaScript responder to reservations#create
    * Implement reservations#create.js.erb to update html parts with Ajax
    assimovt committed Mar 2, 2012
  2. Intro to Ajaxifying book reservation:

    * Respond with JavaScript view templates
    * Replace div element with reservation form using jQuery
    * Show form with jQuery show()
    assimovt committed Mar 2, 2012
  3. Exercise1: Styling HTML components with Bootstrap:

    * Change ul to dl in books#index
    * Add classes to buttons
    * Style the new/edit book form
    * Style error messages
    * Style flash messages
    assimovt committed Mar 2, 2012
Commits on Feb 13, 2012
  1. Homework: Books search:

    * Tests to search by title, isbn and authors
    * Add search route to books resource
    * Implement model search methods
    * Implement controller logic and render index to display found books
    * Help method to show radio buttons
    * Other necessary views
    assimovt committed Feb 13, 2012
  2. Book reservations implementation:

    * Add reservation model and tests
    * Ensure only one reservation for a book at a time
    * Make books are initially reserved
    * Add association between Book and Reservation
    * Setup nested resources
    * Implement reserving and freeing a book
    * Add a label and button based on reservation status
    assimovt committed Feb 13, 2012
Commits on Feb 10, 2012
  1. Implement Books controller and views:

    * Add a books resource and the book listing page
    * Showing Books
    * Creating Books
    * Add flash messages to layout
    * Editing and Updating Books
    * Deleting books
    assimovt committed Feb 10, 2012
  2. Implement Book model:

    * Generate a Book model
    * Update books fixtures with some sensible data
    * Test valid book creation
    * Test book title presence and uniqueness
    * Test book authors presence
    * Add ISBN field to Book model
    * Change IsbnValidator to work as ActiveRecord validator
    * Add custom IsbnValidator to Book model
    assimovt committed Feb 10, 2012
  3. Unit Testing IsbnValidator:

    ruby -Itest test/unit/isbn_validator_test.rb
    ruby -Itest test/unit/some_other_test.rb -n test_name
    rake test
    rake test:units
    assimovt committed Feb 10, 2012
  4. ISBN Validator Class

    * Add lib to autoload path by adding the following line to config/application.rb:
    config.autoload_paths = %W(#{config.root}/lib)
    * Add a class called IsbnValidator to lib. The class initializes with an isbn string
    and has a method "valid?", which returns true or false depending on whether isbn is valid.
    assimovt committed Feb 10, 2012
Commits on Jan 22, 2012
  1. First Feature - Index page:

    * First remove the public/index.html page, which is the default static page in new Rails applications
    rm public/index.html
    * Then generate a site controller with one action called index:
    rails g controller site index
    * Edit the app/views/site/index.html.erb to add some content.
    * Finally, edit routes.rb and add a root route which points to our new controller and action.
    root :to => "site#index"
    assimovt committed with assimovt Nov 18, 2011
  2. Update README #ignore

    assimovt committed with assimovt Nov 18, 2011
  3. Deploying with Heroku:

    * Add Gems required by Heroku so that your Gemfile has these lines
    
    gem 'heroku'
    gem 'execjs'
    gem 'therubyracer'
    
    group :production do
      gem 'pg'
    end
    
    group :development do
      gem 'sqlite3'
    end
    
    * Configure Heroku production environment to compile assets by
    Open config/production.rb and set compile to true
    config.assets.compile = true
    
    * Install Gems and commit to repository
    bundle install
    git add .
    git commit -a
    git push
    
    * Configure Heroku for this application, enter Heroku credentials if prompted
    heroku create
    * Heroku will configure Git remote to point to created server
    * To automatically deploy this application to Internet
    git push heroku master
    assimovt committed with assimovt Nov 18, 2011
  4. Setting up:

    * Install Bundler - Application dependency manager
    gem install bundler
    * Install Rails
    gem install rails
    * Create a new Rails application
    rails new library
    * Start the server
    rails server
    * Hello, Rails! Open the browser at
    http://localhost:3000
    assimovt committed Nov 15, 2011