Day 14

by morvennn

It’s like neverending story – when everything seems to go fine, some kind of gem jumps out at us and screams: GOTCHAAAAA!

OK, let’s get to the point. As you probably remember, our task was to create a webpage in Species+ admin panel to view raw data collected by ahoy_matey. We were sure it’s relatively simple.

Our application uses CanCan gem. It’s an authorization library for Ruby on Rails which restricts what resources a given user is allowed to access. But CanCan actually surprised us. It did authorization using model, which name it tried to take from the name of the controller. But there was a difference between controller’s name and model’s name 😦 We had to communicate to CanCan very strictly about how our ahoy’s model is called.

Let’s be honest – without our coaches’ help finishing the task would be completely impossible. Thank you Tomasz & Piotr! You’re great!

So, at the moment we have our dream pages with raw data and figuring out how to make postgreSQL results table fully visible.

Have a nice weekend 🙂