Skip to content

Instantly share code, notes, and snippets.

View dipak1112's full-sized avatar

Dipak Panchal dipak1112

View GitHub Profile
var app;
app = angular.module('app', [
'ui.bootstrap',
'security',
'app.services',
'app.controllers',
'app.filters',
'app.directives',
'ngCookies',
'ngValidate'
class Admin::DriversController < AdminController
before_action :set_admin_driver, only: [:show, :edit, :update, :destroy]
helper_method :sort_column, :sort_direction
add_breadcrumb 'Drivers', :admin_drivers_path
add_breadcrumb 'Create a new Driver', '', :only => [:new, :create]
# GET /admin/drivers
# GET /admin/drivers.json
def index
if params[:name].present?