This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# nginx.conf | |
user nginx; | |
worker_processes 1; | |
error_log /var/log/nginx/error.log; | |
pid /var/run/nginx.pid; | |
timer_resolution 500ms; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "koala" | |
@graph = Koala::Facebook::API.new("fb_app_token") | |
feed = @graph.get_connections("me", "feed") | |
feed.each do |f| | |
@graph.put_like(f["id"]) # like wall post | |
@graph.put_comment(f["id"], "Thanks a lot :)") # comment on wall post | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Showing /home/User/.rvm/gems/ruby-1.9.3-p194/gems/activeadmin-0.5.0/app/views/layouts/active_admin.html.arb where line #1 raised: | |
undefined method `get' for nil:NilClass | |
actionpack (3.2.8) lib/action_view/helpers/capture_helper.rb:142:in `content_for' | |
activeadmin (0.5.0) lib/active_admin/views/pages/layout.rb:16:in `main_content' | |
activeadmin (0.5.0) lib/active_admin/views/pages/base.rb:78:in `block (2 levels) in build_main_content_wrapper' | |
arbre (1.0.1) lib/arbre/element/builder_methods.rb:31:in `block in build_tag' | |
arbre (1.0.1) lib/arbre/context.rb:92:in `with_current_arbre_element' | |
arbre (1.0.1) lib/arbre/element/builder_methods.rb:49:in `with_current_arbre_element' |