Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with created property #3

Closed
james-ai opened this issue Jan 30, 2013 · 1 comment
Closed

Problem with created property #3

james-ai opened this issue Jan 30, 2013 · 1 comment

Comments

@james-ai
Copy link
Contributor

When I try to add the created property I get a NoMethodError.

For example:

calendar.event do
  created "20130130T150116Z"
end

I get the following:

NoMethodError: undefined method `new' for nil:NilClass
    from /Users/jamessmith/.rvm/gems/ruby-1.9.3-p0/gems/icalendar2-0.1.1/lib/icalendar2/component/base.rb:66:in `block in define_accessor'
    from (irb):33:in `block in irb_binding'
    from /Users/jamessmith/.rvm/gems/ruby-1.9.3-p0/gems/icalendar2-0.1.1/lib/icalendar2/calendar.rb:53:in `instance_eval'
    from /Users/jamessmith/.rvm/gems/ruby-1.9.3-p0/gems/icalendar2-0.1.1/lib/icalendar2/calendar.rb:53:in `event'
    from (irb):32
    from /Users/jamessmith/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.2/lib/rails/commands/console.rb:47:in `start'
    from /Users/jamessmith/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.2/lib/rails/commands/console.rb:8:in `start'
    from /Users/jamessmith/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.2/lib/rails/commands.rb:41:in `<top (required)>'
    from script/rails:6:in `require'
    from script/rails:6:in `<main>'

I'm on Mac 10.8.6 and I think most of the other info is in the exception output above.

@james-ai
Copy link
Contributor Author

Wrote code for this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant