Added a new route for the dashboards controller. Only the show method will be allowed. The root of the application will be the show method of this controller
Added a service to connect to the crunch base page using the crunch base API. Only have two methods: One for getting all the companies in a crunch base page and the other for getting the information of company giving it the permalink of this company
This model represents a company. It connects to the crunch access service to get the information of the companies. There is a method to get all the comapnies for the page shown for the view, so it makes the translation between a page of our application(only has 10 elements) and the crunch base page(it has 1000 elements). Also has a method to find out the maximum number of pages for our application; this method is used for the end of the pagination in the view. We are supposing that the asked description is the short description. To get the image of the application we need to access the data of the company, so for listing the companies in the dasboard we have to access the information of each company of the page. It can happen that a company does not have an image, so we should take care of this case and offer a method to see if the company has image or not
The controller asks the model for the companies in a page (the model gives 10 companies per page). Also take care of the pagination using a parameter
The dashboard view gives the list of companies using pagination. If the page is the first one, then there isnt a Prev link, and if it is the last one, then there isnt a Next link. The information for each company, is the image(if the company has one), the name and short description