https://github.com/bitpuffin/camping-seperate-mvc-files
A simple example on how to split up you model view and controller in camping. Simple, right?
https://github.com/bitpuffin/camping-seperate-mvc-files
Last synced: about 1 year ago
JSON representation
A simple example on how to split up you model view and controller in camping. Simple, right?
- Host: GitHub
- URL: https://github.com/bitpuffin/camping-seperate-mvc-files
- Owner: BitPuffin
- Created: 2011-10-14T20:04:51.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2011-10-14T20:43:58.000Z (over 14 years ago)
- Last Synced: 2025-01-20T17:16:37.707Z (over 1 year ago)
- Language: Ruby
- Homepage: http://whywentcamping.com
- Size: 93.8 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
A simple example on how to split up your
Model, view and controller.
As your can see, all you need to do is to
require (or in my case require_relative since
I'm using ruby 1.9.2) in your application file
(mine is called multitest.rb).
Both require and require_relative should work
well!.
This is useful when making apps with more code
that can get too hard to handle in one file
(you usually write everything in one file
using camping).
That is all!