Closed andersennl closed 9 years ago
app.make_button
is a method of RedAlert. Add gem "RedAlert"
to your gemfile, bundle and try again... but also note that app.make_button
is specifically meant for using alert views, so you'll need a bit more than what you have in your some_action
method above to get it working.
Thanks for your fast answer! That was it, the RedAlert gem was missing. Maybe this dependency could be mentioned in the docs: docs
sounds like we should require the redalert gem in the rakefile - since its listed as a runtime dependency.
Pushing a PR momentarily. thanks for pointing this out @andersennl
Hi, In a
PM::TableScreen
I'm trying to use theapp.make_button
method to create some buttons for an ActionSheet. Unfortunately I get anundefined method
error.I copied the button code from an example of the docs, my code looks basically like this (the error happens using this code):
Here is the stack trace (I can provide the generated crashlog if needed):
I've triple checked everything so I hope it's not a typo from my side. Thanks a lot for your help and your work on this brilliant gem.