#33 new
paul (at 8thlight)

require in styles.rb

Reported by paul (at 8thlight) | September 7th, 2008 @ 10:07 AM | in Limelight 0.6

Can not organize the styles by the prop idea they are in. I want the styles file to be

require "main_style"


and main_style.rb is somewhere in the search path, looking like:

main {
  # some style
}

I get the error:

Exception in thread "main" /Users/paulwpagel/Projects/todont/styles/main_style.rb:1: ./styles.rb:1: undefined method `main' for main:Object
    ----- ./styles.rb lines 1 - 1 -----
    * 1: require File.expand_path(File.dirname(__FILE__) + "/styles/main_style")
 (Limelight::BuildException)
    from /Users/paulwpagel/Projects/todont/styles/main_style.rb:27:in `require'
    from /Users/paulwpagel/Projects/limelight/jruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
    from (eval):1:in `load_styles'
    ...internal jruby stack elided...

when I try that now

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Elegant UI Framework for Ruby

People watching this ticket

Pages