$ rvm list
- show currently installed Rubies
Sinatra Flash is an awesome gem that allows you to pop up little messages alerting your users of important things, via some simple code in your server.rb
file. This is very useful for things like displaying error messages if the user has filled out a form wrong, or displaying "success" messages if the user did something successfully like sign in, sign out, or submit a form.
This also gives you a great chance to implement Foundation's beautiful alerts. Here's how to set it up!
- Install the gem by typing
gem install sinatra-flash
in your terminal. - Require the gem in the top of your server.rb file:
require 'sinatra/flash'
Sinatra Flash is an awesome gem that allows you to pop up little messages alerting your users of important things, via some simple code in your server.rb
file. This is very useful for things like displaying error messages if the user has filled out a form wrong, or displaying "success" messages if the user did something successfully like sign in, sign out, or submit a form.
This also gives you a great chance to implement Foundation's beautiful alerts. Here's how to set it up!
- Install the gem by typing
gem install sinatra-flash
in your terminal. - Require the gem in the top of your server.rb file:
require 'sinatra/flash'