Changeset 129 for trunk/examples/blog.rb

Show
Ignore:
Timestamp:
07/10/2006 23:19:51 (2 years ago)
Author:
why
Message:
  • lib/camping.rb: trimmed down all the Markaby hooks to assign the Camping controller as the helper. That, along with some other cleanup, shaved about 200 bytes off. good riddance and no loss of features.
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/examples/blog.rb

    r112 r129  
    190190    def add 
    191191      if @user 
    192         _form(post, :action => R(Add)) 
     192        _form(@post, :action => R(Add)) 
    193193      else 
    194194        _login 
     
    198198    def edit 
    199199      if @user 
    200         _form(post, :action => R(Edit)) 
     200        _form(@post, :action => R(Edit)) 
    201201      else 
    202202        _login 
     
    205205 
    206206    def view 
    207         _post(post) 
     207        _post(@post) 
    208208 
    209209        p "Comment for this post:" 
     
    241241      p do 
    242242        a "Edit", :href => R(Edit, post) 
     243        text " | " 
    243244        a "View", :href => R(View, post) 
    244245      end