Google Maps in MVC 4 with Custom InfoWindow

Introduction
I was recently investigating using Google Maps in a web-application and couldn’t find a clear example that showed how to do it with MVC 4. Hopefully, this article fills that gap! Technologies used include MS C#, MVC 4, jQuery, and of course the Google Maps API.
Background
There were some “gotchas" I encountered while putting this together. The first is that (at least for me), using a jQuery selector to link my div that would contain the Google map didn’t work. I had to specifically use the JavaScript document.getelementById call. The second was sizing. Using the default size (which was teeny weenie) wasn’t cutting it for me, so I increased width/height. Turns out Google Maps didn’t like that too much. After a bit of digging I found a post that said to create a quick in-page style that set the max-width to "none"; then it worked.

Link: https://dzone.com/articles/google-maps-in-mvc-4-with-custom-infowindow?utm_medium=feed&utm_source=feedpress.me&utm_campaign=Feed%3A+dzone%2Fwebdev

Fighting Custom Actions in Rails Controllers

I have never seen a Rails project which doesn’t have custom actions in the Rails controllers. And that makes me upset. Here I’m going to describe my thoughts about custom actions, why people use them, why I hate them, and how to deal with them.
Let’s say we want to build a simple posting system. We have already created a model Post and need to add a controller. Everybody knows about REST and we obviously want to build a RESTful application. So we create a controller:

Link: https://dzone.com/articles/fighting-custom-actions-in-rails-controllers?utm_medium=feed&utm_source=feedpress.me&utm_campaign=Feed%3A+dzone%2Fwebdev