Skip to content

Instantly share code, notes, and snippets.

View patrickkeller's full-sized avatar

Patrick Keller patrickkeller

  • Switzerland
View GitHub Profile
@patrickkeller
patrickkeller / gist:2941129
Created June 16, 2012 11:54 — forked from trey/gist:1739889
Get Bootstrap's fancy Glyphicons working in Rails

Well, to get Bootstrap working, first install [Less Rails Bootstrap][lrb].

Then create a button with a [fancy icon][fi] like so:

<%= link_to raw('<i class="icon-trash icon-white"></i>'), card, confirm: 'Are you sure?', method: :delete, :class => 'btn btn-danger' %>

Note that you have to link to raw to get it to not escape the HTML.

@patrickkeller
patrickkeller / rbenv-install-system-wide.sh
Created May 24, 2012 10:39 — forked from devsigner/rbenv-install-system-wide.sh
rbenv install ruby 1.9.3-p125 on Debian 6 Squeeze
# Update, upgrade and install development tools:
apt-get update
apt-get -y upgrade
apt-get -y install build-essential git-core curl libssl-dev \
libreadline5 libreadline5-dev \
zlib1g zlib1g-dev \
libmysqlclient-dev \
libcurl4-openssl-dev \
libxslt-dev libxml2-dev