-
-
Save desbest/1451868edc6fe685f027 to your computer and use it in GitHub Desktop.
Why can't I make my own Ramaze model?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'ramaze' | |
Ramaze.options.roots = [__DIR__] | |
require __DIR__('model/init') | |
require __DIR__('helpers/extrahelpers') | |
require __DIR__('controller/init') | |
#Ramaze::Log.info('Copyright. All Rights Reserved.') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c:\mowes\www\compesh>ramaze start | |
C:/mowes/ruby/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': c:/mowes/www/compesh/helpers/extrahelpers.rb:1: syntax error, unexpected $end | |
(SyntaxError) | |
endndndnd | |
... ^ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Ramaze | |
module Helper | |
module ExtraHelpers | |
def generate(current=nil) | |
# Generate some HTML that will make the side bar | |
return '12' | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment