public
Fork of wycats/merb-core
Description: Merb Core: All you need. None you don't.
Homepage: http://www.merbivore.com
Clone URL: git://github.com/auser/merb-core.git
Fix for merb.url in merb console causing the error
NameError: undefined local variable or method `controller_name'.

The irb rack adapter url() method was attempting to set a fallback in
the call to Merb::Router.generate. The fallback was trying to use
controller_name and action_name which are not available in the
irb rack adapter. The explicit fallback has been removed and now the
call to Merb::Router.generate uses the default fallback.
daikini (author)
Wed Feb 13 08:55:22 -0800 2008
commit  bdfa396c8c4c6dda7a9a4a3a7adaa30b8d39fb85
tree    1caaaa691b1a64a76ebfbf4cd6bc59c8a8cba603
parent  d1d519fe19dcd2d58d349f4216c642588278997d
...
4
5
6
7
8
9
10
11
12
 
13
14
15
...
4
5
6
 
 
 
 
 
 
7
8
9
10
0
@@ -4,12 +4,7 @@ module Merb
0
       def params() {} end
0
       
0
       def url(name, params={})
0
- Merb::Router.generate(name, params,
0
- { :controller => controller_name,
0
- :action => action_name,
0
- :format => params[:format]
0
- }
0
- )
0
+ Merb::Router.generate(name, params)
0
       end
0
       
0
       def show_routes

Comments

    No one has commented yet.