Easily work with views and functions.
Put plain SQL queries for views into
Put function declarations into
You can create/destroy assets using
db:assets:destroy rake tasks.
db:assets:create runs automatically after
Provides plain templates to clientside JS.
Put HTMLs you want in JS somewhere in assets subdirectory, give them
Provides access from js code to all your application named routes. In Rails version > 3.1 just require 'routes.js' in your js files or directly include it into view.
You can hide some important routes from js, for example:
get '/some_secret_route', :to => 'secret_controller#secret_action', :hidden => true
Requirer and autoreloader (in development) for monkey patches. Just put your monkey patch files into /lib/monkey_patches directory and relax.
Email validation support (see http://my.rails-royce.org/2010/07/21/email-validation-in-ruby-on-rails-without-regexp/ for details).
validates :user_email, email: true
- :tries - Number of retries to perform. Defaults to 1.
- :on - The Exception on which a retry will be performed. Defaults to Exception, which retries on any Exception.
- :sleep - Interval between tries in sec. Defaults to 1.
retryable(:tries => 1, :on => OpenURI::HTTPError) do # your code here end
Add remember declaration to application_controller (or somewhere)
class ApplicationController include RequestVariables::Support remember_request_variables :current_user end
Use variables anywhere
git "git://github.com/cloudcastle/toolbox.git" do gem "db_assets_manager" gem "jss_template" end