public
Description: All the extra stuff you could want for the Mack Framework.
Homepage: http://www.mackframework.com
Clone URL: git://github.com/markbates/mack-more.git
more RJS Support: [#6 state:resolved]
- More information when user run rake generate:javascript but js_framework is 
undefined
- Clean up fake_application in the spec folder
- Clean up routs in fake_application
- Closing lighthouse ticket #6
dsutedja (author)
Tue Jul 22 07:25:07 -0700 2008
commit  07aca80671bed1e845c3d9586a9359d8ee6aac07
tree    1f07b76169712e2864caf5a332e6c755423b587b
parent  dba05d792de85fdb868de0d03a666e3b6c4e5aa1
...
4
5
6
7
 
8
9
10
...
4
5
6
 
7
8
9
10
0
@@ -4,7 +4,7 @@ require File.join(crt, "rake_task_requires")
0
 @gem_spec = Gem::Specification.new do |s|
0
   s.name = 'mack-javascript'
0
   s.version = GEM_VERSION
0
-  s.summary = %{Rendering Engine}
0
+  s.summary = %{JavaScript in Mack}
0
   s.description = %{RJS support for the Mack Framework}
0
   s.author = "Gerardo Pis-Lopez"
0
   s.homepage = "http://www.mackframework.com"
...
1
2
3
4
...
7
8
9
10
 
 
 
 
11
12
13
...
 
1
2
3
...
6
7
8
 
9
10
11
12
13
14
15
0
@@ -1,4 +1,3 @@
0
-puts "In js_mack_app_generator.rb"
0
 # This will generate required RJS support in your application.
0
 # 
0
 # example: 
0
@@ -7,7 +6,10 @@ puts "In js_mack_app_generator.rb"
0
 class JavascriptGenerator  < Genosaurus
0
     
0
   def setup
0
-    error = %{no js_framework specified in app_config}
0
+    error = %{  'js_framework' is not specified in your app_config/default.yml file.
0
+      To fix this error, please open your {PROJ}/config/app_config/default.yml file, then uncomment 
0
+      the line that says "# js_framework: jquery" (or prototype, if you specified prototype as the js framework).
0
+      Once you have uncomment that line, please re-run 'rake generate:javascript' again. Thanks!}
0
     raise error unless app_config.mack.js_framework
0
   end
0
   
...
1
2
3
4
5
6
...
1
 
 
2
3
4
0
@@ -1,6 +1,4 @@
0
 Mack::Routes.build do |r|
0
-
0
-  r.resource "admin/users"
0
   
0
   r.with_options(:controller => "vtt/view_template") do |map|
0
     map.bleeding_gums_murphy "/vtt/bleeding_gums_murphy", :action => :bleeding_gums_murphy, :method => :post, :format => :js
...
7
8
9
10
11
12
13
14
15
16
17
...
7
8
9
 
 
 
 
 
10
11
12
0
@@ -7,11 +7,6 @@ require 'fileutils'
0
 ENV["MACK_ENV"] = "test"
0
 ENV["MACK_ROOT"] = File.join(File.dirname(__FILE__), "fake_application")
0
 
0
-# if $genosaurus_output_directory.nil?
0
-#   $genosaurus_output_directory = ENV["MACK_ROOT"]
0
-#   puts "$genosaurus_output_directory: #{$genosaurus_output_directory}"
0
-# end
0
-
0
 $: << File.expand_path(File.dirname(__FILE__) + "/../lib")
0
 
0
 # load the mack framework:

Comments