I’ve seen usage of a “send” method on ActiveRecord objects but I’m not
sure what it’s intending to do. For example, scaffolding will use the
.send method on the model object in the list template.
I checked api.rubyonrails.com page but somehow didn’t find any specifics
about it.
Sorry for posting my question here. I’m fresher in this. Please help me
to run this command.
I’m notable to install json using gem, even gem is install properly.
Every time I’m getting same error.
Might be that’s an silly mistake please help me out.
Thanks in advance.
input
““gem install json -v ‘1.8.6’””
output
Building native extensions. This could take a while…
ERROR: Error installing json:
ERROR: Failed to build gem native extension.
current directory:
/var/lib/gems/2.3.0/gems/json-1.8.6/ext/json/ext/generator
/usr/bin/ruby2.3 -r ./siteconf20170222-14108-ee0y5j.rb extconf.rb
mkmf.rb can’t find header files for ruby at /usr/lib/ruby/include/ruby.h
extconf failed, exit code 1
Gem files will remain installed in /var/lib/gems/2.3.0/gems/json-1.8.6
for inspection.
Results logged to
/var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/json-1.8.6/gem_make.out