create new rails rake task
Rakefile
namespace :test do Rake::TestTask.new(:helpers) do |t| t.libs << "test" t.pattern = 'test/unit/helper/*_test.rb' t.verbose = true end Rake::Task['test:helpers'].invoke end
11285 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
namespace :test do Rake::TestTask.new(:helpers) do |t| t.libs << "test" t.pattern = 'test/unit/helper/*_test.rb' t.verbose = true end Rake::Task['test:helpers'].invoke end
RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteRule (.*) http://localhost:3000/$1 [P]
<%= truncate(events.name, 50) %>
ROR: func ["Rotate Right" s [series!] n [integer!]][
n: n // length? s
append copy at s ((length? s) - (n - 1)) copy/part s (length? s) - n
]