HTML5: Data Attributes

HTML5 data attributes are a great alternative to classes and rel for storing data in an html tag. Creating a Custom Attribute Data attributes can be placed inside any type of tag and needs to follow the format of data-[desired_attribute]=”[value]” requiring at least one character following the dash.  Let’s look at an example: Let’s say you...
Read More

5 minute code: JQuery Tabbed Interface

The JQuery UI library is awesome for doing super cool stuff super quick. For example, a tabbed interface! Who wants to reload after you click on a tab? No one. Who wants to take ages to code it? No one. Therefore, welcome to TGC’s 5 minutes of code! 1. Make the tab links.  Make sure...
Read More

Test Driven Development (TDD) – Part 2 – Integration Testing

Now that your RSpec environment is all set up, it’s time to start writing some actual tests.  Let’s start with integrations tests, which tests how different components (models, controllers etc.) interact with one another. Create the Integration Folder To start, make future you and any team members really happy by creating an integration folder, within...
Read More