Thanks, guys, working on those suggestions now. On Sep 29, 5:45 pm, Matt Jones <[email protected]> wrote: > On Sep 29, 2011, at 5:37 PM, [email protected] wrote: > > > Thanks so much for the quick response, Kevin. I appreciate your time! > > > Sorry, I should have mentioned that I have made those edits - they > > seemed more straightforward than this, so I did not include pasties of > > them, but perhaps I should have mentioned. The pasties are below. > > > Seeing that I have done those, any further thoughts on getting the map > > drawn? > > > Model: > > > http://pastie.org/2613465 > > > Controller: > > > http://pastie.org/2613476 > > Setting an instance variable at the class level won't do what you expect - > for instance, this: > > class SomeClass > > @some_var = 'FOO' > > def index > puts @some_var > end > end > > will *not* display 'FOO'. You'll need to override the actions you want to > load the @json instance variable, like this: > > class BpsController < ApplicationController > hobo_model_controller > auto_actions :all > > def index > @json = Bp.all.to_gmaps4rails > hobo_index > end > end > > --Matt Jones
-- You received this message because you are subscribed to the Google Groups "Hobo Users" 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/hobousers?hl=en.
