Rails command giving error
<p>I am facing very strange error when I run 'rails -v' command on my terminal (Mac El Capitan) it shows me the error:</p>

<pre><code>/Users/paras/.rvm/gems/ruby-2.3.0/bin/rails:22:in `&lt;main&gt;': undefined method `activate_bin_path' for Gem:Module (NoMethodError)
from /Users/paras/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `eval'
from /Users/paras/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `&lt;main&gt;'
Parass-MacBook-Pro:hackathon_1 paras$ rails -v
/Users/paras/.rvm/gems/ruby-2.3.0/bin/rails:22:in `&lt;main&gt;': undefined method `activate_bin_path' for Gem:Module (NoMethodError)
from /Users/paras/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `eval'
from /Users/paras/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `&lt;main&gt;'
</code></pre>

<p>and also when I run 'rails s'. After re-installing rails I get the following:</p>

<pre><code>== 20160404103035 CreateEvents: migrating =====================================
-- create_table(:events) rake aborted! 
StandardError: An error has occurred, this and all later migrations canceled:
 PG::UndefinedTable: ERROR: relation "users" does not exist : 
ALTER TABLE "events" ADD CONSTRAINT "fk_rails_0cb5590091" FOREIGN KEY ("user_id") /Users/paras/.rvm/gems/ruby-2.3.0@hackathon_1/gems/activerecord-4.2.5/lib/active‌​_record/connection_adapters/postgresql/database_statements.rb:155:in `async_exec' 
</code></pre>

<p>and many more lines like above with different messages.</p>

<p>Please help me.</p>