http://codepen.io/VilJam/pen/tEajd
<h1>Sticky Footer</h1>
<h2>with Fixed Footer Height</h2>
<button id="add">Add Content</button>
http://codepen.io/VilJam/pen/tEajd
<h1>Sticky Footer</h1>
<h2>with Fixed Footer Height</h2>
<button id="add">Add Content</button>
<% if user_signed_in? %>
http://mattmazur.com/2012/01/18/how-to-switch-your-cedar-heroku-app-from-webrick-to-thin/ | |
Add gem 'thin' to your Gemfile: | |
Bundle install | |
Add a Procfile to your root directory to instruct Heroku to use Thin instead of Webrick: |
<li class="<%= controller_name == 'pages' && action_name == 'about' ? 'active' : '' %>">
<%= link_to("About", about_path) %>
</li>
Gemfile and bundle install
gem 'devise'
Install devise
$ rails generate devise:install
app/views/layouts/application.html.erb
$ rails generate scaffold pins description:string
followed by
$ rake db:migrate
"file_" + i.to_s.rjust(n, "0")
In your controller
before_filter :authenticate_user!, :only => [:display]
<%= link_to "<span class='fa fa-plus'></span> New Waybill</button>".html_safe, new_waybill_path, :class => "btn-u btn-red", :style => "float: right" %>