Hi
On Fri, Dec 18, 2015, at 07:54, Thanh Tran wrote:
>
> 1) Where do I put " require 'bandsintown' "?
>
you don't, bundler will do that for you if you put 'gem "bandsintown"'
in Gemfile (as how it should be done).
>
> 2) I use
>
> @venues = Bandsintown::Venue.search({
> :query => "House of Blues",
> :location => "San Diego, CA"
> })
>
>
> in my controller and then
>
>
> <pre><%= @venues.inspect %></pre>
>
>
> in the corresponding view but that just shows nil.
>
I never used the gem but you probably need to set the app_id, for
example, in config/initializers:
# config/initializers/bandsintown.rb
Bandsintown.app_id = 'your_app_id'
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/1450427053.2307263.470834121.0A62C154%40webmail.messagingengine.com.
For more options, visit https://groups.google.com/d/optout.