On Sat, Oct 10, 2009 at 11:07 PM, Hunt Jon <[email protected]> wrote:
> > Hi -- I'm confused what :lib in config.gem(). > > When do I need it to specify? > What should I specify? I know that I need to put the name of the > library, but the name is always the same with the gem name? > > Also do I need to add "require 'the_library'" when I actually use it > somewhere in Rails? Or does the config.gem() runs "require" statement > as well? > > Sorry for the stupid questions. > In short, if the gem name differs from the library name that one would require, then you'll need to tell Rails by specifying the name of this library like config.gem "gem-name", :lib => "lib-name" For example, config.gem "sqlite3-ruby", :lib => "sqlite3" config.gem "aws-s3", :lib => "aws/s3" Good luck, -Conrad > > - Jon > > > > --~--~---------~--~----~------------~-------~--~----~ 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

