Ruby on Rails Thursday, September 30, 2010

Greg, I have a working example that covers a bunch of gem features, it
might help you: http://keithschacht.com/creating-a-rails-3-engine-plugin-gem/


On Sep 29, 11:20 pm, Greg Willits <li...@ruby-forum.com> wrote:
> I'm accustomed to making plugins for Rails 2, and recently updated those
> for Rails 3 (minor differences in structure). Spent most of this week
> figuring out how to make most of those gems.
>
> One of them I am having trouble with -- this one involves an /app
> directory with some helpers and some views. It has worked great as a
> Rails2 and even Rails3 plugin. As a gem, I can't seem to get Rails to
> see the files in /app.
>
> I've been using jeweler. I don't use git, so I have been manually
> specifying files like this:
>
> Jeweler::Tasks.new do |gem|
>   #....
>   gem.files.include('app/**/*.rb')
>   gem.files.include('lib/**/*.rb')
>   #....
> end
>
> That's apparently not enough. The code in the gem works until the main
> app hits something needed from the gem's /app folder.
>
> I'm missing something. Googling and trial & error are failing me.
>
> What clue say ye? Thx.
>
> -- gw
> --
> Posted viahttp://www.ruby-forum.com/.

--
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.

No comments:

Post a Comment