How to install Rails
-
With Laragon 3.1, working with Rails is a pleasure. Just install the Laragon - RubyOnRails edition, then open Terminal (Menu > Laragon > Termial) and type:
gem install rails
If you want to install a specific version of Rails, type:
gem install rails -v 5.0.3
Working with Rails:
- Create an app:
rails new coolapp
- Start it:
cd coolapp rails s
That's all fork!
Note: with Laragon, you can work with different version of Rails - just add another ruby version:
How to add another Ruby version
-
No, that's not all. Win7 Laragon Rails version fails on Rails install
An error occurred while installing bootsnap (1.4.4), and Bundler cannot
continue.
Make sure thatgem install bootsnap -v '1.4.4' --source 'https://rubygems.org/'
succeeds before bundling.Did the gem install for missing gem and errors got WORSE! Cant find an answer anywhere.
C:\laragon\www
λ gem install bootsnap -v '1.4.4' --source 'https://rubygems.org/'
Building native extensions. This could take a while...
ERROR: Error installing bootsnap:
ERROR: Failed to build gem native extension.current directory: C:/laragon/bin/ruby/ruby-2.3.3/lib/ruby/gems/2.3.0/gems/bootsnap-1.4.4/ext/bootsnap
C:/laragon/bin/ruby/ruby-2.3.3/bin/ruby.exe -r ./siteconf20190504-3228-3edaxv.rb extconf.rb
creating Makefilecurrent directory: C:/laragon/bin/ruby/ruby-2.3.3/lib/ruby/gems/2.3.0/gems/bootsnap-1.4.4/ext/bootsnap
make "DESTDIR=" cleancurrent directory: C:/laragon/bin/ruby/ruby-2.3.3/lib/ruby/gems/2.3.0/gems/bootsnap-1.4.4/ext/bootsnap
make "DESTDIR="
generating bootsnap-x64-mingw32.def
compiling bootsnap.c
bootsnap.c: In function 'bs_cache_path':
bootsnap.c:245:3: warning: unknown conversion type character 'l' in format [-Wformat]
bootsnap.c:245:3: warning: too many arguments for format [-Wformat-extra-args]
bootsnap.c: In function 'bs_rb_fetch':
bootsnap.c:286:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
bootsnap.c: In function 'atomic_write_cache_file':
bootsnap.c:484:3: warning: implicit declaration of function 'mkstemp' [-Wimplicit-function-declaration]
bootsnap.c: In function 'bs_rb_fetch':
bootsnap.c:632:13: warning: 'output_data' may be used uninitialized in this function [-Wmaybe-uninitialized]
bootsnap.c:603:9: note: 'output_data' was declared here
linking shared-object bootsnap/bootsnap.so
bootsnap.o: In functionatomic_write_cache_file': C:\laragon\bin\ruby\ruby-2.3.3\lib\ruby\gems\2.3.0\gems\bootsnap-1.4.4\ext\bootsnap/bootsnap.c:484: undefined reference to
mkstemp'
collect2.exe: error: ld returned 1 exit status
make: *** [bootsnap.so] Error 1make failed, exit code 2
Gem files will remain installed in C:/laragon/bin/ruby/ruby-2.3.3/lib/ruby/gems/2.3.0/gems/bootsnap-1.4.4 for inspection.
Results logged to C:/laragon/bin/ruby/ruby-2.3.3/lib/ruby/gems/2.3.0/extensions/x64-mingw32/2.3.0/bootsnap-1.4.4/gem_make.out
-