HTML5 Boilerplate for rails 3.2

78 views
Skip to first unread message

Luke Hamilton

unread,
Jul 27, 2012, 8:05:36 AM7/27/12
to rubyonra...@googlegroups.com, rails-...@googlegroups.com

Hi all,

I was just wondering if other people are following the html5boilerplate.com way in their Rails 3.2 apps, and if so what methods are they using? i.e just building it in gem by gem, or all by hand or some of the other boilerplate gem's that exist. 

Love to hear about people's experiences and recommendations. 

Thanks heaps!

Regards,
Luke Hamilton

Mobile:  +61 0430223558
Skype:  lukekhamilton
Twitter: @lukekhamilton
Email:   lu...@lukehamilton.me

“When I let go of what I am, I become what I might be.” – Lao Tzu

Nicholas Faiz

unread,
Jul 27, 2012, 5:45:49 PM7/27/12
to rails-...@googlegroups.com, rubyonra...@googlegroups.com
Hi,

I'm not a UX expert, at all, but do others think it's a bad thing there's a mouseover event that turns the 'HTML 5 BOILERPLATE' title to a deeper colour in a faux-link way but actually does nothing? Or is that just thinking too much about things?

Cheers,
Nicholas

Julio Cesar Ody

unread,
Jul 27, 2012, 6:20:44 PM7/27/12
to rails-...@googlegroups.com
You could just use the index.html file from H5BL as your app template, either as an ERB file, or convert it to whatever template format you're using.

Then link the styles along of course.
--
You received this message because you are subscribed to the Google Groups "Ruby or Rails Oceania" group.
To post to this group, send email to rails-...@googlegroups.com.
To unsubscribe from this group, send email to rails-oceani...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en.

Andrew Stone

unread,
Jul 27, 2012, 8:05:36 PM7/27/12
to rails-...@googlegroups.com
I asked a similar question a while back: https://groups.google.com/forum/?fromgroups#!searchin/rails-Oceania/boilerplate/rails-oceania/AH6yUyZKHHI/crUKG2QSE4MJ
Answer seems to be what ever works for you... ultimately it's about learning CSS3 and HTML5 (not about rails/gems per se).

I ended up going with Twitter Bootstrap, mixed in some media queries from '320 and Up' and added Font Awesome, happy with the result.

Regards,
Stonie.

Ben Taylor

unread,
Jul 29, 2012, 9:23:36 PM7/29/12
to rails-...@googlegroups.com
I agree that if you're using HTML5 boilerplate or similar it shouldn't be something you include from gems. Boilerplate is somewhere to start, it lets you get a sane set of HTML5 defaults and a normalisation css. If you're using Twitter Bootstrap you similarly get a grid framework and default styles.

You should definitely tear them apart and change things.

The way I normally start a new rails project is:

1. Copy HTML5BP index.html into layouts/application.html and then add yields and asset includes where I want them
2. Copy Modernizr into lib/assets/javascripts
3. Copy HTML5BP normalise.css into lib/assets/stylesheets
4. Modify my app/assets/javascripts/application.js to include modernizr first
5. Modify my app/assets/stylesheets/application.css to include normalise first

Then as I go along I further customise, remove and add lines to the layout.

 - Ben

Reply all
Reply to author
Forward
0 new messages