magick encoding

This commit is contained in:
Nico 2013-01-08 23:28:47 +01:00
parent ad40c4e2ad
commit 9abaa20c91
77 changed files with 81 additions and 8 deletions

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class NoteFilesController < ApplicationController
# GET /note_files
# GET /note_files.json

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class NotesController < ApplicationController
def show

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class TopicsController < ApplicationController
before_filter :authenticate_admin!
layout "topics"

View File

@ -1,2 +1,3 @@
# -*- encoding : utf-8 -*-
module ApplicationHelper
end

View File

@ -14,4 +14,4 @@ module DocumentLineHelper
link_to_function(name, "alert('test');add_fields(this, \"#{association}\", \"#{escape_javascript(fields)}\");")
end
end
end

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
module MarkdownHelper
def markdown(text)
@ -28,4 +29,4 @@ module MarkdownHelper
end
end
end

View File

@ -1,2 +1,3 @@
# -*- encoding : utf-8 -*-
module SurveysHelper
end

View File

@ -1,2 +1,3 @@
# -*- encoding : utf-8 -*-
module TinyUrlsHelper
end

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class Admin < ActiveRecord::Base
# Include default devise modules. Others available are:
# :token_authenticatable, :confirmable,

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class Donate < ActiveRecord::Base
belongs_to :sheet

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class Newsgroup < ActiveRecord::Base
has_many :people_newsgroups
has_many :people, :through => :people_newsgroups

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class Note < ActiveRecord::Base
belongs_to :admin
belongs_to :topic

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class NoteFile < ActiveRecord::Base
attr_accessor :file_cache, :original_filename

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class PeopleNewsgroup < ActiveRecord::Base
belongs_to :person
belongs_to :newsgroup

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class Person < ActiveRecord::Base
belongs_to :sheet
#validates_presence_of :surname, :firstname

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class QuestionSet < ActiveRecord::Base
belongs_to :survey_item
belongs_to :survey_set

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class SurveyItem < ActiveRecord::Base
belongs_to :survey_type
attr_accessible :description, :display_type, :help, :item_type, :questions_type, :string_type, :title, :archived, :locked, :text_presentation, :max_checkboxes

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class SurveyItemAnswer < ActiveRecord::Base
belongs_to :survey_item
attr_accessible :class_text, :data_type, :field_type, :help_text, :label_text, :archived, :locked

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class SurveySet < ActiveRecord::Base
belongs_to :survey_type
has_many :question_sets

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class SurveyType < ActiveRecord::Base
attr_accessible :description, :intro_text, :name, :thank_text, :locked, :archived, :slug

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class TinyUrl < ActiveRecord::Base
attr_accessible :nbr_views, :slug, :start_at, :stop_at, :url
end

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class Topic < ActiveRecord::Base
belongs_to :admin
attr_accessible :description, :title

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class YearPaiement < ActiveRecord::Base
belongs_to :join_year

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
require File.expand_path('../boot', __FILE__)
require 'rails/all'

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
require 'rubygems'
# Set up gems listed in the Gemfile.

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
set :application, 'pic_vert_app'
set :domain, 'www2.lepicvert.asso.fr'
@ -108,4 +109,4 @@ set :application, 'pic_vert_app'
end

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
# Load the rails application
require File.expand_path('../application', __FILE__)

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
HOSTNAME = 'localhost:3000'
Survey::Application.configure do

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
HOSTNAME = 'http://lepicvert.org'
Survey::Application.configure do

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
Survey::Application.configure do
# Settings specified here will take precedence over those in config/application.rb

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
# Be sure to restart your server when you modify this file.
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
# Use this hook to configure devise mailer, warden hooks and so forth.
# Many of these configuration options can be set straight in your model.
Devise.setup do |config|
@ -234,4 +235,4 @@ Devise.setup do |config|
config.case_insensitive_keys = [ :username ]
config.strip_whitespace_keys = [ :username ]
end
end

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
# Be sure to restart your server when you modify this file.
# Add new inflection rules using the following format

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
# Be sure to restart your server when you modify this file.
# Add new mime types for use in respond_to blocks:

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
# Be sure to restart your server when you modify this file.
# Your secret key for verifying the integrity of signed cookies.

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
# Be sure to restart your server when you modify this file.
Survey::Application.config.session_store :cookie_store, key: '_survey_session'

View File

