Integrating Twitter Bootstrap and H5BP in Rails

Disclaimer: There are other alternatives to this setup by means of gems. But this is how I prefer to do it. Manually. With total control.

I have been working on a Rails application (a side project) and wanted to utilize the power of Twitter Bootstrap 2.0.1 and HTML5 Boilerplate 3.0.2 with Asset Pipelining in Rails 3.2.1.

**Requirements: **

Download Twitter Bootstrap from http://twitter.github.com/bootstrap/

Download HTML5 Boilerplate from http://html5boilerplate.com/

Setting up the Rails Application

First and foremost, create a new Rails application by using the command rails new app_name.

Once the app is created, navigate into the app folder cd app_name.

Integrating HTML5 Boilerplate

Now let’s first start with HTML5 Boilerplate. Open the downloaded H5BP zip file.

CSS:

Navigate into the css directory in the zip file. Copy the style.css file into app/assets/stylesheets of the Rails application that you just created.

JavaScript:

Once you’re done with that, navigate into the js directory of the H5BP zip archive. You’ll have script.js, plugins.js and a directory called libs. Copy the plugins.js and script.js into the app/assets/javascripts of your Rails application.

Continue reading

Move fast and Break things

""

I have been thinking about implementing a lot of ideas that I’ve had since a while but never had the motivation to do so. That was mostly because I always plan on making things in a perfect way and tend to procrastinate a lot. So, perfection in my case can be dubbed as procrastination. To get rid of that, I have planned on hacking on the ideas that I’ve had and will try to complete them ASAP. Starting from today, I will pick up one idea at a time or even multiple ideas if I feel bored and hack on them. I will deploy them without waiting for my innate judgmental self to kick in and decide if the app is really worth deploying or not. The only priority for the deployment of an app would be that It Works™.

I will open source my applications one at a time so that anyone who finds my hacks interesting can contribute to them. I will also write a follow up blog post for each of these apps explaining the technology stack behind the app, the APIs used in the application and the process of building it.

I hope the information I provide helps you, inspires you and I really hope you guys enjoy using my applications as much as I do.

The Switch

If you’re reading this blog, then you must have noticed that I’ve changed the theme and the URL of my Blog. Well, those are just the superficial changes. I even changed my blogging platform. I used to use WordPress to blog (Of course, occasionally). But now, I switched to a much more comfortable platform, Tumblr.

Till now, I haven’t had any problems with Tumblr. In fact I like the service.

So, here is a little comparison of the two awesome blogging platforms.

WordPress: In a word, terrific. It has almost all features a blogger desires. It’s very easy to setup and use. It has a very neat admin interface. Nothing complex. You have a ton of plugins to customize your blog. There’re good themes, not great, good (the free ones). I’ve used WordPress for over two years. I have always loved it.

Continue reading