Ruby/Rails – Remove ActiveAdmin from my application
If you run the following code it should destroy active admin: rails destroy active_admin:install rails destroy active_admin:resource product
If you run the following code it should destroy active admin: rails destroy active_admin:install rails destroy active_admin:resource product
sudo ln -s /bin/mkdir /usr/bin/mkdir
This happened to me when updating Ruby in a Rails project from 3.0.4 to 3.1.2. This fixed it for me: bundle update –bundler Hope it helps.
If you have Xcode installed, gcc should be available. Check where it is with: kamil$ which gcc /usr/bin/gcc Then make a user-land symbolic link from gcc-4.2 to plain gcc: kamil$ sudo ln -s ~/bin/gcc /usr/bin/gcc-4.2 (Ensure the user-land bind folder is in your path via export PATH=…:$HOME/bin in your .bash_profile or .zshrc.) Gem installed fine … Read more
I stumbled upon this question when I ran into the issue of trying to set up github pages. It seems that in the latest version of ruby that is installed with homebrew webrick is not included by default. Here is the github issue: https://github.com/github/pages-gem/issues/752. Recommendations are to either use ruby 2.7 or to manually add … Read more
Check what you have with: gem list json Set the one you want: gem install –default -v1.8.6 json This is most useful for things like “bundler”!!! For other things, using bundler and a Gemfile is probably a better choice.
Twitter is running rails on most of their front end. Fauna’s client is actually built and released by twitter, so you can be pretty certain that it’s up to date and stable on large workloads. Looking at the history of commits shows that there are frequent improvements being pushed to it, which is great. Most … Read more
The first will tell bundler to load any gem that varies with the last (patch) number. So 4.0.x where x is 1 or greater. The second will only load 4.0.1. The third will get the highest value that works (depending on what the needs of the rest of your gems in your Gemfile) or will … Read more
See the “Ruby and Its World” chapter from The Pickaxe Book, specifically the section on environment variables. Excerpt: RUBYLIB Additional search path for Ruby programs ($SAFE must be 0). DLN_LIBRARY_PATH Search path for dynamically loaded modules. RUBYLIB_PREFIX (Windows only) Mangle the RUBYLIB search path by adding this prefix to each component.
As others say, this may very well be a PATH variable issue on your bashrc/bash_profile file. You can learn how to change PATH.. You can get the current PATH variable by typing echo $PATH