June 18, 2016

How to Prevent a User from Editing a Profile That Isn't Theirs in Ember

or How to Keep Mischievous Users Out of the Cookie Jar

I was working on Tempo the other night and ran into a pretty common situation I wasn't sure how to solve right away. I had created profile pages for my users and given them the option to edit their profile. However, I needed to make sure that a user couldn't edit a profile that wasn't theirs.

While hiding links to the edit pages of other users was simple enough, I wasn't sure how to prevent a clever user from accessing an edit page that wasn't theirs by appending /edit

JavaScriptWeb Development
June 14, 2016

All the Steps Needed To Get Active Model Serializers to Work with JSONAPIAdapter and JSONAPISerializer in Ember

or the Headache That I Thought Would Never Go Away

Recently, I've been working every day on my project "Tempo", but it's been very slow with a lot of headaches. This always happens the first time or two you put theory to practice and you run into all the tiny hurdles and obstacles you weren't expecting.

One of the major hurdles was getting rails-api's activemodelserializers gem to play nicely with Ember's default adapter and serializer based on the…

June 11, 2016


or How MIME types can bite you in the ass

I've been putting in a few hours each day this week on my new project: Tempo. I've spent most of that time running into snags, but in the process have learned a lot of things.

At the crux of my application are users, so it seemed like the right place to start. I've been trying to create a user login and signup process by connecting Rails' Devise gem with Ember's Ember Simple Auth addon. I've gotten this working in the past and thought it would be a relatively straight forward process. However, it took me quite…

June 09, 2016

New Project

Codename: Tempo

Over the last year, I've put a lot of time and effort into learning Ember and building JSON APIs with Rails. While I've built a few tiny applications here and there, I have yet to build anything substantial with these tools. Since I would like to find an Ember job and it would be helpful for me to…

May 14, 2016

Ember: Hello World

All the Different Ways to Make the Simplest Ember App

Ember.js is one of several popular JavaScript MVCs on the market today and particularly my favorite to use. Known as "a framework for creating ambitious web applications", Ember is a great choice for building quality JavaScript SPAs. For those of you getting started with Ember, I'd like to walk you…

March 27, 2016

Why I Think Opening External Links In New Tabs Is a Bad Idea

In previous posts I've mentioned my vehement dislike of purposefully opening links in a new tab. Here's a short list of reasons why it's a bad idea:

  • It's not the default behavior of links.
  • It's extra work, generally because the developer will code it to open normally, someone will see it and say that's wrong and then the developer needs to reopen the project, add the code and send it back.
  • It steals control away…
Web Development