Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Riak and Ruby: Ripple not return valid entries
- require 'ripple'
- require 'sinatra'
- class Article
- include Ripple::Document
- property :title, String
- property :body, String
- end
- get '/' do
- @articles = Article.all
- erb :articles
- end
- post '/' do
- article = Article.new(:title => params[:title], :body => params[:body])
- article.save
- end
Add Comment
Please, Sign In to add comment