Opinionated Rails project template.
With all these libraries configured and working
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
### Rails
- NiftyGenerators config, based in a yml file.
### i18n
- i18n with placeholders to
:esand:enlocales
- Bash script for Jenkins
- Date Formats
- Exception if locale not found
- Paperclip interpolation example
- Rails log customization
- Lograge customization
- String extensions
- 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
- 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
raketo also execute tests intest/etcfolder - 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
_searchermodule
[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