Initializr - Start an HTML5 Boilerplate project in 15 seconds! HTML5 Video russfrisch/h5bp-rails Rendera - Online HTML5 Editor Angularjs Normal Links with html5Mode HTML5 enabling script 7 Jan Since HTML5 is getting more attention by way of marking up our new pages, and the only way to get IE to acknowledge the new elements, such as <article>, is to use the HTML5 shiv, I’ve quickly put together a mini script that enables all the new elements. Download html5shiv.js and must be inserted in the head element (this is because IE needs to know about the element before it comes to render them – so it can’t sit in the footer of the page, i.e. below the elements in question). I’ve updated this post to link to Alexander Farkas’s version of the shiv – it’s the very latest and my simple one line script. The one I originally released was (I thought) beautifully small, but didn’t support print styles nor dynamic injection of HTML5 elements.
How can we use rails routes with angularjs in a DRY way? - Tech Forum Network Home » TechQns » How can we use rails routes with angularjs in a DRY way? First of all,I would say sorry for my broken English and the broken codes…(many words here come from google translation…so, I’m afraid that I can’t make myself clear…so, I paste all the codes…) Setting up routes in rails is really easy. But when we want to warp it into angurjs, it becomes a little bit verbose… Is there any ‘best practice’ for this kinds of job: given some rails route resources: resources :users resources :photos ... resources :topics How to do it in angular side? This is how I do (in coffee script, useing angular 1.1.4): Use a RESTful service in Rails way: Routes: The controller should be super clean and then we can focus on buisness There are 2 problems here: The first problem is that I must copy && paste the above loader code and then gsub(‘user’, ‘photo’), etc… (Just change 2 words in fact, but I hate copy && paste..) More Related Questions