PRX / apn_on_rails

Apple Push Notifications on Rails
http://rubydoc.info/github/PRX/apn_on_rails/master/frames
MIT License
538 stars 156 forks source link

no such file to load -- apn_on_rails_tasks #12

Open michaelkirk opened 14 years ago

michaelkirk commented 14 years ago

Following the setup instructions, I've put this in my rakefile:

begin require 'apn_on_rails_tasks' rescue MissingSourceFile => e puts e.message end

But rake is not finding the file:

"no such file to load -- apn_on_rails_tasks "

I have the 0.4.0 version installed in vendor/gems/apn_on_rails-0.4.0/ so I was able to get around this problem by changing my rakefile to:

begin require 'vendor/gems/apn_on_rails-0.4.0/lib/apn_on_rails_tasks' rescue MissingSourceFile => e puts e.message end

But that's not very convenient. It seems like the gem isn't being included in my path.

FYI I'm using rails 2.1.

rebeccanesson commented 13 years ago

I don't think this require is necessary. I don't have it in my Rakefile but I have the apn_on_rails rake tasks available.