public
Description: The open source social networking platform in Ruby on Rails from the author of RailsSpace
Homepage: http://insoshi.com
Clone URL: git://github.com/insoshi/insoshi.git
Figured out that helper file names really have to be singular
Michael Hartl (author)
Sat Mar 01 13:03:04 -0800 2008
commit  24b2a2d1bf77a6c08825a715cee9654289a9e212
tree    48993a3d0bfe7926f9a02d55c8a831e68b3c2c66
parent  8748b94a2dbae575a59cfaa8fc4e2049ab7b3b4e
...
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
...
88
89
90
91
92
93
94
95
96
97
98
99
100
 
101
...
27
28
29
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
30
31
32
...
61
62
63
 
 
 
 
 
 
 
 
 
 
64
65
0
@@ -27,33 +27,6 @@ module ApplicationHelper
0
     link_to(link[:content], link[:href], options)
0
   end
0
   
0
- ## Helpers written in Markaby.
0
- # See http://redhanded.hobix.com/inspect/markabyForRails.html
0
- # The plugin is broken in Rails 2.0.2. Get a working plugin as follows:
0
- # $ cd vendor/plugins
0
- # $ git clone http://github.com/giraffesoft/markaby/tree/master
0
- def raster(people, options = {})
0
- n = options[:num] || 4
0
- title = options[:title]
0
- image = options[:image] || :icon
0
- markaby do
0
- div.module do
0
- table do
0
- tr do
0
- th(:colspan => n) { title }
0
- end
0
- people.collect_every(n).each do |row|
0
- tr do
0
- row.each do |person|
0
- td { image_tag person.send(image) }
0
- end
0
- end
0
- end
0
- end
0
- end
0
- end
0
- end
0
-
0
   # Set the input focus for a specific id
0
   # Usage: <%= set_focus_to_id 'form_field_label' %>
0
   def set_focus_to_id(id)
0
@@ -88,14 +61,5 @@ module ApplicationHelper
0
     str = link_to(img, path, opts)
0
     str << "&nbsp;"
0
     str << link_to_unless_current(action, path, opts)
0
- end
0
-
0
-
0
-
0
- private
0
-
0
- # See http://railscasts.com/episodes/69
0
- def markaby(&block)
0
- Markaby::Builder.new({}, self, &block)
0
- end
0
+ end
0
 end

Comments

    No one has commented yet.