Changeset 129 for trunk/examples/blog.rb
- Timestamp:
- 07/10/2006 23:19:51 (2 years ago)
- Files:
-
- 1 modified
-
trunk/examples/blog.rb (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/blog.rb
r112 r129 190 190 def add 191 191 if @user 192 _form( post, :action => R(Add))192 _form(@post, :action => R(Add)) 193 193 else 194 194 _login … … 198 198 def edit 199 199 if @user 200 _form( post, :action => R(Edit))200 _form(@post, :action => R(Edit)) 201 201 else 202 202 _login … … 205 205 206 206 def view 207 _post( post)207 _post(@post) 208 208 209 209 p "Comment for this post:" … … 241 241 p do 242 242 a "Edit", :href => R(Edit, post) 243 text " | " 243 244 a "View", :href => R(View, post) 244 245 end