@ -40,4 +40,4 @@ module ToSlug
end
end
String.send(:include, ToSlug)
String.send(:include, ToSlug)

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
# Be sure to restart your server when you modify this file.
#
# This file contains settings for ActionController::ParamsWrapper which

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
Survey::Application.routes.draw do

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
@rails_app = "pic_vert_app"
working_directory "/home/web/#{@rails_app}/current"
@ -7,4 +8,4 @@ stdout_path "/home/web/#{@rails_app}/shared/log/unicorn.log"
listen "/home/web/#{@rails_app}/shared/tmp/unicorn.sock"
worker_processes 2
timeout 30
timeout 30

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class CreateNewsgroups < ActiveRecord::Migration
def self.up
create_table :newsgroups do |t|

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class CreateSheets < ActiveRecord::Migration
def self.up
create_table :sheets do |t|

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class CreatePeople < ActiveRecord::Migration
def self.up
create_table :people do |t|

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class CreateSheetYears < ActiveRecord::Migration
def self.up
create_table :sheet_years do |t|

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class CreateDonates < ActiveRecord::Migration
def self.up
create_table :donates do |t|

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class CreatePeopleNewsgroups < ActiveRecord::Migration
def self.up
create_table :people_newsgroups do |t|

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class CreateSurveyTypes < ActiveRecord::Migration
def change
create_table :survey_types do |t|

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class CreateSurveyItems < ActiveRecord::Migration
def change
create_table :survey_items do |t|

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class CreateSurveyItemAnswers < ActiveRecord::Migration
def change
create_table :survey_item_answers do |t|

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class CreateSurveySets < ActiveRecord::Migration
def change
create_table :survey_sets do |t|

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class CreateQuestionSets < ActiveRecord::Migration
def change
create_table :question_sets do |t|

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class CreateAnswerSets < ActiveRecord::Migration
def change
create_table :answer_sets do |t|

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class ChangeDataTypeForTableColumn < ActiveRecord::Migration
def up
change_column :question_sets, :content, :text

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class CreateTinyUrls < ActiveRecord::Migration
def change
create_table :tiny_urls do |t|

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class CreateTopics < ActiveRecord::Migration
def change
create_table :topics do |t|

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class CreateNotes < ActiveRecord::Migration
def change
create_table :notes do |t|

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class CreateNoteFiles < ActiveRecord::Migration
def change
create_table :note_files do |t|

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class DeviseCreateAdmins < ActiveRecord::Migration
def change
create_table(:admins) do |t|

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class AddUsernameToAdmins < ActiveRecord::Migration
def change
add_column :admins, :username, :string

View File

@ -1,4 +1,4 @@
# encoding: UTF-8
# -*- encoding : utf-8 -*-
# This file is auto-generated from the current state of the database. Instead
# of editing this file, please use the migrations feature of Active Record to
# incrementally modify your database, and then regenerate this schema definition.

View File

@ -80,4 +80,4 @@ item = @survey.items.build(:questions_type => 2, :text_presentation => 2, :title
@survey_set = @survey.to_survey_set
Admin.create(:username => "nico", :password => 123456, :password_confirmation => 123456, :email => "info@nicolasbally.com")
Admin.create(:username => "nico", :password => 123456, :password_confirmation => 123456, :email => "info@nicolasbally.com")

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class Sheet < ActiveRecord::Base
has_many :people, :dependent => :destroy
has_many :sheet_years, :order => "year DESC", :dependent => :destroy

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class SheetYear < ActiveRecord::Base
belongs_to :sheet

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
require 'test_helper'
class SurveysControllerTest < ActionController::TestCase

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
require 'test_helper'
class TinyUrlsControllerTest < ActionController::TestCase

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
require 'test_helper'
require 'rails/performance_test_help'

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
ENV["RAILS_ENV"] = "test"
require File.expand_path('../../config/environment', __FILE__)
require 'rails/test_help'

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
require 'test_helper'
class AdminTest < ActiveSupport::TestCase

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
require 'test_helper'
class AnswerSetTest < ActiveSupport::TestCase

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
require 'test_helper'
class SurveysHelperTest < ActionView::TestCase

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
require 'test_helper'
class TinyUrlsHelperTest < ActionView::TestCase

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
require 'test_helper'
class QuestionSetTest < ActiveSupport::TestCase

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
require 'test_helper'
class SurveyItemAnswerTest < ActiveSupport::TestCase

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
require 'test_helper'
class SurveyItemTest < ActiveSupport::TestCase

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
require 'test_helper'
class SurveySetTest < ActiveSupport::TestCase

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
require 'test_helper'
class SurveyTypeTest < ActiveSupport::TestCase

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
require 'test_helper'
class TinyUrlTest < ActiveSupport::TestCase