Model association name "context" not working in blueprint

9 views
Skip to first unread message

Chris Johnston

unread,
Oct 22, 2009, 5:12:36 PM10/22/09
to Machinist Users
Hi all,

I have the following in my blueprint.rb file:

Context.blueprint do
name
end

Extension.blueprint do
name
context { Context.make }
end

And I am getting the following error when I try and build an
Extension:

No description supplied for example group declared on app/spec/
blueprints.rb:43


For some reason, it doesn't seem to like the word "context".

Any ideas?

Pete Yandell

unread,
Oct 28, 2009, 11:33:07 PM10/28/09
to Machinist Users
What's on line 43? Got a stack trace?

Chris Johnston

unread,
Oct 29, 2009, 1:51:15 AM10/29/09
to machini...@googlegroups.com
Line 43: context { Context.make }

The interesting thing is that I can call Context.make from other parts of my code and it works fine, just not in the blueprint.rb file.

Chris
--
You know you've achieved perfection in design, Not when you have nothing more to add, But when you have nothing more to take away.
- Antoine de Saint-Exupery

w: http://www.fuzzylizard.com
e: ch...@fuzzylizard.com
p: 403.971.9126

http://www.linkedin.com/in/christopherjohnston

Pete Yandell

unread,
Nov 5, 2009, 6:01:20 PM11/5/09
to Machinist Users
The code you've pasted should work just fine. There must be something
else in your setup that's interfering.

Can you post some runnable code that reproduces the error, or at least
a stack trace?

- Pete
Reply all
Reply to author
Forward
0 new messages