A Smart Mobile Foundation for Rails
Adding mobile-specific boilerplate code to your Rails project
If you haven't done so already I strongly recommend setting up some foundation HTML and CSS for your project:
- Rails Views, Doing It Right
- Setting up a Smart HTML Foundation for Rails
- Setting up a Smart CSS Foundation for Rails
Mobile Boilerplate
When it comes to boilerplate, mobile is a special case. It's a complete different beast . . .
Telephone Numbers, A Great Use Case for Media Queries
Toggling between callto and tel
Phone numbers on the web create an interesting dilemma, should I use callto
or tel
? Like most things on the web, that depends.
Here's the situation, when a user finds a phone number link like this one:
...As developers we can change the links behavior so that when clicked a call is made: through a program like Skype, or just . . .
A Smart HTML Foundation for Rails
A Practical Guide to setting up a new Rails application with HTML5 Boilerplate and other front-end goodness
UPDATED: February 3, 2016
Setting up the foundation markup of a Rails application is super straightforward. Every time I build a new application I use the starter code from Rails Views, Doing It Right and follow these steps...
Step 1: Clone the Starter Code
Here it is, the starter code:
git clone git@github.com:maxxiimo/base-haml.git
Step 2: . . .
Rails Views and the Foundation Code Structure
A Rails view primer and front-end code to start any Rails project out right
UPDATED: January 15, 2016
The template system and associated files and folders used in Rails are known as Views, the V in MVC. View code is primarily found in two high-level folders within a Rails 3.0 or greater application: the helpers
and the views
folders...
app
+- assets
+- controllers
+- helpers
+- mailers
+- models
+- views
. . .