public
Fork of lazyatom/engines
Description: The Rails Engines plugin
Homepage: http://rails-engines.org
Clone URL: git://github.com/trptcolin/engines.git
added support for image_submit_tag with plugin assets
Colin Jones (author)
Fri Oct 24 20:48:49 -0700 2008
trptcolin (committer)
Tue Jan 06 18:25:25 -0800 2009
commit  e01883023612be991491da438f6daeb9d34f7661
tree    4d15aa241a3bd5a79008f52127c65befcac7268b
parent  aeb5ead19e5cf8373a9b350e22bc5f2348dfcbce
...
43
44
45
46
 
47
48
49
...
171
172
173
174
175
 
...
43
44
45
 
46
47
48
49
...
171
172
173
 
174
175
0
@@ -43,7 +43,7 @@ module Engines
0
   
0
   # List of extensions to load, can be changed in init.rb before calling Engines.init
0
   mattr_accessor :rails_extensions
0
-  self.rails_extensions = %w(action_mailer asset_helpers routing migrations dependencies)
0
+  self.rails_extensions = %w(action_mailer asset_helpers form_tag_helpers routing migrations dependencies)
0
   
0
   # The name of the public directory to mirror public engine assets into.
0
   # Defaults to <tt>RAILS_ROOT/public/plugin_assets</tt>.
0
@@ -171,4 +171,4 @@ module Engines
0
       end  
0
     end   
0
   end  
0
-end
0
\ No newline at end of file
0
+end
...
28
29
30
31
32
 
 
 
 
 
 
...
28
29
30
 
31
32
33
34
35
36
37
0
@@ -28,4 +28,9 @@ class ViewHelpersTest < ActionController::TestCase
0
     get :index
0
     assert_tag :div, :attributes => { :id => "assets_layout" }
0
   end  
0
-end
0
\ No newline at end of file
0
+
0
+  def test_plugin_image_submit_helpers
0
+    assert_tag :input, :attributes => { :src => "/plugin_assets/test_assets/images/image.png", :type => "image"}
0
+  end
0
+
0
+end
...
1
2
3
4
 
 
...
1
2
 
3
4
5
0
@@ -1,3 +1,4 @@
0
 <%= image_tag 'image.png', :plugin => 'test_assets' %>
0
 <%= javascript_include_tag 'file.1.js', 'file2', :plugin => "test_assets" %>
0
-<%= stylesheet_link_tag 'file.1.css', 'file2', :plugin => "test_assets" %>
0
\ No newline at end of file
0
+<%= stylesheet_link_tag 'file.1.css', 'file2', :plugin => "test_assets" %>
0
+<%= image_submit_tag 'image.png', :plugin => "test_assets" %>

Comments