Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fguillen/Skeleton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NewProject

Opinionated Rails project template.

With all these libraries configured and working

Setup

Replace <ProjectName> with yout project name:

curl -#L https://raw.github.com/fguillen/Skeleton/master/etc/osx_init.rb | PROJECT_NAME=<ProjectName> ruby

cd <ProjectName>
rails s
open http://localhost:3000/admin

Including

### Rails

Ruby

Config

Exceptions

Uploads

Login

### i18n

  • i18n with placeholders to :es and :en locales

Validations

Testing

Deploying

CI integration

Initializers

  • Date Formats
  • Exception if locale not found
  • Paperclip interpolation example
  • Rails log customization
  • Lograge customization
  • String extensions

Layout

Functionality

  • Admin/Front namespaces
  • Login/Logout/Remember password
  • Change locale
  • AdminUsers management
  • Items management, click&drap sorting
  • Pics ajax management
  • Static pages
  • AppConfig
  • Menu element actived helper
  • Tableless model
  • LogBook integration

TODO

  • Upgrade to Rails 4.2.0: (check SurveyPlatform project)
  • Add whenever (including capistrano)
  • Add sortable_link [1]
  • Footer overhide the content on the bottom of the container.. look for ".container{ margin-bottom: -70px; }"
  • Make rake to also execute tests in test/etc folder
  • Test reset_password, reset_password_submit
  • Change all urls by this style: [:offer_clicks, :provider, @provider_user, offer]
  • Add Skeleton_session to be replaced in the init script
  • Improve test coverage
  • Make menu_class using Rails.application.routes.router.recognize(request){ |route, matches, parameters| puts route.name }
  • Add _searcher module

[1] ---

module PaginatedModel
  def paginated(opts = {})
    opts[:sort_attribute] ||= "created_at"
    opts[:sort_direction] ||= "desc"
    opts[:page] ||= 1

    paginate(
      :page => opts[:page],
      :per_page => APP_CONFIG[:elements_per_page]
    ).order("#{opts[:sort_attribute]} #{opts[:sort_direction]}")
  end
end

ActiveRecord::Base.extend PaginatedModel

css
application_helper

About

Opinionated Rails project template.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published