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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Machinist Users
What's on line 43? Got a stack trace?
Chris Johnston
unread,
Oct 29, 2009, 1:51:15 AM10/29/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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