Ruby on Rails
Friday, April 1, 2011
Thanks so much! The require_relative is much cleaner. 1.9 works for me.
On Fri, Apr 1, 2011 at 12:27 PM, Kendall Gifford <zettabyte@gmail.com> wrote:
This is a commonly used convention:
#
# Yes, the double "../" are needed if requiring "../spec_helper.rb" this way
#
require File.expand_path("../../spec_helper.rb", __FILE__)
If using ruby 1.9, I know there is #require_relative but I've never really used it yet.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment