GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Rubygem
Description: Resource-oriented open source Ruby framework for Web apps.
Homepage: http://rubywaves.com/
Clone URL: git://github.com/dyoder/waves.git
Merged left over changes.
dyoder (author)
Thu Aug 28 17:04:38 -0700 2008
commit  a37e5cab061895c49149f39137df214e665d5ec6
tree    736badc895470a613dda38495396866b0b7a43ca
parent  c26ff4df139153359021c09a7bd83e16de63fe2a
...
97
98
99
100
 
 
 
101
102
103
...
97
98
99
 
100
101
102
103
104
105
0
@@ -97,7 +97,9 @@ module Waves
0
       # Render the template found in the directory named after this view (snake cased, of course)
0
       # E.g. App::Views::Gnome.new.render( "stink" ) would look for templates/gnome/stink.<ext>
0
       def render( path, assigns = {} )
0
- Views.render("#{self.class.basename.snake_case}/#{path}", assigns.merge!( :request => request ))
0
+ qpath = "#{self.class.basename.snake_case}/#{path}"
0
+ Waves.log.debug "Rendering template: #{qpath}"
0
+ Views.render("#{qpath}", assigns.merge!( :request => request ))
0
       end
0
 
0
       # Render the template with the name of the missing method.
...
134
135
136
137
 
138
139
140
...
134
135
136
 
137
138
139
140
0
@@ -134,7 +134,7 @@ describe "In a mapping's path-matcher" do
0
       
0
       it "can apparently also use hashes to set default values" do
0
         mappings do
0
- on( :get => [ "thingy", { :mode => 'show' } ] ) { "mode: #{params[:mode]}" }
0
+ on( :get => [ "thingy", { :mode => 'show' } ] ) { "mode: #{params['mode']}" }
0
         end
0
         
0
         mock_request.get("/thingy").body.should == "mode: show"

Comments