+++ /dev/null
-*.swp
-log/*.log
-log/mongrel.pid
+++ /dev/null
-# Filters added to this controller apply to all controllers in the application.
-# Likewise, all the methods added will be available for all controllers.
-
-class ApplicationController < ActionController::Base
- helper :all # include all helpers, all the time
- protect_from_forgery # See ActionController::RequestForgeryProtection for details
-
- # Scrub sensitive parameters from your log
- # filter_parameter_logging :password
- init_gettext "nimono"
-end
+++ /dev/null
-# Methods added to this helper will be available to all templates in the application.
-module ApplicationHelper
-
- def content_for(name, content = nil, &block)
- @has_content ||= {}
- @has_content[name] = true
- super(name, content, &block)
- end
-
- def has_content?(name)
- (@has_content && @has_content[name]) || false
- end
-
- def current_headmenu?(options)
- url = url_for(options)
- re = Regexp.new(Regexp.escape(url) + '($|[/?])')
- re.match(@controller.request.request_uri)
- end
-
- def link_menu_to(name, options = {}, html_options = {}, *parameters_for_method_reference, &block)
- cp_p = current_headmenu?(options)
- if cp_p
- html_options.update(:class => 'selected')
- end
- link_to name, options, html_options, *parameters_for_method_reference, &block
- end
-end
+++ /dev/null
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<head>
- <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
- <title>Thumbs: <%= controller.action_name %></title>
- <%= stylesheet_link_tag 'scaffold' %>
-</head>
-<body>
-
-<p style="color: green"><%= flash[:notice] %></p>
-
-<%= yield %>
-
-</body>
-</html>
+++ /dev/null
-Use this README file to introduce your application and point to useful places in the API for learning more.
-Run "rake doc:app" to generate API documentation for your models, controllers, helpers, and libraries.