creature 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.3
1
+ 0.0.4
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{creature}
8
- s.version = "0.0.3"
8
+ s.version = "0.0.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Travis"]
12
- s.date = %q{2010-12-04}
12
+ s.date = %q{2010-12-14}
13
13
  s.description = %q{Creature.}
14
14
  s.email = %q{travis@impossiblecreature.com}
15
15
  s.extra_rdoc_files = [
@@ -14,11 +14,16 @@ class PagesGenerator < Rails::Generators::Base
14
14
  end
15
15
 
16
16
  def gems
17
- gem 'haml'
17
+ gem 'haml', '2.2.24'
18
+ gem 'jquery-rails'
18
19
 
19
20
  gsub_file "Gemfile", /#.*\n/, "\n"
20
21
  gsub_file "Gemfile", /\n+/, "\n"
21
22
  end
23
+
24
+ def jquery_setup
25
+ generate 'jquery:install --ui'
26
+ end
22
27
 
23
28
  def remove_index_html
24
29
  remove_file 'public/index.html' if File.exists?('public/index.html')
@@ -26,7 +31,7 @@ class PagesGenerator < Rails::Generators::Base
26
31
 
27
32
  def add_routes
28
33
  route "root :to => 'page#show#index', :page => 'index'"
29
- route "match ':page/' => 'page#show#:page'"
34
+ route "match ':page/' => 'page#show#:page', :as => :page"
30
35
  route "resources :pages, :module => 'admin'"
31
36
  route "resources :messages, :module => 'admin'"
32
37
  end
@@ -21,7 +21,7 @@ class Admin::PagesController < ApplicationController
21
21
  @page = Page.new(params[:page])
22
22
 
23
23
  if @page.save
24
- redirect_to(dashboard_path, :notice => 'Page was successfully created.')
24
+ redirect_to(pages_path, :notice => 'Page was successfully created.')
25
25
  else
26
26
  render :action => "new"
27
27
  end
@@ -31,7 +31,7 @@ class Admin::PagesController < ApplicationController
31
31
  @page = Page.find(params[:id])
32
32
 
33
33
  if @page.update_attributes(params[:page])
34
- redirect_to(dashboard_path, :notice => 'Page was successfully updated.')
34
+ redirect_to(pages_path, :notice => 'Page was successfully updated.')
35
35
  else
36
36
  render :action => "edit"
37
37
  end
@@ -41,6 +41,6 @@ class Admin::PagesController < ApplicationController
41
41
  @page = Page.find(params[:id])
42
42
  @page.destroy
43
43
 
44
- redirect_to(dashboard_path, :notice => 'Page was successfully removed.')
44
+ redirect_to(pages_path, :notice => 'Page was successfully removed.')
45
45
  end
46
46
  end
@@ -2,4 +2,4 @@
2
2
 
3
3
  <%= render 'form' %>
4
4
 
5
- <%= link_to 'Back', admin_pages_path %>
5
+ <%= link_to 'Back', pages_path %>
@@ -1,6 +1,6 @@
1
1
  module PageHelper
2
2
  def title(page_title)
3
- content_for(:title) { page_title.to_s + " | BlizzardLaw.com" }
3
+ content_for(:title) { page_title.to_s + " | Application Name" }
4
4
  end
5
5
 
6
6
  def page_name(name)
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: creature
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 3
10
- version: 0.0.3
9
+ - 4
10
+ version: 0.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Travis
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-12-04 00:00:00 -06:00
18
+ date: 2010-12-14 00:00:00 -06:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency