Activity
Posted in Error running Rails with Ruby 2.4.0
Thanks :) Steve
Posted in Post "Reaction" Feature
Hi Chris!
Is it possible for you to add or create screencast on how to integrate this cool "reaction" features?
:)
Thanks!
Posted in Slack forum notifications
how to join?
I agree :)
Posted in Error running Rails with Ruby 2.4.0
[Menj]~/RubymineProjects/myapp2$ rails s
/Users/Menj/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.0.1/lib/active_support/xml_mini.rb:51: warning: constant ::Fixnum is deprecated
/Users/Menj/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.0.1/lib/active_support/xml_mini.rb:52: warning: constant ::Bignum is deprecated
=> Booting Puma
=> Rails 5.0.1 application starting in development on http://localhost:3000
=> Run `rails server -h` for more startup options
/Users/Menj/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.0.1/lib/active_support/core_ext/numeric/conversions.rb:138: warning: constant ::Fixnum is deprecated
Hi anyone encountered same issue?
Posted in User Badges Features
Thank you so much for this @chris I will try to implement this code. :)
Posted in User Badges Features
Hi @chris!
Is it possible for you to create a screencast with this features?
Thanks :)
Posted in Check & Remove old Ruby & Rails Version?
thanks sir!
Posted in Prevent spam bots from hitting app
It might be a DDOS attack.
Posted in Check & Remove old Ruby & Rails Version?
Hi,
I need your help on how to check ruby version installed on my system and same as rails. And maybe remove them if necessary if.
Thanks
Posted in Lazy Load - Guide
Thank you Sir! :)
Posted in Lazy Load - Guide
Hi,
Anyone successfully implemented or integrated "Lazy Load" for their rails app?
Can I ask some guide/tutorials please.
Thanks :)
Posted in Active PAGES & User(s)
Hi,
Do you have any tutorials or guide on how to show/list all active "pages" & "users"?
ex.
Home Page, one "div" will list all active pages where the user(s) currently viewing or browsing and next "div" would be
list of "active user(s)".
Thanks :)
:D yeah! Maybe this is just based on Rails5 or what? I'm not even sure hahaha!
I got it!
Don't add "tabs" on your database.yml & secrets.yml
;)
Hi anyone encountered same issue/error?
deploy:assets:precompile
01 /home/deploy/.rbenv//bin/rbenv exec bundle exec rake assets:precompile
01 rake aborted!
01 Psych::SyntaxError: (<unknown>): found character that cannot start any token while scanning for the next token at line 2 column 1
01 /home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/application.rb:391:in `secrets'
01 /home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/application.rb:171:in `key_generator'
01 /home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/application.rb:202:in `message_verifier'
01 /home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/globalid-0.3.7/lib/global_id/railtie.rb:25:in `block (2 levels) in <class:Railtie>'
01 /home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.0.1/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook'
01 /home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.0.1/lib/active_support/lazy_load_hooks.rb:45:in `block in run_load_hooks'
01 /home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.0.1/lib/active_support/lazy_load_hooks.rb:44:in `each'
01 /home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.0.1/lib/active_support/lazy_load_hooks.rb:44:in `run_load_hooks'
01 /home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/application/finisher.rb:65:in `block in <module:Finisher>'
01 /home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/initializable.rb:30:in `instance_exec'
01 /home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/initializable.rb:30:in `run'
01 /home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/initializable.rb:55:in `block in run_initializers'
01 /home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/initializable.rb:54:in `run_initializers'
01 /home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/application.rb:352:in `initialize!'
01 /home/deploy/myapp/releases/20160831141545/config/environment.rb:5:in `<top (required)>'
01 /home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/application.rb:328:in `require'
01 /home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/application.rb:328:in `require_environment!'
01 /home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/application.rb:448:in `block in run_tasks_blocks'
01 /home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/sprockets-rails-3.1.1/lib/sprockets/rails/task.rb:62:in `block (2 levels) in define'
01 /home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/rake-11.2.2/exe/rake:27:in `<top (required)>'
01 /home/deploy/.rbenv/versions/2.3.1/bin/bundle:22:in `load'
01 /home/deploy/.rbenv/versions/2.3.1/bin/bundle:22:in `<main>'
01 Tasks: TOP => environment
01 (See full trace by running task with --trace)
(Backtrace restricted to imported tasks)
cap aborted!
SSHKit::Runner::ExecuteError: Exception while executing as [email protected]: rake exit status: 1
rake stdout: Nothing written
rake stderr: rake aborted!
Psych::SyntaxError: (<unknown>): found character that cannot start any token while scanning for the next token at line 2 column 1
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/application.rb:391:in `secrets'
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/application.rb:171:in `key_generator'
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/application.rb:202:in `message_verifier'
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/globalid-0.3.7/lib/global_id/railtie.rb:25:in `block (2 levels) in <class:Railtie>'
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.0.1/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook'
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.0.1/lib/active_support/lazy_load_hooks.rb:45:in `block in run_load_hooks'
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.0.1/lib/active_support/lazy_load_hooks.rb:44:in `each'
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.0.1/lib/active_support/lazy_load_hooks.rb:44:in `run_load_hooks'
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/application/finisher.rb:65:in `block in <module:Finisher>'
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/initializable.rb:30:in `instance_exec'
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/initializable.rb:30:in `run'
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/initializable.rb:55:in `block in run_initializers'
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/initializable.rb:54:in `run_initializers'
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/application.rb:352:in `initialize!'
/home/deploy/myapp/releases/20160831141545/config/environment.rb:5:in `<top (required)>'
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/application.rb:328:in `require'
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/application.rb:328:in `require_environment!'
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/application.rb:448:in `block in run_tasks_blocks'
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/sprockets-rails-3.1.1/lib/sprockets/rails/task.rb:62:in `block (2 levels) in define'
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/rake-11.2.2/exe/rake:27:in `<top (required)>'
/home/deploy/.rbenv/versions/2.3.1/bin/bundle:22:in `load'
/home/deploy/.rbenv/versions/2.3.1/bin/bundle:22:in `<main>'
Tasks: TOP => environment
(See full trace by running task with --trace)
SSHKit::Command::Failed: rake exit status: 1
rake stdout: Nothing written
rake stderr: rake aborted!
Psych::SyntaxError: (<unknown>): found character that cannot start any token while scanning for the next token at line 2 column 1
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/application.rb:391:in `secrets'
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/application.rb:171:in `key_generator'
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/application.rb:202:in `message_verifier'
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/globalid-0.3.7/lib/global_id/railtie.rb:25:in `block (2 levels) in <class:Railtie>'
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.0.1/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook'
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.0.1/lib/active_support/lazy_load_hooks.rb:45:in `block in run_load_hooks'
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.0.1/lib/active_support/lazy_load_hooks.rb:44:in `each'
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.0.1/lib/active_support/lazy_load_hooks.rb:44:in `run_load_hooks'
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/application/finisher.rb:65:in `block in <module:Finisher>'
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/initializable.rb:30:in `instance_exec'
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/initializable.rb:30:in `run'
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/initializable.rb:55:in `block in run_initializers'
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/initializable.rb:54:in `run_initializers'
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/application.rb:352:in `initialize!'
/home/deploy/myapp/releases/20160831141545/config/environment.rb:5:in `<top (required)>'
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/application.rb:328:in `require'
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/application.rb:328:in `require_environment!'
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/application.rb:448:in `block in run_tasks_blocks'
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/sprockets-rails-3.1.1/lib/sprockets/rails/task.rb:62:in `block (2 levels) in define'
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/rake-11.2.2/exe/rake:27:in `<top (required)>'
/home/deploy/.rbenv/versions/2.3.1/bin/bundle:22:in `load'
/home/deploy/.rbenv/versions/2.3.1/bin/bundle:22:in `<main>'
Tasks: TOP => environment
(See full trace by running task with --trace)
Tasks: TOP => deploy:assets:precompile
(See full trace by running task with --trace)
The deploy has failed with an error: Exception while executing as [email protected]: rake exit status: 1
rake stdout: Nothing written
rake stderr: rake aborted!
Psych::SyntaxError: (<unknown>): found character that cannot start any token while scanning for the next token at line 2 column 1
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/application.rb:391:in `secrets'
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/application.rb:171:in `key_generator'
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/application.rb:202:in `message_verifier'
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/globalid-0.3.7/lib/global_id/railtie.rb:25:in `block (2 levels) in <class:Railtie>'
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.0.1/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook'
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.0.1/lib/active_support/lazy_load_hooks.rb:45:in `block in run_load_hooks'
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.0.1/lib/active_support/lazy_load_hooks.rb:44:in `each'
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.0.1/lib/active_support/lazy_load_hooks.rb:44:in `run_load_hooks'
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/application/finisher.rb:65:in `block in <module:Finisher>'
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/initializable.rb:30:in `instance_exec'
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/initializable.rb:30:in `run'
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/initializable.rb:55:in `block in run_initializers'
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/initializable.rb:54:in `run_initializers'
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/application.rb:352:in `initialize!'
/home/deploy/myapp/releases/20160831141545/config/environment.rb:5:in `<top (required)>'
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/application.rb:328:in `require'
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/application.rb:328:in `require_environment!'
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/application.rb:448:in `block in run_tasks_blocks'
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/sprockets-rails-3.1.1/lib/sprockets/rails/task.rb:62:in `block (2 levels) in define'
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/rake-11.2.2/exe/rake:27:in `<top (required)>'
/home/deploy/.rbenv/versions/2.3.1/bin/bundle:22:in `load'
/home/deploy/.rbenv/versions/2.3.1/bin/bundle:22:in `<main>'
Tasks: TOP => environment
(See full trace by running task with --trace)
** DEPLOY FAILED
** Refer to log/capistrano.log for details. Here are the last 20 lines:
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.0.1/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook'
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.0.1/lib/active_support/lazy_load_hooks.rb:45:in `block in run_load_hooks'
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.0.1/lib/active_support/lazy_load_hooks.rb:44:in `each'
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.0.1/lib/active_support/lazy_load_hooks.rb:44:in `run_load_hooks'
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/application/finisher.rb:65:in `block in <module:Finisher>'
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/initializable.rb:30:in `instance_exec'
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/initializable.rb:30:in `run'
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/initializable.rb:55:in `block in run_initializers'
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/initializable.rb:54:in `run_initializers'
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/application.rb:352:in `initialize!'
/home/deploy/myapp/releases/20160831141545/config/environment.rb:5:in `<top (required)>'
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/application.rb:328:in `require'
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/application.rb:328:in `require_environment!'
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/application.rb:448:in `block in run_tasks_blocks'
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/sprockets-rails-3.1.1/lib/sprockets/rails/task.rb:62:in `block (2 levels) in define'
/home/deploy/myapp/shared/bundle/ruby/2.3.0/gems/rake-11.2.2/exe/rake:27:in `<top (required)>'
/home/deploy/.rbenv/versions/2.3.1/bin/bundle:22:in `load'
/home/deploy/.rbenv/versions/2.3.1/bin/bundle:22:in `<main>'
DEBUG [f70899a3] Tasks: TOP => environment
DEBUG [f70899a3] (See full trace by running task with --trace)
Thank you!
Posted in Installing RoR on macOS machine
Solution:
- install xcode "command line" follow this guide -> http://osxdaily.com/2014/02/12/install-command-line-tools-mac-os-x/
- run cleaner or if you have cleanmymac3 that would work
- Restart
- Start installing - Read & Follow this guide -> https://gorails.com/setup/osx/10.12-sierra
Another resources if your server can't connect to your repo.
https://forum.upcase.com/t/capistrano-cannot-read-from-remote-repository/3009/4
Enjoy!
;)
Posted in Installing RoR on macOS machine
Sure! Thanks.
Posted in Installing RoR on macOS machine
Yes that's what I am doing right now Chris, downloading the xcode 8 :(
Posted in Installing RoR on macOS machine
Hi,
I would like to ask if you can help me with this error while installing RoR on my mac machine running on a macOS 10.12 version.
Based on this guide https://gorails.com/setup/osx/10.12-sierra
Menj]~$ brew install rbenv
Warning: You are using OS X 10.12.
We do not provide support for this pre-release version.
You may encounter build failures or other breakages.
Please create pull-requests instead of filing issues.
==> Installing dependencies for rbenv: pkg-config, makedepend, openssl, ruby-build
==> Installing rbenv dependency: pkg-config
==> Using the sandbox
==> Downloading https://pkgconfig.freedesktop.org/releases/pkg-config-0.29.1.tar.gz
Already downloaded: /Users/Menj/Library/Caches/Homebrew/pkg-config-0.29.1.tar.gz
==> ./configure --prefix=/usr/local/Cellar/pkg-config/0.29.1_1 --disable-host-tool --with-internal-glib --
Last 15 lines from /Users/Menj/Library/Logs/Homebrew/pkg-config/01.configure:
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking build system type... x86_64-apple-darwin16.0.0
checking host system type... x86_64-apple-darwin16.0.0
checking how to print strings... printf
checking for style of include used by make... GNU
checking for gcc... clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in `/private/tmp/pkg-config-20160831-40234-8gmr4o/pkg-config-0.29.1':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
READ THIS: https://git.io/brew-troubleshooting
If reporting this issue please do so at (not Homebrew/brew):
https://github.com/Homebrew/homebrew-core/issues
Warning: You are using OS X 10.12.
We do not provide support for this pre-release version.
You may encounter build failures or other breakages.
Please create pull-requests instead of filing issues.
Thanks!