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
half done blog rework
automatthew (author)
Fri Sep 05 14:50:04 -0700 2008
commit  d2f4e06a80ab9cd883b33cf2115b33f4c2410765
tree    fc386ae33faab0b4ac2292e109e99c378046fc4d
parent  4d07bfbe401a1551d53c3b35c71ba5b59799133f
...
12
13
14
15
 
16
17
18
...
12
13
14
 
15
16
17
18
0
@@ -12,7 +12,7 @@ module Blog
0
 
0
       host '127.0.0.1'
0
 
0
- port 3000
0
+ port 4000
0
 
0
       handler ::Rack::Handler::Mongrel, :Host => host, :Port => port
0
       # handler ::Rack::Handler::WEBrick, :BindAddress => host, :Port => port
...
1
2
 
3
4
5
...
1
 
2
3
4
5
0
@@ -1,5 +1,5 @@
0
 layout :default, :title => 'Edit Entry' do
0
- form :action => "/entry/#{@entry.name}/", :method => 'POST' do
0
+ form :action => "/entry/#{@entry.name}", :method => 'POST' do
0
     input :name => '_method', :type => 'hidden', :value => 'put'
0
     label 'Title'; br
0
     input :type => :text, :value => @entry.title, :name => 'entry.title'; br
...
1
2
3
 
4
5
6
...
1
2
 
3
4
5
6
0
@@ -1,6 +1,6 @@
0
 layout :default, :title => 'Blog Entries' do
0
   h1 'My Blog'
0
- form :action => '/entries', :method => 'post' do
0
+ form :action => '/entry', :method => 'post' do
0
     label 'Name'
0
     input :type => :text, :name => 'entry.name'
0
     input :type => :submit, :value => 'Add'
...
1
2
 
3
4
5
...
1
 
2
3
4
5
0
@@ -1,5 +1,5 @@
0
 layout :default, :title => @entry.title do
0
- a 'Show All Entries', :href => '/entries'
0
+ a 'Show All Entries', :href => '/entry'
0
   a 'Edit This Entry', :href => "/entry/#{@entry.name}/edit"
0
   h1 @entry.title
0
   textile @entry.content
...
4
5
6
7
 
8
9
10
...
4
5
6
 
7
8
9
10
0
@@ -4,7 +4,7 @@ html do
0
 
0
   head do
0
     title @title
0
- script :src => 'http://jqueryjs.googlecode.com/files/jquery-1.2.2.min.js',
0
+ script :src => '/javascript/jquery-1.2.6.min.js',
0
       :type => 'text/javascript'
0
     script :src => '/javascript/site.js', :type => 'text/javascript'
0
     link :href => '/css/site.css', :rel => 'stylesheet', :type => 'text/css'

Comments

    No one has commented yet.