Giter Club home page Giter Club logo

rulers's Introduction

Rulers

This is the Ruby on Rulers framework from the book "Rebuilding Rails" by Noah Gibbs. You can find the canonical branch of this framework at "http://github.com/noahgibbs/rulers".

It is primarily for instruction, but it works just fine as a web framework if you want a simple one.

There are tags for different chapter starter code. Type "git tag" for a list.

Installation

Add this line to your application's Gemfile:

gem 'rulers', :git => [email protected]:noahgibbs/rulers.git

And then execute:

$ bundle

Or install it yourself as:

$ gem install rulers

For git gems, you'll need to run "bundle exec rackup" instead of just "rackup".

Usage

This framework is instructional and there are good reasons not to use it unmodified in production. Rails is a relatively secure framework, but Rulers is not.

For further details, see the Rails security guides and/or chapter 10 of Rebuilding Rails.

Contributing

For significant contributions, please fork.

I have no problem with other people starting from this code for any purpose and for any project. You probably want to rename it, though.

rulers's People

Contributors

noahgibbs avatar huoxito avatar

Stargazers

Samuel Couillard avatar Syed M. Sawaid avatar Cao Van Bi avatar Max M avatar Simon avatar Neil van Beinum avatar  avatar Raul Fernando avatar Gustavo Valenzuela avatar Chenchen Zheng avatar fteiyp avatar Gabriel Schimit avatar  avatar Shannon Fairchild avatar Johnson avatar  avatar Jacob Mukete avatar Ernest Lee avatar  avatar Omar Bahareth avatar Guillaume Occuly avatar Hussein Morsy avatar Naoya Ueda avatar Charles FD avatar Helmi Hidzir avatar Kensuke Yanase avatar Dario Daić avatar y.ogasa avatar Haroon Ahmed avatar Ekct avatar LuoJi Zhu avatar Bojan Jordanovski avatar Misha Sebalo avatar Vitor Oliveira avatar yekhaung avatar Tran B. V. Son avatar 洪梓凱 avatar Jeb Coleman avatar Stan Chen avatar Johnny Lai avatar BadAllOff avatar Narasimha Reddy  avatar Minh Phan avatar xcplus avatar Nic avatar Kenny Meyer avatar matrixbirds avatar  avatar Dave Riddle avatar Roi avatar Ryo Hashimoto avatar smellycat avatar Aboobacker MK avatar Dawny Wu avatar  avatar Ivan avatar Wazery avatar Julio Lopez avatar 6david9 avatar  avatar Connor Jacobsen avatar GuruM avatar Vanessa Pai avatar Alex Wood avatar Ben Guillet avatar Juanito Fatas avatar Dan Williams avatar Rebecca Miller-Webster avatar  avatar Christoph Jasinski avatar Paul Fioravanti avatar

Watchers

 avatar Bardan Rana avatar GuruM avatar Zeff Morgan avatar James Cloos avatar Casiano Rodriguez-Leon avatar  avatar

rulers's Issues

Using pry helped understand things.

Just fyi, I found it really helpful to pry into everything and see what was going on at different stages, like so;

module Rulers
  class Application
    def get_controller_and_action(env)
      require 'pry'; binding.pry 
      _, const, action, after = env["PATH_INFO"].split('/', 4)
      const = const.capitalize
      const += "Controller"

      [Object.const_get(const), action]
    end
  end
end

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.