creation of categories ready

This commit is contained in:
Senad Uka
2015-01-14 07:29:44 +01:00
parent 4b8c8a444c
commit 8384bcbd30
63 changed files with 1127 additions and 28 deletions

0
app/assets/images/.keep Normal file
View File

View File

@@ -0,0 +1,17 @@
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
//
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// compiled file.
//
// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
// about supported directives.
//
//= require jquery
//= require jquery_ujs
//= require turbolinks
//= require active_scaffold
//= require_tree .

View File

@@ -0,0 +1,16 @@
/*
* This is a manifest file that'll be compiled into application.css, which will include all the files
* listed below.
*
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
* or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
*
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
* compiled file so the styles you add here take precedence over styles defined in any styles
* defined in the other CSS/SCSS files in this directory. It is generally better to create a new
* file per style scope.
*
*= require_tree .
*= require_self
*= require active_scaffold
*/

View File

@@ -0,0 +1,5 @@
class ApplicationController < ActionController::Base
# Prevent CSRF attacks by raising an exception.
# For APIs, you may want to use :null_session instead.
protect_from_forgery with: :exception
end

View File

@@ -0,0 +1,4 @@
class CategoriesController < ApplicationController
active_scaffold :"category" do |conf|
end
end

View File

View File

@@ -0,0 +1,2 @@
module ApplicationHelper
end

View File

@@ -0,0 +1,2 @@
module CategoriesHelper
end

0
app/mailers/.keep Normal file
View File

0
app/models/.keep Normal file
View File

2
app/models/Category.rb Normal file
View File

@@ -0,0 +1,2 @@
class Category < ActiveRecord::Base
end

View File

View File

@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html>
<head>
<title>Ribicabackoffice</title>
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
<%= csrf_meta_tags %>
</head>
<body>
<%= yield %>
</body>
</html>