Can anyone tell me how to implement badgeville
in ruby on rails?
EDIT: how can I apply this on ruby on rails?
I'm not sure how this particular gem work, but normally it should work with following steps
add the following code to badgeville.rb
BadgevilleBerlin::Config.conf( :host_name => " http://example.com ", :api_key => MY_API_KEY)
restart
then you should be able to use the following commands inside your controllers/ models
Ex:
new_site = BadgevilleBerlin::Site.new( :name => "My Website", :url => "mydomain.com", :network_id => MY_NETWORK_ID ) success = new_site.save
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.